-
If player presses G or C the gui on a player goes down and an event is fired.
-
If you press any key, the gui goes down and the event is fired.
-
Adding checks to assure it knows it is C or G
if Key ~= "c" or "g" then
print("pressed g")
if db1 == true then return else
print("pressed g1")
if Int.Frame.c.Visible == true and Int.Adornee and Int.Frame.c.Msg.TextColor3 == Color3.fromRGB(255, 255, 255) then
print("pressed g2")
if string.upper(Key) == "G" or "C" then
print("did this work?")
if enabled == false then
print("did this work?1")
enabled = true
print("did this work?1111")
local value = Key
Player.PlayerGui.InteractiveMenu.Click:Play()
local action = Key
spawn(function()
wait(0.1)
Int.Frame[Key].Up.Visible = false
Int.Frame[Key].Msg.TextColor3 = Color3.fromRGB(89, 255, 0)
Int.Frame[Key].Down.Visible = true
if db1 == true then end
db1 = true
db1 = false
wait(0.1)
Int.Frame[Key].Up.Visible = true
Int.Frame[Key].Msg.TextColor3 = Color3.fromRGB(255, 255, 255)
Int.Frame[Key].Down.Visible = false
game.ReplicatedStorage:FindFirstChild('InteractionEvent'):FireServer(v, Key)
game.ReplicatedStorage.Notification:FireServer(action, v.Name)
enabled = false
wait(3)
end)
end
end
end
end