I trying to run this through a regular script: while script.Parent:FindFirstChild("Ability").Value == 1 do
print ("909")
wait(1)
end But it doesn't work. I have another script in a local script to test for a key being pressed and once that key is pressed it sets the value of the "Ability" to 1. Here's the code for that: tool.Equipped:Connect(function()
Mouse = game.Players.LocalPlayer:GetMouse()
tool = script.Parent
player = game.Players.LocalPlayer
value = script.Parent.Ability.Value
Mouse.KeyDown:connect(function(key)
if key:lower() == 'q' then
print('Player has used the button A.')
script.Parent.Ability.Value = 1
end
end)
end)