local Players = game:GetService("Players")
local Character = script.Parent.Parent
local Player = Players:GetPlayerFromCharacter(script.Parent.Parent)
local Middle = script.Parent:WaitForChild("Middle")
local LeftArm = Character:WaitForChild("Left Arm")
for i,v in pairs(script.Parent.Parent:WaitForChild("VariantShield"):GetChildren()) do
if v:IsA("Part") or v:IsA("BasePart") or v:IsA("UnionOperation") or v:IsA("MeshPart") then
if v.Name ~= "Middle" then
local Model = script.Parent.Parent:WaitForChild("VariantShield")
local Weld = Instance.new("Weld", Model:WaitForChild("Middle"))
Weld.C0 = Model:WaitForChild("Middle").CFrame:inverse() * v.CFrame:inverse()
Weld.Part0 = Model:WaitForChild("Middle")
Weld.Part1 = v
end
end
end
local Weld = Instance.new("Weld", LeftArm)
Weld.C0 = LeftArm.CFrame:inverse() * Middle.CFrame:inverse()
Weld.Part0 = LeftArm
Weld.Part1 = Middle
btw the script i made but idk how to use welds really. (ITS GLITCHY)
Wish i could help but i’m not really good in scripting. still heres a try
This one if the model is a group ( make a primary part )
If its not a group then just put local part = part location.
local player = game.Players.LocalPlayer
local character = player.CharacterAdded:wait() or workspace[player.Name]
spawn(function()
local part = grouplocation.Primarypart – CHANGE THIS OOF
local weld = Instance.new(“Weld”, part)
weld.Part0 = part
weld.Part1 = character[“Left Arm”]
weld.C0 = CFrame.new(0, 0, 0) *CFrame.new(0, 0, 0) – Position your Part
end)
Idk if this will work or not but at least i tried xP
did the weld worked but the shield is in air or far away from player? if thats the case then u gotta play a little bit with weld.C0 = CFrame.new(0, 0, 0) *CFrame.new(0, 0, 0)
Please edit your posts when you have new information to provide rather than adding a new post, it comes off as spammy (bumping).
I’d also like to remind you that Scripting Support isn’t a place to request for free code or to have others do what you can’t. Please see the category guidelines for more information. Throwing your file into a thread and asking for help without any specification of the problem doesn’t help anyone point you in the right direction.