-
What do you want to achieve?
A Teleport Pad Found In Games Such As the Isle. When Players Step Into The Green Zone, The Timer Automatically Starts To Count Down. And When The Timer Hits Zero You Get Teleported To A Different Game.
-
What is the issue?
I Haven’t Been Able To Find Any Tutorials On How To Do This Exact Thing. I’m Not Even Sure Where To Start.
-
What solutions have you tried so far?
I Searched For Hours Trying To Find Something That Can Show Me What To Do Or Where To Start.
Example From The Game “Isle”: Example
This is my first post so I’m really sorry if I did something wrong.
Players:GetUserThumbnailAsync (roblox.com) will help you with this, Isle probably achieved this by applying a new image every time a player walked in/out of the green area! and when the player walks in, it made a new surface GUI which applied the ImageLabel which then put the player’s image on it
but you say that you’re new with this so you should firstly look at how GUIs work. once you do that then look up on how events work and how you can make a player trigger an event. when you do that then you can look at what i posted above and try apply it to your new knowledge
hope this helped
To get the players in the area you can use region3. This post on scripting helpers goes over this well.
You can then use a simple count down loop for the timed period which checks all the players in the area and update the players in the queue.
local countDownTime = 20
local countDown = 20
while true do
local players = -- get players in region 3 using the scripting helpers code
if #players > 0 then
countDown -= 1
if countDown == 0 then
--teleport your players using teleport service
countDown = countDownTime -- reset timer
end
else countDown = countDownTime end
--loop through the players to update the GUI list like @RighteousCaty12334 said
wait(1)
end
You will have to flesh out the code a bit and do some more research but I hope this gives a general idea of how to do it. You will have to use Teleport Service to teleport the players to the new game.