#Why doesn't this work?

92 messages · Page 1 of 1 (latest)

rapid seal
#

The ball is supposed to become plum

tender hatch
#

if DiscoBall.BrickColor == "Black" then

ancient fulcrumBOT
#

studio** You are now Level 3! **studio

tender hatch
#

wait(1)

#

DiscoBall.Color = Color3.new(0.666667, 0.333333, 1)

#

end

soft rivet
# rapid seal

Make sure the name of that part is the name you put in your script for that item

soft rivet
soft rivet
#

Try that with the HEX first

#

But what exactly isn't working is the color of the DiscoBall not changing?

tender hatch
#

I think there is a lot not working with that script

soft rivet
#

Me too

soft rivet
# rapid seal

Or try removing the "Wait" function out of it so it will do it automatic or lower the time

#

O wait

#

The reflectance and black changing to plum with the brick color all is just messy

#

Fix the reflectance

tender copper
#

uhhh

soft rivet
#

Ye?

ancient fulcrumBOT
#

studio** You are now Level 1! **studio

soft rivet
soft rivet
tender copper
#

yes

soft rivet
#

chill

tender hatch
#

accident

soft rivet
#

They have logs yk

soft rivet
tender hatch
#

are you a scriper or modeler

soft rivet
#

I am both actually

#

I do both at certain times

tender hatch
#

I wish I had the patience to learn both

soft rivet
#

I don't really know scripting much but I'm not that dumb

tender hatch
#

I only learned scripting

rapid seal
#

Oh sorry guys I forgot abou that. I'm reading your replies rn

rapid seal
rapid seal
#

@tender hatchSo I basically made it too complicated?

#

Does not work at all :1

#

The color does not even change

tender hatch
#

type the code in and ill fix it

soft rivet
tender hatch
#

copy and paste it

#

do lua

rapid seal
#

local DiscoBall = game.Workspace.DiscoBall
DiscoBall.BrickColor = "Black"
DiscoBall.Reflectance = 0.4

if DiscoBall.BrickColor. == "Black" then
wait(1)
DiscoBall.BrickColor = "Plum"
end

rapid seal
tender hatch
#
local DiscoBall = game.Workspace.DiscoBall

DiscoBall.BrickColor = BrickColor.Black()
DiscoBall.Reflectance = 0.4

if DiscoBall.BrickColor ==BrickColor.Black() then
    wait(1)
    DiscoBall.BrickColor = BrickColor.new("Plum")
end
rapid seal
#

I will try it

#

It becomes glass@tender hatch

#

How so?

#

And the reflectance does not seem to work

#

Is this normal?

tender hatch
#

it looks like glass because you turned reflectance up

#

that's what that does

#

did you want to change transparency?

rapid seal
#

But why does it changes after everything if the sentence is before the "if" about DiscoBall

tender hatch
#

it doesnt lol

#

it starts by changing the color to black then the reflectance and then it changes the color again

#

but it doesn't change the Reflectance back since you didn't ask it to all you asked it to change was color

#
local DiscoBall = game.Workspace.DiscoBall

DiscoBall.BrickColor = BrickColor.Black()
DiscoBall.Reflectance = 0.4

if DiscoBall.BrickColor ==BrickColor.Black() then
    wait(1)
    DiscoBall.BrickColor = BrickColor.new("Plum")
    DiscoBall.Reflectance = 0 -- turns it back to normal
end
rapid seal
#

Bro I just need help stop being toxic. Why would I be 10 years old because I don't know how to script?

#

This man eats humans or what?

ancient fulcrumBOT
#

studio** You are now Level 5! **studio

rapid seal
#

Lol

tender copper
#

that looks odd and kinda bad

#
local Disco = workspace.DiscoBall

function Change(Part, BrickColor, Color, newColor)
    Part.BrickColor = BrickColor
    if BrickColor == Color then
        wait(1)
        Part.BrickColor = newColor
        Part.Reflectance = 0
    end
end

Change(Disco, BrickColor.new("Black"), BrickColor.new("Black"), BrickColor.new("Plum"))```all better
rapid seal
#

No, I don't care

#

@cosmic pebbleYou seem hella toxic bro

#

I will go sleep bye guys

cosmic pebble
#

\

rapid seal
#

Prove it

cosmic pebble
#

👍

rapid seal
#

That just was very impolite

cosmic pebble
#

Ok

soft rivet
#

Stfu

#

toxic mfer

upbeat pulsar
#

Why?

cosmic pebble
#

i dont know

tender copper
#

we still talking here?

soft rivet
#

.

soft rivet
#

omfg

cosmic pebble
#

Ok

soft rivet
soft rivet
cosmic pebble