Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 2 years ago
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

Log in to vote
0
Answered by 2 years ago

Get rid of the brackets

Ad
Log in to vote
0
Answered by 2 years ago
Edited 2 years ago

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

Answer this question