`game.Players.LocalPlayer:GetMouse() .KeyDown:connect if string.lower (key) == "m" then Instance.new('Hint', Workspace) Hint.Text = "Just a test"
end end)`
Is this something that can properly run? "Sorry ahead of time for asking, I'm trying to learn on mobile!!"
No, that would not work. Let's highlight the reasons:
game.Players.LocalPlayer:GetMouse() .KeyDown:connect if string.lower (key) == "m" then Instance.new('Hint', Workspace) Hint.Text = "Just a test" end end)
From just looking at that code, you can see a few things.
Now, let's fix those problems and clean up your code a little.
game.Players.LocalPlayer:GetMouse() .KeyDown:connect(function(key) if key:lower() == "m" then Instance.new('Hint', Workspace).Text = "Just a test"; end; end);
Sources to learn from: http://wiki.roblox.com/index.php?title=RBXScriptSignal and http://wiki.roblox.com/index.php?title=Variables