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: Why cant anyone fix this?

Previous Thread :: Next Thread 
FederationKing is not online. FederationKing
Joined: 28 Apr 2013
Total Posts: 5121
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
FederationKing is not online. FederationKing
Joined: 28 Apr 2013
Total Posts: 5121
02 May 2014 11:51 PM
a
Report Abuse
FederationKing is not online. FederationKing
Joined: 28 Apr 2013
Total Posts: 5121
02 May 2014 11:56 PM
b
Report Abuse
FederationKing is not online. FederationKing
Joined: 28 Apr 2013
Total Posts: 5121
02 May 2014 11:57 PM
c
Report Abuse
FederationKing is not online. FederationKing
Joined: 28 Apr 2013
Total Posts: 5121
02 May 2014 11:59 PM
d
Report Abuse
FederationKing is not online. FederationKing
Joined: 28 Apr 2013
Total Posts: 5121
03 May 2014 12:04 AM
e
Report Abuse
FederationKing is not online. FederationKing
Joined: 28 Apr 2013
Total Posts: 5121
03 May 2014 12:11 AM
f
Report Abuse
FederationKing is not online. FederationKing
Joined: 28 Apr 2013
Total Posts: 5121
03 May 2014 12:20 AM
g
Report Abuse
128GB is not online. 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
FederationKing is not online. FederationKing
Joined: 28 Apr 2013
Total Posts: 5121
03 May 2014 12:38 AM
it shows nothing in output

the script just wont work at all.
Report Abuse
Durfungus is not online. 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
FederationKing is not online. FederationKing
Joined: 28 Apr 2013
Total Posts: 5121
16 May 2014 09:21 PM
Nope its not Disabled.
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
16 May 2014 09:30 PM
uh, whats wrong with it exactly?
Report Abuse
cntkillme is not online. 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
SenseiWarrior is not online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
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
SenseiWarrior is not online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
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 is not online. 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
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