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

0

You cant get LocalPlayer from server scripts

0

So wut do I do?

0

get the player another way on a server script or use a local script

0

go into starterplayerscripts and paste this code into a localscript mad in that folder

0

^^^ but just please use a code block next time lol

0

you could use body velocity or body force

0

I am trying to use body velocity but I just cant seem to get it :/

0

use lookVector for the bodyvelocity