提问人:Gamerboi677 _YT 提问时间:11/15/2023 更新时间:11/15/2023 访问量:19
补间延迟
Tween being delayed
问:
由于某种原因,我的补间在我被传送后正在播放,我的第二个补间也根本没有播放。
代码如下:
print("Player Teleporting")
game.Workspace.Spawn.Portals.set1.portalgyuer.telepart.Touched:Connect(function(player)
game.Workspace.Spawn.Portals.set1.portalgyuer.telepart.CanTouch = false
print("touched")
local frame = game.Players.LocalPlayer.PlayerGui.Teleport.load
frame:TweenPosition(UDim2.new(1,0,0,0),Enum.EasingDirection.Out,Enum.EasingStyle.Sine,0.3,true)
wait(1.5)
player.Parent.HumanoidRootPart.CFrame = CFrame.new(15.5, -40.5, 6499.5)
wait(1.5)
frame:TweenPosition(UDim2.new(0,0,0,0),Enum.EasingDirection.In,Enum.EasingStyle.Sine,0.3,true)
wait(3)
game.Workspace.Spawn.Portals.set1.portalgyuer.telepart.CanTouch = true
end)
请帮忙!
谢谢
答: 暂无答案
评论
localscript
script