local Weapon = game.SeverStorage.Knife
local plrs = game.Players
While Wait( ) do
local chosen = plrs:GetChildren()[math.random(1, #plrs:GetChildren())]
I now little about scripting but just need some help on this script, what more is there to add, I’m still learning and I don’t know what to do to make this work fully I just now this part, can I have some help.
The syntax for the script is wrong, it should look like this:
local Weapon = game.SeverStorage.Knife
local plrs = game.Players
while wait() do
local chosen = plrs:GetPlayers()[math.random(1, #plrs:GetPlayers())]
local character = chosen.Character
end
What this script does is chooses a random player. You can refrence the character by doing chosen.Character