Script only works for one player

Ive had this problem before and the solution to that didnt fix this issue.

My explosion move wont run for other people and im unsure why, heres the code

	elseif Args[1] == 3 then
			print(plr.Name)
			if not table.find(Move3,plr) then
				table.insert(Move3, plr)
				
				local clouds = game.ReplicatedStorage.Models.Explosives.Cloud1:Clone() or game.ReplicatedStorage.Models.Explosives.Cloud2:Clone() or game.ReplicatedStorage.Models.Explosives.Cloud3:Clone()
				local WindBlow = game.ReplicatedStorage.Models.VFX.WIndPush:Clone()
				local crack = game.ReplicatedStorage.Models.BigCrack:Clone()
				
				WindBlow.Parent = game.Workspace
				WindBlow.Position = HRP.Position
				clouds.Parent = game.Workspace
				clouds.Position = HRP.Position
				crack.Parent = game.Workspace
				crack.Position = HRP.Position + Vector3.new(0,-3,0)
				local info = TweenInfo.new(.5)
				
				local goal = {}
				goal.Size = Vector3.new(50,50,50)
				goal.Transparency = 1
				
				local tween = TS:Create(clouds, info, goal)
				local tween2 = TS:Create(WindBlow, info, goal)
			
				tween:Play()
				tween2:Play()
				event:FireAllClients()
				clouds.Touched:Connect(function(hit)
					--Do damage and visual affects
					local hitChar = hit:FindFirstAncestorWhichIsA("Model")
					if hitChar then
						local hitHum = hitChar:FindFirstChild("Humanoid")
						local humPart = hitChar:FindFirstChild("HumanoidRootPart")
						if hitHum then
							if hitChar ~= Char then
								local Knockback = Instance.new("BodyVelocity")
								Knockback.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
								Knockback.P = 75
								Knockback.Velocity = HRP.CFrame.LookVector * 50 + HRP.CFrame.UpVector * 20
								
								if not table.find(cooldown2, hitChar) then
									table.insert(cooldown2, hitChar)
									
									Knockback.Parent = humPart
									hitHum:TakeDamage(45)
									debris:AddItem(Knockback, 1)
									task.wait(5)
									local index = table.find(cooldown2, hitChar)
									if index then
										table.remove(cooldown2, index)
									end
								end
							end
						end
					end
					
				end)
				
				tween.Completed:Connect(function()
					clouds:Destroy()
				end)
				tween2.Completed:Connect(function()
					WindBlow:Destroy()
				end)
				
				
				debris:AddItem(crack, 5)
				task.wait(7)
				local index = table.find(Move3, plr)
				if index then
					table.remove(Move3, index)
				end
			end


an explanation on what i did wrong would be greatly appreciated. Thank you for your time :slightly_smiling_face:

1 Like

Could you show the rest of your script, if possible?