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

How come my image isn't tweening? There's no error, click for more detail.

Asked by 7 years ago
Edited 7 years ago

~=PROBLEM=~

My ImageLabel isn't tweening. There are no errors.

~=My Code=~

local plr = game.Players.LocalPlayer
local Continue = plr:WaitForChild("Stats").Continue
local NB = script.Parent
local i = 1
local TextTable = {
    "First, let's take a look at the Income bar! The Income bar show's how much Coins you get per the amount of time. You can upgrade the time stat in the shop. Upgrading it will just decrease the time.",
    "Hey, why don't we play an obby? We might win some rare rewards! LOADING..."
}
NB.MouseButton1Down:Connect(function()
    print("Clicked")
    if Continue.Value == true then
        local WTS = script.Parent.Parent:WaitForChild("TextBubble").WhatToSay
        local Arrow = script.Parent.Parent.Parent:WaitForChild("MainFrame").Arrow
        --Animating the Arrow
        Arrow:TweenPosition(UDim2.new(0, 130,0, 160),'In','Sine',3)
        print("Arrow Animated")
        local Text = TextTable[i]
        WTS.Value = Text
        i = i + 1
    end
end)

"Clicked" was printed but "Arrow Animated" wasn't, there were no errors, what did I do wrong and how would I fix this? Any help is appreciated.

0
Is the conditional statement evaluating to true? Unsubtleties 31 — 7y
0
Yea BlackOrange3343 2676 — 7y
0
I believe he means the `Continue.Value == true`. If that evaluates to true, and there aren't errors, "Arrow Animated" should print. Are you entirely sure it's true? Pyrondon 2089 — 7y
0
Moved "print("Clicked") to inside the conditional statement and see if it prints then. User#9949 0 — 7y

Answer this question