Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would I make a recoil system using Ray?

Asked by
Corexty 15
7 years ago

How would I make a recoil, slightly moved to a certain 2d direction?

Current script:

local player = game.Players.LocalPlayer
local char = player.Character
local ray = Ray.new(char.Head.CFrame.p, (player:GetMouse().Hit.p - char.Head.CFrame.p)*999)

thanks

0
If it is in first person use camera manipulation, http://wiki.roblox.com/index.php?title=Camera_manipulation. frostysubatomiczero 51 — 7y

Answer this question