the short code is for the local script and the long one is for the server script
local mouse = plr:GetMouse()
local tool = script.Parent
local remote = game:GetService("ReplicatedStorage").ShotRem
tool.Activated:Connect(function()
local target = mouse.Hit.Position
remote:FireServer(target)
end) ```