So basically This is happening after i use my attack i made:
Could you perhaps share the Attack script? We can’t figure out the problem without looking at the Script.
one moment, ill get the code for you
it should be at line 420
local rp = game:GetService("ReplicatedStorage")
local state = require(game.ReplicatedStorage.Modules.SetState)
local CraterModule = require(rp.KJ.barrage.CraterModule)
rp.Start.OnServerEvent:Connect(function(plr, action)
local char = plr.Character
local hum = char:FindFirstChildOfClass("Humanoid")
local hrp = char:FindFirstChildWhichIsA("Part")
local vfx = game.ReplicatedStorage.FiveSeasonsFold.Vfx
if action == "Seasons" then
local ChargeSfx = script.Charge:Clone()
ChargeSfx.Parent = hrp
ChargeSfx:Play()
ChargeSfx.Ended:Connect(function()
game.Debris:AddItem(ChargeSfx, 0)
end)
local Power = script.Power:Clone()
Power.Parent = hrp
Power:Play()
Power.Ended:Connect(function()
game.Debris:AddItem(Power, 0)
end)
state:AddState(char, "Block", 400)
state:AddState(char, "DashCD", 400)
local Fist = game.ReplicatedStorage.FiveSeasonsFold.Vfx.Fist:Clone()
plr.DevEnableMouseLock = false
state:AddState(char,"Stun", 400)
hum.WalkSpeed = 0
hum.JumpHeight = 0
local FSS = script.FSS:Clone()
local animation = script.Animation
local PlayerAnimation = animation.Player
local LoadAnimation = hum:LoadAnimation(PlayerAnimation)
LoadAnimation:Play()
local TweenLight = game.ReplicatedStorage.FiveSeasonsFold.Light:Clone()
TweenLight.Parent = hrp
local Specs = vfx["Speed Lines"]:Clone()
Specs.Parent = hrp
Specs.Position = hrp.Position + Vector3.new(0, -3, 0)
Specs.FireSpecs1.Enabled = true
game.ReplicatedStorage.ChangeTime:FireClient(plr, "Night")
game.TweenService:Create(TweenLight, TweenInfo.new(2, Enum.EasingStyle.Sine), {Brightness = 10}):Play()
game.TweenService:Create(TweenLight, TweenInfo.new(2, Enum.EasingStyle.Sine), {Range = 60}):Play()
LoadAnimation:AdjustSpeed(.6)
hum.WalkSpeed = 0
hum.JumpHeight = 0
local StartFire = vfx["Left Arm"].fireStat:Clone()
LoadAnimation:GetMarkerReachedSignal("Camera"):Connect(function()
hum.WalkSpeed = 0
hum.JumpHeight = 0
end)
LoadAnimation:GetMarkerReachedSignal("Play"):Connect(function()
game.ReplicatedStorage.ChangeTime:FireClient(plr, "Day")
hum.WalkSpeed = 0
hum.JumpHeight = 0
LoadAnimation:AdjustSpeed(1)
game.ReplicatedStorage.ColorCorr:FireClient(plr, "one")
char.CanUseRavage.Value = false
char.CanUseSwift.Value = false
char.CanUseRuin.Value = false
plr.PlayerGui.Hotbar.Backpack.Hotbar:TweenPosition(UDim2.new(0.5, 0,1, 70))
plr.PlayerGui.Ultimate.Background:TweenPosition(UDim2.new(0.5, 0,1, 90))
FSS.Parent = char.Torso
Specs.FireSpecs1.Enabled = false
FSS:Resume()
TweenLight:Destroy()
local Takeoff = vfx["Speed Lines"]:Clone()
local Smoke = vfx.SmokeDecal:Clone()
Smoke.Parent = workspace.Vfx
Smoke.Position = hrp.Position + Vector3.new(0, -3, 0)
Takeoff.Parent = workspace.Vfx
Takeoff.Position = hrp.Position + Vector3.new(0, -3, 0)
Takeoff.FireSpecs1.Enabled = true
Takeoff.ParticleEmitter2.Enabled = true
Takeoff.ParticleEmitter1.Enabled = true
Takeoff.ParticleEmitter3.Enabled = true
Takeoff.ParticleEmitter4.Enabled = true
Takeoff.Main.Windspin5.Enabled = true
Takeoff.Main.Windspin6.Enabled = true
game.TweenService:Create(Smoke.Decal, TweenInfo.new(5, Enum.EasingStyle.Sine), {Transparency = 1}):Play()
spawn(function()
CraterModule.formCrater({
Position = hrp.Position;
Radius = tonumber(100);
rockSize = tonumber(15)
})
CraterModule:UpdateSettings({
useGroundMaterial = false;
debrisColor = Color3.fromRGB(98, 95, 93);
debrisMaterial = Enum.Material.Concrete;
timeBeforeRemoval = 8;
doFlyingDebris = false;
centerFlyingDebris = false;
hasDust = true;
rockSkipInterval = 0;
})
end)
wait(.6)
Specs:Destroy()
Takeoff.Main.Windspin5.Enabled = false
Takeoff.Main.Windspin6.Enabled = false
Takeoff.FireSpecs1.Enabled = false
Takeoff.ParticleEmitter2.Enabled = false
Takeoff.ParticleEmitter1.Enabled = false
Takeoff.ParticleEmitter3.Enabled = false
Takeoff.ParticleEmitter4.Enabled = false
wait(5)
Smoke:Destroy()
Takeoff:Destroy()
end)
LoadAnimation:GetMarkerReachedSignal("Slow"):Connect(function()
spawn(function()
CraterModule.formCrater({
Position = hrp.Position;
Radius = tonumber(100);
rockSize = tonumber(15)
})
CraterModule:UpdateSettings({
useGroundMaterial = false;
debrisColor = Color3.fromRGB(98, 95, 93);
debrisMaterial = Enum.Material.Concrete;
timeBeforeRemoval = 8;
doFlyingDebris = false;
centerFlyingDebris = false;
hasDust = true;
rockSkipInterval = 0;
})
end)
game.ReplicatedStorage.CutsceneRemote:FireClient(plr, "Beginning")
hum.WalkSpeed = 0
hum.JumpHeight = 0
LoadAnimation:AdjustSpeed(.4)
local Heat = vfx.FlyFly.Fly:Clone()
Heat.Parent = char.Torso
Heat.Exp1.Enabled = true
wait(1)
Heat.Exp1.Enabled = false
wait(.8)
Heat.Parent = nil
end)
LoadAnimation:GetMarkerReachedSignal("Vanish"):Connect(function()
hum.WalkSpeed = 0
hum.JumpHeight = 0
local Glitch = script.Glitch:Clone()
Glitch.Parent = char.Head
Glitch:Play()
game.Debris:AddItem(Glitch, 2.011)
for _,v in ipairs(char:GetChildren()) do
if v:IsA("Part") then
v.Transparency = 1
v.CastShadow = false
hum.NameDisplayDistance = 0
LoadAnimation:AdjustSpeed(0)
for _,v2 in ipairs(char:GetChildren()) do
if v2:IsA("Accessory") then
v2.Handle.Transparency = 1
v2.Handle.CastShadow = false
end
end
for _,v3 in ipairs(v:GetChildren()) do
if v3:IsA("Decal") then
v3.Transparency = 1
end
end
end
end
local FlashyStuff1 = vfx["Left Arm"].big2:Clone()
local FlashyStuff2 = vfx["Left Arm"].small2:Clone()
FlashyStuff1.Parent = char:FindFirstChild("Left Arm")
FlashyStuff2.Parent = char:FindFirstChild("Left Arm")
FlashyStuff1.Enabled = true
FlashyStuff2.Enabled = true
wait(.4)
game.ReplicatedStorage.CutsceneRemote:FireClient(plr, "Frames")
FSS:Pause()
game.ReplicatedStorage.CutsceneRemote:FireClient(plr, "Orbit")
local Script = script.OrbitalCameraPartFiveSeasons:Clone()
Script.Parent = char
Script.Enabled = true
game.ReplicatedStorage.CameraTime:FireClient(plr, "loop")
wait(.6)
FlashyStuff1.Enabled = false
FlashyStuff2.Enabled = false
wait(.4)
FlashyStuff1.Parent = nil
FlashyStuff2.Parent = nil
end)
LoadAnimation:GetMarkerReachedSignal("Vfx"):Connect(function()
StartFire.Fire1.Enabled = false
StartFire.Fire2.Enabled = false
hum.WalkSpeed = 0
hum.JumpHeight = 0
LoadAnimation:AdjustSpeed(0)
local Charge = vfx["Left Arm"].Main:Clone()
Charge.Parent = char:FindFirstChild("Left Arm")
Charge.Energy1.Enabled = true
Charge.Energy2.Enabled = true
Charge.star.Enabled = true
wait(.5)
plr.PlayerGui.Sub.bg.Title.Text = "Kj's 20 Series:"
wait(.7)
StartFire.Parent = nil
Charge.Energy1.Enabled = false
Charge.Energy2.Enabled = false
Charge.star.Enabled = false
LoadAnimation:AdjustSpeed(.6)
local Fire = vfx["Left Arm"].hand:Clone()
Fire.Parent = char:FindFirstChild("Left Arm")
Fire.Fire1.Enabled = true
Fire.Fire2.Enabled = true
game.TweenService:Create(plr.PlayerGui.Anim.BG.Glow, TweenInfo.new(1, Enum.EasingStyle.Sine), {ImageTransparency = 0.4}):Play()
wait(1.6)
game.TweenService:Create(plr.PlayerGui.Anim.BG.Glow, TweenInfo.new(1, Enum.EasingStyle.Sine), {ImageTransparency = 1}):Play()
plr.PlayerGui.Sub.bg.Title.Text = ""
Fire.Fire1.Enabled = false
Fire.Fire2.Enabled = false
Charge.Parent = nil
wait(.4)
Fire.Parent = nil
end)
LoadAnimation:GetMarkerReachedSignal("Vfx2"):Connect(function()
hum.WalkSpeed = 0
hum.JumpHeight = 0
LoadAnimation:AdjustSpeed(0)
local FlashyStuff1 = vfx["Left Arm"].big:Clone()
local FlashyStuff2 = vfx["Left Arm"].small:Clone()
local FlashyStuff3 = vfx["Left Arm"].starSmall:Clone()
local Star = vfx.Head.eye:Clone()
Star.Parent = char.Head
Star.star.Enabled = true
FlashyStuff1.Parent = char:FindFirstChild("Left Arm")
FlashyStuff2.Parent = char:FindFirstChild("Left Arm")
FlashyStuff3.Parent = char:FindFirstChild("Left Arm")
FlashyStuff1.Enabled = true
FlashyStuff2.Enabled = true
FlashyStuff3.Enabled = true
game.ReplicatedStorage.ColorCorr:FireClient(plr)
wait(.6)
FlashyStuff1.Enabled = false
FlashyStuff2.Enabled = false
FlashyStuff3.Enabled = false
LoadAnimation:AdjustSpeed(.6)
Star.star.Enabled = false
wait(1)
Star.Parent = nil
FlashyStuff1.Parent = nil
FlashyStuff2.Parent = nil
FlashyStuff3.Parent = nil
end)
game.ReplicatedStorage.Continue.OnServerEvent:Connect(function(plr , cam)
hum.WalkSpeed = 0
hum.JumpHeight = 0
hrp.Anchored = true
FSS:Resume()
hum.NameDisplayDistance = 100
game.ReplicatedStorage.CutsceneRemote:FireClient(plr, "Continue")
for _,v in ipairs(char:GetChildren()) do
if v:IsA("Part") then
v.Transparency = 0
v.CastShadow = true
for _,v2 in ipairs(char:GetChildren()) do
if v2:IsA("Accessory") then
v2.Handle.Transparency = 0
v2.Handle.CastShadow = true
end
end
for _,v3 in ipairs(v:GetChildren()) do
if v3:IsA("Decal") then
v3.Transparency = 0
end
end
end
if v.Name == "HumanoidRootPart" then
v.Transparency = 1
end
end
LoadAnimation:AdjustSpeed(1)
FSS.TimePosition = 11.21
LoadAnimation:GetMarkerReachedSignal("Stop"):Connect(function()
hum.WalkSpeed = 0
hum.JumpHeight = 0
LoadAnimation:AdjustSpeed(0)
local Fire = vfx["Left Arm"].hand:Clone()
Fire.Parent = char:FindFirstChild("Left Arm")
Fire.Fire1.Enabled = true
Fire.Fire2.Enabled = true
wait(.2)
game.ReplicatedStorage.CutsceneRemote:FireClient(plr, "Frames")
plr.PlayerGui.Sub.bg.Title.Text = "Five Seasons."
plr.PlayerGui.Symbol.Bg.Visible = true
wait(.6)
Fire.Fire1.Enabled = false
Fire.Fire2.Enabled = false
wait(.4)
Fist.Parent = workspace.Vfx
Fist:PivotTo(char:GetPivot(hrp.CFrame + Vector3.new(-400, 295, 0)))
for _,v in ipairs(Fist:GetChildren()) do
if v:IsA("MeshPart") then
v.Orientation = Vector3.new(-49.545, 0, 0)
end
end
plr.PlayerGui.Sub.bg.Title.Text = ""
Fire.Parent = nil
plr.PlayerGui.Symbol.Bg.Visible = false
plr.PlayerGui.Sub.bg.Title.Text = "Die."
game.ReplicatedStorage.CutsceneRemote:FireClient(plr, "Continue")
wait(1.4)
plr.PlayerGui.Sub.bg.Title.Text = ""
LoadAnimation:AdjustSpeed(1)
end)
LoadAnimation:GetMarkerReachedSignal("Stop2"):Connect(function()
hum.WalkSpeed = 0
hum.JumpHeight = 0
LoadAnimation:AdjustSpeed(0)
plr.PlayerGui.Fists.BG.Visible = true
game.TweenService:Create(plr.PlayerGui.Fists.BG.one, TweenInfo.new(.02, Enum.EasingStyle.Sine), {Size = UDim2.new(0, 800, 800, 0)}):Play()
game.ReplicatedStorage.Crack:FireClient(plr, "GlassBreak")
wait(.12)
game.TweenService:Create(plr.PlayerGui.Fists.BG.two, TweenInfo.new(.01, Enum.EasingStyle.Sine), {Size = UDim2.new(0, 800, 800, 0)}):Play()
wait(.12)
game.TweenService:Create(plr.PlayerGui.Fists.BG.three, TweenInfo.new(.01, Enum.EasingStyle.Sine), {Size = UDim2.new(0, 800, 800, 0)}):Play()
wait(.12)
game.TweenService:Create(plr.PlayerGui.Fists.BG.four, TweenInfo.new(.01, Enum.EasingStyle.Sine), {Size = UDim2.new(0, 800, 800, 0)}):Play()
wait(.12)
game.TweenService:Create(plr.PlayerGui.Fists.BG.five, TweenInfo.new(.01, Enum.EasingStyle.Sine), {Size = UDim2.new(0, 4000, 4000, 0)}):Play()
game.ReplicatedStorage.Crack:FireClient(plr, "Break")
wait(.1)
local hitbox = Instance.new("Part", workspace.Vfx)
game.ReplicatedStorage.ColorCorr:FireClient(plr, "one")
hitbox.Anchored = false
hitbox.CanCollide = false
hitbox.Transparency = 1
hitbox.Size = Vector3.new(300,300,300)
hitbox.Position = char.Torso.Position + Vector3.new(0, -80, 0)
hitbox.Orientation = hrp.Orientation
Fist:PivotTo(hitbox.CFrame)
for _,v in ipairs(Fist:GetChildren()) do
if v:IsA("MeshPart") then
v.Orientation = Vector3.new(-49.545, 0, 0)
end
end
plr.PlayerGui.Fists.BG.Visible = false
plr.PlayerGui.Fists.BG.one.Size = UDim2.new(0, 0, 0, 0)
plr.PlayerGui.Fists.BG.two.Size = UDim2.new(0, 0, 0, 0)
plr.PlayerGui.Fists.BG.three.Size = UDim2.new(0, 0, 0, 0)
plr.PlayerGui.Fists.BG.four.Size = UDim2.new(0, 0, 0, 0)
plr.PlayerGui.Fists.BG.five.Size = UDim2.new(0, 0, 0, 0)
game.ReplicatedStorage.CutsceneRemote:FireClient(plr, "Done")
Fist:Destroy()
local wld = Instance.new("WeldConstraint", hitbox)
wld.Part0 = hrp
wld.Part1 = hitbox
game.Debris:AddItem(hitbox, .2)
hitbox.Touched:Connect(function(hit)
if hit.Parent.Name ~= char.Name then
if hit.Name == "HumanoidRootPart" and not state:CheckState(hit.Parent, "Stun") and hit.Parent:IsA("Model") then
print("hit")
plr.Ultimate.Energy.Value += 650
local enemy = hit.Parent
local enemyHum = enemy:FindFirstChildOfClass("Humanoid")
local eneHrp = enemy:FindFirstChild("HumanoidRootPart")
enemy.CanUseRuin.Value = false
enemy.CanUseRavage.Value = false
hitbox:Destroy()
enemy.CanUseSwift.Value = false
state:AddState(enemy, "Stun", 6)
require(game.ReplicatedStorage.Modules.Ragdoll).StartRagdoll(enemy)
spawn(function()
CraterModule.formCrater({
Position = eneHrp.Position;
Radius = tonumber(20);
rockSize = tonumber(5)
})
CraterModule:UpdateSettings({
useGroundMaterial = false;
debrisColor = Color3.fromRGB(98, 95, 93);
debrisMaterial = Enum.Material.Concrete;
timeBeforeRemoval = 4;
doFlyingDebris = false;
centerFlyingDebris = false;
hasDust = true;
rockSkipInterval = 0;
})
end)
enemyHum:TakeDamage(100)
wait(6)
state:RemoveState(enemy, "Stun")
end
end
end)
spawn(function()
CraterModule.formCrater({
Position = hitbox.CFrame.Position;
Radius = tonumber(140);
rockSize = tonumber(10)
})
CraterModule:UpdateSettings({
useGroundMaterial = false;
debrisColor = Color3.fromRGB(98, 95, 93);
debrisMaterial = Enum.Material.Concrete;
timeBeforeRemoval = 4;
doFlyingDebris = false;
centerFlyingDebris = false;
hasDust = true;
rockSkipInterval = 0;
})
end)
wait(1)
LoadAnimation:AdjustSpeed(1)
hrp.Anchored = false
hum.WalkSpeed = 16
hum.JumpHeight = 7.2
state:RemoveState(char, "Stun")
state:RemoveState(char, "Block")
state:RemoveState(char, "DashCD")
plr.PlayerGui.Hotbar.Backpack.Hotbar:TweenPosition(UDim2.new(0.5, 0,1, -70))
plr.PlayerGui.Ultimate.Background:TweenPosition(UDim2.new(0.5, 0,1, -90))
FSS.Ended:Connect(function()
plr.DevEnableMouseLock = true
hum.AutoRotate = true
char.CanUseRavage.Value = true
char.CanUseSwift.Value = true
char.CanUseRuin.Value = true
plr.Character:PivotTo(hrp.CFrame)
FSS:Destroy()
end)
end)
end)
wait(.4)
StartFire.Parent = char:FindFirstChild("Left Arm")
StartFire.Fire1.Enabled = true
StartFire.Fire2.Enabled = true
end
end)
“FSS.Ended” Is where it is if you were wondering
Make sure you enable, auto rotate, if you are disabling it.
already did, it should be after the sound has ended
Generally, we can’t see specific line numbers (I have a custom coded plugin that adds it for me).
@HelpSupport01, below is a screenshot of the code with line numbers. It’s at the very end of the original script.
put a print on “fss.ended” foaofafafa
it prints it, and changes everything back
you there?, i can’t update my game till i fix this bug
could you please run the game, and then while in the game go to players and click on your player.
could you send a ss of the properties there and see if DevMouseLockEnabled
is like actually enabled
it’s enabled, thats how i was able to go into lock