Ok so I have this script that should be making characters transparent when they join the server, however it doesn't seem to be working. I also have no idea how to make the hats transparent along with it. Here's the script I have so far:
local Players = game:GetService("Players")
function onPlayerAdded(player)
game.Players.LocalPlayer.Character.Head.Transparency = 0.7
game.Players.LocalPlayer.Character.Torso.Transparency = 0.7
game.Players.LocalPlayer.Character["RightArm"].Transparency = 0.7
game.Players.LocalPlayer.Character["RightLeg"].Transparency = 0.7
game.Players.LocalPlayer.Character["LeftArm"].Transparency = 0.7
game.Players.LocalPlayer.Character["LeftLeg"].Transparency = 0.7
end
Players.PlayerAdded:connect(onPlayerAdded)
It used to just make my head and torso transparent, but now it doesn't even do that. It also tells me that "RightArm isn't a valid member of model", which I can't understand (unless it's supposed to be "Right Arm" instead of "RightArm". I just can't seem to figure out what i'm doing wrong. I'm still very basic with LUA so any help would be much appreciated.
~MrTurkeys

3 comments
Why not use for i, v in pairs(player.Character:GetChildren()) do if v:IsA("Part") then v.Transparency = 0.8 end
I'll try that now
And yeah it is "Right Arm"