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

How to modify this to move the tool itself, not just the handle?

Asked by 9 years ago

I have a couple weapons with more than one part, and I am making a game that is like retro shooters, where the guns float and rotate (I already have the floating down.) This script only works for meshed weapons, but not weapons with more than one part.

repeat
    script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0.04)
    wait(0)
until
    script.Parent.Parent.Parent.Name == "Backpack" or script.Parent.Parent.Parent.className == "Model"

Answer this question