|
| 02 Jul 2014 11:01 PM |
| What if a player entered the server, and I wanted it to say (Example) Welcome AdvancedWeapons! Would I put "Welcome(insertplayernamehere!" For the script? |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2014 11:05 PM |
...
game.Players.PlayerAdded:connect(function(p) repeat wait() until p and p.PlayerGui local sg = Instance.new("ScreenGui", p.PlayerGui) local tl = Instance.new("TextLabel", sg) tl.BackgroundTransparency = 1 tl.Text = "Welcome "..p.Name.."!" wait(4) for i = 1,10 do tl.TextTransparency = tl.TextTransparency +.1 wait(.1) end end) |
|
|
| Report Abuse |
|
|
|
| 03 Jul 2014 03:27 AM |
| How would I out that script into a GUI? (I'm a noob, I know nothing about scripting, sorry.) |
|
|
| Report Abuse |
|
|
|
| 03 Jul 2014 10:50 PM |
| Well that script would make a textlabel on the players screen saying 'Welcome PLRNAME!' when they join, you would just have to change the position, since that script would make it in the top left. |
|
|
| Report Abuse |
|
|
|
| 05 Jul 2014 04:21 PM |
| Ok so I put those lines into a script, then do I put it into Workspace, StartGUI, or ScreenGUI>Frame>Script or ScreenGUI- Script and Frame? |
|
|
| Report Abuse |
|
|
|
| 05 Jul 2014 06:21 PM |
game.Players.PlayerAdded:connect(function(p) repeat wait() until p and p.PlayerGui local sg = Instance.new("ScreenGui", p.PlayerGui) local tl = Instance.new("TextLabel", sg) tl.BackgroundTransparency = 1 tl.Position = UDiM2.new(0.45,0,0.45,0) tl.FontSize = Enum.FontSize.Size48 tl.Text = "Welcome "..p.Name.."!" wait(4) for i = 1,10 do tl.TextTransparency = tl.TextTransparency +.1 wait(.1) end sg:Destroy() end)
That script in the workspace would fire every time someone joins, and make a TextLabel on their screen in the center saying 'Welcome PLRNAME!', then would wait 4, slowly go transparent, then destroy itself. |
|
|
| Report Abuse |
|
|