I'm trying to make thermal vision binoculars, and, i'm trying to make it so when the tool is equipped, there is a gui on every person's body within a certain distance. I've been trying to insert the billboard gui to a certain bodypart, but it doesn't work. Here's my code, any help is appreciated.
local Tool = script.Parent
local player = game.Players.LocalPlayer
local thermal = Instance.new("ColorCorrectionEffect", game.Lighting)
local tracker = Instance.new("BillboardGui",player.Character.Torso)
Tool.Equipped:Connect(function(mouse)
--Color correction
thermal.Brightness = 0.3
thermal.Contrast = 1
thermal.TintColor = Color3.fromRGB(255,0,0)
--Tracker
end)
Tool.Unequipped:Connect(function(mouse)
thermal.Brightness = 0
thermal.Contrast = 0
thermal.TintColor = Color3.fromRGB(255,255,255)
end)
