Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to make the clicker for a simulator game without having to press a ui for points to be added?

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.

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)

1 comment

0

where does this script go?

This discussion is preserved as it was. New answers, comments, and votes are closed.