So im trying to make toxic gas for my game but I don’t know how i’d make players lose health as they touches the smoke, I tried with an invisible part but I think the gas would be better.
4 Likes
If the gas is a particle affect or some sort, parent it to a part, resize the part and make it transparent and add a :Touched() event, which reduces damage from the player when touched.
1 Like
This. But, you could use a sphere as well. Let us know if you need help writing it.
Make a part make it can collide and transparent and add this script in
script.Parent.Touched:Connect(function(part)
if part.Parent:FindFirstChild(“Humanoid”) then
part.Parent.Humanoid.Health = 0
end
end)
1 Like
