I want make sys what changing one BoolVaue and this value changign one GUI what is turning to visible or this is another script ! If i press the E not working !!!
local Input = game:GetService("UserInputService")
local Int = workspace.IntGomb
local ASD = 1
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid")then
Int.Value = true
ASD = 2
else
end
end)
Input.InputBegan:Connect(function(keyCode)
if keyCode.keyCode == Enum.KeyCode.E then
if ASD == 2 then
print(ASD,keyCode)-- NOT PRINTING THIS + NOT WORKING !!!!
end
end
end)

1 comment
Call print(ASD) before the conditional to see if ASD is preventing the code from running