I have recently been developing a horror game and would like everything to look somewhat realistic. I have been working on a “F” for Flashlight feature, but I can’t seem to figure out how to make it look realistic.
Right now, I just create a new spotlight inside the character’s head when they press the “F” key, but it looks like this:
Do you guys think this looks good, or should I change it? In hallways it will illuminate the floor and walls, but I sort of want it to look like a beam of light.
Is there a way to make it so that whenever I press F, it will make a realistic beam as shown in that post? Keep in mind that I don’t want the Flashlight to be a tool, I just want it to be a more realistic shape than my photo shows.
After changing the lighting, it makes things look better, but the flashlight isn’t in the shape that I want it to be. As you can see in hallways like the one shown above, it doesn’t light the area up that well, and I was looking for a way to make the flashlight a circle-like beam.
local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local UserInputService = game:GetService("UserInputService")
local Enabled = false
local Light
UserInputService.InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode.F then
if not Enabled then
Enabled = true
Light = Instance.new("SpotLight", Character.Head)
Light.Brightness = 4
Light.Range = 16
else
Light:Destroy()
Enabled = false
end
end
end)
This is my script, but no matter how I modify the spotlight, it won’t make a circular beam like this one
Is there a different method I could make a realistic beam sort of look?
Have you thought about F to equip tool? I understand what you are wanting to do but the rings seem to be done by shadows in the tool, and I’m not sure how a beam coming from the players head would look. Sorry but that’s all I can think of as of right now. If I can think of something else I’ll let you know.