Here's the script:
script.Parent.ClickDetector.MouseClick:Connect(function() game.Players.LocalPlayer.Character.UpperTorso.CFrame = CFrame.new(-41.544, 3.254, -8.141) end)
It's a simple script, but every time I click the part nothing happens, This script has worked fine without any problems before, Why isn't it working?
You can't access LocalPlayer from a serverscript. MouseClick takes a parameter of the player who clicked.
script.Parent.ClickDetector.MouseClick:Connect(function(plr) plr.Character.UpperTorso.CFrame = CFrame.new(-41.544, 3.254, -8.141) end)