How can I make a Night vision goggle tool?

So I’ve been thinking about adding a Night vision goggle tool in my game, but I’ve got no idea on how to make that

So what I’ve been thinking is that, you hold out the tool and when you click the goggles move into your players head and gives a Night vision affect, and when you would unequip the tool the affect and the goggles would stay on your players head unless you equipped and click again which would remove the goggles and put it into the players hand.

I’ve basically looked everywhere for help and this was my last resort, can anybody please give me feedback and how I should make something like this!

2 Likes

You could change the lighting on a local script when they equip it so the area gets brighter but only for them.

1 Like

How would I do that though, I’m kinda new to coding.

Are you sure you looked everywhere…i searched it up and there is a tutorial that is pretty decent in my opinion

I’m not really looking forward to a key bind because I don’t know how to make mobile support buttons, so that’s why I’m going for a tool that can be pulled out and wore

1 Like

Do you know how to use the tool.activated event? If so use that then just say game.lighting(property) = ?

I’m not too good with events, but I can search around for some help.

But then what would I do to make it go onto the players head

Tool Grip Editor - Roblox

Try this plugin by CloneTrooper1089

I’ve got a plugin like that already, I’m just saying I want it to go onto the players head when you click with the tool in your hand

(animations or tween service) uhhh well its very easy to add a button for the mobiles…

just add the item inside a new accessory and

For the event you can say:

Tool.Activated:Connect(function()
game.Lighting.ClockTime = 12 --You would probably also want to change the ambient property.
end)

I think you would want to change the lighting to like yk brighter when the tool is activated (it means clicked but like it works on pc and mobile)

local lighting = game:GetService("Lighting")
local tool = script.Parent
tool.Equipped:Connect(function()
tool.Activated:Connect(function()
	lighting.Brightness = 5
		lighting.ColorCorrection.Contrast = 1 -- add a colorcorrection to lighting if you don't have it aleady.
	end)
end)