I have a variable like this:
PromptColor = Prompt:GetAttribute("Color")
But now, how do I set it? I don’t wanna go
Prompt:SetAttribute("Color",0,0,0) --or something like that I don't know I am noob at Attributes
I have a variable like this:
PromptColor = Prompt:GetAttribute("Color")
But now, how do I set it? I don’t wanna go
Prompt:SetAttribute("Color",0,0,0) --or something like that I don't know I am noob at Attributes
local color3 = Color3.new(0, 0, 0) --or even Color3.fromRGB(0, 0, 0)
Prompt:SetAttribute("Color", color3)
Has the support types listed also.
So I can’t directly set the attribute?
You can use
Prompt:SetAttribute("Color", Color3.new(0,0,0))
if that’s what you mean
Well I mean directly use or set the attribute variable. PromptColor.Value or something…?
There’s no other way of accessing attributes, so no.