|
| 31 Jan 2014 11:27 AM |
adminName = "idisconnected" --Your Name Here (CaSe SeNsAtiVe) adminTeam = game.Teams:findFirstChild("The Creator") --Change to the team you want
function onEntered(newPlayer) if newPlayer.Name == adminName then newPlayer.TeamColor = The Creator.TeamColor end end
game.Players.ChildAdded:connect(onEntered)
-its a creator spawn for my game but it wont spawn me where i am suppose to go what am i doing wrong? |
|
|
| Report Abuse |
|
|
|
| 31 Jan 2014 11:32 AM |
| It says "CaSe SeNsAtiVe" and yet you put "idisconnected" in the first line? No, your username is not "idisconnected", it is "iDisconnected". Change it to that. |
|
|
| Report Abuse |
|
|
DataStore
|
  |
| Joined: 07 Feb 2012 |
| Total Posts: 8540 |
|
|
| 31 Jan 2014 11:32 AM |
Because currently it's checking if the person who entered is named 'idisconnected'. You're named 'iDisconnected'.
"Your Name Here (CaSe SeNsAtiVe)" >>>(CaSe SeNsAtiVe)<<< |
|
|
| Report Abuse |
|
|
DataStore
|
  |
| Joined: 07 Feb 2012 |
| Total Posts: 8540 |
|
| |
|
|
| 31 Jan 2014 11:35 AM |
| Still wont work, I even put the D. |
|
|
| Report Abuse |
|
|
|
| 31 Jan 2014 11:36 AM |
Change your script to this:
adminName = "idisconnected" --Your Name Here adminTeam = game.Teams:findFirstChild("The Creator") --Change to the team you want
function onEntered(newPlayer) if newPlayer.Name:lower() == adminName:lower() then newPlayer.TeamColor = adminTeam.TeamColor end end
game.Players.ChildAdded:connect(onEntered) |
|
|
| Report Abuse |
|
|
|
| 31 Jan 2014 11:42 AM |
| Thank you for fixing it. What was wrong with it for future reference? |
|
|
| Report Abuse |
|
|
| |
|
|
| 31 Jan 2014 11:51 AM |
| Well, you used the name of the team, not the name of the variable, and you weren't comparing the name correctly. |
|
|
| Report Abuse |
|
|
| |
|