Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can you use Mouse hit but without collision?

Asked by
Exsius 162
7 years ago

Hi I'm using mouse hit for my script which works but is there a way to make the position of mouse hit correlate with the skybox and not parts in the game, I think this is possible with rays but I'm sure how to use them for this effect.

0
Do you want to place it top of an object or just near an object? superalp1111 662 — 7y

1 answer

Log in to vote
0
Answered by
RubenKan 3615 Moderation Voter Administrator Community Moderator
7 years ago

Set mouse.TargetFilter to workspace. Thats all there's to it.

local p = game.Players.LocalPlayer
local m = p:GetMouse()
m.TargetFilter = workspace
0
I am not sure if this is what he wanted. superalp1111 662 — 7y
0
Thank you. Exsius 162 — 7y
Ad

Answer this question