So, I made a script to get a two values, then make a part using those. I have a StringValue called current, which would keep a value like "Brick" and a Color3Value called CurrentColor which would contain an RGB value, like "248, 0, 9" and when I try to reference them in a script to make a block out of them, it errors. My script is:
local rs = game.ReplicatedStorage
local event = rs.GrassPlace
local current = workspace.Current
local color = workspace.CurrentColor
function place(plr,target,blocktype)
local newBlock = Instance.new("Part")
newBlock.Size = Vector3.new(4,4,4)
newBlock.Anchored = true
newBlock.Material = current
newBlock.BrickColor = color.Value
newBlock.Name = current.Value
newBlock.CFrame = CFrame.new(target.Position) + CFrame.new(0,4,0)
newBlock.Parent = workspace
end
event.OnServerEvent:Connect(place)
I also have a script inside a GUI that changes the "Current" value. If it helps, that script is:
local current = workspace.Current
local colorValue = workspace.CurrentColor
script.Parent.MouseButton1Click:Connect(function()
current.Value = "Brick"
colorValue.Value = script.Color.Value
end)
Please help me!!!

8 comments
All you really need to worry about are lines 10 and 11.
or lines 3 and 4
IDK lol
Enum.Material.current?
change line 10 to newBlock.Material = current
Also you didn't input a brick color for line 11
newBlock.Color = Color3.FromRGB(color.Value) -- try that
Workspace.BlockPlacement:13: attempt to call field 'FromRGB' (a nil value)