Hi all!
I was recently having an issue with my tweening code and thought to just rewrite it, which I did, yet when rewriting and testing the EXACT same code, boom it works. I feel like roblox studio is picking on me or something or maybe I have been added to a blacklist or something, IDK, but this occurrence has happened to me MULTIPLE times and its very frustrating.
Here is the code I wrote originally and it didn’t work:
function CloseCurrentFrame(frame)
local t = TS:Create(frame, info, {Position = tweenObjects[frame].ClosPos})
t:Play()
t.Completed:Wait()
frame.Visible = false
frame.Position = tweenObjects[frame].OpenPos
This code above does NOT work, and here is the outcome:
The tween doesn’t work, and the frame just disappears.
Now when I rewrote the code with the exact same keywords and all:
function CloseCurrentFrame(frame)
--[[local t = TS:Create(frame, info, {Position = tweenObjects[frame].ClosPos})
t:Play()
t.Completed:Wait()
frame.Visible = false
frame.Position = tweenObjects[frame].OpenPos--]]
local t = TS:Create(frame, info, {Position = tweenObjects[frame].ClosePos})
t:Play()
t.Completed:Wait()
frame.Visible = false
frame.Position = tweenObjects[frame].OpenPos
end
TADA it works weird here is the outcome:
Please someone explain cause I definetely have no idea why this happens
