I want to rotate a part only on a players client, I have this script so far.
script.Parent.MouseEnter:connect(function()
script.Parent.Parent.Frame.BackgroundColor3 = Color3.new(12/255, 62/255, 0/255)
end)
script.Parent.MouseLeave:connect(function()
script.Parent.Parent.Frame.BackgroundColor3 = Color3.new(20/155, 108/255, 2/255)
end)
script.Parent.MouseButton1Down:connect(function()
for i = 1,90 do
game.Workspace.Block.CFrame = game.Workspace.Block.CFrame * CFrame.fromEulerAnglesXYZ(0,0, -1)
wait(0.01)
end
end)

2 comments
What's the problem? Looks fine to me.
opps, I meant on your client, no one elses. So when a part rotates no one else can see it