I'm trying to make a game where you can throw a shuriken at a player then pick the star up again. I looked at the Roblox Wiki for BodyForce BodyPosition etc etc. I tried to test my star in the game but it didn't work. Here's my code:
local tool = script.Parent
local UserInputService = game:GetService("UserInputService")
local MousePressed = UserInputService/"IsMouseButtonPressed"
local LocalPlayer = game:GetService("Players")
local MousePosition = LocalPlayer:GetMouse("MouseHit")
BodyForce = 10
BodyPositionPIP = 10
BodyPositionDID = 10
BodyForceMaxForce = 10
if MousePressed then
tool.BodyPosition = MousePosition
end
I know that it should be more complicated than this, so a little nudge would help.

6 comments
check the console log and it will show you the script errors :/
What I mean is how can I fix the script.
Check the console. Seriously.
Use the console to find script errors, we can't just tell what is wrong
If I had to guess, you're indexing tool for bodyposition, which probably isnt a valid member of tool.
It says "Argument 1 missing or nil"???????