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

Works in studio but not the game help?

Asked by 9 years ago
button = script.Parent -- the button
button.MouseButton1Down:connect(function ()  
plrgui = button.Parent.Parent 
player = plrgui.Parent
id = 'ID' 
game:GetService('TeleportService'):Teleport(id, player) -- 
end)

it works in studio but not the game help?

1 answer

Log in to vote
0
Answered by
Zyleak 70
9 years ago

Is it a normal script or local?

0
normal Codboy22 9 — 9y
0
Try a local? Zyleak 70 — 9y
0
yep it worked Codboy22 9 — 9y
Ad

Answer this question