#Teleporting Script doesnt work

1 messages · Page 1 of 1 (latest)

north plume
#
local Button = script.Parent

local TweenService = game:GetService("TweenService")

local info = TweenInfo.new(
    2,
    Enum.EasingStyle.Linear,
    Enum.EasingDirection.InOut,
    0,
    true
)

local Ora = {}

Ora.BackgroundTransparency = 0

Button.Triggered:Connect(function(Player)
    local Character = Player.Character
    
    local HRP = Character:WaitForChild("HumanoidRootPart")
    
    local Gui = Player.PlayerGui.TeleportingGui
    
    local Frame = Gui.Frame
    
    Frame.Visible = true
    
    local TWA = TweenService:Create(Frame, info, Ora)
    
    TWA:Play()
    
    task.spawn(function()
        task.wait(2)
        HRP.Position = Vector3.new(679.946, -168.107, 153.8)
    end)
    
    TWA.Completed:Connect(function()
        Frame.Visible = false
        Frame.BackgroundTransparency = 1
    end)
end)
#
local TweenService = game:GetService("TweenService")

local Button = script.Parent

local info = TweenInfo.new(
    2,
    Enum.EasingStyle.Linear,
    Enum.EasingDirection.InOut,
    0,
    true
)

local Goal = {}

Goal.BackgroundTransparency = 0

Button.Triggered:Connect(function(Player)
    local Character = Player.Character
    
    local HRP = Character:WaitForChild("HumanoidRootPart")
    
    local Gui = Player.PlayerGui.TeleportingGui
    
    local Frame = Gui.Frame
    
    Frame.Visible = true
    
    local TWAnim = TweenService:Create(Frame, info, Goal):Play()
    
    task.spawn(function()
        task.wait(2)
        HRP.Position = Vector3.new(502.2, 25.13, 17.521)
    end)
    
    TWAnim.Completed:Connect(function()
        Frame.Visible = false
        Frame.BackgroundTransparency = 1
    end)
end)
wispy flame
#

hey i can help

north plume
#

really?

wispy flame
#

yes sir

#

payment?

wispy flame
#

umm you want to pay ior not?

atomic stag
north plume
#

it doesnt have diffirences

wispy flame
#

paqu i can help

#

pay?

rigid skiffBOT
#

studio** You are now Level 1! **studio

north plume
#

the only diffirences are Vector3

atomic stag
# north plume i did

Then why is it different?

local Button = script.Parent

local TweenService = game:GetService("TweenService")

script2:

local TweenService = game:GetService("TweenService")

local Button = script.Parent
north plume
#

its that important?

wispy flame
#

k bye

atomic stag
#

Thats odd that it isn't working..

atomic stag
north plume
#

i just made it like that

atomic stag
north plume
#

wait what about i dont make reversing?

north plume
#

no errors

#

imma delete reversing

atomic stag
atomic stag
#

😭

#

atleast save your vector3's

atomic stag
#

since if i remember correctly, .Position is not that great.. And may glitch out in some cases here and there

north plume
#

d'dnt work

#

oh wait what

#

its not about cframes tho

dim bear
#

is the prompt triggering?

#

just like what plvcz said

north plume
#

the prompt triggering in the first prompt

#

but not the second one

#

oh wait

#

it was cframe