generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Help with script!

Previous Thread :: Next Thread 
Duderino99 is not online. Duderino99
Joined: 04 Aug 2009
Total Posts: 320
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
Duderino99 is not online. Duderino99
Joined: 04 Aug 2009
Total Posts: 320
04 Nov 2011 10:37 PM
bump
Report Abuse
Duderino99 is not online. Duderino99
Joined: 04 Aug 2009
Total Posts: 320
05 Nov 2011 09:31 AM
bump
Report Abuse
Duderino99 is not online. Duderino99
Joined: 04 Aug 2009
Total Posts: 320
05 Nov 2011 01:16 PM
bump
Report Abuse
dogerki23 is not online. dogerki23
Joined: 26 May 2013
Total Posts: 109
08 Jun 2013 10:38 PM
bump

( ° ͜ʖ °)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image