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

help me with text label script?

Asked by 9 years ago

this is a script when you buy an item an label will pop up and it does not help me please.

p = script.Parent.Parent.Parent.Parent.Parent.Parent.Parent

function buy()
            game.ReplicatedStorage["Cheezburger"]:clone().Parent = p.Backpack
            wait(1)
            script.Parent.Parent.Parent.Parent.Visible = false

            wait(1)

            game.startergui.Waiter.Frame.Visible = true
            wait(0.1)
            game.StarterGui.Waiter.Frame.TextLabel.Text = "H"
            wait(0.1)
            game.StarterGui.Waiter.Frame.TextLabel.Text = "Ho"
            wait(0.1)
            game.StarterGui.Waiter.Frame.TextLabel.Text = "Hop"
            wait(0.1)
            game.StarterGui.Waiter.Frame.TextLabel.Text = "Hope"
            wait(0.1)
            game.StarterGui.Waiter.Frame.TextLabel.Text = "Hope y"
            wait(0.1)
            game.StarterGui.Waiter.Frame.TextLabel.Text = "Hope yo"
            wait(0.1)
            game.StarterGui.Waiter.Frame.TextLabel.Text = "Hope you"
            wait(0.1)
            game.StarterGui.Waiter.Frame.TextLabel.Text = "Hope you e"
            wait(0.1)
            game.StarterGui.Waiter.Frame.TextLabel.Text = "Hope you en"
            wait(0.1)
            game.StarterGui.Waiter.Frame.TextLabel.Text = "Hope you enj"
            wait(0.1)
            game.StarterGui.Waiter.Frame.TextLabel.Text = "Hope you enjo"
            wait(0.1)
            game.StarterGui.Waiter.Frame.TextLabel.Text = "Hope you enjoy"
            wait(0.1)
            game.StarterGui.Waiter.Frame.TextLabel.Text = "Hope you enjoy t"
            wait(0.1)
            game.StarterGui.Waiter.Frame.TextLabel.Text = "Hope you enjoy th"
            wait(0.1)
            game.StarterGui.Waiter.Frame.TextLabel.Text = "Hope you enjoy the"
            wait(0.1)
            game.StarterGui.Waiter.Frame.TextLabel.Text = "Hope you enjoy the m"
            wait(0.1)
            game.StarterGui.Waiter.Frame.TextLabel.Text = "Hope you enjoy the me"
            wait(0.1)
            game.StarterGui.Waiter.Frame.TextLabel.Text = "Hope you enjoy the mea"
            wait(0.1)
            game.StarterGui.Waiter.Frame.TextLabel.Text = "Hope you enjoy the meal"
            wait(1)
            game.StarterGui.Waiter.Frame.Visible = false
end

script.Parent.MouseButton1Click:connect(buy)
0
Output please. And its the third time you ask the same question for the same script. TheBigCoder 25 — 9y

1 answer

Log in to vote
1
Answered by
Kyokamii 133
9 years ago

Im gonna try to fix it, if it does not work, it probably means something is missing. Post the output if it stills does not work.

p = script.Parent.Parent.Parent.Parent.Parent.Parent.Parent

local function buy()
           local partToClone = game.ReplicatedStorage:FindFirstChild("Cheezburger")
       local Clone = partToClone:Clone()
       Clone.Parent = p.BackPack
local gui = p.PlayerGui.Waiter
            wait(1)
            script.Parent.Parent.Parent.Parent.Visible = false
            wait(1)
           gui.Frame.Visible = true
            wait(0.1)
           gui.Frame.TextLabel.Text = "H"
            wait(0.1)
            gui.Frame.TextLabel.Text = "Ho"
            wait(0.1)
            gui.Frame.TextLabel.Text = "Hop"
            wait(0.1)
           gui.Frame.TextLabel.Text = "Hope"
            wait(0.1)
          gui.Frame.TextLabel.Text = "Hope y"
            wait(0.1)
           gui.Frame.TextLabel.Text = "Hope yo"
            wait(0.1)
           gui.Frame.TextLabel.Text = "Hope you"
            wait(0.1)
          gui.Frame.TextLabel.Text = "Hope you e"
            wait(0.1)
           gui.Frame.TextLabel.Text = "Hope you en"
            wait(0.1)
           gui.Frame.TextLabel.Text = "Hope you enj"
            wait(0.1)
           gui.Frame.TextLabel.Text = "Hope you enjo"
            wait(0.1)
           gui.Frame.TextLabel.Text = "Hope you enjoy"
            wait(0.1)
           gui.Frame.TextLabel.Text = "Hope you enjoy t"
            wait(0.1)
           gui.Frame.TextLabel.Text = "Hope you enjoy th"
            wait(0.1)
            gui.Frame.TextLabel.Text = "Hope you enjoy the"
            wait(0.1)
           gui.Frame.TextLabel.Text = "Hope you enjoy the m"
            wait(0.1)
           gui.Frame.TextLabel.Text = "Hope you enjoy the me"
            wait(0.1)
            gui.Frame.TextLabel.Text = "Hope you enjoy the mea"
            wait(0.1)
           gui.Frame.TextLabel.Text = "Hope you enjoy the meal"
            wait(1)
           gui.Frame.Visible = false
end

script.Parent.MouseButton1Click:connect(buy)

I think the problem was the fact that you tried to change the gui IN the starter gui and not in the player gui.

Ad

Answer this question