|
| 03 Sep 2013 11:14 AM |
| I found a script in free models and I inserted it into a terminal I made but only raiders can claim it and once they claim it if the group touches it nothing happens. It's still in the raiders control. How do I fix this? |
|
|
| Report Abuse |
|
|
Nhelp
|
  |
| Joined: 05 Aug 2011 |
| Total Posts: 11557 |
|
|
| 03 Sep 2013 11:15 AM |
| This is like asking me to fix a computer, but not telling me what the problem is. |
|
|
| Report Abuse |
|
|
|
| 03 Sep 2013 11:17 AM |
The problem is that only raiders can claim the terminal. Yet I want the group to be able to claim it or at least turn off the timer when then they touch it.
The script is here:
http://www.roblox.com/Script-for-Terminal-item?id=128672712 |
|
|
| Report Abuse |
|
|
|
| 03 Sep 2013 11:18 AM |
| u shag a sheep while fixing it |
|
|
| Report Abuse |
|
|
|
| 03 Sep 2013 11:18 AM |
There is one script only and no GUI's.
Here are it's contents:
timeuntilwin = 1200 totaltime = 1200
raidteamcolor = "Bright red" defendteamcolor = "Dark Stone Grey" h = Instance.new("Hint")
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 = "Raiders win in".." "..timeuntilwin
if timeuntilwin <= totaltime and timeuntilwin > 0 then wait(1) timeuntilwin = timeuntilwin - 1 end
if timeuntilwin == 0 then h:remove() game.Lighting.Script1:clone() wait(5) winmsg = Instance.new("Message") winmsg.Parent = game.Workspace winmsg.Text = "Raiders have won!" wait(15) winmsg:remove() script.Parent.BrickColor = BrickColor.new(defendteamcolor) timeuntilwin = totaltime end end end |
|
|
| Report Abuse |
|
|
| |
|
Nhelp
|
  |
| Joined: 05 Aug 2011 |
| Total Posts: 11557 |
|
|
| 03 Sep 2013 11:23 AM |
if hit.Parent:findFirstChild("Humanoid") ~= nil then if game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor == BrickColor.new(raidteamcolor) then script.Parent.BrickColor = BrickColor.new(raidteamcolor)
elseif 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
No need for 2 if statements when you can use "elseif" |
|
|
| Report Abuse |
|
|
Nhelp
|
  |
| Joined: 05 Aug 2011 |
| Total Posts: 11557 |
|
|
| 03 Sep 2013 11:25 AM |
| I can't seem to find any problem but that one. |
|
|
| Report Abuse |
|
|
|
| 03 Sep 2013 11:26 AM |
watch it turn out he has the wrong teamcolor
idk |
|
|
| Report Abuse |
|
|
|
| 03 Sep 2013 05:57 PM |
| That isn't the problem idiot. I already checked that. |
|
|
| Report Abuse |
|
|
|
| 03 Sep 2013 05:58 PM |
Just don't let them capture the terminal
<3 |
|
|
| Report Abuse |
|
|
|
| 03 Sep 2013 05:59 PM |
lold hes the idiot for not using a fm script
|
|
|
| Report Abuse |
|
|
| |
|