if game.ReplicatedStorage.Tools.Chips.Value.Value == 1 then
print("value 1")
end
This is not all of your code. Please post all your code.
Try this.
game.ReplicatedStorage.Tools.Chips.Changed:Connect(function(v)
if v == 1 then
print("value 1")
end
end)
this is all the code in this script
it won’t print it for some reason
Its value.value sould just be value
can you post the heirachy of replicatedstorage
no the name of the IntValue is value and if its chips.value it will think its the chips object trying to equal 1
Show a picture of the workspace area that the value is in
That would help me understand a hole lot more
Make a script beeneth the value
Print(script.Parrent .Value)in the script also are you doing this in a local script or a server script
ok now what am i supposed to do
game.ReplicatedStorage.Tools.Chips.Changed:Connect(function()
if game.ReplicatedStorage.Tools.Chips.Value.Value == 1 then
print("value 1")
end
end)
try this
i’m using a server script for the check
The value of Chips.Value
is literally 0.
Your if statement won’t run because its condition is if the value is 1.
Also, if you’re using binary (0 and 1 are the only values), I suggest using BoolValues
instead.
Good point i overlooked that bro haha
i made it so that something adds one to the value
what is that value used for in your game