of     1   

Hedr0n
#183529471Saturday, February 13, 2016 8:44 PM GMT

local ContextService = game:GetService("ContextActionService") local RunService = game:GetService('RunService') local Player = game:GetService('Players').LocalPlayer local Camera = workspace.CurrentCamera local Mouse = Player:GetMouse() Camera.CameraType = 'Scriptable' local Target = workspace:WaitForChild('Part') local RightHolding = false local Dampining = 0.01 local Direction = 1 local Index = 0 local function RightChanged(ActionName, ActionInputState, ActionInputObject) if ActionInputState == Enum.UserInputState.End then RightHolding = false elseif ActionInputState == Enum.UserInputState.Begin then RightHolding = true end end local DeltaMouse = 0 local LastMouse = 0 RunService.RenderStepped:connect(function() DeltaMouse, LastMouse = LastMouse - Mouse.X, Mouse.X local OldIndex = Index if RightHolding then Index = Index + (DeltaMouse * 0.005) if Index > OldIndex then Direction = 1 elseif Index < OldIndex then Direction = -1 end end Index = Index + (Dampining * Direction) Camera.CFrame = CFrame.new(Target.Position) * CFrame.Angles(0, Index, 0) * CFrame.new(0, 2.5, 4.5) * CFrame.Angles(math.rad(-20), 0, 0) end) ContextService:BindAction("RightChanged", RightChanged, false, Enum.UserInputType.MouseButton2) smite me down god
Hedr0n
#183530318Saturday, February 13, 2016 8:56 PM GMT

I cut down usage by making deltamouse event oriented but it still gets up to lile 1.5%... Anyone got some suggestions? smite me down god
TimeTicks
#183531166Saturday, February 13, 2016 9:07 PM GMT

because, renderstepped
TickerOfTime
#183617920Sunday, February 14, 2016 10:09 PM GMT

^
nicemike40
#183618112Sunday, February 14, 2016 10:11 PM GMT

This bit is also quite a bit of computation and table lookups to do every render frame: Camera.CFrame = CFrame.new(Target.Position) * CFrame.Angles(0, Index, 0) * CFrame.new(0, 2.5, 4.5) * CFrame.Angles(math.rad(-20), 0, 0) See if you can't simplify that math
cheesecake123456
#183618201Sunday, February 14, 2016 10:13 PM GMT

Maybe try changing RenderStepped to HeartBeat?

    of     1