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

Gui Tween please help??

Asked by 9 years ago
            player:WaitForChild("PlayerGui"):WaitForChild("ScreenGui"):WaitForChild("ImageLabel").Visible=true 
   wait(1)
        game.StarterGui.ScreenGui.ImageLabel:TweenPosition(UDim2.new(0.5,-200,0,0),"In,"Sine",0.5)
wait()

the output says it something wrong With Sine

1 answer

Log in to vote
0
Answered by 9 years ago

Sine may not be a proper tween value. Just use Quad or something. Also, StarterGui is simply where the guis are cloned from, they don't actually change anything in the player unless they respawn. Try this:

for _,v in pairs (game.Players:GetChildren()) do
    local gui = v.PlayerGui:FindFirstChild("GuiName")
    if gui then
        gui.ImageLabel:TweenPosition(UDim2.new(0.5,-200,0,0),"In","Quad",0.5)
    end
end

This goes through a table of all the players, searches for the gui, then tweens it.

Ad

Answer this question