hey, how do I forcefully set a part to visible in first person?
I've already tried this script but it doesn't work
setPartsVisible.OnClientEvent:Connect(function()
local rChar = plr.Character or plr.CharacterAdded:Wait()
repeat task.wait() until rChar:FindFirstChildWhichIsA("BasePart")
task.wait(0.5)
for _, part : BasePart in rChar:GetChildren() do
if part.Name:find("Tenticle") then
part.LocalTransparencyModifier = 0
part.Transparency = 0
part.CastShadow = true
part.CanQuery = true
end
end
end)
I also tried overriding roblox's default camera module to not account for the part that I want and it also doesn't work
local camScript = plr.PlayerScripts:WaitForChild("PlayerModule"):WaitForChild("CameraModule")
camScript:Destroy()
local customCamScript = script:WaitForChild("CameraModule"):Clone()
customCamScript.Parent = plr.PlayerScripts.PlayerModule
function TransparencyController:IsValidPartToModify(part: BasePart)
if FFlagUserHideCharacterParticlesInFirstPerson then
for _, className in HIDE_IN_FIRST_PERSON_CLASSES do
if part:IsA(className) and not part.Name:find("Tenticle") then
return not self:HasToolAncestor(part)
end
end
else
if part:IsA('BasePart') or part:IsA('Decal') then
return not self:HasToolAncestor(part)
end
end
return false
end
Tenticle is not a typo btw