while wait() do script.Parent.CFrame = CFrame.new(script.Parent.CFrame) *CFrame.Angles(math.rad(math.random()*100),math.rad(math.random()*100),math.rad(math.random()*100)) end
Will not rotate at all. That's all that's happening. Nothing. It's a 3 lined script, I tried to fit all of the script on. Nothing is spelled incorrectly. I used math.rad
and math.random()*100
. I used a while wait() do end
instead of while true do wait() end
to make it shorter.
CFrame.new
takes a Vector3
value so:
while wait() do script.Parent.CFrame = CFrame.new(script.Parent.Position) *CFrame.Angles(math.rad(math.random()*100),math.rad(math.random()*100),math.rad(math.random()*100)) end
or
while wait() do script.Parent.CFrame = script.Parent.CFrame *CFrame.Angles(math.rad(math.random()*100),math.rad(math.random()*100),math.rad(math.random()*100)) end