uh how do I give players specific tools, I haven't use it in so long I completely forgot lol
COMMUNITY QUESTION
hey I wanna use tools?
1 answer
-- Put your tool in some place like ReplicatedFirst or ReplicatedStorage or ServerStorage.
-- In this case I used ServerStorage.
local Sword = game:GetService("ServerStorage").ClassicSword -- Replace this with the path of your tool
function GiveToolToPlayer(tool, player)
local Tool = tool:Clone()
Tool.Parent = player:WaitForChild("Backpack")
end
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:connect(function(character)
wait(10)
GiveToolToPlayer(Sword, player)
end)
end)
The script above gives a tool to a player 10 seconds after their character loads.
This discussion is preserved as it was. New answers, comments, and votes are closed.
