Sword is in player's backpack, but nowhere to be seen ingame

yoyoyo i have a script that puts a sword into the player’s backpack, it works (the sword clones to the player’s backpack) but ingame i can not see it in the hotbar

script.Parent.Touched:Connect(function(hit)
	if hit.Parent:FindFirstChild("Humanoid") then
		local Player = Players:FindFirstChild(hit.Parent.Name)
		if Player then
			if Player.UserId == Config.OwnerId.Value and Config.OwnerCanCollect.Value == true then
				local Sword = SS.Sword:Clone()
				Sword.Parent = Player.Backpack
				print("cloned!")
				PickUpItem(Sword.Handle.Config, script.Parent.Config)
			end
		end
	end
end)
  1. Does it print “cloned!” like it’s supposed to
  2. Can we see this “PickUpItem” function?

yes it prints cloned also i dont see why you would need to see the function all it does is set some stuff up in the sword’s config, should still work fine without it

ill try to run it without the pickupitem function hold on

Alright, what type of script is this? Local or Server Script?

serverscript

Aaaaaaaaaaaaaaaaaaaaaa
characterlimit

yup, even without the function it does not work

Alright, last thing I have to ask, is the Backpack CoreGUI disabled? (You can test this easily by trying to put anything into the characters backpack). Well, I said it was the last thing, but, is it shown inside of the player’s backpack from the explorer (If it is, the CoreGUI is most likely disabled)?

1 Like

i tried putting a sword in starterpack and it infact does not show up, how do you enable backpack coregui?

nevermind i figured it out, thanks!