|
| 04 Nov 2011 09:59 PM |
Sorry it's so long, the beginning is essentially the same thing over and over again, so you can just read one of the functions. Thanks for the help! _____________________________________________________________
----------------------------------------------functions
function alert_one() -------------variables frame = player[i].PlayerGui.Alerts.Alert1 value = frame.Value texbox = frame.Text pic = frame.Picture ID = player[i].userId thumb = ("http://www.roblox.com/Thumbs/Avatar.ashx?UserID="..ID) name = player[i].Name text = (name.." has entered the game!") -------------end variables value.Value = true frame.Visible = true textbox.Text = text pic.Image = thumb wait(5) value.Value = false frame.Visible = false textbox.Text = "" pic.Image = "" end
function alert_two() ---------------variables frame = player[i].PlayerGui.Alerts.Alert2 value = frame.Value texbox = frame.Text pic = frame.Picture ID = player[i].userId thumb = ("http://www.roblox.com/Thumbs/Avatar.ashx?UserID="..ID) name = player[i].Name text = (name.." has entered the game!") -------------end variables value.Value = true frame.Visible = true textbox.Text = text pic.Image = thumb wait(5) value.Value = false frame.Visible = false textbox.Text = "" pic.Image = "" end
function alert_three() ---------------variables frame = player[i].PlayerGui.Alerts.Alert3 value = frame.Value texbox = frame.Text pic = frame.Picture ID = player[i].userId thumb = ("http://www.roblox.com/Thumbs/Avatar.ashx?UserID="..ID) name = player[i].Name text = (name.." has entered the game!") -------------end variables value.Value = true frame.Visible = true textbox.Text = text pic.Image = thumb wait(5) value.Value = false frame.Visible = false textbox.Text = "" pic.Image = "" end --------------------------------functions end function Entered(Player) player = game.Players:GetChildren() wait(1) print("play") for i = 1, #player do if player[i].PlayerGui.Alerts.Alert1.Value.Value == true then
if player[i].PlayerGui.Alerts.Alert2.Value.Value == true then
if player[i].PlayerGui.Alerts.Alert3.Value.Value == true then print("Look's like your not getting a message!")
elseif player[i].PlayerGui.Alerts.Alert3.Value.Value == false then print("3true") alert_three()
elseif player[i].PlayerGui.Alert.Alert2.Value.Value == false then print("2true") alert_two()
elseif player[i].PlayerGui.Alerts.Alert1.Value.Value == false then print("1true") alert_one() end end end end end game.Players.PlayerAdded:connect(Entered) |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
dogerki23
|
  |
| Joined: 26 May 2013 |
| Total Posts: 109 |
|
| |
|