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

My TextButton In My SurfaceGui Does Not Do Anything!?

Asked by 6 years ago
Edited 6 years ago

I Have Tried Everything It Just Has Not Worked! Could I Have Some Help Please?

                                    My Code Is As Stated Below.
script.Parent.MouseButton1Click:Connect(function()
    script.Parent.BackgroundTransparency = 1
    script.Parent.TextTransparency = 1
    -----------------------------------
          -- // Hi There // --
          script.Parent.Parent.ImageLabel.Image = 1645312040
          -- // Time Until Next Picture // --
                      wait(2)
          -- // I Made Team Thunder For // --
          script.Parent.Parent.ImageLabel.Image = 1645346723
          -- // Time until Next Picture // --
                      wait(3)
          -- // Our Plans // --
          script.Parent.Parent.ImageLabel.Image = 1648267543
          -- // Time Until Credits // --
                       wait(2)
          -- // Credits // --
          script.Parent.Parent.ImageLabel.Image = 1648286332


    game.Players.LocalPlayer.MoviesWatched.Value = game.Players.LocalPlayer.MoviesWatched.Value + 1
end)


0
No I did not, If You Read It Properly Its game.Players.LocalPlayer.MoviesWatched.Value = game.Players.LocalPlayer.MoviesWatched.Value + 1 ... JamiethegreatQ777 16 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

It does not work because it is in the Workspace. Place it in The StarterGui and set its Adornee to the part you want it to be on. In the workspace it's just a simple textlabel. in the startergui / playergui it has functionality

0
An Adornee Is Not A Thing. JamiethegreatQ777 16 — 6y
Ad

Answer this question