of     1   

2sp00ky4y0u
#183638684Monday, February 15, 2016 2:53 AM GMT

so in studio i changed my camera to attach to a part every 1/60th of a second instead of what was 1/30th and then the camera was smooth on the studio version then i used normal roblox and it was still jittering why?
2sp00ky4y0u
#183665440Monday, February 15, 2016 2:05 PM GMT

bumpy, bump
Wrathsong
#183665666Monday, February 15, 2016 2:10 PM GMT

if you use renderstepped it should be fine
2sp00ky4y0u
#183665963Monday, February 15, 2016 2:16 PM GMT

well it's not for some odd reason?
cheesecake123456
#183666098Monday, February 15, 2016 2:19 PM GMT

Be careful of how much you do in that 1/60th of a second. If you consider that 1/60th of a second will be around 0.166 and you are running lots of code, you may be trying to do 0.17 seconds worth of stuff in 0.166 seconds, which would cause it to fall behind.
cheesecake123456
#183666154Monday, February 15, 2016 2:20 PM GMT

You can find how long a chunk of code takes to run: tick1 = tick() --code tick2 = tick() print(tick2 - tick1)
2sp00ky4y0u
#183666214Monday, February 15, 2016 2:21 PM GMT

so how am I going to make it 1.7 seconds or something? do renderstepped then wait? or something
cheesecake123456
#183666308Monday, February 15, 2016 2:23 PM GMT

You want to make it less than 0.0166 seconds for the code to run. Your options are to increase the efficiency of the code, or to use Heartbeat instead (0.0333 seconds), which would give the code more time to run.
2sp00ky4y0u
#183666522Monday, February 15, 2016 2:27 PM GMT

how do I use heartbeat? and would it fix my camera stutter problem?
cheesecake123456
#183666552Monday, February 15, 2016 2:28 PM GMT

Use the tick thing I said to find out how long the code takes to run first.
2sp00ky4y0u
#183666589Monday, February 15, 2016 2:28 PM GMT

can you find out how long this runs? I can't figure out I'm dumb :P script.Parent.MouseButton1Down:connect(function() script.Parent.Visible = false script.Parent.Parent.MiniGuiFolder["<"].Visible = false script.Parent.Parent.MiniGuiFolder[">"].Visible = false script.Parent.Parent.MiniGuiFolder.Frame2.Visible = false script.Parent.Parent.MiniGuiFolder.TextLabel.Visible = false script.Parent.Parent.MiniGuiFolder.text2.Visible = true local player = game.Players.LocalPlayer wait(0.3) game.Workspace[player.Name..'Figure'].Humanoid.Health = 100 game.Workspace[player.Name..'Figure'].Humanoid.MaxHealth = 100 local target = workspace[player.Name.."Figure"].Torso local camera = workspace.CurrentCamera camera.CameraType = Enum.CameraType.Scriptable camera.CameraSubject = target game:GetService("RunService").RenderStepped:connect(function() camera.CoordinateFrame = CFrame.new(target.Position) * CFrame.Angles(-95, 0, 0) * CFrame.new(0, 0, 25) end) end)
cheesecake123456
#183666696Monday, February 15, 2016 2:30 PM GMT

Run this without the RenderStepped part: tick1 = 0 tick2 = 0 tick1 = tick() camera.CoordinateFrame = CFrame.new(target.Position) * CFrame.Angles(-95, 0, 0) * CFrame.new(0, 0, 25) tick2 = tick() print(tick2 - tick1)
2sp00ky4y0u
#183667005Monday, February 15, 2016 2:36 PM GMT

its not printing anything
cheesecake123456
#183667053Monday, February 15, 2016 2:37 PM GMT

Ok, just try changing: game:GetService("RunService").RenderStepped:connect(function() to game:GetService("RunService").Heartbeat:connect(function()
2sp00ky4y0u
#183667285Monday, February 15, 2016 2:41 PM GMT

ok
2sp00ky4y0u
#183667354Monday, February 15, 2016 2:42 PM GMT

now its stuttering on both ends not just the real client (if you read you would see I said it is only stuttering on the roblox client not roblox studio)
cheesecake123456
#183667390Monday, February 15, 2016 2:43 PM GMT

In that case there's not a lot you can do about the original stutter, just change back to Renderstepped.
izzatnasruna
#183667402Monday, February 15, 2016 2:43 PM GMT

Use LocalScript
2sp00ky4y0u
#183667550Monday, February 15, 2016 2:46 PM GMT

that's sad then because how can other games have such smooth cameras? and it is a localscript Can you tell me what is wrong with the camera if you were to play the game? It should be on my profile, Battle Bloxors
izzatnasruna
#183668020Monday, February 15, 2016 2:54 PM GMT

Why does it even connected when the MouseButton1Down event is called?
2sp00ky4y0u
#183668350Monday, February 15, 2016 3:00 PM GMT

because it's a play button
2sp00ky4y0u
#183668447Monday, February 15, 2016 3:02 PM GMT

so i just learned that for some odd reason only 1 person gets a camera attached to their npc thing and that for some odd reason the other player when they click . on their keyboard it pops up with the gui thats supposed to only pop up for them
Quenty
#183668536Monday, February 15, 2016 3:03 PM GMT

Use Part:GetRenderCFrame() instead of Part.CFrame ROBLOX interpolates parts in server/client mode to get a smooth rendering (i.e. physics aren't sent at 60 FPS, but things render at 60 FPS). Thus, you need :GetRenderCFrame().
2sp00ky4y0u
#183668681Monday, February 15, 2016 3:06 PM GMT

Where do I put the Part.GetRenderCFrame() thing? Also thanks for replying quenty ;)

    of     1