ILovePotato

Untitled

Jan 17th, 2025
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.82 KB | None | 0 0
  1. -- LocalScript inside StarterPlayerScripts or another suitable location
  2. local player = game.Players.LocalPlayer
  3. local soundService = game:GetService("SoundService") -- Service to handle audio playback
  4.  
  5. -- Create a Sound object
  6. local sound = Instance.new("Sound")
  7. sound.SoundId = "rbxassetid://18460863844" -- Replace with your audio Asset ID
  8. sound.Parent = player.Character or player.CharacterAdded:Wait() -- Parent it to the player's character, or use workspace if needed
  9.  
  10. -- Set the audio to loop
  11. sound.Looped = false
  12.  
  13. -- Play the sound automatically when the game starts
  14. sound:Play()
  15. -- LocalScript inside StarterPlayerScripts or another suitable location
  16. local player = game.Players.LocalPlayer
  17. local soundService = game:GetService("SoundService") -- Service to handle audio playback
  18.  
  19. -- Create a Sound object
  20. local sound = Instance.new("Sound")
  21. sound.SoundId = "rbxassetid://18460952794" -- Replace with your audio Asset ID
  22. sound.Parent = player.Character or player.CharacterAdded:Wait() -- Parent it to the player's character, or use workspace if needed
  23.  
  24. -- Set the audio to loop
  25. sound.Looped = false
  26.  
  27. -- Play the sound automatically when the game starts
  28. sound:Play()
  29. -- LocalScript inside StarterPlayerScripts or another suitable location
  30. local player = game.Players.LocalPlayer
  31. local soundService = game:GetService("SoundService") -- Service to handle audio playback
  32.  
  33. -- Create a Sound object
  34. local sound = Instance.new("Sound")
  35. sound.SoundId = "rbxassetid://" -- Replace with your audio Asset ID
  36. sound.Parent = player.Character or player.CharacterAdded:Wait() -- Parent it to the player's character, or use workspace if needed
  37.  
  38. -- Set the audio to loop
  39. sound.Looped = false
  40.  
  41. -- Play the sound automatically when the game starts
  42. sound:Play()
  43. local animationId = "18462892217"
  44.  
  45. local player = game.Players.LocalPlayer
  46. local character = player.Character or player.CharacterAdded:Wait()
  47. local humanoid = character:WaitForChild("Humanoid")
  48.  
  49. local animation = Instance.new("Animation")
  50. animation.AnimationId = "rbxassetid://" .. animationId
  51. local animationTrack = humanoid:LoadAnimation(animation)
  52. animationTrack:Play()
  53. wait(0.5)
  54. --[[
  55. WARNING: Heads up! This script has not been verified by ScriptBlox. Use at your own risk!
  56. ]]
  57. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  58. local Camera = game.Workspace.CurrentCamera
  59. local RunService = game:GetService("RunService")
  60. local TweenService = game:GetService("TweenService")
  61. local Character = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait()
  62.  
  63. function Cinematic(moduleData)
  64. local CinematicsModule = moduleData
  65. local CurrentCameraCFrame = Camera.CFrame
  66. local FrameTime = 0
  67. local Connection
  68.  
  69. Character.Humanoid.AutoRotate = false
  70. Camera.CameraType = Enum.CameraType.Scriptable
  71.  
  72. Connection = RunService.RenderStepped:Connect(function(DT)
  73. FrameTime += DT * 60
  74. local NeededFrame = CinematicsModule[math.ceil(FrameTime)]
  75.  
  76. if NeededFrame then
  77. TweenService:Create(Camera, TweenInfo.new(0.015, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {
  78. CFrame = Character.HumanoidRootPart.CFrame * NeededFrame.cframe
  79. }):Play()
  80. Camera.FieldOfView = NeededFrame.fov
  81. else
  82. Connection:Disconnect()
  83. Camera.FieldOfView = 70
  84. Character.Humanoid.AutoRotate = true
  85. Camera.CameraType = Enum.CameraType.Custom
  86. Camera.CFrame = CurrentCameraCFrame
  87. end
  88. end)
  89. end
  90.  
  91. local moduleScript = ReplicatedStorage:WaitForChild("Cutscenes"):WaitForChild("Five Season Startup")
  92. local cutsceneData = require(moduleScript)
  93.  
  94. print("Cutscene data:", cutsceneData)
  95.  
  96. wait(0.2)
  97.  
  98. Cinematic(cutsceneData)
  99.  
  100. wait(8.5)
  101. Character.HumanoidRootPart.Anchored = false
  102.  
Add Comment
Please, Sign In to add comment