So I am trying to make a customization GUI and there are arrows on either side of the character. The arrows are supposed to rotate the character in the direction they are pointing (you know, to give the player a better view of the character when they are customizing it.)
The problem: The character rotates but ONCE but for some reason it doesn't continuously rotate every time you click one of the arrows. It'll only rotate the character once and when you click it again, it does nothing. Anyone know how I can make it rotate in the direction of the arrow every time it is clicked?
Script:
local player = game.Players.LocalPlayer
local character = player.Character
function onClick()
workspace[character.Name.."'s Customizable Character"].Torso.CFrame = CFrame.Angles(0,45,0) + workspace[character.Name.."'s Customizable Character"].Torso.CFrame.p
end
script.Parent.MouseButton1Click:Connect(onClick)
Any feedback?
