Hello. I am the developer of BLO (Bacon League Online) and i’m struggling with getting this to work. The camera also resets. This is the code.
task.wait()
local Player = game:GetService("Players").LocalPlayer
local Character = Player.Character
local CameraFolder = workspace:WaitForChild("CameraScenes")
local CameraTarget = CameraFolder["Camera"]
local Animate = require(script.Animation)
local Camera = workspace.CurrentCamera
repeat task.wait()
workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable
until workspace.CurrentCamera.CameraType == Enum.CameraType.Scriptable
game["Run Service"].Heartbeat:Connect(function()
workspace.CurrentCamera.CFrame = CameraTarget.CFrame
end)
Camera.CameraSubject = CameraTarget
local Dialog = Player.PlayerGui:WaitForChild("dialog")
local TweenService = game.TweenService
--TweenService:Create(
-- workspace:WaitForChild("Characters").Red.Torso.Neck,
-- TweenInfo.new(0.5),
-- {["C0"] = CFrame.new(workspace:WaitForChild("Characters").Red.Torso.Neck.C0.Position.X,workspace:WaitForChild("Characters").Red.Torso.Neck.C0.Position.Y,workspace:WaitForChild("Characters").Red.Torso.Neck.C0.Position.Z) * CFrame.fromEulerAnglesXYZ(math.rad(-70), math.rad(-180), math.rad(workspace:WaitForChild("Characters").Red.Torso.Neck.C0.Rotation.Z))}):Play()
local time_ = 3
Animate.typeWrite(Dialog.Holder.Dialog, "Wheres Blue and Green?", 0.05, workspace:WaitForChild("Characters").Red)
task.wait(time_)
Animate.typeWrite(Dialog.Holder.Dialog, "They should've been here by now.", 0.05, workspace:WaitForChild("Characters").Red)
task.wait(time_)
Animate.typeWrite(Dialog.Holder.Dialog, "", 0.05, workspace.Characters.Red)
bell = script.bell:Clone()
bell.Parent = workspace
bell:Play()
bell.Ended:Connect(function()
bell.knock:Play()
bell.knock.Ended:Connect(function()
bell:Destroy()
task.wait(1)
game.ReplicatedStorage.moving:FireServer()
end)
end)
task.wait(1.2)
workspace:WaitForChild("Characters").Red.Humanoid.MoveToFinished:Connect(function(reached)
print("Finished!")
workspace.CameraScenes.Camera.Position = Vector3.new(-6.653, 6.931, 32.8)
workspace.CameraScenes.Camera.Rotation = Vector3.new(0, 180, 0)
task.wait(2)
Animate.typeWrite(Dialog.Holder.Dialog, "What's this?", 0.05, --Always loops here. workspace.Characters.Red)
task.wait(3)
Animate.typeWrite(Dialog.Holder.Dialog, "A note?", 0.05, workspace.Characters.Red)
task.wait(2)
workspace.Characters.Red.Humanoid.Animator:LoadAnimation(workspace.Characters.Red
.Humanoid.Animator.PickUp
):Play()
workspace.Note.Parent = game.ReplicatedStorage
task.wait(1)
Animate.typeWrite(Dialog.Holder.Dialog, "I'll save it when everybody gets here.", 0.05, workspace.Characters.Red)
task.wait(1)
Animate.typeWrite(Dialog.Holder.Dialog, "", 0.05, workspace.Characters.Red)
game.ReplicatedStorage.moving2:FireServer()
task.wait(2)
workspace.CameraScenes.Camera.Position = Vector3.new(-6.307, 6.926, 109.758)
workspace.CameraScenes.Camera.Rotation = Vector3.new(0, 0, 0)
game.ReplicatedStorage.Blue:Clone().Parent = workspace.Characters
game.ReplicatedStorage.Green:Clone().Parent = workspace.Characters
Animate.typeWrite(Dialog.Holder.Dialog, "We're back!", 0.05, workspace.Characters:WaitForChild("Blue"))
game.ReplicatedStorage.moving3:FireServer()
workspace.CameraScenes.Camera.Position = Vector3.new(-6.307, 6.926, 109.758)
workspace.CameraScenes.Camera.Rotation = Vector3.new(0, 0, 0)
task.wait(3)
Animate.typeWrite(Dialog.Holder.Dialog, "Huh?..", 0.05, workspace.Characters:WaitForChild("Blue"))
workspace.CameraScenes.Camera.Position = Vector3.new(-6.307, 6.926, 109.758)
workspace.CameraScenes.Camera.Rotation = Vector3.new(0, 0, 0)
task.wait(3)
Animate.typeWrite(Dialog.Holder.Dialog, "Hey! What's going on?", 0.05, workspace.Characters:WaitForChild("Yellow"))
workspace.CameraScenes.Camera.Position = Vector3.new(-6.307, 6.926, 109.758)
workspace.CameraScenes.Camera.Rotation = Vector3.new(0, 0, 0)
task.wait(3)
Animate.typeWrite(Dialog.Holder.Dialog, "What's that?", 0.05, --The problem workspace.Characters:WaitForChild("Yellow"))
workspace.CameraScenes.Camera.Position = Vector3.new(-6.307, 6.926, 109.758)
workspace.CameraScenes.Camera.Rotation = Vector3.new(0, 0, 0)
task.wait(3)
workspace.CameraScenes.Camera.Position = Vector3.new(-6.307, 6.926, 109.758)
workspace.CameraScenes.Camera.Rotation = Vector3.new(0, 0, 0)
Animate.typeWrite(Dialog.Holder.Dialog, "Hey-- Is that a gas bomb?", 0.05, workspace.Characters:WaitForChild("Pink").. " and Orange")
task.wait(5)
game.Players.LocalPlayer:Kick("ello")
end)
Please help, our testers are getting really confused and they’re requesting if we dont get the cutscene to work, might as well DELETE it.
Anyways, i’ve tried everything, and it seems not to work.