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

I need my script to loop untl I press play?

Asked by 4 years ago

Script:

01local TweenService = game:GetService("TweenService")
02 
03local camera = game.Workspace.Camera
04 
05local cutsceneTime = 12
06 
07local tweenInfo = TweenInfo.new(
08      cutsceneTime,
09      Enum.EasingStyle.Sine,
10      Enum.EasingDirection.Out,
11      0,
12      false,
13      0
14)
15 
View all 30 lines...

1 answer

Log in to vote
1
Answered by
VAHMPIN 277 Moderation Voter
4 years ago
Edited 4 years ago
01local TweenService = game:GetService("TweenService")
02local Button = game.Players.LocalPlayer.PlayerGui -- path
03local PlayB = false
04local sceneplaying = false
05local camera = game.Workspace.Camera
06local cutsceneTime = 12
07 
08Button.MouseButton1Down:connect(function()
09    PlayB = true
10end)
11 
12local tweenInfo = TweenInfo.new(
13      cutsceneTime,
14      Enum.EasingStyle.Sine,
15      Enum.EasingDirection.Out,
View all 42 lines...
Ad

Answer this question