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

TweenSizeAndPosition doing nothing?

Asked by
xAtom_ik 574 Moderation Voter
8 years ago

Well, I am making a Group Information Teller which uses TweenSizeAndPosition for the emblem. But sometimes, the second TweenSizeAndPosition doesn't do anything.

Click here to see what happens.

The code is here:

emblem = script.Parent.Emblem
gname = script.Parent.GroupName
gdesc = script.Parent.GroupDesc
gid = script.Parent.GroupId
gon = script.Parent.GroupOwnerName
goi = script.Parent.GroupOwnerId
plrrank = script.Parent.PlrRank
plr = game.Players[script.Parent.Parent.Parent.Parent.Parent.Name]
wait(5)
while true do
    groupinfo = game:GetService("GroupService"):GetGroupInfoAsync(2645306)
    emblem.Image = groupinfo.EmblemUrl
    gname.Text = groupinfo.Name
    gdesc.Text= groupinfo.Description
    gid.Text= "Group ID: "..groupinfo.Id
    gon.Text= "Owner: "..groupinfo.Owner.Name
    goi.Text = "Owner ID: "..groupinfo.Owner.Id 
    if plr:GetRoleInGroup(2645306) == "Guest" then
        plrrank.Text = "You are not in Nows Studio :("
    else
        plrrank.Text = "Your Rank: "..plr:GetRoleInGroup(2645306)
    end
    emblem:TweenSizeAndPosition(UDim2.new(1,0,1,0),UDim2.new(0,0,0,0), "Out", Enum.EasingStyle.Quart, 3)
    wait(3)
    emblem:TweenSizeAndPosition(UDim2.new(0.54,0,0.47,0), UDim2.new(0,0,0,0), "Out", Enum.EasingStyle.Quart, 3) -- Here
    wait(3)
    for i = 10,0,-1 do
        gname.TextTransparency = gname.TextTransparency - 0.1
        gdesc.TextTransparency = gdesc.TextTransparency - 0.1
        gid.TextTransparency = gid.TextTransparency - 0.1
        gon.TextTransparency = gon.TextTransparency - 0.1
        goi.TextTransparency = goi.TextTransparency - 0.1
        plrrank.TextTransparency = plrrank.TextTransparency - 0.1
        wait(0.1)
    end
    wait(10)
    for i = 10,0,-1 do
        gname.TextTransparency = gname.TextTransparency + 0.1
        gdesc.TextTransparency = gdesc.TextTransparency + 0.1
        gid.TextTransparency = gid.TextTransparency + 0.1
        gon.TextTransparency = gon.TextTransparency + 0.1
        goi.TextTransparency = goi.TextTransparency + 0.1
        plrrank.TextTransparency = plrrank.TextTransparency + 0.1
        wait(0.1)
    end
    emblem:TweenSizeAndPosition(UDim2.new(0,0,0,0), UDim2.new(0,0,0,0), "In", Enum.EasingStyle.Quart, 3)
    wait(6)
end

Thanks for any help!

Answer this question