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

How to know if the position of the mouse is the sky's empty void?

That's all there is, I'm just typing so I can post this question

1 answer

✓ Accepted answer

Really simple problem; If PlayerMouse.Target is nil then it's pointing at nothing; which is sky/void.

local player = game:GetService("Players").LocalPlayer
local mouse = player:GetMouse()

while wait() do
	if mouse.Target == nil then
		--if mouse is pointing to nothing
	else
		--if mouse is pointing to something
	end
end
  • You must put this in LocalScript to make it work.

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