Issue with getting the mouse's position

K, thanks I will keep that in mind.

Not sure, this worked for me though.

local players = game:GetService("Players")
local player = players.LocalPlayer
local mouse = player:GetMouse()

local tool = script.Parent
local onFired = tool:WaitForChild("OnFired")

tool.Activated:Connect(function()
	onFired:FireServer(mouse.Hit.Position)
end)
local tool = script.Parent
local onFired = tool.OnFired

onFired.OnServerEvent:Connect(function(player, mousePosition)
	print(mousePosition)
end)
2 Likes