What do you want to achieve? Keep it simple and clear!
I want to create a script that will have a tool (a flashlight in this case) point at the player’s mouse. I already have a working script that moves a light block, giving a flashlight effect, but I want to make the flashlight move as well.
What is the issue? Include screenshots / videos if possible!
I tried to have the Handle part CFrame.lookAt() but it’s welded to the player, causing the player to glitch out.
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
CFrame.lookAt()
TweenService:Create({CFrame = CFrame.lookAt())
Is there any way to accomplish this? Any help is appreciated!
Then you should tween or CFrame of the tool so it follows the mouse. I think you could also use math.clamp() to clamp the Y-axis so the player doesn’t go into the ground and stuff like that.