spearman2
|
  |
| Joined: 28 May 2010 |
| Total Posts: 2938 |
|
|
| 25 Jan 2013 02:48 PM |
Here's the script
--[[ Raid System Script v1.2 Made by spearman2 ]]--
print("spearman2 made this")
Databank = script.Parent NLSWinning = Databank.NLSColor RaidersWinning = Databank.RaidersColor Win = Databank:FindFirstChild("NLSWins") Loss = Databank:FindFirstChild("RaidersWin")
db = false
function NLS() db = false if not db then return end db = true if DataBank.BrickColor == "Bright red" then for i,x in pairs(game.Players:GetPlayers()) do player = x if player ~= nil then m = Instance.new("Message",game.Workspace) m.Text = "NLS is recovering the terminal" wait(5) game:GetService("Debris"):AddItem(m) DataBank.BrickColor = NLSWinning.Value Win.Disable = false Loss.Disable = true end end end db = false end
function Raiders() db = false if not db then return end db = true if Databank.BrickColor == "Really black" then for i,v in pairs(game.Players:GetPlayers()) do player = x if player ~= nil then m = Instance.new("Message", game.Workspace) m.Text = "Raiders are hacking the teminal" wait(5) game:GetService("Debris"):AddItem(m) Databank.BrickColor = RaidersWinning.Value Win.Disable = true Loss.Disable = false end end end db = false end
Databank.Touched:connect(function() db = false if not db then return end db = true for x,y in pairs(game.Players:GetPlayers()) do player = y if player ~= nil then for i,v in pairs(groups) do if player:IsInGroup(v) then NLS() else Raiders() end end end end db = false end)
Doesn't work and output says nothing, what's wrong? |
|
|
| Report Abuse |
|
|
|
| 25 Jan 2013 02:51 PM |
What is this?
if Databank.BrickColor == ("Really black") then |
|
|
| Report Abuse |
|
|
spearman2
|
  |
| Joined: 28 May 2010 |
| Total Posts: 2938 |
|
|
| 25 Jan 2013 02:53 PM |
| Wait what? I don't see that.... |
|
|
| Report Abuse |
|
|
| |
|
|
| 25 Jan 2013 02:56 PM |
Heres the section...
function Raiders() db = false if not db then return end db = true if Databank.BrickColor == "Really black" then for i,v in pairs(game.Players:GetPlayers()) do player = x if player ~= nil then m = Instance.new("Message", game.Workspace) m.Text = "Raiders are hacking the teminal" wait(5) game:GetService("Debris"):AddItem(m) Databank.BrickColor = RaidersWinning.Value Win.Disable = true Loss.Disable = false end end end db = false end
|
|
|
| Report Abuse |
|
|
spearman2
|
  |
| Joined: 28 May 2010 |
| Total Posts: 2938 |
|
| |
|
|
| 25 Jan 2013 04:20 PM |
| Then i don't know. Sorry dude. Maybe its something with a variable? |
|
|
| Report Abuse |
|
|
spearman2
|
  |
| Joined: 28 May 2010 |
| Total Posts: 2938 |
|
|
| 26 Jan 2013 06:39 AM |
| Oh, when you view it in explorer you can see that touchintrest thingy... |
|
|
| Report Abuse |
|
|
Xnite515
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 22763 |
|
|
| 26 Jan 2013 09:31 AM |
for i,v in pairs(game.Players:GetPlayers()) do player = x -- isn't defined? if player ~= nil then |
|
|
| Report Abuse |
|
|
spearman2
|
  |
| Joined: 28 May 2010 |
| Total Posts: 2938 |
|
|
| 26 Jan 2013 11:03 AM |
| *facepalm* wow how did I not see that...? |
|
|
| Report Abuse |
|
|
Usering
|
  |
| Joined: 18 Aug 2012 |
| Total Posts: 10281 |
|
|
| 26 Jan 2013 11:08 AM |
BrickColor isn't a string...
if Databank.BrickColor == BrickColor.new("Really black") then
[ Content Trolled by Sorcus ] |
|
|
| Report Abuse |
|
|
|
| 26 Jan 2013 11:13 AM |
stealing free models is sad
|
|
|
| Report Abuse |
|
|
spearman2
|
  |
| Joined: 28 May 2010 |
| Total Posts: 2938 |
|
|
| 26 Jan 2013 11:16 AM |
| @Xx I made this script by myself. |
|
|
| Report Abuse |
|
|
spearman2
|
  |
| Joined: 28 May 2010 |
| Total Posts: 2938 |
|
|
| 26 Jan 2013 11:34 AM |
| You can tell I made it by the errors in it |
|
|
| Report Abuse |
|
|
Xnite515
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 22763 |
|
|
| 26 Jan 2013 12:13 PM |
for i,v in pairs(groups) do
groups isn't defined ehiter? |
|
|
| Report Abuse |
|
|
|
| 26 Jan 2013 12:16 PM |
function NLS() db = false if not db then return end
I don't think it's running. |
|
|
| Report Abuse |
|
|
spearman2
|
  |
| Joined: 28 May 2010 |
| Total Posts: 2938 |
|
|
| 26 Jan 2013 12:19 PM |
| Wow so there was several things wrong? Wow I suck at scripting.... |
|
|
| Report Abuse |
|
|