This should be the last script, guys. Unfortunately, this script is supposed to make people under rank 237 smaller than people above (I know rank is set to 255 but that's for testing purposes) and it doesn't work. I used prints for debugging but it still didn't even print the test inside of the main function!

local group = 3189978
local min = 0 --Maybe change
local max = 255

game.Players.PlayerAdded:Connect(function(player)
	local h = player.Parent:findFirstChild("Humanoid")
	local p = game.Players:GetPlayerFromCharacter(player.Parent)
	if p then
		if p:GetRankInGroup(group) >= min and p:GetRankInGroup(group) <= max then
			player.CharacterAdded:Connect(function(Character)
				print "hello"
				local Size = 0.75
				local Humanoid = Character.Humanoid
				Humanoid.HeadScale.Value = Size
				Humanoid.BodyHeightScale.Value = Size
				Humanoid.BodyWidthScale.Value = Size
				Humanoid.BodyDepthScale.Value = Size
			end)
		else
			print"test"
		end
	end
end)

What's going on here?

2 comments

1

uhhh "game.Players:GetPlayerFromCharacter(player.Parent)"!??!

0

the script worked outside of the function so idk what the problem is