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 

1 comment

0

Try script.Parent.CFrame = CFrame.new(script.Parent.CFrame*CFrame.Angles(0,25,0)) Since you're defining a new CFrame value.