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 » Scripters
Home Search
 

Re: How to remove a object once someones touch it?

Previous Thread :: Next Thread 
GloryArstotzka is not online. GloryArstotzka
Joined: 25 Jan 2017
Total Posts: 3
22 May 2017 01:42 PM
So basically on my game Papers Please RP there is a block if you walk into you'll become the inspector. How can I make it so when you touch it, it makes you the inspector and if the person on the inspector team quits it will come back. Here is the script I already have on the object:

function changer(part)
if part.Parent.Humanoid ~= nil then
if part.Parent.Humanoid.Health ~= 0 then
if game.Players:FindFirstChild(part.Parent.Name) ~= nil then
game.Players:FindFirstChild(part.Parent.Name).TeamColor = script.Parent.Value.Value
part.Parent.Head:Remove()
end
end
end
end

script.Parent.Touched:connect(changer)



--saberboy117 RoFleet Tec 2010 May 22 NON REPUBLISHABLE
Report Abuse
GloryArstotzka is not online. GloryArstotzka
Joined: 25 Jan 2017
Total Posts: 3
22 May 2017 02:09 PM
Bump.
Report Abuse
Aerodox is not online. Aerodox
Joined: 08 Mar 2017
Total Posts: 145
22 May 2017 02:14 PM
have u tried setting it to wumbo?


Report Abuse
LaeMVP is online. LaeMVP
Joined: 24 Jun 2013
Total Posts: 4416
22 May 2017 02:20 PM
Don't use :Remove()
Report Abuse
GodShowsTheWay is not online. GodShowsTheWay
Joined: 27 Oct 2014
Total Posts: 7180
22 May 2017 02:25 PM
set the M to W for wumbo


Report Abuse
GloryArstotzka is not online. GloryArstotzka
Joined: 25 Jan 2017
Total Posts: 3
23 May 2017 12:16 PM
How do I do that?
Report Abuse
GodShowsTheWay is not online. GodShowsTheWay
Joined: 27 Oct 2014
Total Posts: 7180
23 May 2017 09:43 PM
ask patrick

he majored in wumbology, the study of wumbo


Report Abuse
Chrounum is not online. Chrounum
Joined: 04 Apr 2015
Total Posts: 2911
23 May 2017 09:46 PM
part.Parent.Head:Destroy() ?


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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