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)
I see the Issue. When you used keycode.keycode You must put Keycode with capital K or it will not work! Fixed script
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)