Someone help, IDK how to make auto tool giver and I need help so is there any script that can give diffrent tools like sherrif gun and knife.
The easiest way to do this in my opinion is by going like this
-- This is a regular script local weapons = game.ServerStorage.Weapons:GetChildren(); -- An array of all the weapons in a model called "Weapons" in ServerStorage; for _, a in pairs(game.Players:GetPlayers()) do -- Getting all the players, a is the variable used to store the player that is currently being given a weapon. This can be anything i.e., "plr", "player", etc. local weapon = math.random(1, table.getn(weapons)); -- Selecting a random weapon for the player weapons[weapon]:Clone().Parent = a.BackPack; -- Cloning weapon into players backpack end;
This script is basic and does not show a gui or anything on screen based on what the player got, I'll leave that up to you. ;) If this helped please don't forget to accept this answer.
Closed as Not Constructive by EzraNehemiah_TF2 and BlueTaslem
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?