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 » Scripting Helpers
Home Search
 

Re: Raid system not working...

Previous Thread :: Next Thread 
spearman2 is not online. 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
kingbowler1040 is not online. kingbowler1040
Joined: 03 Oct 2011
Total Posts: 1202
25 Jan 2013 02:51 PM
What is this?

if Databank.BrickColor == ("Really black") then
Report Abuse
spearman2 is not online. spearman2
Joined: 28 May 2010
Total Posts: 2938
25 Jan 2013 02:53 PM
Wait what? I don't see that....
Report Abuse
kingbowler1040 is not online. kingbowler1040
Joined: 03 Oct 2011
Total Posts: 1202
25 Jan 2013 02:55 PM
I added the ()s
Report Abuse
kingbowler1040 is not online. kingbowler1040
Joined: 03 Oct 2011
Total Posts: 1202
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 is not online. spearman2
Joined: 28 May 2010
Total Posts: 2938
25 Jan 2013 03:47 PM
Still don't work...
Report Abuse
kingbowler1040 is not online. kingbowler1040
Joined: 03 Oct 2011
Total Posts: 1202
25 Jan 2013 04:20 PM
Then i don't know. Sorry dude. Maybe its something with a variable?
Report Abuse
spearman2 is not online. 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 is not online. 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 is not online. 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 is not online. 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
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
26 Jan 2013 11:13 AM
stealing free models is sad
Report Abuse
spearman2 is not online. spearman2
Joined: 28 May 2010
Total Posts: 2938
26 Jan 2013 11:16 AM
@Xx I made this script by myself.
Report Abuse
spearman2 is not online. 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 is not online. 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
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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