So i made 2 scripts that change a message's text when joined, local script
Local playerjoined = game.Workspace.Message
Actual script thats changing the text
game.Players.PlayerAdded:connect(function(player) message.Text = ('A Player has entered:' ".. player.name) wait(2) -- Please keep at 2 for safety message.Text = (' ') end)
Please help!
It won't allow me to post comments, This is not a 100% answer but will try my best
First of all what is the problem, Is it saying anything? And second of all what is message, Is it a screenGui or? Because if it were me you could of just put a screenGui in the starterGui and put textLabel on it than put a wait on it and Destroy it, Here I'll help
local screenGui = Instance.new("ScreenGui") screenGui.Parent = script.Parent -- Adds the screenGui local textLabel = Instance.new("TextLabel") -- Adds the Text | textLabel textLabel.Parent = screenGui textLabel.Position = UDim2.new(0, 500, 0, 400) textLabel.Size = UDim2.new(0, 150, 0, 150) textLabel.BackgroundColor3 = BrickColor.White().Color textLabel.Text = "A Player has entered" -- You can change fonts and font sizes if you want screenGui:Destroy()
If that didn't help than maybe you want the message so the message's string is that than it will do something, If so you should try the print
method, I think you can use print
for that,
game.Players.PlayerAdded:connect(function(player) print ('A Player has entered:' ".. player.name) wait(2) -- Please keep at 2 for safety print (' ') end)
If that didn't answer it than what are you trying to do and what is wrong ;-;