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

PlayerAdded Error/Event Problems?

Asked by 10 years ago

`repeat wait(0.1) until (game.Workspace ~= nil) Gui = script.Parent.Parent print(Gui.Name) Messages = {}

Current_Text = nil

StartY = 15 StartX = 30

Space = 0 -- AMOUNT OF SPACE BETWEEN TEXT

Num_MSG = 0

game.Players.PlayerAdded:connect(function(Player) Player.Chatted:connect(function(Msg) print(Msg) Num_MSG = Num_MSG + 1 TextL = Instance.new("TextLabel", Gui.Container) TextL.Name = "TMsg" TextL.Text = Msg TextL.Position = UDim2.new(0, StartX, 0, StartY) game.Debris:AddItem(TextL,40) UpdateList(TextL) end) end)

function UpdateList(Text) Text.Position = UDim2.new(0, StartX, 0, StartY) end `

May you please tell me the problem I checked the output and there is nothing but it's not even printing anything about the msg.

0
Is this in the Studio? Because I saw somewhere that the 'PlayerAdded' event does not work in Studio mode. :/ TheeDeathCaster 2368 — 10y

Answer this question