I'm tryna make an fps game where there are multiple types of zombies and one of the zombies can fly. I've tried using body position and body velocity but I'm not an expert on them and they don't seem to work. Can someone help me?
local debounce = true game.Players.PlayerAdded:Connect(function(player) script.Parent.Humanoid.Died:Connect(function() if script.Parent.Humanoid.Health <= 0 then if debounce == true then debounce = false player:FindFirstChild("EXP").Value = player:FindFirstChild("EXP").Value + 1 player:FindFirstChild("Zombies Killed").Value = player:FindFirstChild("Zombies Killed").Value + 1 wait(0.5) debounce = true end end end) end)