What do you want to achieve? Just trying to tween a frame size to make it “invisible”
What is the issue? Can’t seem to play it
What solutions have you tried so far? Tried doing :Create() but that doesn’t work with sizes.
local Player = game.Players.LocalPlayer
local PlayerGui = Player:WaitForChild("PlayerGui")
local __MAINUI = PlayerGui:WaitForChild("MainUI")
local __MAINFRAME = __MAINUI:WaitForChild("MFrame")
local __MAIN = __MAINUI:WaitForChild("Main")
__MAINFRAME:TweenSize(UDim2.new(-0.004, 0,0.28, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Quad, 1):Play()
I’d recommend moving to standard TweenService calls rather than the deprecated UI specific calls. Try this: game:GetService("TweenService"):Create(__MAINFRAME, TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {Size = UDim2.new(-0.004, 0, 0.28, 0)}):Play()
You can expand it like this:
local TweenService = game:GetService("TweenService")
local info = TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut)
local size = UDim2.new(-0.004, 0, 0.28, 0)
local tween = TweenService:Create(__MAINFRAME, info, {Size = size})
tween:Play()
local info = TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut)
local size = UDim2.new(-0.004, 0, 0.28, 0)
local tween = TweenService:Create(__MAINFRAME, info, {Size = size})
Humanoid.Died:Connect(function()
print("Before Died")
tween:Play()
print("After Died")
end)
I’m gonna try setting the frame to be invisible as an optional debug.
Tried printing the name too
gonna have to resort to a different localscript then.