Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Player = game.Players.LocalPlayer
- Mouse = Player:GetMouse()
- gui = script.Parent
- box = gui.Box
- Open = false
- function PressM(key)
- if (key == "M")then
- if (Open == false) then
- Box.Visible = true
- Open = true
- elseif (Open == true) then
- box.Visible = false
- Open = false
- end
- end
- end
- Mouse.KeyDown:connect(PressM)-
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement