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: What's wrong with this script?

Previous Thread :: Next Thread 
Toby12600 is not online. Toby12600
Joined: 01 Mar 2011
Total Posts: 193
30 Jan 2014 08:04 PM
When I enter the game, no message even appears. Also, please, I just want you to tell me what's wrong, don't write another different script.

game.Players.PlayerAdded:connect(function(player)

awesome = {"Toby12600"}

for i, v in pairs(awesome) do
if player.Name == v then
local Message = Instance.new("Message")
Message.text = "Toby is here!"
Message.Parent = game.Workspace
wait(3.5)
Message:Remove()
end
end
end)
Report Abuse
xDeathBear is not online. xDeathBear
Joined: 09 Jul 2010
Total Posts: 1657
30 Jan 2014 08:05 PM
Are you testing this in solo?
Report Abuse
ash877 is not online. ash877
Joined: 18 Feb 2008
Total Posts: 5142
30 Jan 2014 08:05 PM
v[i]
Report Abuse
ash877 is not online. ash877
Joined: 18 Feb 2008
Total Posts: 5142
30 Jan 2014 08:05 PM
whoops disregaurd that :P
Report Abuse
Toby12600 is not online. Toby12600
Joined: 01 Mar 2011
Total Posts: 193
30 Jan 2014 08:06 PM
Deathbear, no. I save the game in studio then I join the game.
Report Abuse
Laedere is online. Laedere
Joined: 17 Jun 2013
Total Posts: 23601
30 Jan 2014 08:08 PM
don't really need the table if you're just checking for 1 player's name
Report Abuse
xDeathBear is not online. xDeathBear
Joined: 09 Jul 2010
Total Posts: 1657
30 Jan 2014 08:10 PM
Lae, give him helpful information, not hate...

I was also having the same problem earlier when I was testing the PlayerAdded thing. I could not get it to work. Why don't you run a loop to check whether or not you are in the server instead?
Report Abuse
Toby12600 is not online. Toby12600
Joined: 01 Mar 2011
Total Posts: 193
30 Jan 2014 08:12 PM
Heh, I'm new to this.

How would I do that?
Report Abuse
xDeathBear is not online. xDeathBear
Joined: 09 Jul 2010
Total Posts: 1657
30 Jan 2014 08:14 PM
while true do
wait()
for _,thing in ipairs(game.Workspace:GetChildren()) do

That will start you off. Make "thing" look for your character. Or, instead of workspace, you can look in "Players" and say thing.Character.
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