Altair55
|
  |
| Joined: 28 May 2008 |
| Total Posts: 36840 |
|
|
| 15 Jul 2013 12:25 AM |
improving on the one touch terminal everyone uses nowadays, i'm optimizing it since it causes lag and making it so people with 0 health can't capture.
any other suggestions? might try linking it to a gui but idk |
|
|
| Report Abuse |
|
|
Altair55
|
  |
| Joined: 28 May 2008 |
| Total Posts: 36840 |
|
| |
|
Altair55
|
  |
| Joined: 28 May 2008 |
| Total Posts: 36840 |
|
| |
|
| |
|
Streety
|
  |
| Joined: 29 Mar 2008 |
| Total Posts: 11413 |
|
| |
|
Altair55
|
  |
| Joined: 28 May 2008 |
| Total Posts: 36840 |
|
|
| 15 Jul 2013 12:38 AM |
just gotta add the bit that doesn't let you cap while dead and we're golden
sp = sp defenders = "Bright blue" raiders = "Bright red" h = Instance.new("Hint") timetowin = "1200" totaltime = "1200"
function OnTouched(hit)
if hit.Parent:findFirstChild("Humanoid") ~= nil then if game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor == BrickColor.new(raiders) then sp.Value = "Bright red" sp.BrickColor = BrickColor.new("Bright red") end if hit.Parent:findFirstChild("Humanoid") ~= nil then if game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor == BrickColor.new(defenders) then sp.Value = "Bright blue" sp.BrickColor = BrickColor.new("Bright blue") timetowin = totaltime
for i, v in pairs(game.Workspace:GetChildren()) do if v:IsA("Hint") then v:remove() end end end
end
end
sp.Touched:connect(OnTouched)
while true do wait() if sp.Value == "Bright red" then h.Parent = game.Workspace h.Text = "Raiders win in".." "..timeuntilwin if timetowin <= totaltime and timeuntilwin > 0 then while wait(1) do timetowin = timetowin - 1 if timeuntilwin == 0 then h:Destroy() win = Instance.new("Message") win.Parent = game.Worksapce win.Text = "The raiders have won!" wait(5) win:Destroy() sp.Value = "Bright blue" timetowin = totaltime end end end |
|
|
| Report Abuse |
|
|
|
| 15 Jul 2013 12:39 AM |
| Make a gui timer not a h/ timer |
|
|
| Report Abuse |
|
|
Rezdonox
|
  |
| Joined: 12 Oct 2011 |
| Total Posts: 24267 |
|
|
| 15 Jul 2013 12:39 AM |
| You could add auto respawn. Works just as well, for when RB had auto touch. |
|
|
| Report Abuse |
|
|
Streety
|
  |
| Joined: 29 Mar 2008 |
| Total Posts: 11413 |
|
|
| 15 Jul 2013 12:40 AM |
| im gonna take your script. NOOB. |
|
|
| Report Abuse |
|
|
| |
|
Altair55
|
  |
| Joined: 28 May 2008 |
| Total Posts: 36840 |
|
| |
|
Altair55
|
  |
| Joined: 28 May 2008 |
| Total Posts: 36840 |
|
|
| 15 Jul 2013 12:58 AM |
| almost fully functional, will make it into a primitive GUI once i have the working version out. |
|
|
| Report Abuse |
|
|
Alter8
|
  |
| Joined: 31 May 2013 |
| Total Posts: 1602 |
|
|
| 15 Jul 2013 12:59 AM |
altair,
you should make where a gui pops up saying
'CP is being captured'
instead of all the labby hints/messages |
|
|
| Report Abuse |
|
|
Sinusoid
|
  |
| Joined: 01 Mar 2013 |
| Total Posts: 1642 |
|
|
| 15 Jul 2013 01:00 AM |
GOOD GOD, THE INEFFICIENCY.
|
|
|
| Report Abuse |
|
|
| |
|
Altair55
|
  |
| Joined: 28 May 2008 |
| Total Posts: 36840 |
|
|
| 15 Jul 2013 01:07 AM |
| im not an advanced scripter guys, like i said i'm just doing some optimization and i might end up doing a gui and stuff later |
|
|
| Report Abuse |
|
|
Altair55
|
  |
| Joined: 28 May 2008 |
| Total Posts: 36840 |
|
|
| 15 Jul 2013 01:12 AM |
CHECK IT OUT HERE, SPAWNS ARE TOUCH-TO-JOIN!
http://www.roblox.com/Caesars-Legion-Activity-Check-place?id=118308016 |
|
|
| Report Abuse |
|
|
Altair55
|
  |
| Joined: 28 May 2008 |
| Total Posts: 36840 |
|
|
| 15 Jul 2013 01:20 AM |
| model here: http://www.roblox.com/Clan-Raiding-Terminal-item?id=122711948 |
|
|
| Report Abuse |
|
|