player = game.Players.LocalPlayer mouse = game.Players.LocalPlayer:GetMouse() mouse.KeyDown:connect(function(key) if key == "h" then game.StarterGui.ATMhacker.Frame.ihack.Visible = true else print("Y U No Press H") end end) -- it works when i use Print(), but not this, please help me out!
If you edit the StarterGui, you're editing what people will see after joining or resetting. Edit player
's PlayerGui
.
player = game.Players.LocalPlayer mouse = game.Players.LocalPlayer:GetMouse() mouse.KeyDown:connect(function(key) if key == "h" then player.PlayerGui.ATMhacker.Frame.ihack.Visible = true else print("Y U No Press H") end end) -- it works when i use Print(), but not this, please help me out!