Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

teleport scrip says it works in output but dosent in game?

Asked by 5 years ago

This script below is a normal script that basically teleports you once you clicked the block, and the output says it works hence the print. But it doesn't work! any help?

function Clicked()
0
GameID = 185655149

print("Worked!")



game.Players.PlayerAdded:connect(function(player)

game:GetService("TeleportService"):Teleport(GameID, player)



end)





end

script.Parent.ClickDetector.MouseClick:Connect(Clicked)
1
try putting the print after the line 9 and 11 so we can know where the script stops. NickAtNick 163 — 5y
0
f r e e m o d e l s k i d d o LoganboyInCO 150 — 5y
1
It prints "Worked!" (Line 05) before actually teleporting the player (Line 11) DemonEyee 55 — 5y
0
Does this call up an error? Protogen_Dev 268 — 5y

Answer this question