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: Map not member of Workspace

Previous Thread :: Next Thread 
JamaicaHolder is not online. JamaicaHolder
Joined: 16 Jun 2014
Total Posts: 91
21 Mar 2017 06:12 PM
I'm having trouble and I can't troubleshoot a script.

if game.Workspace.Map.Rotate.Type == "RotatingBrick" then
-- code
end

The response is:

Map is not part of workspace.
Report Abuse
igunaa is not online. igunaa
Joined: 15 Sep 2010
Total Posts: 2588
21 Mar 2017 06:16 PM
if game.Workspace:WaitForChild("Map").Rotate.Type == "RotatingBrick" then

Should do the trick, else reassure that the "Map" is really inside the Workspace.

Said the wise.
Report Abuse
JamaicaHolder is not online. JamaicaHolder
Joined: 16 Jun 2014
Total Posts: 91
21 Mar 2017 06:20 PM
I changed it, nothing still happened, what do I do?
Report Abuse
Quebankus is not online. Quebankus
Joined: 25 Aug 2011
Total Posts: 846
21 Mar 2017 06:26 PM
if game.Workspace:WaitForChild("Map").Rotate.Type.Value == "RotatingBrick" then

do that instead, the old code was invalid anyway
Report Abuse
JamaicaHolder is not online. JamaicaHolder
Joined: 16 Jun 2014
Total Posts: 91
21 Mar 2017 06:28 PM
I got it now, thank you guys, I put the local selectedmap outside of the block of code to use it again. Ty.
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