#Help

1 messages · Page 1 of 1 (latest)

timid moon
#

So uhh I'm trying to learn how to script and I am at the part where I learn functions. For some reason this code is not really working so if someone could help I would appreciate it

local myBaseplate = game.Workspace.Baseplate

local function changeMaterial.()
myBaseplate.Material = Marble
end

changeMaterial()

dusk light
#

Remove the . Between the changematerial and the ()

willow kernel
harsh sedge
willow kernel
#

yup

timid moon
#

local myBaseplate = game.Workspace.Baseplate

local function changeMaterial()
Enum.Material.Marble
end

changeMaterial()

#

Its still the same