I made a zombie (The pathfinding script works) and i made him able to grab players (In another script) . It works in solo but not in online mode. Here's the script :
wait (3)
print "Waited"
Debounce = true
print "DC"
script.Parent.Torso.Touched:connect(function(Dude)
if Debounce == false then return end
if Dude.Parent:FindFirstChild("Humanoid") and Dude.Parent:FindFirstChild("Torso") and Dude.Parent:FindFirstChild("Human") then
print "Player Found"
Debounce = false
game.Players:GetPlayerFromCharacter(Dude.Parent).PlayerScripts.ControlScript.Disabled = true
Dude.Parent.Humanoid.WalkSpeed = 0
local Victim = Dude.Parent
script.Parent.Pathfinding.Disabled = true
script.Parent.Zombie.WalkSpeed = 0
local Animation = script.Parent.Zombie:LoadAnimation(script.Parent.Zombie.Bite)
Animation:Play()
print "Player Grabbed"
wait (1)
script.Parent.Torso.Bite:Play()
Victim.Humanoid:TakeDamage(11)
print "Player Bit[1]"
wait (1.46)
script.Parent.Torso.Bite:Play()
Victim.Humanoid:TakeDamage(11)
print "Player Bit[2]"
wait (1.0833)
game.Players:GetPlayerFromCharacter(Dude.Parent).PlayerScripts.ControlScript.Disabled = false
Dude.Parent.Humanoid.WalkSpeed = 16
script.Parent.Pathfinding.Disabled = false
script.Parent.Zombie.WalkSpeed = 6
print "Player Released"
wait (6)
Debounce = true
end
end)
Thank you for helping me !

2 comments
Press f9 ingame and check both logs, post any errors in them
No errors.