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
 

Mind helping me with this?

Previous Thread :: Next Thread 
protectivemanegg is not online. protectivemanegg
Joined: 09 May 2011
Total Posts: 931
13 Sep 2012 04:04 PM
If you can, can you tell me why this script is not working?I use all my knowledge on each function but doesn't work.Before I had added the "PlayerAdded" function, it was working but not completely.My goal was to make a script making my ladder disappear and a GUI telling me it is down/up.Sadly, I did something wrong and need advice and help.I would be very grateful for help seeings how this is my very first script that needs the "PlayerAdded" function...

(Script below this line)
-------------------------------------------


x = game.Workspace.Ladder.Ladder1
y = game.Workspace.Ladder.Ladder2

while true do
game.Players.PlayerAdded:connect(function(player)
wait(140)
Player.PlayerGui.LadderGui.Label.Text = "Ladder is up."
x.Transparency = 0
x.CanCollide = true
y.Transparency = 0
y.CanCollide = true
end
game.Players.PlayerAdded:connect(function(player)
wait(140)
Player.PlayerGui.LadderGui.Label.Text = "Ladder is down."
x.Transparency = 1
x.CanCollide = false
y.Transparency = 1
y.CanCollide = false
end
end)

-------------------------------------------
(Script above this line)
Report Abuse
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
13 Sep 2012 04:07 PM
game.Players.PlayerAdded:connect(function(player)
wait(140)
Player.PlayerGui.LadderGui.Label.Text = "Ladder is up."



So you name it player and yet you use Player.
Report Abuse
GollyGreg is online. GollyGreg
Joined: 22 May 2008
Total Posts: 21835
13 Sep 2012 04:09 PM
What Chop is trying to explain is that your variables are case-sensitive. On the first line, you have 'player' instead of 'Player' which you use throughout the function.
Report Abuse
protectivemanegg is not online. protectivemanegg
Joined: 09 May 2011
Total Posts: 931
13 Sep 2012 05:18 PM
Thanks, sorry, I have my moments lol.I didn't realize I ha made my variable with a capital...I have never did that in my life...Thanks though! XD
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