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: Broke Script. EASY HELP

Previous Thread :: Next Thread 
iDisconnected is not online. iDisconnected
Joined: 25 Mar 2012
Total Posts: 556
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
CodeTheorem is not online. CodeTheorem
Joined: 03 Jun 2009
Total Posts: 2771
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 is not online. 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 is not online. DataStore
Joined: 07 Feb 2012
Total Posts: 8540
31 Jan 2014 11:33 AM
Ninja'd.
Report Abuse
iDisconnected is not online. iDisconnected
Joined: 25 Mar 2012
Total Posts: 556
31 Jan 2014 11:35 AM
Still wont work, I even put the D.
Report Abuse
CodeTheorem is not online. CodeTheorem
Joined: 03 Jun 2009
Total Posts: 2771
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
iDisconnected is not online. iDisconnected
Joined: 25 Mar 2012
Total Posts: 556
31 Jan 2014 11:42 AM
Thank you for fixing it. What was wrong with it for future reference?
Report Abuse
xXmodzXx123 is not online. xXmodzXx123
Joined: 10 Jun 2012
Total Posts: 1874
31 Jan 2014 11:47 AM
evrything
Report Abuse
CodeTheorem is not online. CodeTheorem
Joined: 03 Jun 2009
Total Posts: 2771
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
iDisconnected is not online. iDisconnected
Joined: 25 Mar 2012
Total Posts: 556
31 Jan 2014 11:56 AM
Thank you.
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