Issue with my moph sizing system

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I want it so that when the morph grows big, it will stay on the grown in not push my character off the map

  2. What is the issue? Include screenshots / videos if possible!
    On my morph sizing system, when my morph grows too big while eating the balls, it starts glitching in flying off the grown in pushing me off the map. hers the screenshop of an example of it doing it

  3. What solutions have you tried so far? Did you look for solutions on the Creator Hub?
    i tried the body force method to see if that would fix it, but it didn’t
    After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

hers my script

local character = script.Parent
local humanoidRoot = character:WaitForChild("HumanoidRootPart")
local morphGui = character:WaitForChild("Union"):WaitForChild("BillboardGui")
local textLabel = morphGui:WaitForChild("size")
local usernameLabel  = morphGui:WaitForChild("username")
local placeLabel = morphGui:WaitForChild("placemarks")
local humanoid = character:WaitForChild("Humanoid")

local player = game.Players:GetPlayerFromCharacter(character)

local eatenPlayers = {}

local eatSound = Instance.new("Sound")
eatSound.Name = "EatSound"
eatSound.SoundId = "rbxassetid://6823523283"
eatSound.Volume = 1
eatSound.Parent = humanoidRoot

local eatCount = player:FindFirstChild("EatCount")
if not eatCount then
	eatCount = Instance.new("IntValue")
	eatCount.Name = "EatCount"
	eatCount.Value = 0
	eatCount.Parent = player
end


local function updatePlacements()
	local playersData = {}
	for _, plr in ipairs(game.Players:GetPlayers()) do
		if plr and plr:FindFirstChild("EatCount") then
			table.insert(playersData, {
				Player = plr,
				Count = plr.EatCount.Value
			})
		end
	end

	table.sort(playersData, function(a, b)
		return a.Count > b.Count
	end)

	for i, data in ipairs(playersData) do
		if data.Player.Character then
			local char = data.Player.Character
			local union = char:FindFirstChild("Union")
			if union and union:FindFirstChild("BillboardGui") then
				local billboard = union:FindFirstChild("BillboardGui")
				local placeText = billboard:FindFirstChild("placemarks")
				if placeText then
					placeText.Text = tostring(i)
				end
			end
		end
	end
end


local function updateGui()
	textLabel.Text = tostring(eatCount.Value)
	if usernameLabel and player then
		usernameLabel.Text = player.DisplayName
	end
	updatePlacements()
end

updateGui()

local function growMorph()
	local growAmount = 0.05
	local currentScale = character:GetScale()
	local newScale = currentScale * (1 + growAmount)

	local growDifference = (newScale - currentScale)
	
	character:ScaleTo(newScale)
	humanoid.WalkSpeed = 16
end

local function regenerateBall(originalBall)
	task.delay(3, function()
		if workspace:FindFirstChild("balls") then
			local newBall = Instance.new("Part")
			newBall.Name = originalBall.Name
			newBall.Shape = Enum.PartType.Ball
			newBall.Size = originalBall.Size
			newBall.Position = originalBall.Position
			newBall.Color = originalBall.Color
			newBall.Anchored = originalBall.Anchored
			newBall.CanCollide = originalBall.CanCollide
			newBall.Parent = workspace:WaitForChild("balls")

			local touched = false
			newBall.Touched:Connect(function(hit)
				if not touched and hit.Parent == character then
					touched = true
					eatCount.Value += 1
					updateGui()
					growMorph()

					if eatSound then
						eatSound:Play()
					end
					newBall:Destroy()
					regenerateBall(originalBall)
				end
			end)
		end
	end)
end

for _, ball in ipairs(workspace:WaitForChild("balls"):GetChildren()) do
	if ball:IsA("Part") then
		local touched = false
		ball.Touched:Connect(function(hit)
			if not touched and hit.Parent == character then
				touched = true
				eatCount.Value += 1
				updateGui()
				growMorph()

				if eatSound then
					eatSound:Play()
				end
				ball:Destroy()
				regenerateBall(ball)
			end
		end)
	end
end

humanoidRoot.Touched:Connect(function(hit)
	local otherChar = hit.Parent
	if otherChar and otherChar ~= character and otherChar:FindFirstChild("Humanoid") then
		local otherPlayer = game.Players:GetPlayerFromCharacter(otherChar)
		if otherPlayer and otherPlayer:FindFirstChild("EatCount") then
			if eatenPlayers[otherPlayer.UserId] then return end
			eatenPlayers[otherPlayer.UserId] = true

			local otherCount = otherPlayer.EatCount.Value
			if eatCount.Value > otherCount then
				eatCount.Value += otherCount
				updateGui()
				growMorph()

				if eatSound then eatSound:Play() end
				otherChar:FindFirstChild("Humanoid"):TakeDamage(1000)
			end
		end
	end
end)


eatCount.Changed:Connect(updatePlacements)

Set the CanCollide property to false

i think its the torso thats causen it because when I set the Torso CanCollide to false with everything that has no CanCollide my morph falls into the ground

Wait, so what exactly are you trying to achieve? You have a morph that you are scaling up but it’s pushing other objects out of the map? I’m afraid that’s inevitable unless you

  1. Make the map bigger
  2. Anchor the morph and turn off collisions for all the BaseParts in it
  3. Scale “accessories” - Parts or MeshParts that aren’t part of the rig itself but are just welded on. This way you can disable collisions on those without worrying about the rig breaking.