im trying to make a simulator game. i want the user to be able to click anywhere on the screen and get points. the only way I've found to do it is to make the button the whole screen but then you cant look around.
COMMUNITY QUESTION
How to make the clicker for a simulator game without having to press a ui for points to be added?
1 answer
try this
local userinputservice = game:GetService("UserInputService")
userinputservice.InputBegan:Connect(function(input, event)
if event then return false end
if input.UserInputType == Enum.UserInputType.MouseButton1 then
-- your code here
end
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
where does this script go?