I even have it set to false but it still makes you sit, how do you fix this?
01 | function onDamage(Part) |
02 | if Part.Parent:FindFirstChild( "Humanoid" ) ~ = nil and Part.Parent.Name ~ = "script.Parent.Name" then |
03 | script.Disabled = true |
04 | f = Instance.new( "Fire" , Part) |
05 | for i = 1 , 25 do |
06 | f.Size = f.Size + 0.25 |
07 | Part.Parent.Humanoid.Health = Part.Parent.Humanoid.Health - 1 |
08 | wait( 0.05 ) |
09 | end |
10 | Part.Parent.Humanoid.Sit = false |
11 | f:remove() |
12 | script.Parent:remove() |
13 | end |
14 | wait( 0.025 ) |
15 | end |
16 |
17 | script.Parent.Touched:connect(onDamage) |
1 | if Part.Parent:FindFirstChild( "Humanoid" ) ~ = nil and Part.Parent.Name ~ = "script.Parent.Name" then |
This line is the problem. It should say
1 | if Part.Parent:FindFirstChild( "Humanoid" ) ~ = nil and Part.Parent.Name ~ = script.Parent.Name then |