Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

local script doesn't start?

Asked by 5 years ago
Edited 5 years ago

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
0
Is the localscript created by the script too? or is it copied into the folder? BlauKitten 88 — 5y
0
it's copied TigerClaws454 48 — 5y
0
Okay, I have some questions for you. What's inside the script? How is the script and folder being made? Pojoto 329 — 5y
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') TigerClaws454 48 — 5y
0
You should show us the script so we can help you Axdrei 107 — 5y

Answer this question