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

Why isn't this script working, I have tried many things but i still can't get the it to work help?

Asked by
bailley5 114
3 years ago
Edited 3 years ago

this is in a screengui inside of a text label. also nothing is in the output :/

local guiObject = script.Parent
while true do
guiObject.TextScaled = true
wait(0.1)
guiObject.TextScaled = false
wait(0.1)
guiObject.TextScaled = true
wait(0.1)
guiObject.TextScaled = false
guiObject.Position = UDim2.new(-52, 102)
wait(0.1)
guiObject.Position = UDim2.new(82, 29)
wait(0.1)
guiObject.Position = UDim2.new(286, 101)
wait(0.1)
guiObject.Position = UDim2.new(102, 13)
guiObject.BackgroundColor3 = Color3.new(255, 0, 0)
wait(0.1)
guiObject.BackgroundColor3 = Color3.new(105, 102, 92)
wait(0.1)
guiObject.BackgroundColor3 = Color3.new(255, 0, 0)
wait(0.1)
guiObject.BackgroundColor3 = Color3.new(105, 102, 92)
wait(5)
end
0
what are you trying to achieve with your code? quinzt 201 — 3y
0
I am trying to make an eerie gui that glitches around the screen. bailley5 114 — 3y
0
In the output it says now "can't set value" I have never seen that ever bailley5 114 — 3y

1 answer

Log in to vote
1
Answered by
quinzt 201 Moderation Voter
3 years ago
Edited 3 years ago

your using brickcolor.new for a gui. Use color3.new instead

ok so I edited your script

local gu = script.Parent
spawn(function()
    while true do
        wait(.1)
        gu.BackgroundColor3 = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
    end
end)
spawn(function()
    while true do
--put your different coords here
    end
end)
spawn(function()
    while true do
        wait(.1)
        gu.TextScaled = true
        wait(.1)
        gu.TextScaled = false
    end
end)
0
I did that, thanks but now the textlabel just disappears, I think it is to do with the position. bailley5 114 — 3y
0
i edited it heres a comment just for the notif quinzt 201 — 3y
0
Thanks! bailley5 114 — 3y
Ad

Answer this question