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

why is it not changing the text on my textlabel?

Asked by 3 years ago
Edited 3 years ago

So everything is working flawlessly except it is not changing the text after the wait unless the wait = wait(1) nothing more which i'm finding odd

local newpart = Instance.new("Part",game.ServerStorage)
local newgui = Instance.new("ScreenGui",game.ServerStorage)



--Main
newpartclone = newpart:Clone()
    newpartclone.Parent = game.Workspace
        newpart.Anchored = true
newpart.Position = Vector3.new(5,5,5)


newguiclone = newgui:Clone()
    newguiclone.Parent = game.StarterGui
        newguiclone.Name = "GUI"

            Instance.new("TextLabel",game.StarterGui.GUI) -- adding textlabel 

                local GUI_TextLabel = game.StarterGui.GUI.TextLabel 

            local GUI = game.StarterGui.GUI

GUI.Enabled = true
GUI_TextLabel.Size = UDim2.new(0, 200, 0, 50)

GUI_TextLabel.Text = "PART HAS BEEN INSERTED"
wait(2)
GUI_TextLabel.Text = "EVERYTHING IS GOOD"

1 answer

Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

Edit the TextLabel in the PlayerGui of the player, not StarterGui. The player sees what is inside of PlayerGui, and everything from StarterGui is cloned into PlayerGui when the character loads.

0
so i can keep everything how it is but in like line 27 address the player gui? and would i need to transfer this to a local script? SwagOnDex 5 — 3y
Ad

Answer this question