#Making my pet the same size as others

1 messages · Page 1 of 1 (latest)

amber dawn
#

so i have this script, it works good but i want to spawn the pet the same size and direction as a part which is set as a varible called "PetSpawn"

function spawnPet()
    local petModel, price = getRandomPet()
    local newPet = petModel:Clone()
    newPet.Parent = game.Workspace.GeneratedPartFolder
    newPet:SetAttribute("CashToGive", price)
    
    for _, v in pairs(newPet:GetDescendants()) do
        if v:IsA("BasePart") then
            for _, x in pairs(PetSpawn:GetDescendants()) do
                if x.Name == v.Name then
                    --v.Size = x.Size
                    v.CFrame = x.CFrame
                end
            end
        end
    end
    
    task.wait(3)

    return newPet
end```
uneven stone
amber dawn
#

you see the tiny pet that is there

#

i want all the pets that spawn to be the same size

#

as that one

uneven stone
amber dawn
#

yes

amber dawn
uneven stone
#

also you can just modify the scale of the model in where you keep it.

amber dawn
#

wait that would be way easier

uneven stone
#

So you dont have to do
part.Scale = Vector3.new(927, 2871, 28181)

amber dawn
#

ahh right let me try thanks

#

okay @uneven stone one question

#

is there a way to make the pet not bounce as much?

uneven stone
#

Do you have a variable for any bouncing mechanics you have?

uneven stone
uneven stone
amber dawn
uneven stone
#

no as in manually

#

also roblox is Case sensitive

#

so use Mass not mass

amber dawn
#

well its gray

uneven stone
#

*shucks

#

and make it br passable by the player but not the parts

amber dawn