I'm a beginner scripter in lua.

I'm trying to make a tool, a normal tool script, that deletes a block when you click it, it's like the delete tool hopperbin, but, it's not a hopperbin, as it's a separate tool itself, I'm trying to make it a script, not a tool.

Simply put it as, I want to make it the delete hopperbin, but, as a re-creation of it.

And as I'm doing this, I've been encountered with this error.

"14:29:19.443 - AmokahTheFox is not a valid member of Players"

And the script for the tool, is

wait(3)
amokah = game.Players:WaitForChild('AmokahTheFox')
StorageI = game.Players('AmokahTheFox').Backpack
tewl = Instance.new("Tool")
if amokah == true then
	tewl.Parent = StorageI
	tewl.CanBeDropped = false
	tewl.RequiresHandle = false
	tewl.Enabled = false
end

i'm very new to this, may I get some help?

2 comments

0

did u copy the script from a random place?

0

No, I've actually created this script.