I want to make a weapon holding system, using ik, the server script does allat, its just that mouse.hit is the furthest from accurate, i tried using raycasts and got the same result, any way to fix this
--local script
script.Parent.Parent.Equipped:Connect(function(mouse: Mouse)
UIS.InputBegan:Connect(function(input, processed)
if input.UserInputType == Enum.UserInputType.MouseMovement then
script.Parent.MouseEvent:FireServer(player:GetMouse().Hit.Position)
end
end)
UIS.InputChanged:Connect(function(input, processed)
if input.UserInputType == Enum.UserInputType.MouseMovement then
script.Parent.MouseEvent:FireServer(player:GetMouse().Hit.Position)
end
end)
end)
Also, whys the gun always pointing down?