-- Assuming we place ZonePlus in ReplicatedStorage
local Zone = require(game:GetService("ReplicatedStorage").Zone)
local container = workspace.SafeZoneContainer
local zone = Zone.new(container)
zone.playerEntered:Connect(function(player)
print(("%s entered the zone!"):format(player.Name))
-- do something
end)
zone.playerExited:Connect(function(player)
print(("%s exited the zone!"):format(player.Name))
-- do something
end)
local playersArray = zone:getPlayers() -- gets current players within zone, teleport them after a countdown
Not be nasty, but next time do a bit more research as not everyone is as nice as me. From what I’ve noticed, anyway. Take care and hope this helps!
When they touch the door, teleport them into the zone and then those events will help you work with the rest. (.playerEntered(), .playerExited())
Create a loop that constantly checks how many players are within the zone, if it matches the specific amount of players, do a for loop for a countdown and teleport the players to the specified place. You’d also want to add a check when a player leaves the zone mid-countdown; it is up to you if you let it continue or cancel.
But anything like Close/Open, Baseplate:Destroy and changing the Baseplate Color and Transparency and making it CanCollide = true then yes, I do have knowledge on that, I just started learning Lua a week ago…
I would personally suggest you get some more experience as you’re moving way out of your league too quickly.
That is the best advice I can give you, pursue this when you’re confident. You won’t be able to compete with games like Doors with little to no knowledge.
You can always bookmark here and come back when you have more confidence to pursue the game,
as nobody here will write all the scripts etc for you without being paid.
Basically, I want to Surprise my Friend CalypsoGames, Because he is the reason why i know studio, He teached me everything. So i’m just giving it back to him.
Understandable, but please go gain some more knowledge and learn, you’ve got a long way to go yet! And you can always surprise him with your knowledge later down the line. This will be the last reply from me, but I hope you pursue it and get there eventually!