I tried to instance a frame in a local script but it doesn't work. Can someone help me fix this error,
wait()
local startergui = game:GetService("StarterGui")
if startergui then
local screengui = Instance.new("ScreenGui", startergui)
local frame = Instance.new("Frame", screengui)
if screengui and frame then
frame.Visible = true
frame.BackgroundTransparency = 0.3
frame.BackgroundColor3 = Color3.fromRGB({12,40,14})
frame.Position = UDim2.new({0, 0, 0, 32})
frame.Size = UDim2.new({0, 100, 0, 100})
wait()
end
end

1 comment
Have you tried resetting the character.