Roblox Raycasting Laser Gun

Lets begin learning how to create a laser gun using ray casting to kill our zombie.

Roblox raycasting laser gun. Today im going to talk about some more advanced ways to use robloxs raycasting api namely simulating the interactions of lasers with mirrors. Once cast you can detect if the ray hits a basepart or terrain cell. Roblox studio battle royale creation time lapse ep1 duration. I made a laser gun using robloxs tutorial and i want to make it fe compatible.

Any help on how i would go about it. Roblox raycast gun tutorialbullet holes duration. Local partpositionnormal gameworkspacefindpartonrayraycastplayercharacter falsetrue local dist top frompmagnitude if not dist then dist 300 end. Local tool scriptparent local player gamegetserviceplayerslocalplayer local mouse playergetmouse local canplay true local mousedown false equipped false toolequippedconnectfunction equipped true mousebutton1downconnectfunction.

Hello everyone this is catbloxive been a long time member of roblox five years and still going and a scripter for a little over half that time.

Gun Laser Goes Through Objects Scripting Support Roblox

Gun Laser Goes Through Objects Scripting Support Roblox

Aps 3rd Generation Raycast Guns Roblox

Aps 3rd Generation Raycast Guns Roblox

Roblox Studio Tutorial How To Make Raycast Weapon Remake Youtube

Roblox Studio Tutorial How To Make Raycast Weapon Remake Youtube

How Can I Make This Raycasting Gun Less Laggy Scripting Helpers

How Can I Make This Raycasting Gun Less Laggy Scripting Helpers

Velocity Not Working With Raycasting Scripting Helpers

Velocity Not Working With Raycasting Scripting Helpers