How would i make a tool where the handle points at the mouse position (Hit)? I have no idea how to start the script
Thanks
How would i make a tool where the handle points at the mouse position (Hit)? I have no idea how to start the script
Thanks
This has been answered many times in other posts.
There is a Search button up top you can use to look for terms like βarm aim at mouseβ or similar to find them.
i dont think so little puββββββββββββββppy
maybe theyβre looking for something else? they still should get answered.
mmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
while wait() do
lookpart.CFrame = CFrame.new(lookpart.Position,parttolookat.Position)
end
My reply was an attempt at being helpful.
You asked βHow would i make a tool where the handle points at the mouse position (Hit)? I have no idea how to start the scriptβ which is very vague.
You didnβt state if the tool was to be oriented at the players outstretched hand to the object, or by the arm holding the tool. there are too many answers to deal with in a vague question like this.
I believed if you tried to search the forums (or at least told us youβd already tried) you may have found an answer, or at least a direction to take using someone elseβs ideas.
@bloodbonniekingnoob1 as well, this is the reason I try to help others by reminding them to search the forums for themselves. Itβs like taking your car to a mechanic and saying βIt doesnβt workβ. A mechanic can only help fix your car if you give them good information about the problem. They canβt read your mind.
Hey, I saw that you have already gotten an solution, but If you want to make it smoother, Try using Heartbeat function.
[ Result Script ]
Iβm not very good at doing CFrames, but you can make anything you desire using this.
local RS = game:GetService('RunService')
RS.HeartBeat:Connect(function()
--[ Part.Position = mouse.Hit.Position
end)
-- [ Or if you want to make it to end at anytime
local Test = RS.HeartBeat:Connect(function()
--[ Part.Position = mouse.Hit.Position
end)
--[ At anytime if you want the function to stop, Use Test:Disconnect()
yoββββββββββur mββββββββββββββββotβββββββββββββββββββββher