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

Why isn't the script showing a message to the GUI text?

Asked by 7 years ago
Edited 7 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

Hello! I'm trying to make this script try to change the text message while in-game but I don't want this script to be held in the gui. I want this to be in workspace so I can add on to extra stuff. What did I do wrong here because it isn't really working.

game.Workspace.ChildAdded:connect(function(Char)
    if Char:FindFirstChild("Humanoid") ~= nil then
local hint = game.Players[""..Char.Name..""].PlayerGui.Talker.Frame.Text
local floor = game.Workspace.Floor
print(Char.Name)
hint.Text = "Welcome! The server just started!"
wait (3)
hint.Text = "We are getting started..."
wait (2)
hint.Text = "We are choosing a map!"
wait (1)
hint.Text = "Please wait..."
wait(.5)
hint.Text = "Map loaded! Have fun!"
wait (1)
hint.Text = "You are now playing: Sword Fighting"
end
end)
1
line 3 seems sketchy FutureWebsiteOwner 270 — 7y
0
I'm stupid, it was disabled e.e BringMeTacos 20 — 7y

1 answer

Log in to vote
-1
Answered by 7 years ago
Edited 7 years ago
game.Players.PlayerAdded:connect(function(Char)
    plr.ChildAdded:connect(function()
        if Char:FindFirstChild("Humanoid") ~= nil then
            local hint = game.Players:FindFirstChild(Char.Name).PlayerGui.Talker.Frame.TextLabel
            -- CHange the "Text" name to "TextLabel" because "Text" is usually for the text itself
            local floor = game.Workspace.Floor
            print(Char.Name)
            hint.Text = "Welcome! The server just started!"
            wait (3)
            hint.Text = "We are getting started..."
            wait (2)
            hint.Text = "We are choosing a map!"
            wait (1)
            hint.Text = "Please wait..."
            wait(.5)
            hint.Text = "Map loaded! Have fun!"
            wait (1)
            hint.Text = "You are now playing: Sword Fighting"
        end
    end)
end)

Hope that helped (:

0
The textlabel is called text BringMeTacos 20 — 7y
0
I changed it but still nothing ;-; BringMeTacos 20 — 7y
Ad

Answer this question