hey guys. I created this script but mouse.hit.lookvector is a bit janky on mobile. Is there a way i can get the lookvector of touchtapinworld? Here is my script:
local uis = game:GetService("UserInputService")
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)