A script that is SUPPOSED to burn your legs if you touch the part.
How do I fix this error? No matter how many times I look at it, I personally don't see any errors.
1 | part = script.Parent |
2 | f = Instance.new( "Fire" ) |
3 |
4 | part.Touched:Connect( function (player) |
5 | if player:FindFirstChild( "Fire" )~ = nil then |
6 | f.Parent = player |
7 | end |
8 | end ) |
You can do something like that.
1 | part = script.Parent |
2 | f = Instance.new( "Fire" ) |
3 |
4 | part.Touched:Connect( function (part) |
5 | local plr = game.Players:GetPlayerFromCharacter(part.Parent) |
6 | if plr and not part:FindFirstChildOfClass( "Fire" ) then |
7 | f.Parent = part |
8 | end |
9 | end ) |