Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

Movement Lag on Custom Rig?

Asked by 2 months ago
Edited 2 months ago

So I made my own SCP 173 model and it only uses 3 parts: the "HumanoidRootPart", "Body"(MeshPart), and the face decal "Torso"(named torso so the character wouldnt move through walls.) But for some reason, theres a movement delay, so when i press W, the character moves about 0.5 - 1 second later. How can I fix this?

Not really that the code would help at all but here it is:

local Teams = {BrickColor.new("CGA brown"), BrickColor.new("New Yeller"), BrickColor.new("Dark stone grey"), BrickColor.new("Maroon")}
wait(1)
local Players = game.Players:GetPlayers()
for i = 1, #Players do
    Players[i].TeamColor = Teams[math.random(1,4)]
end

local Guards = game.Teams["Facility Guard"]:GetPlayers()
for i = 1, #Guards do
    Guards[i]:LoadCharacter()
    Guards[i].Character:MoveTo(workspace["GuardSpawn" .. math.random(1,5)].Position)
end

local Scientists = game.Teams["Scientist"]:GetPlayers()
for i = 1, #Scientists do
    local ScDModel = game.ServerStorage.Player_Characters.Scientist_Model:Clone()
    ScDModel.Parent = workspace
    ScDModel.Name = Scientists[i].Name
    Scientists[i].Character = ScDModel
    Scientists[i].Character:MoveTo(workspace["ScientistSpawn" .. math.random(1,5)].Position)
end

local ClassD = game.Teams["Class D"]:GetPlayers()
for i = 1, #ClassD do
    local CDModel = game.ServerStorage.Player_Characters.ClassD_Model:Clone()
    CDModel.Parent = workspace
    CDModel.Name = ClassD[i].Name
    ClassD[i].Character = CDModel
    ClassD[i].Character:MoveTo(workspace["CDSpawn" .. math.random(1,10)].Position)
end

local SCPs = game.Teams["SCP"]:GetPlayers()
for i = 1, #SCPs do
    local SCPNumber = math.random(1,1)
    if SCPNumber == 1 then
        local Number = Instance.new("IntValue")
        Number.Parent = SCPs[i].Character
        Number.Name = "CharacterIs"
        Number.Value = 173
        wait()
        workspace.SCP173_Model.Name = SCPs[i].Name
        SCPs[i].Character = workspace[SCPs[i].Name]
    elseif SCPNumber == 2 then
        local Number = Instance.new("IntValue")
        Number.Parent = SCPs[i].Character
        Number.Name = "CharacterIs"
        Number.Value = 049
    elseif SCPNumber == 3 then
        local Number = Instance.new("IntValue")
        Number.Parent = SCPs[i].Character
        Number.Name = "CharacterIs"
        Number.Value = 106
    elseif SCPNumber == 4 then
        local Number = Instance.new("IntValue")
        Number.Parent = SCPs[i].Character
        Number.Name = "CharacterIs"
        Number.Value = 096
    end
end

0
it'd be easier to identify if you'd post your code V3N0M_Z 75 — 2mo
0
[Posted Code] GalaxyFPS_Studios 85 — 2mo

Answer this question