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

Hey so how do I add music to my cutscene?

Asked by 4 years ago

I want to have creepy music in this cutscene Script:

01local TweenService = game:GetService("TweenService")
02 
03local camera = game.Workspace.Camera
04 
05local cutsceneTime = 6
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 50 lines...

1 answer

Log in to vote
0
Answered by
rabbi99 714 Moderation Voter
4 years ago
Edited 4 years ago
01local TweenService = game:GetService("TweenService")
02 
03local camera = game.Workspace.Camera
04 
05local cutsceneTime = 6
06 
07local CreepyMusic = Instance.new("Sound")
08CreepyMusic.Parent = game.Workspace
09CreepyMusic.SoundId = "rbxassetid://178619276"
10CreepyMusic.Looped = true
11CreepyMusic.Playing = false
12 
13local tweenInfo = TweenInfo.new(
14     cutsceneTime,
15     Enum.EasingStyle.Sine,
View all 57 lines...
1
Can I add something? Never use the 2nd Parameter of Instance.new(), It's deprecated. Dovydas1118 1495 — 4y
0
Do you mean instance.new("Sound", workspace)? Cynical_Innovation 595 — 4y
Ad

Answer this question