cody20175
|
  |
| Joined: 23 Jul 2010 |
| Total Posts: 6958 |
|
|
| 15 Aug 2013 07:16 PM |
For raids, and stuff. It didn't work
timeuntilwin = 300 totaltime = 300
raidteamcolor = "Bright red" defendteamcolor = "Bright blue" h = Instance.new("Hint") n= "Mid gray"
function OnTouched(hit)
if hit.Parent:findFirstChild("Humanoid") ~= nil then if game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor == BrickColor.new(raidteamcolor) then script.Parent.BrickColor = BrickColor.new(raidteamcolor) end if game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor == BrickColor.new(defendteamcolor) then script.Parent.BrickColor = BrickColor.new(defendteamcolor) timeuntilwin = totaltime for i, v in pairs(game.Workspace:GetChildren()) do if v:IsA("Hint") then v:remove() end end end
end
end
script.Parent.Touched:connect(OnTouched)
while true do wait() if script.Parent.BrickColor == BrickColor.new(raidteamcolor) then h.Parent = game.Workspace h.Text = "Red team wins in".." "..timeuntilwin
if timeuntilwin <= totaltime and timeuntilwin > 0 then wait(1) timeuntilwin = timeuntilwin - 1 end
if timeuntilwin == 0 then h:remove()
winmsg = Instance.new("Message") winmsg.Parent = game.Workspace winmsg.Text = "Red team has won!" wait(5) winmsg:remove() script.Parent.BrickColor = BrickColor.new(n) timeuntilwin = totaltime end end end |
|
|
| Report Abuse |
|
|
cody20175
|
  |
| Joined: 23 Jul 2010 |
| Total Posts: 6958 |
|
|
| 15 Aug 2013 07:18 PM |
| If someone could redirect me to a working terminal, or fix the script, I'd appreciate it. |
|
|
| Report Abuse |
|
|
cody20175
|
  |
| Joined: 23 Jul 2010 |
| Total Posts: 6958 |
|
| |
|
mrwar117
|
  |
| Joined: 16 Oct 2009 |
| Total Posts: 224 |
|
|
| 16 Aug 2013 11:26 AM |
| You have to give us somewhere to start, whats giving errors etc tell us! |
|
|
| Report Abuse |
|
|
johnhugh
|
  |
| Joined: 26 Mar 2009 |
| Total Posts: 1971 |
|
|
| 16 Aug 2013 11:27 AM |
"I tried making my own terminal" High doubt. http://www.roblox.com/Forum/ShowPost.aspx?PostID=109931263 |
|
|
| Report Abuse |
|
|
jd678
|
  |
| Joined: 18 Apr 2008 |
| Total Posts: 11529 |
|
|
| 16 Aug 2013 12:40 PM |
| One second I think I know what's wrong. No promises though |
|
|
| Report Abuse |
|
|
jd678
|
  |
| Joined: 18 Apr 2008 |
| Total Posts: 11529 |
|
| |
|