|
| 02 May 2014 11:45 PM |
A lot of people have tried to fix it and it still won't work.
AmmountRequiredForStage1 = 5 AmmountRequiredForStage2 = 15 AmmountRequiredForStage3 = 45 AmmountRequiredForStage4 = 135 AmmountRequiredForStage5 = 405 stage1 = "Stage 1" stage2 = "Stage 2" stage3 = "Stage 3" stage4 = "Stage 4" stage5 = "Stage 5" game.Players.PlayerAdded:connect(function(p) Instance.new("Model",p).Name = "leaderstats" Instance.new("IntValue",p.leaderstats).Name = "Points" p.leaderstats.Points.Changed:connect(function() if p.leaderstats.Points == AmmountRequiredForStage1 or p.leaderstats.Points > AmmountRequiredForStage1 and p.leaderstats.Point.Value < AmmountRequiredForStage2 then p.TeamColor = Workspace.Teams:FindFirstChild(Stage1).TeamColor elseif p.leaderstats.Points == AmmountRequiredForStage2 or p.leaderstats.Points > AmmountRequiredForStage2 and p.leaderstats.Points.Value < AmmountRequiredForStage3 then p.TeamColor = Workspace.Teams:FindFirstChild(Stage1).TeamColor elseif p.leaderstats.Points == AmmountRequiredForStage4 or p.leaderstats.Points > AmmountRequiredForStage4 and p.leaderstarts.Points.Value < AmmountRequiredForStage5 then p.TeamColor = Workspace.Teams:FindFirstChild(Stage1).TeamColor elseif p.leaderstats.Points == AmmountRequiredForStage5 or p.leaderstats.Points > AmmountRequiredForStage5 then p.TeamColor = Workspace.Teams:FindFirstChild(Stage1).TeamColor end end) end)
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 03 May 2014 12:21 AM |
Maybe they couldn't fix it because you didn't post output say whats wrong say what it should do give any information about it |
|
|
| Report Abuse |
|
|
|
| 03 May 2014 12:38 AM |
it shows nothing in output
the script just wont work at all. |
|
|
| Report Abuse |
|
|
Durfungus
|
  |
| Joined: 07 Feb 2009 |
| Total Posts: 15988 |
|
|
| 03 May 2014 01:11 AM |
is it disabled
[HELP, DURFUNGUS IS SPREADING] Twitter - @Durfungus |
|
|
| Report Abuse |
|
|
| |
|
|
| 16 May 2014 09:30 PM |
| uh, whats wrong with it exactly? |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 16 May 2014 09:31 PM |
.Points.Value for 1... And I didn't read everything else |
|
|
| Report Abuse |
|
|
|
| 16 May 2014 09:39 PM |
Wow so many errors Cleaned it up a bit..
AmmountRequiredForStage1 = 5 AmmountRequiredForStage2 = 15 AmmountRequiredForStage3 = 45 AmmountRequiredForStage4 = 135 AmmountRequiredForStage5 = 405 stage1 = "Stage 1" stage2 = "Stage 2" stage3 = "Stage 3" stage4 = "Stage 4" stage5 = "Stage 5" game.Players.PlayerAdded:connect(function(p) pl=Instance.new("Model",p) p.Name = "leaderstats" pp=Instance.new("IntValue",pl.leaderstats) pp.Name = "Points" pp.Changed:connect(function() if pp.Value >= AmmountRequiredForStage1 and pp.Value < AmmountRequiredForStage2 then p.TeamColor = Workspace.Teams:FindFirstChild(Stage1).TeamColor elseif pp >= AmmountRequiredForStage2 and pp.Value < AmmountRequiredForStage3 then p.TeamColor = Workspace.Teams:FindFirstChild(Stage1).TeamColor elseif pp >= AmmountRequiredForStage4 and pp.Value < AmmountRequiredForStage5 then p.TeamColor = Workspace.Teams:FindFirstChild(Stage1).TeamColor elseif pp >= AmmountRequiredForStage5 then p.TeamColor = Workspace.Teams:FindFirstChild(Stage1).TeamColor end end) end) |
|
|
| Report Abuse |
|
|
|
| 16 May 2014 09:40 PM |
Nope, use this..
AmmountRequiredForStage1 = 5 AmmountRequiredForStage2 = 15 AmmountRequiredForStage3 = 45 AmmountRequiredForStage4 = 135 AmmountRequiredForStage5 = 405 stage1 = "Stage 1" stage2 = "Stage 2" stage3 = "Stage 3" stage4 = "Stage 4" stage5 = "Stage 5" game.Players.PlayerAdded:connect(function(p) pl=Instance.new("Model",p) pl.Name = "leaderstats" pp=Instance.new("IntValue",pl) pp.Name = "Points" pp.Changed:connect(function() if pp.Value >= AmmountRequiredForStage1 and pp.Value < AmmountRequiredForStage2 then p.TeamColor = Workspace.Teams:FindFirstChild(Stage1).TeamColor elseif pp >= AmmountRequiredForStage2 and pp.Value < AmmountRequiredForStage3 then p.TeamColor = Workspace.Teams:FindFirstChild(Stage1).TeamColor elseif pp >= AmmountRequiredForStage4 and pp.Value < AmmountRequiredForStage5 then p.TeamColor = Workspace.Teams:FindFirstChild(Stage1).TeamColor elseif pp >= AmmountRequiredForStage5 then p.TeamColor = Workspace.Teams:FindFirstChild(Stage1).TeamColor end end) end) |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 16 May 2014 09:44 PM |
local requirements = {5, 15, 45, 135, 405};
Game.Players.PlayerAdded:connect(function(player) local stats =Instance.new("Model"); stats.Name = "leaderstats"; local points = Instance.new("IntValue", stats); points.Changed:connect(function(newValue) local stage = 0; for i = #requirements, 1, -1 do if newValue >= requirements[i] then stage = i; break; end end player.TeamColor = Game.Teams["Stage " .. stage].TeamColor; --You may have to edit this depending on how you want it. end); end); |
|
|
| Report Abuse |
|
|