I have this script, and basically, whenever I join, I am the size set in the script. The problem is, I want to know how I can make it work for any player and not just me, and second, I want to make it search for the player's team, and if they're on a certain team, they get sized to that. As of right now, I tried doing game.Teams:FindFirstChild("Name") but that doesn't work for me
Any help is greatly appreciated.
while true do
wait(.1)
if game.Players.Name then -- how do I get this to search for anyone and not me?
local character = game.Players.Name.Character
if character then
local humanoid = character:FindFirstChild("Humanoid")
if humanoid then
if humanoid:FindFirstChild("BodyHeightScale") then
humanoid.BodyHeightScale.Value = 1.12
end
if humanoid:FindFirstChild("BodyWidthScale") then
humanoid.BodyWidthScale.Value = 1.12
end
if humanoid:FindFirstChild("BodyDepthScale") then
humanoid.BodyDepthScale.Value = 1.12
end
if humanoid:FindFirstChild("HeadScale") then
humanoid.BodyDepthScale.Value = 1.12
end
end
end
end
end

3 comments
if player.Team == (team) then it's really easy
"how do I get this to search for anyone and not me?" I can help, but first i need to understand do you mean search for all players on the team except your username or except the local player?
The local player. For instance, when they join, if they're on that team then they're that size. Right now, it only works for me.