I am currently working on a script that will allow multiple UserIDs to get one tool. I do NOT want to use an or statement with the IDs.
Here is what I have so far:
local allowedID = {
955684786, --Supersuccdude56
1, --ROBLOX
}
local tools = {script.Name}; --Name of the tools in ServerStorage go here
local SS = game:WaitForChild("ServerStorage")
--DO NOT EDIT UNLESS YOU KNOW WHAT YOU ARE DOING--
game.Players.PlayerAdded:connect(function(player)
repeat wait(0.1) until player.Backpack
repeat wait(0.1) until player.StarterGear
if allowedID[player.UserId] then
for i = 1,#tools do
SS:FindFirstChild(tools[i]):Clone().Parent = player.Backpack
SS:FindFirstChild(tools[i]):Clone().Parent = player.StarterGear
end
end
end)

1 comment
That should work