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 plz

Previous Thread :: Next Thread 
nobbybobby123 is not online. nobbybobby123
Joined: 11 Jun 2011
Total Posts: 460
25 Nov 2012 06:05 AM
function Click(mouse)
if script.Parent.Parent.Parent.Parent:IsInGroup(732924) then
script.Parent.Parent.Parent.Parent.TeamColor = BrickColor.new("White")
script.Parent.Parent.Parent.Parent.Character.Humanoid.Health = 0
end
end

script.Parent.MouseButton1Click:connect(Click)

This is so when you click a gui it changes your team, however I only want me and another person to be able to change to that team. So...

How do I edit this so that only me and another person can enter?

Please reply with the edited script ASAP please.

Thanks.
Report Abuse
Krelinos is not online. Krelinos
Joined: 09 Jan 2010
Total Posts: 425
25 Nov 2012 10:46 AM
player = script.Parent.Parent.Parent.Parent

function Click(mouse)
if player.Name == "YOURNAME" or player.Name == "FRIEND'SNAME then
Report Abuse
YaYaBinks3 is not online. YaYaBinks3
Joined: 05 Jun 2009
Total Posts: 2631
25 Nov 2012 10:47 AM
>"FRIEND'SNAME
|
\/
"FriendsName"
>Much love, YaYaBinks3.
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