I would really like some help on how to do this. So far I have this
local mouse = game.Players.LocalPlayer.character:GetMouse()
mouse.Button1Down:connect(function()
local obj = mouse.Target
(Ill insert throwing stuff once I figure out this issue)
end)
But it says LocalPlayer not found and I don't think it is even right in the first place. I would really appreciate some help. Thanks :3

8 comments
You cant get LocalPlayer from server scripts
So wut do I do?
get the player another way on a server script or use a local script
go into starterplayerscripts and paste this code into a localscript mad in that folder
^^^ but just please use a code block next time lol
you could use body velocity or body force
I am trying to use body velocity but I just cant seem to get it :/
use lookVector for the bodyvelocity