(sorry if i do something wrong this is my first ever post)
You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
This script keeps giving me an error and I want to fix it -
What is the issue? Include screenshots / videos if possible!
The script keeps giving this error: “Players.doctorpepper126.PlayerGui.AddItem:9: attempt to call a nil value” -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
The solutions on the hub didnt work for me
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
Script:
wait(6)
local reqMod = require(game.ReplicatedStorage["InventoryHandler"])
reqMod:AddItemToInventory(script.Parent.Parent, script:WaitForChild("sword"))