Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Can anyone help me script my nuke so it only destroys blocks and not myself?

I have tried finding out what sections of script connect to make ME explode but to no avail. It is 31skinny's. Can anyone help me?

1 comment

0

I don't know how to script...

1 answer

The only way to really stop an explosion from killing you is FF. Try this

AntiNukes={"bnl1244","MixCorp","OtherGuys"} --Names of people that cant be killed by nukes.

function Nuke()

for i,v in pairs(game.Players:children()) do
for i = 1,#AntiNukes do if AntiNukes[i]:lower() == v.Name:lower() then
ff = Instance.new("ForceField",v.Character) --You may need to lower case the Field. Not sure.
end
end
end

--All OF Your Code

for i,v in pairs(game.Players:children()) do
for i,char in pairs(v.Character:children()) do
if v.className == "ForceField" then --Again may need to lower Field, Not sure exact instance name.
v:remove()
end
end
end
end

If you find yourself needing more help PM me @MixCorp

This discussion is preserved as it was. New answers, comments, and votes are closed.