|
| 12 Aug 2012 11:24 PM |
| Will anyone make me an Anti-C4 script? I hate people who C4 my place, I want a scrpt that automatically deletes the C4 when it's placed if possible. I will pay for it. |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2012 11:29 PM |
local C4 = "" --Put the name of the C4 model here game.Workspace.Changed:connect(function(c) if c.Name == C4 then c:Destroy() else end end)
Try that
~2.9k posts/20k posts |
|
|
| Report Abuse |
|
|
Deviser
|
  |
| Joined: 05 May 2011 |
| Total Posts: 344 |
|
|
| 12 Aug 2012 11:29 PM |
function RemoveThatFuglyThang(Naim) while Naim do Naim:Destroy() end end
while true do RemoveThatFuglyThang(Game.Workspace.C4Explosive) end
or
This smaller one
if Game.Workspace.C4Explosive then Game.Workspace.C4Explosive:Destroy() end |
|
|
| Report Abuse |
|
|
Deviser
|
  |
| Joined: 05 May 2011 |
| Total Posts: 344 |
|
|
| 12 Aug 2012 11:30 PM |
WAIT DONT USE THAT FIRST ONE FORGOT TO ADD WAIT!! function RemoveThatFuglyThang(Naim) while Naim do Naim:Destroy() end end
while true do RemoveThatFuglyThang(Game.Workspace.C4Explosive) wait() end
or
This smaller one
if Game.Workspace.C4Explosive then Game.Workspace.C4Explosive:Destroy() end |
|
|
| Report Abuse |
|
|
rayoma
|
  |
| Joined: 13 Nov 2009 |
| Total Posts: 1911 |
|
|
| 12 Aug 2012 11:33 PM |
| Maybe don't put c4 in your place? |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2012 11:34 PM |
@deviser, that doesn't do anything. You have to add a changed event.
~2.9k posts/20k posts |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2012 11:34 PM |
local C4 = "C4Explosive" game.Workspace.Changed:connect(function(c) if c.Name == C4 then c:Destroy() else end end)
~2.9k posts/20k posts |
|
|
| Report Abuse |
|
|
Deviser
|
  |
| Joined: 05 May 2011 |
| Total Posts: 344 |
|
| |
|
RoAnt
|
  |
| Joined: 14 Jul 2008 |
| Total Posts: 16794 |
|
|
| 12 Aug 2012 11:38 PM |
http://www.roblox.com/PBS-Safe-Script-V-2-item?id=89842946
weird... I made this 20 mins before you said it. |
|
|
| Report Abuse |
|
|
rayoma
|
  |
| Joined: 13 Nov 2009 |
| Total Posts: 1911 |
|
|
| 12 Aug 2012 11:38 PM |
| Or be smart and not allow for them to put C4 in the place... Why is nobody thinking logically today? |
|
|
| Report Abuse |
|
|
RoAnt
|
  |
| Joined: 14 Jul 2008 |
| Total Posts: 16794 |
|
|
| 12 Aug 2012 11:39 PM |
"Or be smart and not allow for them to put C4 in the place... Why is nobody thinking logically today?"
Y U NO KNOW WHAT GRIEFERS DO AT A PBS?! |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2012 11:42 PM |
C4 = "" -- Name of CF model. game.Workspace.ChildAdded:connect(function(p) if p.Name == C4 then p:Destroy() end end) |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2012 11:43 PM |
@thedeath
I am not so sure that the .Changed event will work, but I am sure that mine will work. |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2012 11:54 PM |
function onAdded(C4) if C4.Name == "C4 Explosive" then C4:Destroy() end
game.Workspace.ChildAdded:connect(onAdded) |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2012 11:58 PM |
function onAdded(C4) if C4.Name == "C4 Explosive" then C4:Destroy() end end
game.Workspace.ChildAdded:connect(onAdded)
Sorry Im a bit tired. |
|
|
| Report Abuse |
|
|
|
| 13 Aug 2012 11:15 AM |
| Well, you gotta understand, if I give people tools, they will C4 at my place. Thats why I asked for this script |
|
|
| Report Abuse |
|
|
RoAnt
|
  |
| Joined: 14 Jul 2008 |
| Total Posts: 16794 |
|
|
| 13 Aug 2012 11:18 AM |
http://www.roblox.com/PBS-Safe-Script-V-3-item?id=89842946
there.
this will disable object:Explosion in workspace. :3
If you know how to edit codes, just add your name to where it told you to.
|
|
|
| Report Abuse |
|
|
rayoma
|
  |
| Joined: 13 Nov 2009 |
| Total Posts: 1911 |
|
|
| 13 Aug 2012 07:58 PM |
| Also if you know how to edit scripts you can take the C4 out of the tool :3 |
|
|
| Report Abuse |
|
|
|
| 13 Aug 2012 10:36 PM |
| Thanks, death! You helped alot! |
|
|
| Report Abuse |
|
|
RoAnt
|
  |
| Joined: 14 Jul 2008 |
| Total Posts: 16794 |
|
| |
|
rayoma
|
  |
| Joined: 13 Nov 2009 |
| Total Posts: 1911 |
|
| |
|
| |
|