Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make it so a player can throw any object onclick?

Asked by 5 years ago

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

0
You cant get LocalPlayer from server scripts aazkao 787 — 5y
0
So wut do I do? TheBlockBuilder89898 -10 — 5y
0
get the player another way on a server script or use a local script User#23365 30 — 5y
0
go into starterplayerscripts and paste this code into a localscript mad in that folder misiunicholas 50 — 5y
View all comments (4 more)
0
^^^ but just please use a code block next time lol Taureor 0 — 5y
0
you could use body velocity or body force FirezoneGamez 155 — 5y
0
I am trying to use body velocity but I just cant seem to get it :/ TheBlockBuilder89898 -10 — 5y
0
use lookVector for the bodyvelocity User#23365 30 — 5y

Answer this question