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: Anti-C4 script?

Previous Thread :: Next Thread 
KraZnoobkiller is not online. KraZnoobkiller
Joined: 29 Feb 2012
Total Posts: 51
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
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
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 is not online. 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 is not online. 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 is not online. rayoma
Joined: 13 Nov 2009
Total Posts: 1911
12 Aug 2012 11:33 PM
Maybe don't put c4 in your place?
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
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
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
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 is not online. Deviser
Joined: 05 May 2011
Total Posts: 344
12 Aug 2012 11:34 PM
Fine use death's.
Report Abuse
RoAnt is not online. 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 is not online. 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 is not online. 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
IamAwesome777 is not online. IamAwesome777
Joined: 18 Jul 2011
Total Posts: 2640
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
IamAwesome777 is not online. IamAwesome777
Joined: 18 Jul 2011
Total Posts: 2640
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
TheEpicSamuri is not online. TheEpicSamuri
Joined: 04 Dec 2011
Total Posts: 1343
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
TheEpicSamuri is not online. TheEpicSamuri
Joined: 04 Dec 2011
Total Posts: 1343
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
KraZnoobkiller is not online. KraZnoobkiller
Joined: 29 Feb 2012
Total Posts: 51
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 is not online. 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 is not online. 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
KraZnoobkiller is not online. KraZnoobkiller
Joined: 29 Feb 2012
Total Posts: 51
13 Aug 2012 10:36 PM
Thanks, death! You helped alot!
Report Abuse
RoAnt is not online. RoAnt
Joined: 14 Jul 2008
Total Posts: 16794
13 Aug 2012 10:38 PM
.-. am i invisible
Report Abuse
rayoma is not online. rayoma
Joined: 13 Nov 2009
Total Posts: 1911
13 Aug 2012 10:43 PM
^
Report Abuse
TheEpicSamuri is not online. TheEpicSamuri
Joined: 04 Dec 2011
Total Posts: 1343
13 Aug 2012 10:43 PM
@ Ant haha Ikr
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