There isnt many free models of it. i only found two. i tried one but the script dosent seem the work. the other one works but only inputs clothes. What im trying to achieve is a Model or A Script that can change the players avatar by switching teams (Starter character).
1 Like
I think you can just change the startercharacter and force a respawn when they change teams
StarterCharacterScripts:
local Morpher = require("@self/Morpher")
Morpher.Apply(game:GetService("Players"):GetPlayerFromCharacter(script.Parent))
ModuleScript:
local DEFAULT_TEAM = "Default"
local MorphFolder = game:GetService("ServerStorage").Morphs
local function WeldBetween(Part0: Instance, Part1: Instance)
local WeldConstraint = Instance.new("WeldConstraint")
WeldConstraint.Part0 = Part0
WeldConstraint.Part1 = Part1
WeldConstraint.Parent = Part0
end
local module = {}
function module.Apply(Player: Player)
local Character = Player.Character or error(`Cannot Apply morph while "{Player.UserId}" Character does not exist.`)
-- Get the Player's team or use a fallback value.
local team_name = (Player.Team and Player.Team.Name) or DEFAULT_TEAM
local MorphPrefab = MorphFolder:FindFirstChild(team_name) or error(`"{team_name}" does not exist in Morphs.`)
local MorphModel = MorphPrefab:Clone()
-- Iterate through the morph & weld the children to the character.
for _, LimbModel in MorphModel:GetChildren() do
local modelChildren = LimbModel:GetChildren()
local LimbPart = Character:WaitForChild(LimbModel.Name)
-- Weld the morph piece together.
for index = 2, #modelChildren do
WeldBetween(modelChildren[index - 1], modelChildren[index])
end
-- Position then weld the piece to the character.
LimbModel.PrimaryPart.CFrame = LimbPart.CFrame
WeldBetween(LimbModel.PrimaryPart, LimbPart)
end
MorphModel.Parent = Character
end
return module
This will weld a group of models to the corresponding limbs of your avatar.
It should set you on the right path of how to approach team-specific avatars.
You can also search for similar DevForum posts:
How to make a morph system? - Help and Feedback / Scripting Support - Developer Forum | Roblox
How to make a character morph? - Help and Feedback / Scripting Support - Developer Forum | Roblox
Im only gonna be using R6 not R15. But thanks for the R15 Use