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 = 30
light.Angle = 50
light.Shadows = true
light.Brightness = 2
end
end
mouse.KeyDown:connect(function(key)
key = key:lower()
if key == "f" then
Light()
end
end)
this is a local script which i found off a tutorial (which i looked for these) but couldn't find the proper one also this is a keybind script not a tool so no tools i wanna make it so the whole server can see your flashlight when you use it need help

2 comments
I believe it's because the tool I would just simply get a flashlight from the tool box
Its because its in a local script.