spawn(function()
if Gripping == true then
humanoid.WalkSpeed = 0
humanoid.JumpPower = 0
anim:Play()
anim2:Play()
local NewBlood = Blood:Clone()
NewBlood.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0, 0, -1) * CFrame.Angles(0,0,0)
local BloodParticle = NewBlood:WaitForChild("Particle")
NewBlood.Parent = game.Workspace
game.Debris:AddItem(NewBlood,0.5)
BloodParticle:Emit(75)
enemychar.HumanoidRootPart.Anchored = true
for i, anims in pairs(enemychar.Humanoid:GetPlayingAnimationTracks()) do
if anims.Name == "Gripped" then
anims:Stop()
end
end
wait(2.5)
humanoid.WalkSpeed = 16
humanoid.JumpPower = 50
enemychar:FindFirstChild("Knocked"):Destroy()
enemychar.Humanoid.Health = 0
enemychar.HumanoidRootPart.Anchored = false
char.HumanoidRootPart.Anchored = false
end
end)
I have a gripping script where you grip a player when there knocked. I have a question on how would I stop the player from being gripped if the player is hit. I have a boolvalue named hit that enters the characters everytime there hint. Anything to help I would appreciate.