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

Why doesnt the :Clone() work in starter Character (with script)?

Any help is really appreciated should be simple (I think) everything included below script.

--Variables.
	wait()
	local Character1 = script.Parent
	local d20Roler1 = script:FindFirstChild("BillBoardGuiSyn")
	 
	 
	local d20Clone = d20Roler1:Clone()
	d20Clone.Parent = Character1:FindFirstChild("Head")
	d20Clone.Adornee = Character1:FindFirstChild("Head")
	d20Clone.Frame.TextLabelSyn = Character1.Name

The problem is on line four and it says (error): https://gyazo.com/76781df5d397ad7f1ee0c27d8b28e995

Heres the hierarchy: https://gyazo.com/3ecae62ee37f5e4a3a2cb61cb0768a15

1 answer

This is because the script does not have a child on line 4 that is named "BillBoardGuiSyn". You are using find first child, and it does not see that child. this is a simple fix :

--Variables.
    wait()
    local Character1 = script.Parent
    local d20Roler1 = workspace.Part:FindFirstChild("BillBoardGuiSyn")


    local d20Clone = d20Roler1:Clone()
    d20Clone.Parent = Character1:FindFirstChild("Head")
    d20Clone.Adornee = Character1:FindFirstChild("Head")
    d20Clone.Frame.TextLabelSyn.Text = Character1.Name

4 comments

0

Yeah it worked but uhhh, slight problem, lol https://gyazo.com/4720410fbee90c738299439e71de75e5

0

The error says that TextLabelSyn isnt a part of frame

0

edited. if it does not work, can you show the error

0

edited. if it does not work, can you show the error

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