Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Trying to make it to when a player joins there Transparent?

Asked by 10 years ago
--Made By iThunderStrike24

game.Workspace.Player.Humanoid.Spawned.Transparency = 0.5

1 answer

Log in to vote
0
Answered by
RedCombee 585 Moderation Voter
10 years ago
game.Players.PlayerAdded:connect(function(player) -- get the player when he/she joins the game
    player.CharacterAdded:connect(function(character) -- get the character when it spawns
        for i,v in pairs(character:GetChildren()) do -- making a table out of the character's children
            if v:IsA("Part") then -- checks for each part in the character
                v.Transparency = 0.5 -- final step
            end
        end
    end)
end)
Ad

Answer this question