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

the transparency in a transformation in my game is broken?

Asked by 3 years ago

you can transform to 2 different stages, 1st stage and 2nd stage with a simple script but when i transform into the 1st stage the character from 2nd stage also shows up, while it should only appear in the second transformation.

the second transformation works normally

local awakeningcooldown = false
function awakeningskill()
    if activu == true then return end
    if awakeningcooldown == true then
        return
    end
    if awakeningcooldown == false then
        if awakening == false then
            activu = true
            awakeningcooldown = true
            human.WalkSpeed = 0
            human.JumpPower = 0
            hp2 = 1000
            hp = 1000
            awakeningtheme:Play()
            awakeningsfx:Play()
            phase3anims:FireServer()
            awakening = true
            awakeninganim:Play()
            chr.HumanoidRootPart.Anchored = true
            transparencyevent:FireServer(phase3head, 0)
            transparencyevent:FireServer(phase3lefthand, 0)
            transparencyevent:FireServer(phase3righthand, 0)
            transparencyevent:FireServer(phase3eye1, 0)
            transparencyevent:FireServer(phase3eye2, 0)
            transparencyevent:FireServer(phase3face, 0)
            transparencyevent:FireServer(phase3hair1, 0)
            transparencyevent:FireServer(phase3hair2, 0)
            transparencyevent:FireServer(phase3bodyfire, 0)
            phase3particles:FireServer(true)
            wait(0.8)
            transparencyevent:FireServer(head, 1)
            transparencyevent:FireServer(head.face, 1)
            transparencyevent:FireServer(ntorso, 1)
            transparencyevent:FireServer(rightarm, 1)
            transparencyevent:FireServer(leftarm, 1)
            transparencyevent:FireServer(rightleg, 1)
            transparencyevent:FireServer(leftleg, 1)
            transparencyevent:FireServer(chr.ClownMask.Handle, 1)
            transparencyevent:FireServer(chr.ClownHair.Handle, 1)
            wait(2)
            chr.HumanoidRootPart.Anchored = false
            human.WalkSpeed = 25
            human.JumpPower = 60
            activu = false
            wait(10)
            awakeningcooldown = false
        elseif awakening == true then
            if awakening2 == false then
                activu = true
                fullawakened = true
                awakeningcooldown = true
                human.WalkSpeed = 0
                human.JumpPower = 0
                hp2 = 2500
                hp = 2500
                awakeningtheme:Stop()
                awakeningsfx:Play()
                awakening = true
                awakeninganim:Play()
                chr.HumanoidRootPart.Anchored = true
                wait(5)
                transparencyevent:FireServer(phase3head, 1)
                transparencyevent:FireServer(phase3lefthand, 1)
                transparencyevent:FireServer(phase3righthand, 1)
                transparencyevent:FireServer(phase3eye1, 1)
                transparencyevent:FireServer(phase3eye2, 1)
                transparencyevent:FireServer(phase3face, 1)
                transparencyevent:FireServer(phase3hair1, 1)
                transparencyevent:FireServer(phase3hair2, 1)
                transparencyevent:FireServer(phase3bodyfire, 1)
                phase3particles:FireServer(false)
                phase5transparency:FireServer()
                wait(6)
                groundcrack:FireServer()
                wait(12)
                chr.HumanoidRootPart.Anchored = false
                human.WalkSpeed = 25
                human.JumpPower = 60
                activu = false
            end
        end
    end
end

i cant find the problem since im still learning lua

1 answer

Log in to vote
0
Answered by 3 years ago

nvm found the problem after 43 min of searching

Ad

Answer this question