I’m currently trying to create a hazmat suit helmet, currently welding the two parts of the helmet together with a WeldConstraint and then using a Weld to join the MeshPart and head togther. This is causing the helmet’s orientation to go off, why? and how can I solve this??
I have already tried to edit the orentation and the CFrame, both did not fix the orientation.
Here is my code, the clothing and equipping of the helmet works correctly. Its just the orentation of the helmet.
See code
local Biohazard = {
["Top"] = nil, -- I do actually supply a VALID ID and it does work, i just removed them so they cant be used.
["Bottom"] = nil, -- I do actually supply a VALID ID and it does work, i just removed them so they cant be used.
["Helmet"] = script.BiohazardHelmet
}
local Radiation = {
["Top"] = nil, -- I do actually supply a VALID ID and it does work, i just removed them so they cant be used.
["Bottom"] = nil, -- I do actually supply a VALID ID and it does work, i just removed them so they cant be used.
["Helmet"] = script.RadiationHelmet
}
-- TEMPORARY SYSTEM
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
if character:FindFirstChildOfClass("Shirt") then
local Shirt = character:FindFirstChildOfClass("Shirt")
Shirt.ShirtTemplate = Biohazard.Top
else
local Shirt = Instance.new("Shirt")
Shirt.Parent = character
Shirt.ShirtTemplate = Biohazard.Top
end
if character:FindFirstChildOfClass("Pants") then
local Pants = character:FindFirstChildOfClass("Pants")
Pants.PantsTemplate = Biohazard.Bottom
else
local Pants = Instance.new("Pants")
Pants.Parent = character
Pants.PantsTemplate = Biohazard.Bottom
end
local Helmet = Biohazard.Helmet:Clone()
Helmet.Parent = character.Head
local Weld = Instance.new("Weld")
Weld.Parent = Helmet.MeshPart
Weld.Part0 = character.Head
Weld.Part1 = Helmet.MeshPart
for _,inst in pairs(workspace:WaitForChild(player.Name):GetChildren()) do
if inst:IsA("Accessory") then
inst:Destroy()
end
end
print("Suit added") -- Does print
end)
end)
Update: problem sovled - don’t really know why it was happening lol.