|
| 11 Aug 2012 07:43 PM |
function checkplayers() script.Parent.NumberTheChaosImperium.Value = "0"--Change "NumberGroup" to "NumberGroupname". script.Parent.NumberRaiders.Value = "0" npl = game.Players:GetChildren() for _,p in pairs(npl) do if p.TeamColor == BrickColor.new("Bright yellow") then--Change "Bright blue" to group color. script.Parent.NumberTheChaosImperium.Value = script.Parent.NumberGroup.Value + 1--Change "NumberGroup" to "NumberGroupname" twice. end if p.TeamColor == BrickColor.new("Bright red") then script.Parent.NumberRaiders.Value = script.Parent.NumberRaiders.Value + 1 end end end
checkplayers() if game.Workspace:FindFirstChild("FlagStatusHint") then game.Workspace.FlagStatusHint:Remove() end script.Parent.Flag.BrickColor = BrickColor.new("Bright red")--Change "Bright red" to raiders color. h = Instance.new("Hint") h.Parent = game.Workspace h.Name = "FlagStatusHint" h.Text = "The raiders have captured the base from The Chaos Imperium!"--Change "Group" to group name. script.Parent.MinutesHad.Value = "0" pl = game.Players:GetChildren() for _,p in pairs(pl) do p.PlayerGui.CaptureSystem.Panel.BasicFrame.HowLongHad.Text = "" end wait(2.5) h.Text = "If the raiders can hold the flag for 20 minutes, they win!" wait(2.5) h:Remove() script.Parent.MinutesHad.Value = "0" pl = game.Players:GetChildren() for _,p in pairs(pl) do p.PlayerGui.CaptureSystem.Panel.BasicFrame.HowLongHad.Text = "" end for i = 1,20 do wait(60) script.Parent.MinutesHad.Value = script.Parent.MinutesHad.Value + 1 h = Instance.new("Hint") h.Parent = game.Workspace h.Name = "FlagStatusHint" h.Text = "The raiders have held the base from The Chaos Imperium for "..script.Parent.MinutesHad.Value.." minutes."--Change "Group" to group name. pl = game.Players:GetChildren() for _,p in pairs(pl) do p.PlayerGui.CaptureSystem.Panel.BasicFrame.HowLongHad.Text = "Raiders have held the base for "..script.Parent.MinutesHad.Value.." minutes." end wait(2.5) h:Remove() end script.Parent.Busy.Value = true pl = game.Players:GetChildren() for _,p in pairs(pl) do p.PlayerGui.CaptureSystem.Panel.BasicFrame.HowLongHad.Text = "The raiders won the raid against The Chaos Imperium."--Change "Group" to group name. end h = Instance.new("Hint") h.Parent = game.Workspace m = Instance.new("Message") m.Parent = game.Workspace m.Name = "FlagStatusMessage" h.Name = "FlagStatusHint" h.Text = "The raiders have won the raid against The Chaos Imperium!"--Change "Group" to group name. m.Text = "The raiders have won the raid against The Chaos Imperium!"--Change "Group" to group name. if script.Parent.SavingData.Value == true then pl = game.Players:GetChildren() for _,p in pairs(pl) do if p:FindFirstChild("BaseDefences") and p:FindFirstChild("BaseRaids") then if p.TeamColor == BrickColor.new("Bright yellow") then--Change "Bright blue" to group color. p.BaseDefences.Value = p.BaseDefences.Value + 1 p.BadgeBaseDefences.Value = p.BadgeBaseDefences.Value + 1 end if p.TeamColor == BrickColor.new("Bright red") then--Change "Bright red" to raiders color. p.BaseRaids.Value = p.BaseRaids.Value + 1 p.BadgeBaseRaids.Value = p.BadgeBaseRaids.Value + 1 end end end end wait(4) m.Text = "Please take a screenshot of this message along with the date and time of the raid."--Change to any message to tell ROBLOXians what to do. wait(5) m.Text = "PM the High Ranks of your group."--Change to any message to tell ROBLOXians what to do. wait(4) m:Remove() h:Remove()
Or in particular, the NumberGroup part at the beginning? |
|
|
| Report Abuse |
|
|
Rynar
|
  |
| Joined: 11 Oct 2011 |
| Total Posts: 2772 |
|
| |
|
|
| 11 Aug 2012 07:45 PM |
@Rynar Ok.
Any more opinions? |
|
|
| Report Abuse |
|
|
Dr01d3k4
|
  |
| Joined: 11 Oct 2007 |
| Total Posts: 17916 |
|
|
| 11 Aug 2012 07:47 PM |
| Not many people are gonna look through a word wall like that unless you give them more information. It'd be better if you test and attempt to debug it yourself, then ask us when you have an idea what the problem could be. |
|
|
| Report Abuse |
|
|
|
| 11 Aug 2012 07:47 PM |
| Look at the bottom, I gave a specific part. |
|
|
| Report Abuse |
|
|
Dr01d3k4
|
  |
| Joined: 11 Oct 2007 |
| Total Posts: 17916 |
|
|
| 11 Aug 2012 07:50 PM |
1) You're trying to set a string to an int/number value (or add to a string value) 2) Did you actually run the code and get an output message? |
|
|
| Report Abuse |
|
|
|
| 11 Aug 2012 07:59 PM |
....
I know nothing about scripting. This is one my friend made me, but I have to edit it because he didn't know my group. |
|
|
| Report Abuse |
|
|
| |
|
|
| 11 Aug 2012 08:16 PM |
Ya, I see the problem. You didn't code it in batch.
~END OBESITY! |
|
|
| Report Abuse |
|
|