I need help making a button the is on a sign. I would like that when players click it it teleports them to another game. here is my script:
local telePart = script.Parent
local TeleportService = game:GetService("TeleportService")
local placeId = 16838008357 -- application place here
telePart.MouseButton1Click:Connect(function()
TeleportService:Teleport(placeId)
end)
Try something like this:
local telePart = script.Parent
local Prompt = telePart.ProximityPrompt -- Must have a proximityprompt within the part!
local TARGET_PLACE_ID = 16838008357 -- replace with your own place ID
Prompt.Triggered:Connect(function(plr)
TeleportService:TeleportAsync(TARGET_PLACE_ID, plr)
end)
Don’t quote me on this script, I didn’t test it.
yes but i would like it to be when a mouse clicks the board
local Button = script.Parent
local Players = game:GetService("Players")
local TS = game:GetService("TeleportService")
local Player = Players.LocalPlayer
Button.MouseButton1Click:Connect(function()
local PlaceID = 16838008357
TS:TeleportAsync(PlaceID, Player)
end)
Try this ^^
Still not working…I don’t know why.
Make sure to have teleports enabled in the Game Settings. Otherwise, not sure about my script I’ll try to adjust it.
Noah
7
Category changed to Development Support
system
Closed
9
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.