Morning Guys,
I want to update my Click Button so that when you click anywhere on the Screen that you get coins and not just by clicking a button.
But when i make the Button on the SIze of the Screen i am not able to look around with my mouse anymore and i don’t know how to fix this so can someone pls help?
local userInputService = game:GetService("UserInputService")
userInputService.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
print("Screen touched with Hand (Mobile/Laptop) or clicked with Mouse.")
end
end)
It doesnt work, do you know what i mean?
What does not work exactly?
So when i enter the button with the Mouse i cannot look around in third Person
He is telling you to not use a button to detect clicks and delete it. Instead use the script he wrote to detect clicks.
1 Like
Yeah, where did i say insert a Button? Remove the Button and use the Script what i gave u.
1 Like
So where i put the script inside? On Workspace?
LocalScript inside the Client/StarterGui,etc…