#Teleport Service:SetTeleportGui()
35 messages · Page 1 of 1 (latest)
Yes, serverscriptservice
I just made that one up on the spot because I just wanted to see if my consept was working as my script wasnt
can i give you a tip?
Sure
uh
game
.players
.localplayer
cant run on server
I made that one up my original script uses game.PlayerAdded
so you need to run on client
Ill send my original script so its easier
this is my script local TeleportService = game:GetService("TeleportService")
local TeleportUI = game.ReplicatedStorage:WaitForChild("TeleportUI")
TeleportService:SetTeleportGui(TeleportUI)
game.Players.PlayerAdded:Connect(function(plr)
local part = workspace:WaitForChild("Server2")
local Server = game:GetService("TeleportService")
local Server2ID = 125004125131713
local check = true
if check then
part.Touched:Connect(function(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player then
local PLRGUI = plr.PlayerGui
local GUI = PLRGUI:WaitForChild("teleport")
local LoadingScreen = GUI.TextLabel
check = false
local Options = Instance.new("TeleportOptions")
Options.ShouldReserveServer = true
LoadingScreen.Visible = true
Options:SetTeleportData({
Level = "Hard"
})
Server:SetTeleportGui(LoadingScreen)
Server:TeleportAsync(Server2ID, {player}, Options)
task.wait(3)
check = true
end
end)
end
end)
--MAIN GAME SCRIPT
uh
do SetTeleportGui
on a client
script
localscript
Alright
uh now I cant walk
Nvm it isnt to do with that script but I havent done anything since yesterday and i could walk yestersay
This is so weird
Yeah I really cant tell why bc I checked and the module for movement is active
In studio I cant walk but in game I can
In the game anyway, it says that it must be a server script to actually do the teleport
and now I can walk again?