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

i know that i ask for a lot but i really need help. ?

Asked by 3 years ago

So I tried for like 4 days to make a good game teleporter. A game teleporter like in the horror games, with a player counter " 0/4" for example. When the player counter hits " 4/4", players can't join anymore and a 20s timer beggins. When the timer hits 0, players will be teleported to a game. I really tried all my methods but i just can't do it. If anybody would want to help me with this, it would be aswome! Thanks so much if you can help me.

0
look it up, there should be a similar question to this on the dev forums 0hsa 193 — 3y
0
look at the dev forum, its not needed to ask here PrestonsWeekends 20 — 3y
0
i didn't find anything on dev forum OctavianH0310 25 — 3y

1 answer

Log in to vote
0
Answered by
Xapelize 2658 Moderation Voter Community Moderator
3 years ago
Edited 3 years ago
X = 0
timer = 20

repeat
-- player touching part event
    x = x + 1
end

-- player leaving part function 
    x = x - 1
end
until x == 4
repeat wait(1)
    print(timer) 
    timer = timer - 1
until timer == 0

for _, v(playertouchingpart) in ipairs do

    local hrp = player:FindFirstChild("HumanoidRootPart") 
    hrp.Position.CFrame = Vector3.new(position).CFrame
end

I gave you a simple concept, well you should check roblox developer hub part touching and part leaving function, and stuffs. I cant help you much. If you really have problems, im teaching you more soon

Ad

Answer this question