Resizing an R15 character

hi everyone this is my first post on here i am trying to achieve making my character bigger and i tried increasing size but it didnt go very well

this is the code i used

local scaleFactor = 2 -- multiplier

local function onCharacterAdded(character)
	for _, part in ipairs(character:GetDescendants()) do
		if part:IsA("BasePart") then
			part.Size = part.Size * scaleFactor
		end
	end
end

local player = game.Players.LocalPlayer
player.CharacterAdded:Connect(onCharacterAdded)

if player.Character then
	onCharacterAdded(player.Character)
end

i searched on the forum about how to make it but i am not gonna lie i didnt understand much about them if anyone know solution can help me please thanks

2 Likes

R15 Characters have scale values inside their humanoid which you can change to scale up the character.

image

Server Script in ServerScriptService:

local ScaleFactor = 2

game:GetService("Players").PlayerAdded:Connect(function(Player)
	Player.CharacterAdded:Connect(function(Character)
		local Humanoid = Character:WaitForChild("Humanoid")
		task.wait(1)
		
		for i,v in pairs(Humanoid:GetChildren()) do 
			if (string.find(v.Name, "Scale")) then 
				v.Value *= ScaleFactor
			end
		end
		
	end)
end)
2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.