local ISAC = game.ReplicatedStorage.miniISAC
local char = script.Parent
local players = game:GetService("Players")
local player = players:GetPlayerFromCharacter(char)
player.CharacterAppearanceLoaded:Wait()
local a1 = ISAC:Clone()
local kalp = a1.PrimaryPart
kalp = a1.Kalp
local WELD = Instance.new("Weld")
WELD.Part0 = kalp
WELD.Part1 = char.HumanoidRootPart
a1.PrimaryPart.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(-5,0,-5)
WELD.C0 = char.HumanoidRootPart.CFrame
WELD.C1 = a1.CFrame
a1.Parent = game.Workspace
The script is in StarterCharacterScripts, and it’s not a local script. Now to explain the problem here; all the parts of model including the PrimaryPart are unanchored, yet the only part that appears on players’ back is the PrimaryPart. How can I solve this problem?
Are the other parts of the model welded to the PrimaryPart? I also recommend using WeldConstraints for this instead of normal welds, unless you need to edit the offset later, because weld constraints are more simple to use.
It’s fairly simple, but requires lots of patience. Welding becomes a bit problematic and to my knowledge there isnt a plugin which allows you to weld with ease. This is my code:
local Players = game:GetService("Players")
local Model = game.ReplicatedStorage:WaitForChild("WeldModel")
local char = script.Parent
local plr = Players:GetPlayerFromCharacter(char)
local function WeldModel(plr,char)
plr.CharacterAppearanceLoaded:Wait()
local WeldModel = game.ReplicatedStorage:WaitForChild("WeldModel"):Clone()
local Weld = Instance.new("Weld")
local Part0 = WeldModel.PrimaryPart
local Part1 = char.Torso
Weld.Part0 = Part0
Weld.Part1 = Part1
Weld.C0 = Part0.CFrame * CFrame.Angles(math.rad(90),math.rad(-180) ,math.rad(90)) * CFrame.new(-0.5,-0.5,-0.5)
Weld.Parent = WeldModel
WeldModel.Parent = char
end
WeldModel(plr,char)
If I am not mistaken, your codes problem is around here.
The model is propably somewhere you cant really see, or it has already fallen of the map. To not run into these problems in the future, try welding first then, changing C0 and C1. Note: you will have to do lots of play testing if you want to get things right. This also may help you better understanding how welding works.