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

I want to make Gui to name a pet and pet spawns but his name is Label?

local pet = game.ReplicatedStorage.Model

local clonedpet = pet:Clone()
script.Parent.Parent.Visible = true	
script.Parent.FocusLost:Connect(function(enter)
	if enter then
		script.Parent.Parent.Visible = false
		clonedpet.Parent = game.Workspace
		clonedpet.Position = Vector3.new(-35.4, 1.9, 8.85)
		pet.Body.BillboardGui.TextLabel.Text = (script.Parent.Text)
	end
end)

2 answers

I noticed you are trying to change the text of the pet in Replicated storage. You cloned “pet”. So correct me if I’m wrong, you should be saying clonedpet.Body.BillboardGui.TextLabel.Text = script.parent.Text

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