player.Character.Humanoid.Died:Connect(function() -- respawn at cage after 3 seconds wait(3) player:LoadCharacter() end)
script.Parent.Touched:Connect(function(hit) local player = game.Players:GetPlayerFromCharacter(hit.Parent) if player and not table.find(playersAtDoor, player) then table.insert(playersAtDoor, player) if #playersAtDoor >= keysRequired then script.Parent.CanCollide = false script.Parent.Transparency = 0.5 end end end) script granny multiplayer
-- Local script for knockout effect local player = game.Players.LocalPlayer player.Character.Humanoid.BreakJointsOnDeath = false player.Character.Humanoid.Health = 0 -- triggers custom death player
-- Assign Granny role local players = game.Players:GetPlayers() local grannyPlayer = players[math.random(1, #players)] grannyPlayer.Team = game.Teams.Granny player) then table.insert(playersAtDoor