#Teleport Service:SetTeleportGui()

35 messages · Page 1 of 1 (latest)

nocturne iris
#

I mean I just wrote this but you get the idea

reef falcon
#

at the point you're doing good

#

I think the script would work very good

nocturne iris
#

Yes, serverscriptservice

nocturne iris
reef falcon
#

can i give you a tip?

nocturne iris
#

Sure

kindred holly
#

game

#

.players

#

.localplayer

#

cant run on server

reef falcon
#

second one

#

i think

#

it's server

nocturne iris
kindred holly
#

so you need to run on client

nocturne iris
#

Ill send my original script so its easier

kindred holly
#

this is my script local TeleportService = game:GetService("TeleportService")
local TeleportUI = game.ReplicatedStorage:WaitForChild("TeleportUI")

TeleportService:SetTeleportGui(TeleportUI)

nocturne iris
#
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
kindred holly
#

do SetTeleportGui

#

on a client

#

script

#

localscript

nocturne iris
#

Alright

nocturne iris
kindred holly
#

send script

nocturne iris
# kindred holly ??

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

nocturne iris
# kindred holly ??

In the game anyway, it says that it must be a server script to actually do the teleport

#

and now I can walk again?