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)
Use a Local Script
In order to make things local, you have to use a localScript
.
I didn't read your script but I'm assuming you know how to make a part rotate.
All you have to do it place your code in a local script located inside the Player. Any changes made with a LocalScript
will remain Local
.
This only works with FE, FilteringEnabled
.
If FE is not enabled I think you could still make things local by inserting parts into the Player's Current Camera and changing the part from there. I'm not sure about this though, I use FE.
Good Luck!