local cd = script.Parent.ClickDetector local Player = game.Players.LocalPlayer local tools = game.Lighting.Tools local pack = Player:FindFirstChild("Backpack") cd.MouseClick:connect(function() tools.Cup:Clone().Parent = pack end)
NO WORKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK
15:48:46.337 - Workspace.Handle.Script:4: attempt to index local 'Player' (a nil value)
Fixed it, you just had to put local player inside of the function:
local cd = script.Parent.ClickDetector local tools = game.Lighting.Tools cd.MouseClick:connect(function() local Player = game.Players.LocalPlayer tools.Cup:Clone().Parent = Player:WaitForChild("Backpack") end)