Honestly i have no clue on how to even start on how to make the helmet invisible so any advice would be awesome
Heres the headattachment script if its even useful
local tool = script.Parent
local remote = tool:WaitForChild("RemoteEvent")
local player = game.Players.LocalPlayer
wait()
local character = player.Character
local humanoid = character.Humanoid
local humanoidrootpart = character.HumanoidRootPart
local Torso = character.Head
tool.Activated:Connect(function()
remote:FireServer(humanoidrootpart, Torso)
end)
local tool = script.parent
local head = game.Players.LocalPlayer.Character:FindFirstChild("Head")
game:GetService("RunService").Heartbeat:Connect(function()
if head.LocalTransparencyModifier == 1 then -- if head is invisible means player in firstperson
-- In first person view
for i, v in pairs(tool:GetDescendants())
if v:IsA("BasePart") then
if v.LocalTransparencyModifer == 1 then return end -- wont run again if its already invisible
v.LocalTransparencyModifier = 1 -- makes the descendant invisible only for player
end
end
else
for i, v in pairs(tool:GetDescendants())
if v:IsA("BasePart") then
v.LocalTransparencyModifier = 0 -- makes it visible when out of
end
end
end
end)
You can set the camera minimum zoom distance in starterplayer to something a bit further so that it zooms in to just outside the view of the hat in first person.
Another option is to decrease the players field of view when they are wearing the helmet, done via script in the cameramode.