So my friend gave me a rank script to edit and i replaced the color format to rgb but it doesn't work, someone please help.
XML
<roblox xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.roblox.com/roblox.xsd" version="4"> <External>null</External> <External>nil</External> <Item class="BillboardGui" referent="RBX0"> <Properties> <bool name="Active">false</bool> <Ref name="Adornee">null</Ref> <bool name="AlwaysOnTop">false</bool> <bool name="Enabled">true</bool> <Vector3 name="ExtentsOffset"> <X>0</X> <Y>0</Y> <Z>0</Z> </Vector3> <string name="Name">Rank</string> <Ref name="PlayerToHideFrom">null</Ref> <UDim2 name="Size"> <XS>2</XS> <XO>0</XO> <YS>2</YS> <YO>0</YO> </UDim2> <Vector2 name="SizeOffset"> <X>0</X> <Y>0</Y> </Vector2> <Vector3 name="StudsOffset"> <X>0</X> <Y>3</Y> <Z>0</Z> </Vector3> </Properties> <Item class="TextLabel" referent="RBX1"> <Properties> <bool name="Active">false</bool> <Color3 name="BackgroundColor3">4294967295</Color3> <float name="BackgroundTransparency">1</float> <Color3 name="BorderColor3">4279970357</Color3> <int name="BorderSizePixel">1</int> <bool name="ClipsDescendants">false</bool> <bool name="Draggable">false</bool> <token name="Font">0</token> <token name="FontSize">5</token> <string name="Name">TextLabel</string> <UDim2 name="Position"> <XS>-99.5</XS> <XO>0</XO> <YS>0</YS> <YO>0</YO> </UDim2> <float name="Rotation">0</float> <UDim2 name="Size"> <XS>200</XS> <XO>0</XO> <YS>1</YS> <YO>0</YO> </UDim2> <token name="SizeConstraint">0</token> <string name="Text">RANK</string> <Color3 name="TextColor3">4294967295</Color3> <bool name="TextScaled">true</bool> <Color3 name="TextStrokeColor3">4278190080</Color3> <float name="TextStrokeTransparency">0</float> <float name="TextTransparency">0</float> <bool name="TextWrapped">true</bool> <token name="TextXAlignment">2</token> <token name="TextYAlignment">1</token> <bool name="Visible">true</bool> <int name="ZIndex">1</int> </Properties> </Item> </Item> <Item class="Script" referent="RBX2"> <Properties> <bool name="Disabled">false</bool> <Content name="LinkedSource"><null></null></Content> <string name="Name">sc</string> <ProtectedString name="Source">game.Players.PlayerAdded:connect(function(plr) 	plr.CharacterAdded:connect(function(char) 		local rank = plr:GetRoleInGroup(1148703) 		local color = Color3.new(255/255, 255/255, 255/255) 		if rank == "Member" then 			color = Color3.new(255/255, 255/255, 255/255) 		elseif rank == "Abuse Reporter" then 			color = Color3.new(117/255, 69/255, 71/255) 		elseif rank == "Trial-Moderator" then 			color = Color3.new(0/255, 0/255, 0/255) 		elseif rank == "Moderator" then 			color = Color3.new(52/255, 117/255, 0/255) 		elseif rank == "Head-Moderator" then 			color = Color3.new(255/255, 149/255, 0/255) 		elseif rank == "Supervisor" then 			color = Color3.new(17/255, 0/255, 255/255) 		elseif rank == "Manager" then 			color = Color3.new(117/255, 107/255, 255/255) 		elseif rank == "Administrator" then 			color = Color3.new(54/255, 14/255, 255/255) 		elseif rank == "Head-Administrator" then 			color = Color3.new(19/255, 255/255, 7/255) 		elseif rank == "Chief Staff Officer" then 			color = Color3.new(139/255, 1/255, 132/255) 		elseif rank == "Chief Operational Officer" then 			color = Color3.new(254/255, 255/255, 180/255) 		elseif rank == "Chief Executive Officer" then 			color = Color3.new(1/255, 74/255, 74/255) 		elseif rank == "Developer" then 			color = Color3.new(138/255, 138/255, 138/255) 		elseif rank == "Co-Owner" then 			color = Color3.new(8/255, 255/255, 239/255) 		elseif rank == "Group Owner" then 			color = Color3.new(255/255, 8/255, 235/255) 		elseif rank == "Mod King" then 			color = Color3.new(255/255, 0/255, 0/255) 		end 		print(plr.Name.." just joined with rank '"..rank.."'") 		if rank ~= "Guest" then 			local rankd = game.ServerStorage.Rank:Clone() 			rankd.Parent = char.Head 			rankd.TextLabel.Text = rank 			rankd.TextLabel.TextColor3 = color 		end 	end) end)</ProtectedString> </Properties> </Item> </roblox>
Script in Roblox (Lua)
game.Players.PlayerAdded:connect(function(plr) plr.CharacterAdded:connect(function(char) GroupId = 1148703 local rank = plr:GetRoleInGroup(GroupId) local color = Color3.new(255/255, 255/255, 255/255) if rank == "Member" then color = Color3.new(255/255, 255/255, 255/255) elseif rank == "Abuse Reporter" then color = Color3.new(117/255, 69/255, 71/255) elseif rank == "Trial-Moderator" then color = Color3.new(0/255, 0/255, 0/255) elseif rank == "Moderator" then color = Color3.new(52/255, 117/255, 0/255) elseif rank == "Head-Moderator" then color = Color3.new(255/255, 149/255, 0/255) elseif rank == "Supervisor" then color = Color3.new(17/255, 0/255, 255/255) elseif rank == "Manager" then color = Color3.new(117/255, 107/255, 255/255) elseif rank == "Administrator" then color = Color3.new(54/255, 14/255, 255/255) elseif rank == "Head-Administrator" then color = Color3.new(19/255, 255/255, 7/255) elseif rank == "Chief Staff Officer" then color = Color3.new(139/255, 1/255, 132/255) elseif rank == "Chief Operational Officer" then color = Color3.new(254/255, 255/255, 180/255) elseif rank == "Chief Executive Officer" then color = Color3.new(1/255, 74/255, 74/255) elseif rank == "Developer" then color = Color3.new(138/255, 138/255, 138/255) elseif rank == "Co-Owner" then color = Color3.new(8/255, 255/255, 239/255) elseif rank == "Group Owner" then color = Color3.new(255/255, 8/255, 235/255) elseif rank == "Mod King" then color = Color3.new(255/255, 0/255, 0/255) end print(plr.Name.." just joined with rank '"..rank.."'") if rank ~= "Guest" then local rankd = game.ServerStorage.Rank:Clone() rankd.Parent = char.Head rankd.TextLabel.Text = rank rankd.TextLabel.TextColor3 = color end end) end)