Im making a horror game and this is the script to pick someone random from Players But it dosent work can you help me?
Heres the script:
local Player = game.Players:GetPlayers()
local Formof = script.Parent
local Weapon = Game.ReplicatedStorage:FindFirstChild('Knife')
Weapon.Parent = Player.BackPack
Chance = Players[math.randomseed(#players)]
if Player == script.Parent then
script.Parent.Health = 2000
script.Parent.Walkspeed = 52
script.Parent.MaxHealth = 2000
end

3 comments
Im trying to do this if the player is the killer then the health would be 2000
Try now
Ok