So, I need help with mine for my friend and his war place. I need to do some mine, so if you step on it, it will explode, and it will kill player. Can someone help me with that? I need it work with FE.
COMMUNITY QUESTION
How to make brick explode if you touch it?
1 answer
This is a fairly easy thing to do, you just use the Touched event to check if the parts been touched, and if so, check if the thing touching the part is a player.
local part = script.Parent
part.Touched:Connect(function(plr)
if plr.Parent:FindFirstChild("Humanoid") ~= nil then -- if it is a player
local explosion = Instance.new("Explosion") -- create an explosion
explosion.Parent = part
explosion.Position = part.Position -- make the explosion's position be the part's position
end
end)
1 comment
0
I tested this, and it works with FE.
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
You need to add an Explosion effect to the part when touched. You need a localscript to startercharacterscritps, a remote event and a normal script. Localscript is firing the remoteevent when part touched, script is adding the Explosion effect. If you don't know how to do this, I will do it if you want.
don't post request questions
Wow, I just need someone help with scripting, I don`t need the script. I, NEED, HELP.