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
 

Team Change script FAILS

Previous Thread :: Next Thread 
robocu3 is not online. robocu3
Joined: 13 Mar 2009
Total Posts: 6485
09 Jul 2012 07:00 PM
script.Parent.MouseButton1Down:connect(function()
if game.Players.LocalPlayer.IsInGroup(208206)
game.Players.LocalPlayer.TeamColor = BrickColor.new("Alder")
end)
--------------------------------------------------------------
if game.Player.LocalPlayer.IsInGroup(208206) == false then
game.Players.LocalPlayer.PlayerGui.error2.Visible = true
end)
OUTPUT -
18:58:12 - Players.Player.PlayerGui.ScreenGui.Shadow Warriors.LocalScript:3: 'then' expected near 'game'
--------------------------------------------------------------
I could use some help.
-=Robo=-
Report Abuse
robocu3 is not online. robocu3
Joined: 13 Mar 2009
Total Posts: 6485
09 Jul 2012 07:10 PM
Bump. :l
-=Robo=-
Report Abuse
robocu3 is not online. robocu3
Joined: 13 Mar 2009
Total Posts: 6485
09 Jul 2012 07:30 PM
I could really use some help, why is no one replying?
-=Robo=-
Report Abuse
WhiteRain is not online. WhiteRain
Joined: 24 Apr 2010
Total Posts: 2723
09 Jul 2012 07:32 PM
script.Parent.MouseButton1Down:connect(function()
if game.Players.LocalPlayer:IsInGroup(208206)
game.Players.LocalPlayer.TeamColor = BrickColor.new("Alder")
else
game.Players.LocalPlayer.PlayerGui.error2.Visible = true
end
end)

Also, I'm pretty sure Alder isn't a color.
Report Abuse
WhiteRain is not online. WhiteRain
Joined: 24 Apr 2010
Total Posts: 2723
09 Jul 2012 07:33 PM
Nvm on the Alder color. Never heard of it before.
Report Abuse
WhiteRain is not online. WhiteRain
Joined: 24 Apr 2010
Total Posts: 2723
09 Jul 2012 07:34 PM
Sorry forgot the then

script.Parent.MouseButton1Down:connect(function()
if game.Players.LocalPlayer:IsInGroup(208206) then
game.Players.LocalPlayer.TeamColor = BrickColor.new("Alder")
else
game.Players.LocalPlayer.PlayerGui.error2.Visible = true
end
end)
Report Abuse
IamAwesome777 is not online. IamAwesome777
Joined: 18 Jul 2011
Total Posts: 2640
09 Jul 2012 07:34 PM
You guys are missing the most obvious thing. There is no 'then' for the 'if' statement that he created.
Report Abuse
IamAwesome777 is not online. IamAwesome777
Joined: 18 Jul 2011
Total Posts: 2640
09 Jul 2012 07:35 PM
^ Late post above :P

(Stupid flood check)
Report Abuse
WhiteRain is not online. WhiteRain
Joined: 24 Apr 2010
Total Posts: 2723
09 Jul 2012 07:37 PM
Yea. I saw it at first but I forgot to include it in the first revision until I posted it and saw that the then was missing.
Report Abuse
CloneTrooper1019 is not online. CloneTrooper1019
Joined: 19 Jan 2009
Total Posts: 6227
09 Jul 2012 08:29 PM
Is LocalPlayer defined. I don't know if localscripts can be ran inside of a brick.
Report Abuse
WhiteRain is not online. WhiteRain
Joined: 24 Apr 2010
Total Posts: 2723
09 Jul 2012 08:32 PM
@Clone
It's in a GuiObject
Report Abuse
robocu3 is not online. robocu3
Joined: 13 Mar 2009
Total Posts: 6485
10 Jul 2012 12:56 AM
Thanks alot guys. Testing it now.
-=Robo=-
Report Abuse
robocu3 is not online. robocu3
Joined: 13 Mar 2009
Total Posts: 6485
10 Jul 2012 01:03 AM
Still doesn't work. :o
-=Robo=-
Report Abuse
robocu3 is not online. robocu3
Joined: 13 Mar 2009
Total Posts: 6485
10 Jul 2012 01:45 AM
I IZ POOBRRAINZ
Report Abuse
robocu3 is not online. robocu3
Joined: 13 Mar 2009
Total Posts: 6485
10 Jul 2012 02:26 AM
y u no respond to meh ,biiiiiiiiiiiiiiiiiiootchfsdlkfl
Report Abuse
IamAwesome777 is not online. IamAwesome777
Joined: 18 Jul 2011
Total Posts: 2640
10 Jul 2012 03:51 AM
Put the script in a LocalScript
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