Hello, i have this local script that doesn't start it is not disabled it just doesn't do anything

can it have something to do with the location of the script??

the script is placed in a folder (the folder is created by a script) inside the player?

i don't know why it doens't work the script that i placed in the backpack to do the exact same thing but for the backpack works

thanks!

https://imgur.com/a/knyrhQC

hmi = script.Parent
player = game.Players.LocalPlayer
ItemFolder = player:WaitForChild('ItemFolder')

print('hey')

while true do
	print('hey22')
	children = #ItemFolder:GetChildren()
	hmi.Value = children - 1
	--print(hmi.Value)
	print('hey')
	wait(0.05)
end

5 comments

0

Is the localscript created by the script too? or is it copied into the folder?

0

it's copied

0

Okay, I have some questions for you. What's inside the script? How is the script and folder being made?

0

the folder is made by instance.new and the script is inside a value that i copy into the folder the script doesn't even work with print('hey')

0

You should show us the script so we can help you