Hello! I made a touchtapinworld event. How do I get the lookvector of the players tap? Like mouse.hit.Lookvector but mobile.
1 Like
You need to explain in more detail everything you just said.
1 Like
how do I get the lookvector of the players tap instead of using mouse.hit.lookvector. This is when using touchtapinworld. Here is my code do you know how to fix it?
uis.TouchTapInWorld:Connect(function(pos, proccesed)
if not proccesed and equiped == true then
if db == false then
db = true
local vector = mouse.Hit.LookVector
local speed = script.Parent.Speed.Value
local Reload = script.Parent.ReloadTime.Value
anim:Play()
script.Parent.throwsfx:Play()
wait(0.3)
script.Parent.Handle.Transparency = 1
script.Parent.Throw:FireServer(vector)
wait(Reload-0.3)
script.Parent.Handle.Transparency = 0
db = false
end
end
end)
1 Like
like change vector to the players tap
1 Like