Does anybody know a script that can give a random player a tool,but the other players get nothing?
local ItemToGive = game.Lighting.Sword local player = math.random(1, game.Players.NumPlayers); local Players = game.Players:GetPlayers() ItemToGive:Clone().Parent = Players[player]
local ItemToGive = game.Lighting.Tool local player.math.random(1, game.Players.numPlayers); local Players = game.Players:Getplayers() ItemToGive:Clone().Parent = Players [Player] --give tools stuff to player and give tool print("Tool given to random player!")
local player = math.random(1, game.Players.NumPlayers); for i,p in pairs(game.Players:GetPlayers()) do if i==player then --give tool stuff end end