_G["gbon"] = false function OnBindingPressed(player, binding) -- keys are being pressed! if(binding == "ability_extra_21")then -- W (up) --_moveFMVertical(-1) UI.PrintToScreen("W") end if(binding == "ability_extra_30")then -- A (left) --_moveFMHorizontal(-1) UI.PrintToScreen("A") end if(binding == "ability_extra_31")then -- S (down) --_moveFMVertical(1) UI.PrintToScreen("S") end if(binding == "ability_extra_32")then -- D (right) --_moveFMHorizontal(1) UI.PrintToScreen("D") end if(binding == "ability_extra_17")then -- (SPACE) if(_G["gbon"])then -- detach from wall Events.BroadcastToServer("GBStop") end end -- RIGHT MOUSE spawns items for the Follow Menu if(binding == "ability_secondary")then UI.PrintToScreen("RMouse") end end Game.playerJoinedEvent:Connect(function(player) player.bindingPressedEvent:Connect(OnBindingPressed) end)