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

[CFrame] "Part" Rotation Error?? [closed]

Asked by 9 years ago

--[[ SCRIPT FIXED, DO NOT ANSWER ]]--

The error : attempt to index field '?' (a nil value)

This should spin around my Torso, but it does not..

Actinium = {
    ['Ranked'] = {
        {'messoradmin', 3, "Creator", "Really blue", {} },
    },
}

for i,v in pairs(Actinium.Ranked) do
    if v[1]:lower() == plr.Name:lower() then
        table.insert(
            v[5],
        {
            plr.Name,
            Part,
            Part2,
            Txt,
            Box
        }
    end
end

for _,plrs in pairs(game.Players:GetPlayers()) do
        for _,tabs in pairs(Actinium.Ranked) do
            if tabs[1]:lower() == plrs.Name:lower() and plrs.Character and plrs.Character.Torso then
                for i = 0,#tabs[5] do
                    local TabBl = tabs[5] -- Error here..why?
                    local Tab = TabBl[i][2]
                    Tab.CFrame = clerp( -- clerp is a function, but its working correctly.
                        Tab.CFrame,
                        CFrame.new(
                            plrs.Character.Torso.CFrame.p
                        ),.1)
                end
            end
        end
    end

Locked by MessorAdmin, TheeDeathCaster, PiggyJingles, and MrNicNac

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?