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
 

Why doesn't this work on test mode?

Previous Thread :: Next Thread 
JonathanSwag is not online. JonathanSwag
Joined: 30 Aug 2011
Total Posts: 1012
11 Sep 2011 11:15 AM
function onPlayerEntered(newPlayer)
print("Leaderboard ball catcher loaded!")
local board = Instance.new("IntValue")
local a = Instance.new("IntValue")
board.Parent = newPlayer
a.Parent = baord
a.Name = "Spheres Caught"
a.Value = 0

end
game.Players.ChildAdded:connect(onPlayerEntered)
Report Abuse
JonathanSwag is not online. JonathanSwag
Joined: 30 Aug 2011
Total Posts: 1012
11 Sep 2011 11:23 AM
Bump?
Report Abuse
MrgamesNwatch is not online. MrgamesNwatch
Joined: 02 Feb 2009
Total Posts: 7729
11 Sep 2011 11:25 AM
Your character loads/Player loads before all of your scripts in Test mode. unless you mean Server Test.
Report Abuse
JonathanSwag is not online. JonathanSwag
Joined: 30 Aug 2011
Total Posts: 1012
11 Sep 2011 11:26 AM
tools > test > play solo is what I mean
Report Abuse
MrgamesNwatch is not online. MrgamesNwatch
Joined: 02 Feb 2009
Total Posts: 7729
11 Sep 2011 11:30 AM
yeah, the your character loads before any of the scripts, so try this instead:

tools>Test>StartServer
tools>Test>StarPlayer
Report Abuse
JonathanSwag is not online. JonathanSwag
Joined: 30 Aug 2011
Total Posts: 1012
11 Sep 2011 11:32 AM
Doesn't work like that either >_<, I even tested it online mode, but it didn't work either!
Report Abuse
JonathanSwag is not online. JonathanSwag
Joined: 30 Aug 2011
Total Posts: 1012
11 Sep 2011 11:33 AM
Bump
Report Abuse
JonathanSwag is not online. JonathanSwag
Joined: 30 Aug 2011
Total Posts: 1012
11 Sep 2011 11:34 AM
Bring
Up
My
Post
Report Abuse
MrgamesNwatch is not online. MrgamesNwatch
Joined: 02 Feb 2009
Total Posts: 7729
11 Sep 2011 11:34 AM
function onPlayerEntered(newPlayer)
print("Leaderboard ball catcher loaded!")
local board = Instance.new("IntValue")
local a = Instance.new("IntValue")
board.Parent = newPlayer
a.Parent = board -- found a slight mispelling :3
a.Name = "Spheres Caught"
a.Value = 0

end
game.Players.PlayerAdded:connect(onPlayerEntered) -- you can use PlayerAdded as well.
Report Abuse
JonathanSwag is not online. JonathanSwag
Joined: 30 Aug 2011
Total Posts: 1012
11 Sep 2011 11:38 AM
Still doesn't work online either
Report Abuse
JonathanSwag is not online. JonathanSwag
Joined: 30 Aug 2011
Total Posts: 1012
11 Sep 2011 11:40 AM
Help!
Report Abuse
JonathanSwag is not online. JonathanSwag
Joined: 30 Aug 2011
Total Posts: 1012
11 Sep 2011 11:42 AM
Fixed it, forgot to name board D:
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