script.Parent.Touched:Connect(function(plr)
if game.ReplicatedStorage.KillBrickActivated.Value == false then
print("killbrick is off")
elseif game.ReplicatedStorage.KillBrickActivated.Value == true then
plr.Parent.Humanoid.Health = 0
print("killbrick is on")
end
end)
I have this script but when i changed the boolean value from replicated storage to false it says that the boolean value is true and the killbrick is not deactivating