Is there any sort of alternative to the Mouse.Move
event, but using UserInputService instead? I’m making a placement system and this is for the preview before the structure gets placed. If I can’t do this with an event then I’ll probably just do something with RunService.RenderStepped
and GetMouseLocation()
. I did check the api reference, but I couldn’t find anything so I’m just checking. Thanks!
3 Likes
The first example for InputObject | Roblox Creator Documentation shows how you can get the input.Position and see whether the mouse has been moved.
userInputService.InputChanged:Connect(function(input, gameprocessed)
if input.UserInputType == Enum.UserInputType.MouseMovement then
print(input.Position)
end
end)
6 Likes
Wow, I literally looked right above that and didn’t see it. Sorry for the trouble.
2 Likes