Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I make this text change onClicked?

So I dont know how, but half the script works, and half doesn't.

local RightClick = script.Parent.TextButton3
local LeftClick = script.Parent.TextButton1
local MidClick = script.Parent.TextButton2

RightClick.MouseButton1Click:Connect(function()
	MidClick.Font = "Sarpanch"
	MidClick.TextColor3 = "255, 74, 74"
	LeftClick.Font = "Sarpanch"
	LeftClick.TextColor3 = "255, 74, 74"
	RightClick.Font = "GothamBlack"
	RightClick.TextColor3 = "44, 217, 255"
end)

LeftClick.MouseButton1Click:Connect(function()
	MidClick.Font = "Sarpanch"
	MidClick.TextColor3 = "255, 74, 74"
	LeftClick.Font = "GothamBlack"
	LeftClick.TextColor3 = "44, 217, 255"
	RightClick.Font = "Sarpanch"
	RightClick.TextColor3 = "255, 74, 74"
end)

MidClick.MouseButton1Click:Connect(function()
	MidClick.Font = "GothamBlack"
	MidClick.TextColor3 = "44, 217, 255"
	LeftClick.Font = "Sarpanch"
	LeftClick.TextColor3 = "255, 74, 74"
	RightClick.Font = "Sarpanch"
	RightClick.TextColor3 = "255, 74, 74"
end)

1 comment

0

TextColor3 is a Color3, not a string.

1 answer

✓ Accepted answer

You need to use Color3.new for the colors and for fonts i believe you need to use Enum.Font.[Font]. You should see the error in console so idk what the problem is

2 comments

0

Color3.fromRGB, Color3.fromHSV*

0

Actually, it didn't show my any error

This discussion is preserved as it was. New answers, comments, and votes are closed.