local Tool = script.Parent local Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer local Mouse = LocalPlayer:GetMouse() local ShootEvent = Tool:WaitForChild("ShootEvent") Tool.Activated:Connect(function() if Mouse.Hit then ShootEvent:FireServer(Mouse.Hit.Position) end end)