Scripting a player's Camera

Here’s a script that will make a character invisible instead of putting it into ServerStorage, just in case you still wanted it.

-- Invisible script
for _,v in pairs(Character:GetChildren()) do 
    if v:IsA("BasePart") then 
        v.Transparency = 1 
    elseif v:IsA("Accessory") or v:IsA("Hat") then 
        v.Parent = nil
    end 
end 

local Decal = Character.Head:FindFirstChildOfClass("Decal")
if Decal then Decal.Parent = nil end
1 Like

Thanks, it also works! :slight_smile:

Hey, I just now saw when I tested on normal roblox client the camera broke.

This is why I hate testing in roblox studio. Game link to see what happens instead…

Maybe you aren’t waiting for the camera to load in before trying to move it. Put a wait(1) before moving the camera and see if it changes anything.

Check the roblox client output for errors and try to correct them if there are any. You can open the output using F9 or fn + F9 depending on your keyboard.


It says the Part is not a valid member of Folder

But in studio that error does not occur.

Aye your idea of a wait fixed it!!! :slight_smile: Thanks!

1 Like