Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to make a tool to follow cursor movement

I want to make a object (tool) that will simply follow the cursor, also how could I make the camera follow the cursor?

Any help would be appreciated

Thanks,

Exsius,

1 answer

I believe this would work:

Supposing the tool is welded:

local Target = (Cam.CoordinateFrame * CFrame.new(0, 0, -100)).p
RightArmWeld.C1=((CFrame.new(User.Head.CFrame.p, Target) - User.Head.CFrame.p):inverse()) * (User.Head.CFrame - User.Head.Position)

1 comment

0

thank you, I will try that out!

This discussion is preserved as it was. New answers, comments, and votes are closed.