This is what I have
local Player = game.Players.LocalPlayer local Remote = game.ReplicatedStorage.Network.Server.RemoteEvent math.randomseed(tick()) local Colors = {"Red","White","Black"} local Choosen = Colors[math.random(1,#Colors)] local a = BrickColor[Choosen]
But when I print it it comes out with "fucntion: 40A239F0"
This is the new one, but prints the same value each time.
local Player = game.Players.LocalPlayer local Remote = game.ReplicatedStorage.Network.Server.RemoteEvent local Colors = {"Really red","White","Black"}; local Choosen = Colors[math.random(1,#Colors)] local a = BrickColor.new(Choosen) print(Choosen)
You have to use the BrickColor.new
constructor. And remember, you call functions with parenthasis ()
.
local Colors = {"Red","White","Black"}; local Choosen = Colors[math.random(1,#Colors)] local a = BrickColor.new(Choosen)