I’m not really good at scripting but here’s what I think: use a ImageLabel and update it’s position based when the player Touches the screen and move it to that position.
Here’s a possible way to do it (I haven’t tested it just yet so if it doesn’t work then you can reply to me saying so):
-- << Mouse Image Label >> --
local mouseCursor = {Reference The Custom Image Label Containing The Mouse}
-- << Services >> --
local userInputService = game:GetService("UserInputService")
-- << Main Event >> --
userInputService.TouchMoved:Connect(function(touch, processed)
if not processed then
mouseCursor.Position = UDim2.new(0, touch.Position.X, 0, touch.Position.Y)
end
end)
No, the script I provided will not put the mouse cursor in the middle if a mobile player is playing in first person. If you want the mouse cursor to be in the middle of the screen if the player is in first person, you can add a condition to check if the player is in first person and set the position of the ImageLabel to be in the middle.