code:
function onClicked()
game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(26.2, -10.855, 319.8))
game.Workspace.Sounds.DinkSecretRoom:Play()
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
THIS IS IN A NORMAL SCRIPT, IF ITS IN A LOCALSCRIPT IT BREAKS. PLEASE HELP ME. I NEED TO CALL A LOCALPLAYER BUT WITHOUT LOCALPLAYER. SORRY FOR CAPS I WAS TO LAZY TO TYPE AGAIN.

1 comment
(Worth noting it's better to use local functions, just like it is with Local Variables, and :connect is deprecated in favor of :Connect)