local giver = script.Parent.Giver
local weapon = script.WeaponName
local function onGiverTouched(gamer)
local earf = game.Players:FindFirstChild(gamer.Name)
if earf.Backpack:FindFirstChild(weapon.Value) then
else
local clone = game.ReplicatedStorage:FindFirstChild(weapon.Value)
clone:Clone()
clone.Parent=game.Players:FindFirstChild(gamer.Name).Backpack
end
end
giver.Touched:Connect(onGiverTouched)
Im trying to create a simple gravity coil giver
Here's the error:Workspace.GravityCoilGiver.GiverScript:7: attempt to index nil with 'Backpack'

2 comments
i would also check if the parenting is nil or not, this happens when the part thats touching gets removed by a service like debris service or even the destroy() service. Just a few friendly pointers :P
I feel like an idiot for not noticing, thanks for the help