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

Change surface of brick

Asked by 10 years ago

I tried to change the brick surface, for example

Workspace.Baseplate.TopSurface=Smooth

But it didn't work. So I wonder if there is another code that does work? and what does it look like?

3 answers

Log in to vote
3
Answered by
Freemium 110
10 years ago

Use enums.

game.Workspace.BasePlate.TopSurface = 0

or this:

game.Workspace.BasePlate.TopSurface = "Smooth"

If that doesn't work, are there any output errors?

0
Thanks. It works Ryuxakuta 15 — 10y
Ad
Log in to vote
0
Answered by 10 years ago

This should work, Insert it into the brick.I like feed back also.

p = script.Parent while true do p.TopSurface = ("Smooth") p.BottomSurface = ("Smooth") p.LeftSurface = ("Smooth") p.RightSurface = ("Smooth") p.FrontSurface = ("Smooth") p.BackSurface = ("Smooth") wait(1) p.TopSurface = ("Glue") p.BottomSurface = ("Glue") p.LeftSurface = ("Glue") p.RightSurface = ("Glue") p.FrontSurface = ("Glue") p.BackSurface = ("Glue") wait(1) p.TopSurface = ("Weld") p.BottomSurface = ("Weld") p.LeftSurface = ("Weld") p.RightSurface = ("Weld") p.FrontSurface = ("Weld") p.BackSurface = ("Weld") wait(1) p.TopSurface = ("Studs") p.BottomSurface = ("Studs") p.LeftSurface = ("Studs") p.RightSurface = ("Studs") p.FrontSurface = ("Studs") p.BackSurface = ("Studs") wait(1) p.TopSurface = ("Inlet") p.BottomSurface = ("Inlet") p.LeftSurface = ("Inlet") p.RightSurface = ("Inlet") p.FrontSurface = ("Inlet") p.BackSurface = ("Inlet") wait(1) p.TopSurface = ("Universal") p.BottomSurface = ("Universal") p.LeftSurface = ("Universal") p.RightSurface = ("Universal") p.FrontSurface = ("Universal") p.BackSurface = ("Universal") wait(1) end

0
Just a tip, might wanna try using the code button next time. :) Freemium 110 — 10y
Log in to vote
0
Answered by
xAtom_ik 574 Moderation Voter
10 years ago

I found your error, Look:

Workspace.Baseplate.TopSurface=Smooth

You didn't use the speech marks. So it tried to think that it was a variable or something. BUT! if you used the speech marks then it will notice that and fix it

Workspace.Baseplate.TopSurface = "Smooth"
0
Thanks Ryuxakuta 15 — 10y

Answer this question