Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I clone a model onto a character more than once?

Example: I want this NVG (http://www.roblox.com/IBH-item?id=132352515) to clone onto my character whenever I touch the giver. A guy told me I need to add in Fire then Spread script into the Head (Giver). It only gives once. How do I make it give more than once? I used this in the Spread script:

function Spread(part)
	check = part:findFirstChild("Fire")
		if check == nil then 
	script.Parent:Clone().Parent = part
	
		elseif check ~= nil then
	check.Size = check.Size +1000000
	check.Heat = check.Heat  +1000000
	end
end


script.Parent.Parent.Touched:connect(Spread)

3 answers

✓ Accepted answer

> BEFORE

function Spread(part)
    check = part:findFirstChild("Fire")
        if check == nil then-- if nil create fire
    script.Parent:Clone().Parent = part

        elseif check ~= nil then
    check.Size = check.Size +1000000
    check.Heat = check.Heat  +1000000
    end
end


script.Parent.Parent.Touched:connect(Spread)

> After

function Spread(part)
    check = part:findFirstChild("Fire")
-- REMOVED IF 
    script.Parent:Clone().Parent = part
end


script.Parent.Parent.Touched:connect(Spread)

> any questions comment below... I if helped upvote me please

Why have the end of the script then put parent.parent?

This discussion is preserved as it was. New answers, comments, and votes are closed.