How can I get the position of were the player clicked there thumb on the screen mobile
1 Like
You can use the mouse on mobile devices. Something like this:
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
mouse.Button1Down:Connect(function()
print(mouse.hit.p) --mouse.hit.p is the position
end)
See this for more information: How can I get the mouse position in 3D space without using the Mouse object?
2 Likes
I just found that a few days ago:
https://create.roblox.com/docs/reference/engine/classes/UserInputService#TouchTapInWorld
There is a great example where they create a part where the player touches the screen,
Would it be possible to get this as a udim2?
Ummm:
I know it’s not best practices to make multiple posts about a topic, but this post is a hour old I didn’t think I would get a response
You can just say bump and it will pop up on the front page.
1 Like