I have a block that changes color and text when it the tool is in use. It doesn't work, even though the tool has its bool value changed to true. Anyone know how to fix this?
InUse = game.ServerStorage.Key1.InUse.Value
while true do
if InUse == true then
script.Parent.BrickColor = BrickColor.new("Really red")
script.Parent.SurfaceGui.TextLabel.Text = "Key1: In Use"
wait(1)
elseif InUse == false then
script.Parent.BrickColor = BrickColor.new("Bright green")
script.Parent.SurfaceGui.TextLabel.Text = "Key1: Not In Use"
wait(1)
end
end

3 comments
tools have an unequipped event and an equipped event
Depends on the script, Local Scripts can't collect data from Server Storage? Is this your issue? Try changing it to a Server Script?
This is a server script in a part.