So it's saying the issue is with "local mouse = player.GetMouse()" but I have no clue how to fix it. Any ideas?
uis = game:GetService("UserInputService")
plr = game.Players.LocalPlayer
local mouse = player:GetMouse()
handle = tool:WaitForChild("Handle")
tool = script.Parent
tool.Activated:Connect(function()
local Part = Instance.new(Part,"workspace")
Part.Name = "Paper Dart"
Part.BrickColor = BrickColor.White()
Part.Size = Vector3.new(1,1,3)
Part.Material = "Plastic"
Part.Shape = "Block"
Part.TopSurface = "smooth"
Part.BottomSurface = "smooth"
Part.CFrame = handle.CFrame * CFrame.new(0,0,-5)
Part.Velocity = handle.CFrame.LookVector *400
if mouse.Target and mouse.Target.Parent : FindFirstChild('Humanoid') then
game.Players.LocalPlayer.Character.Humanoid:TakeDamage(20)
end
end)

2 comments
I just noticed, isn't this weapon going to damage yourself instead of the target? (line 34 is referencing localplayer.Character instead of the target)
fixed