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

2 comments
It works for me. Are you sure you placed the local script in the right place and checked in the correct location for the sword?
Yes