So I’m making a game where you can turn into multiple states of matter, and I’m making a kind of jelly matter the player can shapeshift into.
Now I’m not expecting full scripts here, but I just want an idea of how I could do this.
1 Like
Assuming you’re using R15, there are number values as children of the humanoid that allow you to do this.
Oh, actually I’m using R6. Sorry for not mentioning this.
It’s a bit harder to scale R6 characters but you can do something similar to the following.
local players = game:GetService("Players")
local characterScale = 1.25
local function onPlayerAdded(player)
local function onCharacterAdded(character)
if not player:HasAppearanceLoaded() then
player.CharacterAppearanceLoaded:Wait()
end
local humanoid = character.Humanoid
humanoid.HipHeight *= characterScale
for _, child in ipairs(character:GetChildren()) do
if child:IsA("BasePart") then
child.Size = Vector3.new(child.Size.X, child.Size.Y * characterScale, child.Size.Z)
if child.Name == "Head" then
child.Mesh.Scale = Vector3.new(child.Mesh.Scale.X, child.Mesh.Scale.Y * characterScale, child.Mesh.Scale.Z)
end
end
end
end
player.CharacterAdded:Connect(onCharacterAdded)
end
players.PlayerAdded:Connect(onPlayerAdded)
This would increase the character’s limb’s heights by 25%.
3 Likes