local Coils = {
CityCoil = Instance.new("BoolValue", Values.Items.Coils.CoilFolder);
CloudCoil = Instance.new("BoolValue", Values.Items.Coils.CoilFolder)
}
It is giving me an error, ServerScriptService.SaveDataService:78: attempt to index nil with ‘Coils’
It works fine with my other table, I’m not sure why this one isn’t working
For example, this one works fine:
local Multipliers = {
CoinMultiplier = Instance.new("NumberValue", Values.Multipliers);
GainMultiplier = Instance.new("NumberValue", Values.Multipliers);
JumpMultiplier = Instance.new("NumberValue", Values.Multipliers)
}
Can you show the Coils in your explorer?
Theyre in the script not the explorer
Values.Items.Coils.CoilFolder. where is this and when does it get created?
yeah I checked and they dont show up in the folder, they get created within the script also. But I think I figured it out. It doesnt work with Values.Items.Coils.CoilFolder, but it works with Values.Items. I guess you cant make the parent too far or something idk
I had two instances called Values, so it was bugging out
Oh ok yeah that would cause issues. Good luck.
1 Like
system
(system)
Closed
February 29, 2024, 4:00am
8
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.