@Mozi111
I'm asking HOW I could make the camera smooth.
Here are the parts you need from the script:
local hUp, uUp, kUp, jUp = true, true, true, true
script.Parent.Selected:connect(function(mouse)
script.Parent.Parent.Parent.Character.Humanoid.PlatformStand = true
local ball = Instance.new("Part", Workspace)
ball.Position = Vector3.new(0,5,0)
ball.Shape = "Ball"
ball.Name = "Ball"
ball.Size = Vector3.new(6,6,6)
Workspace.CurrentCamera.CameraSubject = ball
Workspace.CurrentCamera.CameraType = "Track"
--Jumping to last part
turnIndex = 0
while wait() do
if not hUp or not uUp or not kUp then
turnIndex = not hUp and uUp and kUp and 90 or hUp and not uUp and kUp and 0 or hUp and uUp and not kUp and -90 or not hUp and not uUp and 45 or not uUp and not kUp and -45 or 0 --Angle the ball will move in
local lookVector = (Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(0, math.rad(turnIndex), 0)).lookVector * 30
--print(Workspace.CurrentCamera.CoordinateFrame.lookVector, "||", lookVector)
ball.Velocity = Vector3.new(lookVector.X, ball.Velocity.Y, lookVector.Z)
end
end
end) |