You can write your topic however you want, but you need to answer these questions:
- I want to achieve the teleport and slam down like this: https://gyazo.com/76444acf5055639d1cfca5b9dce49196
Instead, I get this:
https://gyazo.com/55bdfda3cf09e19b1a6b0f22ef892213
Anyway I can make this more accurate to the first clip? Here’s my code:
CODE THAT DOES CFRAMES AND SUCH:
local particle = game.ReplicatedStorage.Particles.Misogi.Emitter:Clone()
particle.Parent = char["Right Arm"]
spawn(function()
for i = 1, 50 do wait(0.015)
if i ~= 50 then
particle.ParticleEmitter:Emit(1)
end
if i == 50 then
particle:Destroy()
end
end
end)
local TweenService = game:GetService("TweenService")
local tweenInfo = TweenInfo.new(0.6, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
local tween1 = TweenService:Create(Root, tweenInfo, {
CFrame = Root.CFrame * CFrame.new(0, 10, 0)
})
tween1:Play()
local effects = script.LocalScript:Clone()
effects.Parent = enemy
effects.Disabled = false
local effects2 = script.LocalScript:Clone()
effects2.Parent = char
effects2.Disabled = false
anim2:Play() -- Anim2 is the flying up animation
spawn(function()
wait(0.2)
anim2:Stop()
spawn(function()
wait(0.25)
tween1:Pause()
tween1:Destroy()
Root.CFrame = enemy.HumanoidRootPart.CFrame * CFrame.new(0,5,0)
MainModule.TagHumanoid(Player, enemy.Humanoid, DamageTable)
wait(0.2)
end)
anim:Play() -- Anim is the slam down animation
wait(0.4)
anim:Stop()
end)
CODE THAT HANDLES LIGHTING EFFECTS:
local invert = game.ReplicatedStorage.Lighting.Invert:Clone()
invert.Parent = game.Lighting
invert.Enabled = true
wait(1)
invert.Enabled = false
invert:Destroy()
script:Destroy()
EDIT: Replaced the gif of my game so you can see it better…