I'm trying to make this script change the player's proportions depending on their group rank, the proportions part works correctly, but if there's no wait then the script doesn't fire correctly, the script doesn't fire after the player has died, and I want it to get every player it can.
game.Players.PlayerAdded:connect(function(Player)
if Player:GetRankInGroup(4394297) <=2 then
function playersize(player)
local SizeVale = .87
local humanoid = player.Character.Humanoid
if humanoid then
if humanoid:FindFirstChild("BodyHeightScale") then
humanoid.BodyHeightScale.Value = SizeVale
end
if humanoid:FindFirstChild("BodyWidthScale") then
humanoid.BodyWidthScale.Value = SizeVale
end
if humanoid:FindFirstChild("BodyDepthScale") then
humanoid.BodyDepthScale.Value = SizeVale
end
if humanoid:FindFirstChild("HeadScale") then
humanoid.HeadScale.Value = SizeVale
end
end
end
wait(3) --I want there to be no wait, but if there isn't then the script won't fire correctly
playersize(game.Players.CaptainAlien132)
--Can't figure out how to get every player
--I don't go back to proportions after I reset/die
else
end
end)

2 comments
I don't even know where to start with this one boys.
my eye balls have disintegrated