How to add light on a viewmodel (flashlight)

how could i attach light on this?
weld or…? and if so what type of weld

1 Like

The way I’d do it is create a spotlight inside the flashlight and position weld it to it

1 Like

i tried adding a spotlight on the flashlight but it stays like in the middle of it, not specifically where it comes light

1 Like

In that case a simple script would do the trick

In a function bound to renderstepped I’d grab the camera’s CFrame and just set the flashlight part’s position to the flashlight’s CFrame.

E.G:

local Flashlight = <insertviewmodelflashlighthere>
local FlashlightPart = <insertparthere>

RunService.RenderStepped:Connect(function()
   FlashlightPart.CFrame = Flashlight.CFrame
end)

You might wanna offset the flashlight CFrame if it’s not correct but that can be done simply by multiplying the flashlight cframe by an offset
E.G:

FlashlightPart.CFrame = Flashlight.CFrame * CFrame.new(amnt,amnt,amnt)
1 Like