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.
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)
Closed as Not Constructive by DeceptiveCaster and evaera
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?