Minigame that kills players if they don't stand on the correct color board

:man_facepalming: I forgot I’m working in a place with team create. I hate drafts.

ColourConsumerReproCommitted.rbxl (31.2 KB)

1 Like
local ChosenColor = BrickColor.new(BrickColors[math.random(1, #BrickColors)])
Box.BackgroundColor3 = ChosenColor.Color

Try this

Yeah I already did that, doesnt work but its okay I think its more complicated

No, because I just tested it in studio and it works.
Baseplate - Roblox Studio - Gyazo

local Box = script.Parent

local BrickColors = {"Really red","Deep orange","New Yeller","Dark blue","Hot pink","Reddish Brown","Lime green","Magenta"}

local ChosenColor = BrickColor.new(BrickColors[math.random(1, #BrickColors)])
print(ChosenColor.Color)

workspace.Part.BillboardGui.Box.BackgroundColor3 = ChosenColor.Color

Hm it prints and everything, just doesnt actually change the color, do you know why that is?

It’s because you’re not adding a BrickColor.new() around it. You’re literally trying to get ‘Color’ from a string.

…?

It waits 5 seconds before sending colour data to the client. If it doesn’t work, then I have to reiterate that just telling me it doesn’t do something isn’t sufficient enough information. I need details, like anything you see in the output or some basic debugging you’ve done.

Not for me, thats really strange hm

If the code provided isn’t working then you have another issue which could be an engine bug. I already showed from the gif I sent that it works 100%.

Im not talking to you, im talking to the other person, your script might work but its not ideal

You’re trying to get Color from a string?.. How is that ideal

I’m not entirely sure how believable it is that it’s not working for you and it is for me, but just in case I’ve made a second repro that loops the colour selection and palette display so that you don’t have to keep starting new test sessions to check if the colour ever changes.

This feels like a simple problem that’s been dragged out one too many posts.

ColourConsumerSteppedRepro.rbxl (31.2 KB)

1 Like

Hm still doesnt work Ive been trying to fix it this is weird

Edit: It works in my own game! Just not in yours for some reason, thank you for all the help hopefully this is the end of this thread, sorry for stretching it out so much