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

attempt to index nil with 'Clone'? [closed]

Asked by 1 year ago
Edited 1 year ago

Hello everybody, i'm currently having an issue of this code. Please help! Any help is appreciated!

-- Decompiled with the Synapse X Luau decompiler.

local t1 = {}

local s1 = workspace
local s2 = game:GetService('TweenService')
local s3 = game:GetService('ServerStorage')

local v1 = s1.AmbushMoving
local v2 = v1.AmbushNew
local v3 = v2.Sigil
local u1 = v2.Fail
local u2 = 'CrucifixHitBox'
local u3 = false

local v2__crucifix__1 = v2.CrucifixBox

t1.crucifixBox = v2__crucifix__1
t1.crucifixionFailure = u1.Value
t1.crucifixBoxName = u2
t1.crucified = false

while true do
    wait(1)
    v2__crucifix__1.Touched:Connect(function(h1)
        local h1__parent__1 = h1.Parent
        if not u3 then
            u3 = true
            if u1.Value == false and t1.crucifixionFailure == false then
                local v4 = h1__parent__1
                if v4.Name == 'Crucifix' then
                    local v5 = v4:FindFirstChild('Glow')
                    local v6 = v4:FindFirstChild('Handle')
                    v3.Crucifix:Play()
                    v2.Sounds:Stop()
                    local v5__clone__1 = v5:Clone()
                    v5__clone__1.Parent = workspace
                    v5__clone__1.Position = v6.Position
                    local v7 = v2.down
                    local v5__bodyangularvelocity__1 = v5__clone__1:FindFirstChildWhichIsA('BodyAngularVelocity')
                    local l__spinnormal__script__1 = v5__bodyangularvelocity__1:FindFirstChild('SpinNormal')
                    l__spinnormal__script__1.Enabled = true
                    v6:Destroy()
                    local v3__sigil__chain__1 = v3.Beam
                    local v3__sigil__chain__2 = v3.Beam2
                    local v3__sigil__chain__3 = v3.Beam3
                    local v3__sigil__chain__4 = v3.Beam4
                    local v3__sigil__chain__5 = v3.Beam5
                    local v3__sigil__chain__6 = v3.Beam6
                    local v3__sigil__symbol__1 = v3.Trap
                    local v3__sigil__symbol__2 = v3.Trap1
                    local v3__sigil__symbol__3 = v3.Trap2
                    local v3__sigil__symbol__4 = v3.Trap22

                    v3__sigil__symbol__2.AttachmentRing.Ring.Enabled = true
                    v3__sigil__symbol__3.AttachmentRing.Ring.Enabled = true
                    v3__sigil__symbol__4.AttachmentRing.Ring.Enabled = true
                    v3__sigil__symbol__1.AttachmentRing.Ring.Enabled = true

                    v3__sigil__chain__1.Enabled = true
                    v3__sigil__chain__2.Enabled = true
                    v3__sigil__chain__3.Enabled = true
                    v3__sigil__chain__4.Enabled = true
                    v3__sigil__chain__5.Enabled = true
                    v3__sigil__chain__6.Enabled = true
                    wait(1.325)

                    t1.crucified = true
                    v7.Script.Enabled = true

                    wait(4)
                    v3__sigil__symbol__2.AttachmentRing.Ring.Enabled = false
                    v3__sigil__symbol__3.AttachmentRing.Ring.Enabled = false
                    v3__sigil__symbol__4.AttachmentRing.Ring.Enabled = false

                    wait(4)
                    v3__sigil__symbol__1.AttachmentRing.Ring.Enabled = false
                end
            elseif u1.Value == true and t1.crucifixionFailure == true then
                local v4 = h1__parent__1

                if v4.Name == 'Crucifix' then
                    local v5 = v4:FindFirstChild('Glow')
                    local v6 = v4:FindFirstChild('Handle')
                    v3.CrucifixFail:Play()
                    local v5__clone__1 = v5:Clone()
                    local v7 = v2.down
                    v5__clone__1.Parent = workspace
                    v5__clone__1.Transparency = 0
                    v5__clone__1.BodyAngularVelocity.AngularVelocity = Vector3.new(0, 10, 0)
                    v6:Destroy()
                    local v3__sigil__chain__1 = v3.Beam
                    local v3__sigil__chain__2 = v3.Beam2
                    local v3__sigil__chain__3 = v3.Beam3
                    local v3__sigil__chain__4 = v3.Beam4
                    local v3__sigil__chain__5 = v3.Beam5
                    local v3__sigil__chain__6 = v3.Beam6
                    local v3__sigil__symbol__1 = v3.Trap
                    local v3__sigil__symbol__2 = v3.Trap1
                    local v3__sigil__symbol__3 = v3.Trap2
                    local v3__sigil__symbol__4 = v3.Trap22

                    v3__sigil__symbol__2.AttachmentRing.Ring.Enabled = true
                    v3__sigil__symbol__3.AttachmentRing.Ring.Enabled = true
                    v3__sigil__symbol__4.AttachmentRing.Ring.Enabled = true
                    v3__sigil__symbol__1.AttachmentRing.Ring.Enabled = true

                    v3__sigil__chain__1.Enabled = true
                    v3__sigil__chain__2.Enabled = true
                    v3__sigil__chain__3.Enabled = true
                    v3__sigil__chain__4.Enabled = true
                    v3__sigil__chain__5.Enabled = true
                    v3__sigil__chain__6.Enabled = true

                    wait(4)
                    t1.crucified = false

                    v3__sigil__chain__1.Enabled = false
                    v3__sigil__chain__1.Beam.Enabled = true
                    v3__sigil__chain__2.Enabled = false
                    v3__sigil__chain__2.Beam.Enabled = true
                    v3__sigil__chain__3.Enabled = false
                    v3__sigil__chain__3.Beam.Enabled = true
                    v3__sigil__chain__4.Enabled = false
                    v3__sigil__chain__4.Beam.Enabled = true
                    v3__sigil__chain__5.Enabled = false
                    v3__sigil__chain__5.Beam.Enabled = true
                    v3__sigil__chain__6.Enabled = false
                    v3__sigil__chain__6.Beam.Enabled = true
                    v3__sigil__symbol__2.AttachmentRing.Ring.Enabled = false
                    v3__sigil__symbol__3.AttachmentRing.Ring.Enabled = false
                    v3__sigil__symbol__4.AttachmentRing.Ring.Enabled = false
                    v3__sigil__symbol__1.AttachmentRing.Ring.Enabled = false
                    v3__sigil__symbol__2.AttachmentRing.RingRed.Enabled = true
                    v3__sigil__symbol__3.AttachmentRing.RingRed.Enabled = true
                    v3__sigil__symbol__4.AttachmentRing.RingRed.Enabled = true
                    v3__sigil__symbol__1.AttachmentRing.RingRed.Enabled = true


                    wait(4)
                    v3__sigil__chain__1.Beam.Enabled = false
                    v3__sigil__chain__2.Beam.Enabled = false
                    v3__sigil__chain__3.Beam.Enabled = false
                    v3__sigil__chain__4.Beam.Enabled = false
                    v3__sigil__chain__5.Beam.Enabled = false
                    v3__sigil__chain__6.Beam.Enabled = false
                    v3__sigil__symbol__2.AttachmentRing.RingRed.Enabled = false
                    wait(1)
                    v3__sigil__symbol__3.AttachmentRing.RingRed.Enabled = false
                    wait(1)
                    v3__sigil__symbol__4.AttachmentRing.RingRed.Enabled = false
                    wait(1)
                    v3__sigil__symbol__1.AttachmentRing.RingRed.Enabled = false

                end
            end 
        end
    end)

end
0
Also it's not stolen. Sj0ppiedep0ppie -5 — 1y
0
you stole this code and you dont got all the variables, thats why its not functioning. Lord_F1re 1 — 1y

Closed as Not Constructive by T3_MasterGamer

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?