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.