Make this flashlight more Realistic

What do you want to achieve? Keep it simple and clear!
I simply want this flashlight to have a more realistic appearance. How can I add a flashlight tool in my hand? the flashlight performs similarly to what the video did.

  1. What is the issue? Include screenshots / videos if possible!
    Actually, I don’t think there is a problem. I simply lack the necessary skills. I tried adding a flashlight tool, but I want it to be more stable because it is swaying.

  2. What solutions have you tried so far?
    Everything actually. If there is no solution, I will stick with what I now have.

Here’s the flashlight I got

This is what I mean by Flashlight In Hand

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.


Could you please provide the script for the flashlight? We cannot debug it or make improvements upon it without being able to see it.

1 Like

Please fix the formatting of the code.

Your code here
Then you close it with the ```, but without the lua part.
1 Like

Put the flashlight in the player’s Camera, then use the same code that you used in the camera swaying for the flashlight.


How exactly can I put the tool in the Player’s Camera? Can you give me a sample code

1 Like

Viewmodel Script + Sway
Put in StarterCharacterScripts

local player = game.Players.LocalPlayer
local char = player.Character
local cam = workspace.CurrentCamera
local viewmodel = game.ReplicatedStorage:WaitForChild("viewmodel"):Clone() or game.ReplicatedStorage.viewmodel:Clone() -- just incase it's already loaded
local run = game:GetService("RunService")
local CameraCF =
local swayCF =
local SwayX = 2
local SwayY = 2
	local rotation = workspace.CurrentCamera.CFrame:toObjectSpace(CameraCF)
	local x,y,z = rotation:ToOrientation()
	swayCF = swayCF:Lerp(*SwayX,math.sin(x)*SwayY,0), .2)
	CameraCF = cam.CFrame
	viewmodel:SetPrimaryPartCFrame(cam.CFrame *,-1,0)*swayCF)

viewmodel.Parent = cam


(Sorry I wasn’t able to explain it, im not very good with explaining)


Thanks dude! you really helped a ton :slight_smile:

No Problem! Glad I could help!