How do I fix my tool not being given after resetting?

Hello! I’ve been trying to make a proximity prompt that gives players a tool however it doesn’t work once players resets as it gives me this error:

Is there any to fix this?
Script below:

local rs = game:GetService("ReplicatedStorage") -- ReplicatedStorage
local tool = rs:FindFirstChild("Lamp"):Clone() -- Tool
local prox = script.Parent -- Proximity Prompt

	tool.Parent = player.Backpack -- When Proximity Prompt is triggered it gives player a lamp

Thanks in advance! :happy3:

Clone it when you are giving it to the player, it’s not inside the loop

1 Like

Put it in their starterpack too (player.StarterPack)

also do what androsova did


Didn’t know the solution was this simple lol

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.