local part = script.Parent
local clickDetector = part.ClickDetector
local S_apron = game.ReplicatedStorage.S_apron
clickDetector.MouseClick:Connect(function(player)
local character = player.Character
local humanoid = character.Humanoid
local torso = character:FindFirstChild("UpperTorso") or character:FindFirstChild("Torso")
if humanoid.Health > 0 and not character:FindFirstChild(S_apron.Name) then
local S_apron = S_apron:Clone()
S_apron.Parent = character
S_apron.PrimaryPart.CFrame = torso.CFrame
local newWeld = Instance.new("WeldConstraint")
newWeld.Part0 = torso
newWeld.Part1 = S_apron.PrimaryPart
newWeld.Parent = S_apron
humanoid.MaxHealth += 50
humanoid.Health += 50
end
end)
so i tried to do an armor with a click block as you can see but it falls down to the void yall know how to fix this?