local weapona = Instance.new("BoolValue", player.Character)
weapona.Name = "WeaponActive"
weapona.Value = false
--^^^^first script
--vvvv second script
if Character:FindFirstChild("WeaponActive") == false then
print("1")
elseif Character:WaitForChild("WeaponActive") == true then
print("0")
end
✓ ANSWER ACCEPTED
I created a bool value in player but now how would i change it with other scripts?
1 answer
✓ Accepted answer
local weapona = Instance.new("BoolValue", player.Character)
weapona.Name = "WeaponActive"
weapona.Value = false
--^^^^first script
--vvvv second script
if Character:FindFirstChild("WeaponActive") == false then --Put .Value after ("WeaponActive")
print("1")
elseif Character:WaitForChild("WeaponActive") == true then --Put .Value after ("WeaponActive")
print("0")
end
When using bool values and checking if there false or true you gotta do .Value after the boolvalue thats why it aint working
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
its ("WeaponActive").Value