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

How Do I make Individual spawns, Or other Players Temporarily Invis?

Asked by 5 years ago

I wish to make an individual spawn for each player. Or so that the player cannot see the other players. at spawn - what i mean is. I wish to use Camera malipulation so that the player can see his/her character, but nobody elses.

Anyone know how?

0
Just make all the other players invisible locally. LawlR 182 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

Create a normal script in the StarterCharacterScripts folder with the following code:

function checkCharacter(model)
    local children = model:GetChildren()
    model.Head.face.Transparency = 1
    for i = 1,#children do
        if children[i]:IsA("Part") or children[i]:IsA("MeshPart") then
            children[i].Transparency = 1
        end
        if children[i]:IsA("Accessory")then
            children[i].Handle.Transparency = 1
        end
    end
end
wait(2)
if script.Parent:WaitForChild("UpperTorso") or script.Parent:WaitForChild("Torso") then
    checkCharacter(script.Parent)   
end

Then create another script and place it in the StarterCharacterScripts folder with the following code:

function checkCharacter(model)
    local children = model:GetChildren()
    model.Head.face.Transparency = 0
    for i = 1,#children do
        if children[i]:IsA("Part") or children[i]:IsA("MeshPart") then
            if children[i].Name ~= "HumanoidRootPart" then
                children[i].Transparency = 0
            end
        end
        if children[i]:IsA("Accessory")then
            children[i].Handle.Transparency = 0
        end
    end
end
wait(2.5)
if script.Parent:WaitForChild("UpperTorso") or script.Parent:WaitForChild("Torso") then
    checkCharacter(script.Parent)   
end

One problem is that players can still collide with each other. Hope this helps!

Ad

Answer this question