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: Delete Parent If

Previous Thread :: Next Thread 
ChocCookieRaider is not online. ChocCookieRaider
Joined: 10 Mar 2012
Total Posts: 338
12 Apr 2012 09:16 AM
How would you make it so that if your not in a certain group, the script would delete it's parent?
Report Abuse
Techwiz19 is not online. Techwiz19
Joined: 30 Jan 2011
Total Posts: 462
12 Apr 2012 09:47 AM
1) Where is the script?
2) What is the function (Touch, Click, PlayerAdded, etc)?
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
12 Apr 2012 10:10 AM
[ Content Deleted ]
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
12 Apr 2012 10:13 AM
>There are infinite amount of functions.

nop
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
12 Apr 2012 10:17 AM
[ Content Deleted ]
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
12 Apr 2012 10:22 AM
You can't have infinite amount of functions.
Report Abuse
Robertoman is not online. Robertoman
Joined: 10 May 2007
Total Posts: 6369
12 Apr 2012 10:28 AM
Without your script the most I can give you is the part that removes the script's parent from the game.

script.Parent:Remove()
Report Abuse
ChocCookieRaider is not online. ChocCookieRaider
Joined: 10 Mar 2012
Total Posts: 338
12 Apr 2012 10:29 AM
I haven't got a script for it because i don't have the slightest clue how to do it.
Report Abuse
Robertoman is not online. Robertoman
Joined: 10 May 2007
Total Posts: 6369
12 Apr 2012 10:31 AM
What kind of event do you want to occure in order for this to happen then? Someone walks on a brick, clicks a brick, says something in particular in chat, or what?
Report Abuse
ChocCookieRaider is not online. ChocCookieRaider
Joined: 10 Mar 2012
Total Posts: 338
12 Apr 2012 10:32 AM
It will delete a tool...
Report Abuse
Robertoman is not online. Robertoman
Joined: 10 May 2007
Total Posts: 6369
12 Apr 2012 10:41 AM
I don't want to know what will happen, I want to know what happens to make the script run. Like do you equip the weapon and left click or what?
Report Abuse
ChocCookieRaider is not online. ChocCookieRaider
Joined: 10 Mar 2012
Total Posts: 338
12 Apr 2012 10:53 AM
Can you make it do it as soon as the player has respawned, joined agame etc. If not on select.
Report Abuse
Robertoman is not online. Robertoman
Joined: 10 May 2007
Total Posts: 6369
12 Apr 2012 10:55 AM
script.Parent.Selected:connect(function()
script.Parent:Remove()
end)
Report Abuse
ChocCookieRaider is not online. ChocCookieRaider
Joined: 10 Mar 2012
Total Posts: 338
12 Apr 2012 11:04 AM
I mean if the player is in a group, it wont delete the tool, but if the player isn't in the group, it will delete the tool.
Report Abuse
Quovis is not online. Quovis
Joined: 24 Mar 2012
Total Posts: 494
12 Apr 2012 11:09 AM
Functions are limited to every combination of every number and letter.
Report Abuse
ChocCookieRaider is not online. ChocCookieRaider
Joined: 10 Mar 2012
Total Posts: 338
13 Apr 2012 05:21 AM
So it's not possible?
Report Abuse
Cheater is not online. Cheater
Joined: 29 Jun 2007
Total Posts: 5258
13 Apr 2012 06:08 AM
if player:IsInGroup(ID) then --Define player and give the group ID.
else
script.Parent:Destroy()
end

As long as the script mustn't do anything else after the parent of the script gets destroyed, it should work.
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