Having trouble cloning

the issue im having is, I have a remote event inside of a local script that should fire if a player presses a certain key. In the server i cloned a part and parented to the players character. The part clones but the issue im having is that it only clones once. So something like this occurs

im not sure whats causing the issue, and i checked my code and there are no errors. I even compared it to another script that uses the same principals (and that script works perfectly) and there are no differences. So im completely lost

Heres the inportant part of the code


event.OnServerEvent:Connect(function(plr)
	local lArm = armL:Clone()
	local rArm = armR:Clone()
	if bool == false then
		bool = true
		-------------------------------------
		--Variables and instance configuration

		local char = plr.Character or plr.CharacterAdded:Wait()
		
		
		local weld1 = Instance.new("Weld")
		local weld2 = Instance.new("Weld")
		local cLeft = char:WaitForChild("Left Arm")
		
		local cRight = char:WaitForChild("Right Arm")
		local value = Instance.new("BoolValue")		
		local rootPart = char:WaitForChild("HumanoidRootPart")
		value.Name = "More Damage"
		-------------------
		lArm.Parent = char
		rArm.Parent = char
		
		weld1.Parent = char
		weld2.Parent = char
		-------------------
		weld1.Part0 = cLeft
		weld1.Part1 = lArm
		
		weld2.Part0 = cRight
		weld2.Part1 = rArm
		-------------------------------------

The script i compared it to:

local KEvent = game.ReplicatedStorage.Events.KEvents:WaitForChild("KEvent")

KEvent.OnServerEvent:Connect(function(plr)
	local char = plr.Character or plr.CharacterAdded:Wait()
	local soul = game.Lighting["Game Assets"]:WaitForChild("Souls"):WaitForChild("Kindness"):Clone()
	local motor6D = Instance.new("Motor6D")
	
	local torso = char:WaitForChild("Torso")
	soul.Parent = char
	motor6D.Parent = torso
	motor6D.Part0 = torso
	motor6D.Part1 = soul
	
	motor6D.C1 = CFrame.new(motor6D.C1.Position) * CFrame.Angles(math.rad(90),0,0) * CFrame.new(-0.47,-0.5,.5)
end)

As you can see in the video, the heart object clones for each player and is welded so im not sure what im doing wrong :sweat_smile:

Help is appreciated, thank you for your time

I replied on your old topic did you check?

1 Like

Just saw the post, i replied

(kgb j,hjbhjvgj)

1 Like