TBC_ALT
|
  |
| Joined: 11 Mar 2017 |
| Total Posts: 221 |
|
|
| 22 Sep 2017 10:47 AM |
local info = game.ReplicatedStorage.infoValue local timevalue = 60 wait(2) while true do for i = 15,0,-1 do info.Value = "Intermission: "..i wait(1) end local arena = game.Workspace:FindFirstChild("PlayingArena") arena.Transparency = 1 arena.CanCollide = false wait(0.5) arena.Transparency = 0 arena.CanCollide = true info.Value = "Time Left: "..i local round = info.Value == "Time Left: "..i if round then break if round ~= true then info.Value = "Round Over!" end end for i = timevalue,0,-1 do wait(1) for _,v in pairs(game.Players:GetPlayers()) do if v.Dead.Value then timevalue = 0 end end end for _,###n##airs(game:GetService'Players':GetPlayers()) do g.Character.Humanoid.Health = 0 end info.Value = "Round Over!" wait(3) timevalue = 60 end
you might be confused
anyway, that is my main script for my minigame but when everybody is out of the minigame (aka in lobby) i want the round to end should i use touch events? im very new to scripting so dont confuse me with advanced scripting and stuff what do for questions tweet @TehCreper or i can make you join my team create
I'm an alt
I'm an alt |
|
|
| Report Abuse |
|
|
|
| 22 Sep 2017 10:51 AM |
maybe just before each minigame do a GetChildren() of players and then for each humanoid death that is INSIDE the minigame a variable counts up util it reaches the same amount that the GetChildren() var was
and if a player leaves, make it fire an event where the GetChildren() var resets
make it impossible to die in lobby |
|
|
| Report Abuse |
|
|
TBC_ALT
|
  |
| Joined: 11 Mar 2017 |
| Total Posts: 221 |
|
|
| 22 Sep 2017 10:52 AM |
:thinking: i did not understand a single thing you just said
I'm an alt |
|
|
| Report Abuse |
|
|
|
| 22 Sep 2017 10:54 AM |
| This is what makes scripting famous |
|
|
| Report Abuse |
|
|
TBC_ALT
|
  |
| Joined: 11 Mar 2017 |
| Total Posts: 221 |
|
|
| 22 Sep 2017 10:56 AM |
:stillthinking: hm i still need answers
I'm an alt |
|
|
| Report Abuse |
|
|