i want to make it so that my plasma ball doesn't explode kill its user or the person who is using it, i tried some methods of my own but they did not work here is the script
function onTouched(hit) exp = Instance.new("Explosion") exp.Position=script.Parent.Position exp.Parent=workspace script.Parent:remove() end script.Parent.Touched:connect(onTouched)
Once you make the explosion, you could put a forcefield on the player.
Maybe make it so when you fire your player goes into god mode until the attack finishes?
i want the user of the plasma-ball to be able to be harmed by another users plasma-ball while being immune to their own
this is the script in lua-form
function onTouched(hit) exp = Instance.new("Explosion") exp.Position=script.Parent.Position exp.Parent=workspace script.Parent:remove() end script.Parent.Touched:connect(onTouched)