#how can i make the flashlight follow the camera?

1 messages · Page 1 of 1 (latest)

drowsy narwhal
#

i already have this script, but idk how to make the light follow the camera

local mouse = game.Players.LocalPlayer:GetMouse()

function Light()
local player = game.Players.LocalPlayer
local playerChar = player.Character
local playerLight = playerChar.Head:FindFirstChild("Light")

if playerLight then
    playerLight:Destroy()
else
    local light = Instance.new("SurfaceLight",playerChar:FindFirstChild("Head"))
    light.Name = "Light"
    light.Range = 70
    light.Angle = 99
    light.Shadows = true
    light.Brightness = 1
end

end

mouse.KeyDown:connect(function(key)

key = key:lower()
if key == "f" then
    script.FlashLightSound:Play()
    Light()
end

end)

autumn shadow
#

What I usually do is make a transparent block and weld it to the flashlight model and transparent part has to have Spotlight contain

#

@drowsy narwhal

drowsy narwhal
#

the light is generated on the player's face

autumn shadow
#

Imma see what ways i can do.

autumn shadow
#

Its not really automatic

drowsy narwhal
#

i already did it ._.

autumn shadow
#

Oh alright

drowsy narwhal
#

i just wanna make the light follow the mouse

autumn shadow
#

Well thats the point

#

Ill share you the forum which does that

#

Tell me if it did help

sharp whaleBOT
#

studio** You are now Level 2! **studio

drowsy narwhal
#

ty

#

but uhh

#

again, i don't use a flashlight model

autumn shadow
drowsy narwhal
#

@autumn shadow tysm bro

#

its finally working