#After Effect VFX

74 messages · Page 1 of 1 (latest)

daring berry
#
--//VARIABLES//--
local Debris = game:GetService("Debris")
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local Character = Player.Character
local After_Effect = game.ReplicatedStorage.Dummy

local function AfferEffect()
    for i = 1, 30 do 
        task.wait(0.0015)
        local After_Clone = After_Effect:Clone()

        local Head = After_Clone:WaitForChild("Head")
        local Torso = After_Clone:WaitForChild("Torso")
        local Rarm= After_Clone:WaitForChild("Right_Arm")
        local Larm = After_Clone:WaitForChild("Left_Arm")
        local Lleg = After_Clone:WaitForChild("Left_Leg")
        local Rleg = After_Clone:WaitForChild("Right_Leg")

        Head.CFrame = Character.Head.CFrame
        Torso.CFrame = Character.Torso.CFrame
        Rleg.CFrame = Character["Right_Leg"].CFrame
        Lleg.CFrame = Character["left_Leg"].CFrame
        Rarm.CFrame = Character["Right_Arm"].CFrame
        Larm.CFrame = Character["Left_Arm"].CFrame

        coroutine.resume(coroutine.create(function()
            for o = 1, 10 do
                task.wait(0.02)
                Head.Transparancy = Head.Transparancy + 0.1
                Torso.Transparancy = Torso.Transparancy + 0.1
                Rarm.Transparancy = Rarm.Transparancy + 0.1
                Rarm.Transparancy = Larm.Transparancy + 0.1
                Rleg.Transparancy = Rleg.Transparancy + 0.1
                Lleg.Transparancy = Lleg.Transparancy + 0.1
            end
            Debris:AddItem(After_Clone, 0.4)
        end))
    end
end

AfferEffect()
#

studio** You are now Level 10! **studio

daring berry
daring berry
#

idk if its intentional but

#

also

#

Head.Transparancy += .1

#

do that for every but change "Head" to whatever its supposed to be

#

like:

#
Head.Transparancy += .1
Torso.Transparency += .1
Rarm.Transparency += .1
Larm.Transparency += .1
Rleg.Transparency += .1
Lleg.Transparency += .1
#

And tbh, you could instead just loop through all the children from "Dummy" and if its name is either head, torso, rarm, larm, rleg or lleg then it adds .1 to the transparecy

#

wait no instead you could just loop through a table containing head, torso, rarm and so on.

#
local bodyParts = [Head, Torso, Rleg, Lleg, Rarm Larm]
for i, v in bodyParts do
    v.Transparency +=.1
end
#

something like that

#

I'm not very good in luau so I'm not exactly sure

#

studio** You are now Level 1! **studio

daring berry
daring berry
daring berry
daring berry
#

["Right Leg"]

#

try that

daring berry
#

replace that

#

without the task.wait(.02)

#

keep that

#
--//VARIABLES//--
local Debris = game:GetService("Debris")
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local Character = Player.Character
local After_Effect = game.ReplicatedStorage.Dummy

local function AfferEffect()
    for i = 1, 30 do 
        task.wait(0.0015)
        local After_Clone = After_Effect:Clone()

        local Head = After_Clone:WaitForChild("Head")
        local Torso = After_Clone:WaitForChild("Torso")
        local Rarm= After_Clone:WaitForChild("Right_Arm")
        local Larm = After_Clone:WaitForChild("Left_Arm")
        local Lleg = After_Clone:WaitForChild("Left_Leg")
        local Rleg = After_Clone:WaitForChild("Right_Leg")

        Head.CFrame = Character.Head.CFrame
        Torso.CFrame = Character.Torso.CFrame
        Rleg.CFrame = Character["Right Leg"].CFrame
        Lleg.CFrame = Character["left Leg"].CFrame
        Rarm.CFrame = Character["Right Arm"].CFrame
        Larm.CFrame = Character["Left Arm"].CFrame

        coroutine.resume(coroutine.create(function()
            for o = 1, 10 do
                task.wait(0.02)
                Head.Transparancy += .1
                Torso.Transparency += .1
                Rarm.Transparency += .1
                Larm.Transparency += .1
                Rleg.Transparency += .1
                Lleg.Transparency += .1
            end
            Debris:AddItem(After_Clone, 0.4)
        end))
    end
end

AfferEffect()
#

Wait I'll do it for you

#

one sec

#

coroutine.resume(coroutine.create(function()
for o = 1, 10 do
Head.Transparancy += .1
Torso.Transparency += .1
Rarm.Transparency += .1
Larm.Transparency += .1
Rleg.Transparency += .1
Lleg.Transparency += .1
end
Debris:AddItem(After_Clone, 0.4)
end))
end
end

AfferEffect()

#

where should the loop go bellow the script or in a different one?

#

thank you by the way

#

updated version:

--//VARIABLES//--
local Debris = game:GetService("Debris")
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local Character = Player.Character
local After_Effect = game.ReplicatedStorage.Dummy

local function AfferEffect()
    for i = 1, 30 do 
        task.wait(0.0015)
        local After_Clone = After_Effect:Clone()

        local Head = After_Clone:WaitForChild("Head")
        local Torso = After_Clone:WaitForChild("Torso")
        local Rarm= After_Clone:WaitForChild("Right_Arm")
        local Larm = After_Clone:WaitForChild("Left_Arm")
        local Lleg = After_Clone:WaitForChild("Left_Leg")
        local Rleg = After_Clone:WaitForChild("Right_Leg")

        Head.CFrame = Character.Head.CFrame
        Torso.CFrame = Character.Torso.CFrame
        Rleg.CFrame = Character["Right Leg"].CFrame
        Lleg.CFrame = Character["left Leg"].CFrame
        Rarm.CFrame = Character["Right Arm"].CFrame
        Larm.CFrame = Character["Left Arm"].CFrame

        coroutine.resume(coroutine.create(function()
            for o = 1, 10 do
                Head.Transparancy += .1
                Torso.Transparency += .1
                Rarm.Transparency += .1
                Larm.Transparency += .1
                Rleg.Transparency += .1
                Lleg.Transparency += .1
            end
            Debris:AddItem(After_Clone, 0.4)
        end))
    end
end

AfferEffect()
#
local Debris = game:GetService("Debris")
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local Character = Player.Character
local After_Effect = game.ReplicatedStorage.Dummy

local function AfferEffect()
    for i = 1, 30 do 
        task.wait(0.0015)
        local After_Clone = After_Effect:Clone()

        local Head = After_Clone:WaitForChild("Head")
        local Torso = After_Clone:WaitForChild("Torso")
        local Rarm= After_Clone:WaitForChild("Right Arm")
        local Larm = After_Clone:WaitForChild("Left Arm")
        local Lleg = After_Clone:WaitForChild("Left Leg")
        local Rleg = After_Clone:WaitForChild("Right Leg")

        local bodyParts = [Head, Torso, Rleg, Lleg, Rarm Larm]
        Head.CFrame = Character.Head.CFrame
        Torso.CFrame = Character.Torso.CFrame
        Rleg.CFrame = Character["Right Leg"].CFrame
        Lleg.CFrame = Character["Left Leg"].CFrame
        Rarm.CFrame = Character["Right Arm"].CFrame
        Larm.CFrame = Character["Left Arm"].CFrame

        coroutine.resume(coroutine.create(function()
            for i, v in bodyParts do
                v.Transparency += .1
            end
            Debris:AddItem(After_Clone, 0.4)
        end))
    end
end

AfferEffect()
``` try this
#

hold on

#

forgot a capital

#

uh

#

local bodyParts = {Head, Torso, Rleg, Lleg, Rarm, Larm}

#

thank you

#

I will try now

#

does it work?

#

oh okay

#

I dont know whats going on

#

no erros

#

where should the local script be?

#

its in startcharacterscripts

#

wait what are you trying to achieve?

#

and if that doesnt work, try this: ```lua

bodyParts = {
local Head = After_Clone:WaitForChild("Head")
local Torso = After_Clone:WaitForChild("Torso")
local Larm = After_Clone:WaitForChild("Left Arm")
local Rarm= After_Clone:WaitForChild("Right Arm")
local Rleg = After_Clone:WaitForChild("Right Leg")
local Lleg = After_Clone:WaitForChild("Left Leg")
}

bodyParts.Head.CFrame = Character.Head.CFrame
bodyParts.Torso.CFrame = Character.Torso.CFrame
bodyParts.Rleg.CFrame = Character["Right Leg"].CFrame
bodyParts.Lleg.CFrame = Character["Left Leg"].CFrame
bodyParts.Rarm.CFrame = Character["Right Arm"].CFrame
bodyParts.Larm.CFrame = Character["Left Arm"].CFrame

#

I'm pretty sure you dont need local before bodyParts = {}

#

if that also doesnt work, change {} to []

#

oh

#

from this video

#

btw what does this do? i've never seen it before

#

from the dev api

#

A coroutine is used to perform multiple tasks at the same time from within the same script. Such tasks might include producing values from inputs or performing work on a subroutine when solving a larger problem. A task doesn't even need to have a defined ending point, but it does need to define particular times at which it yields (pause) to let other things be worked on. See Coroutine basics to learn more.

#

oh

daring berry
#

uh

#

oh

#

yeah that means you have to take it out the function

#

but idk how that woudl work

#

tbh, just copy the code from the videio and when you finish, change some variables and values

daring berry
#

look

#

he dosnt say anything where to put the dummy or where the script is

#

you can mess around with some stuff and try to find out

#

Thank you any way I just gonna scrape it