I’m making a game and clicking mid-high speed objects is crucial in order for this game to work.
I have however noticed an issue with the ClickDetector which requires me to click hundreds of times on the object before it registers.
The only solution: Use an auto clicker, however this is not good for my players who might be on mobile or not have access to such autoclicker
There isn’t much special other than a script inside it.
Try this! It is a LocalScript in StarterPlayerScripts. The reason is the script needs the player’s mouse, which can only be accessed on the client or in a LocalScript.
local Ball = workspace:WaitForChild("Ball")
Ball.ClickDetector.MouseClick:Connect(function(Player)
local Mouse = Player:GetMouse()
if Mouse.Target.Name == "Ball" then
Ball:Destroy()
end
end)