Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Works in studio but not the game help?

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

This discussion is preserved as it was. New answers, comments, and votes are closed.