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

Clone isn't moving into players head?

I want the players head to set on fire when they touch this brick but, the clone isn't moving it.

This is my script.

local GRS = game.ReplicatedStorage.GhostRiderStuff
local HF = GRS.HeadFlame

script.Parent.Touched:connect(function(hit)
	print("Hello")
	local HFt = HF:Clone().Parent = hit.Parent:FindFirstChild("Head")
	
	
	
end)

1 answer

✓ Accepted answer

You tried to define a variable and it's parent at the same time. Instead it should look like:

local GRS = game.ReplicatedStorage.GhostRiderStuff
local HF = GRS.HeadFlame

script.Parent.Touched:connect(function(hit)
    print("Hello")
    local HFt = HF:Clone()
    HFt.Parent = hit.Parent:FindFirstChild("Head")



end)

1 comment

0

Well I'm dumb. Thank you.

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