Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i make a teleporter that when i touch it, a timer pops up?

Asked by 4 years ago
Edited 4 years ago

this is what i made

function teleport(player)
    local HumanoidRootPart = player.HumanoidRootPart
    HumanoidRootPart.CFrame = CFrame.new(script.Parent.Parent.Teleport2.Position)
end
script.Parent.Touched:connect(function(tele)
    wait(5)
    teleport(tele.Parent)
end)

then for the second one

function teleport(player)
    local HumanoidRootPart = player.HumanoidRootPart
    HumanoidRootPart.CFrame = CFrame.new(script.Parent.Parent.Teleport1.Position)
end
script.Parent.Touched:connect(function(tele)
    wait(5)
    teleport(tele.Parent)
end)

then it will teleport to a block when i touched it it will teleport to the other game

local TeleportService = game:GetService("TeleportService")

local Place = 3269463103



script.Parent.Touched:connect(function(hit)

local player = game.Players:GetPlayerFromCharacter(hit.Parent)

if player then

TeleportService:Teleport(Place, player)

end

end)
 ~~~~~~~~~~~~~~~~~
lastly i wanted to add a timer when i touched the block, and then all the people in the circle will teleport to the game. but the problem is

local seconds = script.StarterGui.Child.Time

script.StarterGui.Child.Text = seconds.Value

for i = 1,seconds.Value do wait(1) seconds.Value = seconds.Value - 1 script.Parent.Text = seconds.Value end ~~~~~~~~~~~~~~~~~ i found this from youtube, how do i connect them both then simply have a timer then teleports to the block then i go to the game?

0
Teleport to a place or another point? Igoralexeymarengobr 365 — 4y
0
this is not a script request site, we only help with scripts that dont work Gameplayer365247v2 1055 — 4y
0
Teleport to anoter place Sage65465 0 — 4y
0
another* WideSteal321 773 — 4y

Answer this question