How can't I reference Baseplate using game.Workspace.Baseplate?

Hello guys,

I have ran into an issue where I tried to reference an Instance, aka “Baseplate”. Using the normal way. Which I have known to be “game.Workspace.Baseplate”. (The Baseplate I want is in Workspace.) The studio always throws an error for my attempts saying that “Baseplate is not a valid member of Workspace “Workspace”” Here’s my code, did I do anything wrong??!!

As you see in the picture, I tried to print the baseplate’s name, but I’m always getting an error for it. The localscript that’s running this code is in Replicated First. I also can’t print a script’s name. I tried restarting my pc, reinstalling roblox studio. But it still doesn’t work. Unless roblox changed the way that we reference an instance, I should be able to get the path and have the name print out.

PS: I would be glad if any body could explain to me why somehow I can still print workspace and the camera object inside workspace’s names out using the same method. It really confused me.

This is because it is on the client, and when the script is run, the baseplate hasn’t replicated to the client. Use:

workspace:WaitForChild("Baseplate")
1 Like

ya, it is. All of the instances that I tried is all archivable

You shouldn’t work with instances in Workspace inside of ReplicatedFirst. ReplicatedFirst is solely for GUIs, specifically for loading screens and start-game logic. The game wouldn’t have loaded when your script runs. You should move it to PlayerScriptService if possible and use WaitForChild.

1 Like

Ya, I was just testing out a bit of client codes for my game. Muse have mixed up things. Thank you @Pokemoncraft5290 and thanks for your explanation Jarodoforbiter. it really cleared things up. :slight_smile:

1 Like