Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Roblox Shift Lock "Laggy" Camera?

Asked by 6 years ago
Edited 6 years ago

Not sure why but when I welded a part to my character the camera moved less compared to the player If someone could help me or explain why this is happening it would be much appreciated. I thought it might be something with the parts weight/properties not sure though because I set everything to zero.

cp.CustomPhysicalProperties = PhysicalProperties.new(0,0,0)

(Roblox Shift Lock)

"Slow" Camera:

https://gyazo.com/810bd43146023f5eb74d570104b82ade

"Normal" Camera:

https://gyazo.com/fa699da72302a857dbf620a91a6c97e9

Inside a function in a script that is called from the client

local char = plr.Character or plr.CharacterAdded:wait()
    local cp
    -- create a crappy part not a model and then tp model later -- 
    if num == 1 then
        cp = game.Lighting.WallBrick:Clone()
    elseif num == 2 then
        cp = game.Lighting.RoofBrick:Clone()
    elseif num == 3 then
        cp = game.Lighting.SlopeBrick:Clone()
    end 
    cp.CustomPhysicalProperties = PhysicalProperties.new(0,0,0)
    cp.Parent = char
    local w = Instance.new("Weld",cp)

    w.C0 = CFrame.new(10,-5,0)*CFrame.Angles(0,math.rad(90),0)
    w.Part0 = cp
    w.Part1 = char.HumanoidRootPart

1 answer

Log in to vote
0
Answered by 6 years ago

Alright figured out what the problem was posting it here if someone else has the same problem I did.

If you make the part a mesh it solves the problem.

Original Block Size: 0.5,10,10

New Block Size 0.25,5,5 Mesh Scale 2,2,2

https://gyazo.com/0e43addd7bb095e2eae1a3ce8fd18630

I hope this helps someone with the problem I had.

Ad

Answer this question