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 » Club Houses » Clans & Guilds
Home Search
 

Re: Need help with another script

Previous Thread :: Next Thread 
DrBulq is not online. DrBulq
Joined: 06 Jul 2010
Total Posts: 3486
15 Jan 2014 10:58 AM
team = "Brown"
plr=script.Parent.Parent.Parent.Parent

function onButtonClicked()

if plr.TeamColor ~= BrickColor.new(team) then
plr.TeamColor = BrickColor.new(team)
plr:LoadCharacter()

else
end

end

script.Parent.MouseButton1Down:connect(onButtonClicked)

I'm trying to make it so only members IN THE GROUP can join that team, Gorehowl made this team GUI for me and he told me how before but I just simply forgot what the line was and where he said to put it. Anyone care to help?

♚ Eolithic King ♚
Report Abuse
twinzer87 is not online. twinzer87
Joined: 23 Jun 2011
Total Posts: 11065
15 Jan 2014 11:00 AM
ask him again
lol
i just realised a coincidence
one of my best mates irl is called brad
he's a funny guy
Report Abuse
TheDominantLord is not online. TheDominantLord
Joined: 23 Aug 2011
Total Posts: 7866
15 Jan 2014 11:02 AM
if plr:IsInGroup() then

end
Report Abuse
harrods is not online. harrods
Joined: 02 Oct 2010
Total Posts: 5334
15 Jan 2014 11:02 AM
ask tenal
Report Abuse
DrBulq is not online. DrBulq
Joined: 06 Jul 2010
Total Posts: 3486
15 Jan 2014 11:03 AM
tenal doesn't like me

♚ Eolithic King ♚
Report Abuse
sellethore is not online. sellethore
Joined: 23 Jun 2008
Total Posts: 1504
15 Jan 2014 11:03 AM
The 'else' doesn't belong in your script.
Report Abuse
twinzer87 is not online. twinzer87
Joined: 23 Jun 2011
Total Posts: 11065
15 Jan 2014 11:04 AM
brad does your last name start with a w
Report Abuse
DrBulq is not online. DrBulq
Joined: 06 Jul 2010
Total Posts: 3486
15 Jan 2014 11:05 AM
My last name is Young actually

♚ Eolithic King ♚
Report Abuse
Aethea is not online. Aethea
Joined: 12 Dec 2008
Total Posts: 9836
15 Jan 2014 11:06 AM
Defenders = 'Brown'
plr = game.Players.LocalPlayer
sp = script.Parent
chr = plr.Character

sp.MouseButton1Click:connect(function()
if plr:IsInGroup(YOURGROUPID) then
plr.TeamColor=BrickColor.new(Defenders)
end
end)

Don't need an else unless you want the script to do something else.
Use Local script for this
Report Abuse
twinzer87 is not online. twinzer87
Joined: 23 Jun 2011
Total Posts: 11065
15 Jan 2014 11:06 AM
aww
it'd be rlly cool if you were him
Report Abuse
SilentSwords is online. SilentSwords
Joined: 22 Jun 2007
Total Posts: 27214
15 Jan 2014 11:07 AM
while the whole script is kinda icky, the thing you'd want is..

if plr.TeamColor ~= BrickColor.new(team) then

change it to

if plr.TeamColor ~= BrickColor.new(team) and plr:IsInGroup(groupidhere) then

-{===>SS
Report Abuse
DrBulq is not online. DrBulq
Joined: 06 Jul 2010
Total Posts: 3486
15 Jan 2014 11:10 AM
Haha alright thanks guys and yeah altair is decent but he gets it to work :3

I'll test those now

♚ Eolithic King ♚
Report Abuse
DrBulq is not online. DrBulq
Joined: 06 Jul 2010
Total Posts: 3486
15 Jan 2014 11:11 AM
Well how it is currently it's an instant respawn and doesn't give you a WO is that how it is with that one Athea

♚ Eolithic King ♚
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Club Houses » Clans & Guilds
   
 
   
  • 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