I need start function when player clicked one of this numbers (1, 2, 3) you can use anything, mouse or UIS. Just this script should work.
And yes if you clicked 1 - 3 there's should be any print
You can make LocalScript and put in into StarterPlayerScripts:
local mouse = game.Players.LocalPlayer:GetMouse() mouse.KeyDown:Connect(function(key) key = key:lower() if key == "1" then print(game.Players.LocalPlayer.Name .. " pressed 1!") end end)
You can change key == "to any key you want to".
You can make LocalScript and put in into StarterPlayerScripts:
local mouse = game.Players.LocalPlayer:GetMouse() mouse.KeyDown:Connect(function(key) key = key:lower() if key == "1" then print(game.Players.LocalPlayer.Name .. " pressed 1!") end end)