|
| 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
|
  |
| 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
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 12 Apr 2012 10:13 AM |
>There are infinite amount of functions.
nop |
|
|
| Report Abuse |
|
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 12 Apr 2012 10:22 AM |
| You can't have infinite amount of functions. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 12 Apr 2012 10:55 AM |
script.Parent.Selected:connect(function() script.Parent:Remove() end) |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
| |
|
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 |
|
|