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: What is wrong with my playeradded script?!??!?!?

Previous Thread :: Next Thread 
DarkheartSkillz is not online. DarkheartSkillz
Joined: 30 Sep 2011
Total Posts: 5125
13 Aug 2014 07:05 PM
I changed it back to a normal script, but it still refuses to function and its not giving me any output


game.Players.PlayerAdded:connect(function(player)
plyrs = game.Players:GetPlayers()
for a,b in pairs(plyrs) do
new = script.Parent.NewPlayer:Clone()
new.Parent = b.PlayerGui.Leaderboard.PlayerList
b.PlayerGui.Leaderboard.PlayerList.NewPlayer.Text = player.Name
b.PlayerGui.Leaderboard.PlayerList.NewPlayer.Visible = true
if script.Parent.PlayerList:FindFirstChild("Last") then
b.PlayerGui.Leaderboard.PlayerList.NewPlayer:TweenPosition(UDim2.new(0, 0, 0, script.Parent.PlayerList.Last.Position.Y.Offset + 25), "Out", "Quad", 3, true)
b.PlayerGui.Leaderboard.PlayerList.Last.Name = "Player"
b.PlayerGui.Leaderboard.PlayerList.NewPlayer.Name = "Last"
elseif script.Parent.PlayerList:FindFirstChild("Last") == nil then
b.PlayerGui.Leaderboard.PlayerList.NewPlayer.Name = "Last"
end
end
end)
Report Abuse
UndefinedVariable is not online. UndefinedVariable
Joined: 15 Mar 2013
Total Posts: 4632
13 Aug 2014 07:08 PM
game.Players.PlayerAdded:connect(function(player)
local plyrs = game.Players:GetPlayers()
for a,b in pairs(plyrs) do
local new = script.Parent.NewPlayer:Clone()
new.Parent = b.PlayerGui.Leaderboard.PlayerList
b.PlayerGui.Leaderboard.PlayerList.NewPlayer.Text = player.Name
b.PlayerGui.Leaderboard.PlayerList.NewPlayer.Visible = true
if script.Parent.PlayerList:FindFirstChild("Last") then
b.PlayerGui.Leaderboard.PlayerList.NewPlayer:TweenPosition(UDim2.new(0, 0, 0, b.PlayerGui.Leaderboard.PlayerList.Last.Position.Y.Offset + 25), "Out", "Quad", 3, true)
b.PlayerGui.Leaderboard.PlayerList.Last.Name = "Player"
b.PlayerGui.Leaderboard.PlayerList.NewPlayer.Name = "Last"
else
b.PlayerGui.Leaderboard.PlayerList.NewPlayer.Name = "Last"
end
end
end)

Developer at Enumeration | UndefinedVariable/MountainSnow
Report Abuse
dslorde is not online. dslorde
Joined: 17 Aug 2009
Total Posts: 12962
13 Aug 2014 07:12 PM
since i cant be bothered reading these rn, what actually IS the problem?
i mean you probably fixed it well
but still

darude - sandstorm
Report Abuse
DarkheartSkillz is not online. DarkheartSkillz
Joined: 30 Sep 2011
Total Posts: 5125
13 Aug 2014 07:23 PM
@Un

Didn't work
Report Abuse
UndefinedVariable is not online. UndefinedVariable
Joined: 15 Mar 2013
Total Posts: 4632
13 Aug 2014 07:24 PM
game.Players.PlayerAdded:connect(function(player)
local plyrs = game.Players:GetPlayers()
for a,b in pairs(plyrs) do
local new = b.PlayerGui.Leaderboard.PlayerList.NewPlayer:Clone()
new.Parent = b.PlayerGui.Leaderboard.PlayerList
b.PlayerGui.Leaderboard.PlayerList.NewPlayer.Text = player.Name
b.PlayerGui.Leaderboard.PlayerList.NewPlayer.Visible = true
if b.PlayerGui.Leaderboard.PlayerList:FindFirstChild("Last") then
b.PlayerGui.Leaderboard.PlayerList.NewPlayer:TweenPosition(UDim2.new(0, 0, 0, b.PlayerGui.Leaderboard.PlayerList.Last.Position.Y.Offset + 25), "Out", "Quad", 3, true)
b.PlayerGui.Leaderboard.PlayerList.Last.Name = "Player"
b.PlayerGui.Leaderboard.PlayerList.NewPlayer.Name = "Last"
else
b.PlayerGui.Leaderboard.PlayerList.NewPlayer.Name = "Last"
end
end
end)

Developer at Enumeration | UndefinedVariable/MountainSnow
Report Abuse
Stefan631 is not online. Stefan631
Joined: 23 Dec 2010
Total Posts: 1350
13 Aug 2014 07:25 PM
Hi MS.
Report Abuse
UndefinedVariable is not online. UndefinedVariable
Joined: 15 Mar 2013
Total Posts: 4632
13 Aug 2014 07:25 PM
Hey Stefan.

Developer at Enumeration | UndefinedVariable/MountainSnow
Report Abuse
DarkheartSkillz is not online. DarkheartSkillz
Joined: 30 Sep 2011
Total Posts: 5125
13 Aug 2014 07:31 PM
Still not working.. :(
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