So I got this thing, It’s supposed to make x thing transparent after the value goes down.
The problem is
Is that I have no idea of what the hell I am doing, and of course, the script won’t work.
How can I make it so X part becomes transparent after the value goes down?
local AMMO = script.Parent.script.AMMO
local S = script.Parent.Parent.Parent.gun
AMMO.Changed:Connect(function()
if AMMO.Value < 8 then
S.Shel8.Transparency = 1
end
end)
Well I just realized that they don’t go to the same path, if they did then it would be script.Parent.ammocheck.AMMO but instead its script.Parent.Script.AMMO
Hmm. I should’ve shown the full thing, but I guess that’s just the embarrasement that I fell by using a free model (by “POOPENGUIN”), then asking for help on x thing in the devforums.
Basically, I added a ammo feature to the thing, so it cannot fire if the value is 0.
It checks and subtracts ammo in the “Script”
And my intention was to make the shells go transparent within the “ammocheck” Script.
My apologies for not being clear early, is just that i’ve been banging my head into this for 2 hours