|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|