First person visibility (simple!)


  • i've seen many first person scripts that just weld parts to the character, which is just time consuming and pointless. then checking for the body colors, ugh.

    local rs = game:GetService("RunService")
    local plr = game:GetService("Players").LocalPlayer
    local char = plr.CharacterAdded:Wait()
    
    rs.RenderStepped:Connect(function(step)
        for _, v in pairs(char:GetChildren()) do 
        if v:IsA("BasePart") and v.Name ~= "Head" then
                v.LocalTransparencyModifier = 0
            end
        end
    end)
    
    

    local transparency modifier is a localscript only property.
    surprise, no creating parts, welding, or checking for any colors!


  • @incapaz There is no need to do this per RenderStepped ? I would do this once then add an event such as child added to deal with any new parts.


  • I remember this post back when the old forums were still around! ^^ Tyvm for bringing it back!

Log in to reply
 

Looks like your connection to Scripting Helpers was lost, please wait while we try to reconnect.