Clone Particle [HELP]


local db = true
script.Parent.Touched:connect(function(hit)
	if hit.Parent:FindFirstChild("Humanoid") ~= nil then
		if db == true then
			db = false
			script.Parent.Transparency = 1
			local player = game.Players:GetPlayerFromCharacter(hit.Parent)
			player.leaderstats.Clicks.Value = player.leaderstats.Clicks.Value + 10
			script.Sound:Play()
			script.Parent.Transparency = 1
			script.Parent.Part:Destroy()
			wait (6)
			db= true
                        --clone particle
			script.Parent.Transparency = 0
			
		end
	end	
end)

I have this thing I made I am trying to make the part Clone but I don’t know how to clone properly

Hey! Why you dont use
–clone the part
local clone = scipt.Parent:Clone()
– set the clone parent
clone.Parent = Workspace

Please use the script function. This makes it easier to see.

attempt to index nil with ‘Parent’

local clone = scipt.Parent.Part:Clone()

scipt is a typo - you want script.

I forgot workspace too LOL. Thanks for the help

1 Like