Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why is this Script does Not Give the Player a Tool?

Asked by 6 years ago

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

0
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? KingLoneCat 2642 — 6y
0
Yes MajinBluee 80 — 6y

Answer this question