no_tsi
(no_tsi)
July 29, 2022, 7:51am
#1
I’m making a TF2-like team select menu for fun, and I’ve finally got to polishing everything. However, tweens say otherwise, and the blue door flips or spasms out before returning to its normal state. Here’s what I mean:
Any idea why this is? The tween style is back for opening, and linear for closing (but it happens for every tween style).
It’d be helpful if you could provide the code you use so we can see where the issue is at =)
you should keep it that way, it looks stylish
1 Like
no_tsi
(no_tsi)
July 29, 2022, 9:16am
#4
Here:
-- blue highlight
if mouse.Target.Name == 'BlueHitbox' and workspace.TeamRoom.BlueDoor.Highlight.Enabled == false then
workspace.TeamRoom.BlueDoor.Highlight.Enabled = true
script["Door Open"]:Play()
game.TweenService:Create(
workspace.TeamRoom.BlueDoor.Union,
TweenInfo.new(0.8, Enum.EasingStyle.Back, Enum.EasingDirection.Out),
{Position = workspace.TeamRoom.BlueDoor.OpenPos.Position, Orientation = workspace.TeamRoom.BlueDoor.OpenPos.Orientation}
):Play()
elseif mouse.Target.Name ~= 'BlueHitbox' then
workspace.TeamRoom.BlueDoor.Highlight.Enabled = false
game.TweenService:Create(
workspace.TeamRoom.BlueDoor.Union,
TweenInfo.new(0.3, Enum.EasingStyle.Linear, Enum.EasingDirection.Out),
{Position = workspace.TeamRoom.BlueDoor.ClosedPos.Position, Orientation = workspace.TeamRoom.BlueDoor.ClosedPos.Orientation}
):Play()
end
It’s a little messy as I’m too lazy to make my code look actually somewhat good, but if there’s any confusion let me know.
no_tsi
(no_tsi)
July 29, 2022, 10:55pm
#5
Nevermind. It magically fixed itself after I cleaned the code.