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 » Scripters
Home Search
 

Re: Player is not a member of Datamodel

Previous Thread :: Next Thread 
Ariphael is not online. Ariphael
Joined: 08 Apr 2015
Total Posts: 2103
17 Apr 2015 04:14 AM
I've searched up what Datamodel means on the wiki and found out it is the same as 'game'. However, I don't understand the error, Player is not a member of Datamodel.
Note-I'm using the roblox studio play solo so the username is Player.
Here's the script:

game.Lighting.FogColor = Color3.new(0,0,0)
game.Lighting.TimeOfDay = "21:00:00"

game.Player.PlayerAdded:connect(function(ply)
print("ply")
local MII = Instance.new("Fire", ply.Character.Torso)
MII.Enabled = true
MII.Heat = 10
MII.Size = 10
local MIII = Instance.new("PointLight", ply.Character.Torso)
MIII.Enabled = true
MIII.Brightness = 10
MIII.Range = 10
end)

This is a triumph
Report Abuse
Ariphael is not online. Ariphael
Joined: 08 Apr 2015
Total Posts: 2103
17 Apr 2015 04:15 AM
FORGET ABOUT IT!
I was too dumb to realize that there was no such thing as 'game.Player' but such thing as 'game.Players'.


-- Abandoning thread --

This is a triumph
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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