Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-4

For me, Baseplate isn't in workspace. What is that?

Asked by 9 years ago

It doesn't work. I created my function, I checked the function, but it says when I try to use it on baseplate, baseplate isn't (game.workspace.baseplate) Why is that?

4 answers

Log in to vote
1
Answered by
adark 5487 Badge of Merit Moderation Voter Community Moderator
9 years ago

Lua is a case-sensitive language. workspace.baseplate doesn't exist by default, but workspace.BasePlate does, because of the capitalized 'b' and 'p'.

Ad
Log in to vote
0
Answered by
Relatch 550 Moderation Voter
9 years ago

It's BasePlate, always check your capitals. Now, make sure your function is correct.

local BasePlate = game.Workspace.BasePlate --What BasePlate is.

function DoSomethingWithBasePlate() --Creates a function to do something with BasePlate.
    BasePlate.Transparency = 0.5 --This only changes the transparency of BasePlate, only an example.
end

DoSomethingWithBasePlate() --Calls the function, always remember to do this when using functions.
0
I don't know how this is rated -1... fahmisack123 385 — 9y
0
How is this -1? I answered it correctly. I just checked that he did it correctly involving his function. Then, a few hours later Adark answers the same exact thing as me and Chip and gets a upvote. Relatch 550 — 9y
0
You have my upvote at least. People are weird about voting on this site. adark 5487 — 9y
Log in to vote
0
Answered by 9 years ago

You can either check the names of the children in the parents of the parent indicated "Workspace" by saying print(unpack(game.Workspace:GetChildren())) or as normally check in your robloxstudio and just change the name or as in script builders you would just do game.Workspace.BasePlate -- the current name changed to game.Workspace.BasePlate.Name = "Baseplate"

Log in to vote
-1
Answered by 9 years ago

Try game.Workspace.BasePlate.

Answer this question