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

[Solved] How do I make a textbutton wich teleports to other places when clicked? [closed]

Asked by 6 years ago
Edited by RubenKan 6 years ago

I want to make a textbutton that teleports the player to another place. I tried with this:

local placeId = 5847573 --change to place id
script.Parent.MouseButton1Click:Connect(function()
    game:GetService("TeleportService"):Teleport(placeId,game.Players.LocalPlayer)
end)

but it didn't work. Please help me.

0
Any errors? OldPalHappy 1477 — 6y
0
No FrikiGameplaysHD 1 — 6y
0
But it doesn't work FrikiGameplaysHD 1 — 6y
0
Ok solved FrikiGameplaysHD 1 — 6y

Locked by RubenKan

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?