I'm trying to make a crate system, I did all the things but it doesn't give the player the tool.
This is the script:
local SS = game:GetService("ServerStorage") local Items = {SS.Sword1, SS.Sword2} script.Parent.MouseButton1Click:connect(function() local item = Items[math.random(1, #Items)] item:Clone().Parent = game.Players.LocalPlayer.Backpack end)
Thanks. MajinBluee