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: How to make a gui buttion that removes StarterGear tools?

Previous Thread :: Next Thread 
dart219 is not online. dart219
Joined: 09 Aug 2008
Total Posts: 288
26 Dec 2011 02:24 PM
I am trying to make a change team gui where when you join spectators, then it removes the tools from your starterpack but I do not know how I could script the tool removing part. Ty if you can help!
Report Abuse
dart219 is not online. dart219
Joined: 09 Aug 2008
Total Posts: 288
26 Dec 2011 02:35 PM
Bump D:
Report Abuse
C0D3Y is not online. C0D3Y
Joined: 24 Jul 2010
Total Posts: 1692
26 Dec 2011 03:27 PM
How much you know about GUIs?
Report Abuse
dennisvdz is not online. dennisvdz
Joined: 14 Dec 2008
Total Posts: 3710
26 Dec 2011 03:31 PM
[LOCALSCRIPT!]
script.Parent.MouseButton1Down:connect(function()
for _,v in pairs(game.Players.LocalPlayer.StarterGear:GetChildren()) do
v:remove()
end
end)
Report Abuse
dart219 is not online. dart219
Joined: 09 Aug 2008
Total Posts: 288
26 Dec 2011 06:50 PM
[LOCALSCRIPT!]

Do I remove that in the script? Or do I make the script a local script?
Report Abuse
Spectrumw is not online. Spectrumw
Joined: 04 Aug 2009
Total Posts: 13510
26 Dec 2011 06:53 PM
Put this in a LocalScript;

script.Parent.MouseButton1Down:connect(function()
  game.Players.LocalPlayer.StarterGear:ClearAllChildren()
end)
Report Abuse
UFAIL2 is online. UFAIL2
Joined: 14 Aug 2010
Total Posts: 6905
26 Dec 2011 06:54 PM
Remove "[LOCALSCRIPT!]" and put the rest in a Local Script.
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