I'm having trouble with this script, I'm trying to make it so when "a" is pressed it will spin the brick. Whats wrong?
function keyDown(key)
if key == "a" then
script.Parent.CFrame = script.Parent.CFrame*CFrame.Angles(0,25,0)
end
end
I'm having trouble with this script, I'm trying to make it so when "a" is pressed it will spin the brick. Whats wrong?
function keyDown(key)
if key == "a" then
script.Parent.CFrame = script.Parent.CFrame*CFrame.Angles(0,25,0)
end
end
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Try script.Parent.CFrame = CFrame.new(script.Parent.CFrame*CFrame.Angles(0,25,0)) Since you're defining a new CFrame value.