I am trying to transform the Motor6d cframe on a server script as to replicate an “animation” for all players to see. However this does not work for me. I have used runservice.stepped.
Here’s my code
local player = script.Parent.Parent.Parent
local enabled = false
script.Parent.Check.Event:Connect(function(enabled1)
enabled = enabled1
end)
game:GetService("RunService").Stepped:Connect(function()
if enabled == true then
player.Character.RightUpperArm.RightShoulder.Transform = CFrame.new()
player.Character.RightLowerArm.RightElbow.Transform = CFrame.new()
player.Character.RightHand.RightWrist.Transform = CFrame.new()
end
end)
I’ve no idea what is happening. Any help is appreciated!