Hello!
I’m trying to make a part-based flashlight mechanic that’s handled fully on the server-side, but i’m having some issues with CFraming it.
Here’s the effect i want to achieve:
and here’s what it ends up looking like:
this is because i have 2 circle parts welded to the inside of the flashlight, but for some reason these don’t stick to the actual part? why is this?
script:
objectsFolder.Flashlights:FindFirstChild(player.UserId.. "Flashlight").CFrame = data * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0))
hierarchy:
any help is greatly appreciated! If you need more info, don’t hesitate to ask!