#Cant Teleport?

14 messages · Page 1 of 1 (latest)

past silo
#

​lua local prompt = script.Parent local loaderFrame = game.ReplicatedStorage.Main.UI.Loader:Clone() local ts = game:GetService("TweenService") prompt.Triggered:Connect(function(player) if player.leaderstats.Rebirths.Value >= 1 then loaderFrame.Parent = player.PlayerGui.LoaderUI local tween1 = ts:Create(loaderFrame, TweenInfo.new(1), {Transparency = 0}) local tween2 = ts:Create(loaderFrame, TweenInfo.new(1), {Transparency = 1}) tween1:Play() wait(3) player.Character.HumanoidRootPart.CFrame = CFrame.new(workspace.Main.Portals.DesertTeleportPart.Position) tween2:Play() wait(2) loaderFrame:Destroy() end end)

coarse marsh
#

are you attempting to teleport inside of a localscript or a normal script

past silo
#

@coarse marsh i tried both

elfin daggerBOT
#

studio** You are now Level 4! **studio

past silo
#

i first tried to use it in a server script

#

i then tried using a remote event to fire in a local script

#

but it didnt work

coarse marsh
#

cuz teleports can only be handled in regular scripts
and same with prompts

#

you can't really handle the prompt interaction inside of a client script

past silo
#

ok

#

@coarse marsh

#

the issue is line 5

#

apparently

#

its not comparing correctly