generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

im going insane

Previous Thread :: Next Thread 
TBC_ALT is not online. 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
Minimarshmallo is not online. Minimarshmallo
Joined: 12 Apr 2016
Total Posts: 242
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 is not online. 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
Minimarshmallo is not online. Minimarshmallo
Joined: 12 Apr 2016
Total Posts: 242
22 Sep 2017 10:54 AM
This is what makes scripting famous
Report Abuse
TBC_ALT is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image