Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Function not working?

Asked by
Omarstein 100
9 years ago

This is part of a script I created...

function createLeaderboard() iframe = Instance.new("Frame", script.Parent.Game) iframe.Name = "IFrame" iframe.Size = UDim2.new(0.3,0,0.5,0) iframe.Position = UDim2.new(0.5,0,0.5,0) iframe.BackgroundTransparency = 1 mframe = Instance.new("Frame", iframe) mframe.Name = "MFrame" mframe.BackgroundColor3 = Color3.new(102,0,0) mframe.BorderSizePixel = 5 mframe.BorderColor3 = Color3.new(255,0,0) mframe.Size = UDim2.new(1,0,1,0) mframe.Position = UDim2.new(-0.5,0,-0.5,0) end

The problem is when i play solo or online the colors aren't set to what i set them to... they change to:

BackgroundColor3 = Color3.new(26010, 0, 0) BorderColor3 = Color3.new(65025, 0, 0)

Answer this question