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

Previous Thread :: Next Thread 
weakwizardsucks2 is not online. weakwizardsucks2
Joined: 29 Jul 2011
Total Posts: 113
28 Dec 2011 11:51 AM
will this change team?

game.Players.PlayerAdded:connect(function(player)
if player:IsInGroup(452873) then
player.TeamColor = BrickColor.new("Really red")
else
end
end)
Report Abuse
weakwizardsucks2 is not online. weakwizardsucks2
Joined: 29 Jul 2011
Total Posts: 113
28 Dec 2011 11:52 AM
its a local script
Report Abuse
Biostream is not online. Biostream
Joined: 28 Mar 2011
Total Posts: 913
28 Dec 2011 11:52 AM
Yes it should. Try it. And you should remove the "else end" part because it does nothing
Report Abuse
Biostream is not online. Biostream
Joined: 28 Mar 2011
Total Posts: 913
28 Dec 2011 11:53 AM
Wait local script? Put it in the workspace as just a normal script.
Report Abuse
weakwizardsucks2 is not online. weakwizardsucks2
Joined: 29 Jul 2011
Total Posts: 113
28 Dec 2011 01:20 PM
ok ty
Report Abuse
weakwizardsucks2 is not online. weakwizardsucks2
Joined: 29 Jul 2011
Total Posts: 113
28 Dec 2011 01:24 PM
btw i didn't make this
Report Abuse
weakwizardsucks2 is not online. weakwizardsucks2
Joined: 29 Jul 2011
Total Posts: 113
28 Dec 2011 01:25 PM
i got it and edited it

Error: You Are Posting Too Fast
You are posting too fast. The flood check has blocked your post. Please press back and try again in a few seconds.
i hate this
Report Abuse
weakwizardsucks2 is not online. weakwizardsucks2
Joined: 29 Jul 2011
Total Posts: 113
28 Dec 2011 01:40 PM
game.Players.PlayerAdded:connect(function(player)
if player:IsInGroup(452873) then
player.TeamColor = BrickColor.new("Really red")
end)


output: Workspace.Script:4: unexpected symbol near ')'
Report Abuse
Biostream is not online. Biostream
Joined: 28 Mar 2011
Total Posts: 913
28 Dec 2011 04:41 PM
You need another end.
game.Players.PlayerAdded:connect(function(p)
if p:IsInGroup(452873) then
player.TeamColor=BrickColor.new("Really Red")
end
end)
Report Abuse
weakwizardsucks2 is not online. weakwizardsucks2
Joined: 29 Jul 2011
Total Posts: 113
29 Dec 2011 10:04 AM
er i changed it completely now:

function onPlayerEntered(player)
if player:IsInGroup(452873) then
player.TeamColor = BrickColor.new("Really red")
end end

game.Players.PlayerAdded:connect(onPlayerEntered)
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