I am trying to make a button give a tool, but it’s not working. I tried scripting, but it still doesn’t work. Please help me.
Code:
local Button = script.Parent
local Cup = game.ReplicatedStorage.Large.Cup
local Player = game.Players.LocalPlayer
Button.MouseButton1Click:Connect(function()
local CupClone = Cup:Clone()
CupClone.Parent = Player.Backpack
end)