Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait()
- local mode = "Sword"
- local modes = {"Sword", "Ranged"}
- debounce = false
- blocking=false
- heavyReady=true
- heavyReady2=true
- local Light=1
- local lastClick=tick()
- local ChangeModeWait=0.6
- local combotime = tick()
- local attackWait=0.25
- local SwordWalkSpeed=25
- local RangedWalkSpeed=16
- local hitstun=0
- local BlockingAnim =game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(game.ReplicatedStorage.Animations.BlockingAnim)
- game.ReplicatedStorage.Remotes.WeaponChange:InvokeServer(mode, SwordWalkSpeed, RangedWalkSpeed)
- function SlashVFXClient(enemy)
- spawn(function()
- local slashVFX = game.ReplicatedStorage.InsertParts.SlashEffect:Clone()
- slashVFX.Parent=enemy
- slashVFX.CFrame=enemy.HumanoidRootPart.CFrame*CFrame.Angles(0,0,0)*CFrame.new(0,0,-4)
- game:GetService("Debris"):AddItem(slashVFX,0.45)
- local goal = {Size=Vector3.new(19.2, 0.473, 6.62)}
- goal = {Size=Vector3.new(21, 0.873, 9.42)}
- local goal2 = {Transparency=1}
- game:GetService("TweenService"):Create(slashVFX,TweenInfo.new(0.45),goal2):Play()
- game:GetService("TweenService"):Create(slashVFX,TweenInfo.new(0.45),goal):Play()
- local slashVFX2 = game.ReplicatedStorage.InsertParts.SlashEffect2:Clone()
- slashVFX2.Parent=enemy
- slashVFX2.CFrame=enemy.HumanoidRootPart.CFrame*CFrame.Angles(0,0,0)*CFrame.new(0,0.35,-4)
- game:GetService("Debris"):AddItem(slashVFX2,0.45)
- local goal3 = {Size=Vector3.new(19.2, 0.473, 6.62)}
- local goal4 = {Transparency=1}
- game:GetService("TweenService"):Create(slashVFX2,TweenInfo.new(0.45),goal3):Play()
- game:GetService("TweenService"):Create(slashVFX2,TweenInfo.new(0.45),goal4):Play()
- end)
- end
- function Beam(enemy)
- spawn(function()
- local sound = Instance.new("Sound",enemy.HumanoidRootPart)
- sound.SoundId="rbxassetid://1146691360"
- sound:Play()
- game:GetService("Debris"):AddItem(sound,3)
- local cylinder = game.ReplicatedStorage.InsertParts.WeirdCylinder:Clone()
- local bv1 = Instance.new("BodyVelocity")
- bv1.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
- bv1.Velocity = enemy.HumanoidRootPart.CFrame.lookVector*0
- bv1.Parent=cylinder
- cylinder.CFrame=enemy.HumanoidRootPart.CFrame*CFrame.Angles(0,-55,0) * CFrame.new(0,0,0)
- cylinder.Parent=workspace
- local properties = {Size = Vector3.new(80,10,10),CFrame = cylinder.CFrame + cylinder.CFrame.rightVector*40, }
- local T1 = TweenInfo.new(0.75,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false,0)
- local Tween = game:GetService("TweenService"):Create(cylinder,T1,properties):Play()
- local cylinder2 = game.ReplicatedStorage.InsertParts.WeirdCylinder:Clone()
- local bv2 = Instance.new("BodyVelocity")
- bv2.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
- bv2.Velocity = enemy.HumanoidRootPart.CFrame.lookVector*0
- bv2.Parent=cylinder2
- cylinder2.Color=Color3.new(0, 0, 0)
- cylinder2.CFrame=enemy.HumanoidRootPart.CFrame*CFrame.Angles(0,-55,0) * CFrame.new(0,0,0)
- cylinder2.Parent=workspace
- local properties2 = {Size = Vector3.new(85,12,12),CFrame = cylinder2.CFrame + cylinder2.CFrame.rightVector*40, Transparency=0.5}
- local T2 = TweenInfo.new(0.75,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false,0)
- local Tween2 = game:GetService("TweenService"):Create(cylinder2,T2,properties2):Play()
- game:GetService("Debris"):AddItem(cylinder2,0.75)
- game:GetService("Debris"):AddItem(cylinder,0.75)
- local ring = game.ReplicatedStorage.InsertParts.Ring:Clone()
- ring.Parent=enemy
- ring.CFrame=enemy.HumanoidRootPart.CFrame*CFrame.Angles(0,0,0) * CFrame.new(0,0,-1)
- local goal3 = {Size=Vector3.new(13.464, 12.021, 0.164)}
- local goal4 = {Transparency=1}
- game:GetService("Debris"):AddItem(ring,0.75)
- game:GetService("TweenService"):Create(ring,TweenInfo.new(0.75),goal3):Play()
- game:GetService("TweenService"):Create(ring,TweenInfo.new(0.75),goal4):Play()
- local ball = game.ReplicatedStorage.InsertParts.Ball:Clone()
- ball.Parent=workspace
- ball.CFrame=enemy.HumanoidRootPart.CFrame*CFrame.new(0,0,-1)
- game:GetService("Debris"):AddItem(ball,0.75)
- cylinder.Touched:Connect(function(hit)
- if hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name~=enemy.Name then
- cylinder2:Destroy()
- cylinder:Destroy()
- ball:Destroy()
- local wind = game.ReplicatedStorage.InsertParts.DarkRedWind:Clone()
- wind.Parent=hit.Parent
- wind.CFrame=hit.Parent.HumanoidRootPart.CFrame*CFrame.Angles(0,0,0) * CFrame.new(0,0,0)
- local goal3 = {Size=Vector3.new(9.563, 10.572, 9.18), Transparency=1}
- local sound = Instance.new("Sound",hit.Parent.HumanoidRootPart)
- sound.SoundId="rbxassetid://2885026620"
- sound:Play()
- game:GetService("Debris"):AddItem(sound,1)
- game:GetService("Debris"):AddItem(wind,0.75)
- game:GetService("TweenService"):Create(wind,TweenInfo.new(0.75),goal3):Play()
- local ball2 = game.ReplicatedStorage.InsertParts.Ball:Clone()
- ball2.Size=Vector3.new(1,1,1)
- ball2.Parent=workspace
- ball2.CFrame=hit.Parent.HumanoidRootPart.CFrame*CFrame.new(0,0,-1)
- local goal3 = {Size=Vector3.new(16.789, 16.789, 16.789), Transparency=1}
- game:GetService("TweenService"):Create(ball2,TweenInfo.new(0.75),goal3):Play()
- game:GetService("Debris"):AddItem(ball2,0.75)
- spawn(function()
- while true do
- wind.Orientation=wind.Orientation+Vector3.new(0,-25,0)
- wait()
- end
- end)
- end
- end)
- end)
- end
- function absorbCircle(enemy)
- spawn(function()
- local sound = Instance.new("Sound",enemy.HumanoidRootPart)
- sound.SoundId="rbxassetid://5822757538"
- sound:Play()
- game:GetService("Debris"):AddItem(sound,0.5)
- local spinningCircleVFX2 = game.ReplicatedStorage.InsertParts.BigSpinningCircles:Clone()
- spinningCircleVFX2.Parent=enemy
- game:GetService("Debris"):AddItem(spinningCircleVFX2,0.35)
- spinningCircleVFX2.CFrame=enemy.HumanoidRootPart.CFrame*CFrame.Angles(0,0,0)*CFrame.new(0,-2,0)
- local goal3 = {Size=Vector3.new(0.5,0.5,0.5)}
- local goal4 = {Transparency=1}
- game:GetService("TweenService"):Create(spinningCircleVFX2,TweenInfo.new(0.1),goal3):Play()
- game:GetService("TweenService"):Create(spinningCircleVFX2,TweenInfo.new(0.35),goal4):Play()
- game:GetService("Debris"):AddItem(spinningCircleVFX2,0.45)
- spawn(function()
- while true do
- spinningCircleVFX2.Orientation=spinningCircleVFX2.Orientation+Vector3.new(0,-25,0)
- wait()
- end
- end)
- end)
- end
- function LetOutCircle(enemy)
- spawn(function()
- local spinningCircleVFX2 = game.ReplicatedStorage.InsertParts.SmallSpinningCircles:Clone()
- spinningCircleVFX2.Parent=enemy
- game:GetService("Debris"):AddItem(spinningCircleVFX2,0.45)
- spinningCircleVFX2.CFrame=enemy.HumanoidRootPart.CFrame*CFrame.Angles(0,0,0)*CFrame.new(0,-2,0)
- local goal3 = {Size=Vector3.new(34.914, 1, 33.755)}
- local goal4 = {Transparency=1}
- game:GetService("TweenService"):Create(spinningCircleVFX2,TweenInfo.new(0.15),goal3):Play()
- game:GetService("TweenService"):Create(spinningCircleVFX2,TweenInfo.new(0.35),goal4):Play()
- game:GetService("Debris"):AddItem(spinningCircleVFX2,0.35)
- spawn(function()
- while true do
- spinningCircleVFX2.Orientation=spinningCircleVFX2.Orientation+Vector3.new(0,-25,0)
- wait()
- end
- end)
- end)
- end
- local function GuardBrokenVFX(enemy, player)
- print("GUARD BROKEN")
- if game.Players.LocalPlayer.Character:FindFirstChild("Sword") then
- local shockwaveVFX = game.ReplicatedStorage.InsertParts.Shockwave:Clone()
- shockwaveVFX.Parent=enemy
- shockwaveVFX.CFrame=enemy.HumanoidRootPart.CFrame*CFrame.Angles(0,0,3)*CFrame.new(0,-2,0)
- spawn(function()
- local sound = Instance.new("Sound",enemy.HumanoidRootPart)
- sound.Name="SoundEffect"
- sound:Play()
- sound.SoundId="rbxassetid://7058511852"
- game:GetService("Debris"):AddItem(sound,2)
- local spinningCircleVFX2 = game.ReplicatedStorage.InsertParts.SpinningCircle2:Clone()
- spinningCircleVFX2.Parent=enemy
- game:GetService("Debris"):AddItem(spinningCircleVFX2,0.45)
- spinningCircleVFX2.CFrame=enemy.HumanoidRootPart.CFrame*CFrame.Angles(0,0,0)*CFrame.new(0,-2,0)
- local goal3 = {Size=Vector3.new(38, 1, 42.6)}
- local goal4 = {Transparency=1}
- game:GetService("TweenService"):Create(spinningCircleVFX2,TweenInfo.new(0.45),goal3):Play()
- game:GetService("TweenService"):Create(spinningCircleVFX2,TweenInfo.new(0.45),goal4):Play()
- game:GetService("Debris"):AddItem(spinningCircleVFX2,0.45)
- while true do
- spinningCircleVFX2.Orientation=spinningCircleVFX2.Orientation+Vector3.new(0,-25,0)
- wait()
- end
- end)
- spawn(function()
- end)
- spawn(function()
- if enemy.Name==game.Players.LocalPlayer.Name or player.Name==game.Players.LocalPlayer.Name then
- game.Players.LocalPlayer.Character.Humanoid.CameraOffset=Vector3.new(0,0.1,0)
- wait(0.025)
- game.Players.LocalPlayer.Character.Humanoid.CameraOffset=Vector3.new(0,0,0)
- wait(0.025)
- game.Players.LocalPlayer.Character.Humanoid.CameraOffset=Vector3.new(0,-0.1,0)
- wait(0.025)
- game.Players.LocalPlayer.Character.Humanoid.CameraOffset=Vector3.new(0,0,0)
- wait(0.05)
- end
- while true do
- shockwaveVFX.Orientation=shockwaveVFX.Orientation+Vector3.new(0,-25,0)
- wait()
- end
- end)
- local goal = {Size=Vector3.new(38.175, 2.25, 42.905)}
- local goal2 = {Transparency=1}
- game:GetService("TweenService"):Create(shockwaveVFX,TweenInfo.new(0.45),goal):Play()
- game:GetService("TweenService"):Create(shockwaveVFX,TweenInfo.new(0.45),goal2):Play()
- game:GetService("Debris"):AddItem(shockwaveVFX,0.45)
- spawn(function()
- local spinningCircleVFX = game.ReplicatedStorage.InsertParts.SpinningCircle:Clone()
- spinningCircleVFX.Parent=enemy
- game:GetService("Debris"):AddItem(spinningCircleVFX,0.45)
- spinningCircleVFX.CFrame=enemy.HumanoidRootPart.CFrame*CFrame.Angles(0,0,0)*CFrame.new(0,0,0)
- local goal = {Size=Vector3.new(20.775, 1.8, 21.505)}
- local goal2 = {Transparency=1}
- game:GetService("TweenService"):Create(spinningCircleVFX,TweenInfo.new(0.45),goal):Play()
- game:GetService("TweenService"):Create(spinningCircleVFX,TweenInfo.new(0.45),goal2):Play()
- game:GetService("Debris"):AddItem(spinningCircleVFX,0.45)
- while true do
- spinningCircleVFX.Orientation=spinningCircleVFX.Orientation+Vector3.new(0,-25,0)
- wait()
- end
- end)
- end
- end
- local function WindVFXClient(enemy)
- spawn(function()
- local windVFX = game.ReplicatedStorage.InsertParts.Wind:Clone()
- windVFX.Parent=enemy
- windVFX.CFrame=enemy.HumanoidRootPart.CFrame*CFrame.Angles(0,0,0)*CFrame.new(0,0,0)
- spawn(function()
- while true do
- windVFX.Orientation=windVFX.Orientation+Vector3.new(0,-25,0)
- wait()
- end
- end)
- local goal = {Size=Vector3.new(1,1,1)}
- local goal2 = {Transparency=1}
- game:GetService("TweenService"):Create(windVFX,TweenInfo.new(0.45),goal):Play()
- game:GetService("TweenService"):Create(windVFX,TweenInfo.new(0.45),goal2):Play()
- game:GetService("Debris"):AddItem(windVFX,0.45)
- end)
- end
- function SlashVFX()
- spawn(function()
- if game.Players.LocalPlayer.Character:FindFirstChild("Sword") then
- wait(0.2)
- game.ReplicatedStorage.Remotes.VFXFunction:FireServer("Slash")
- local slashVFX = game.ReplicatedStorage.InsertParts.SlashEffect:Clone()
- slashVFX.Parent=game.Players.LocalPlayer.Character
- slashVFX.CFrame=game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame*CFrame.Angles(0,0,0)*CFrame.new(0,0,-4)
- game:GetService("Debris"):AddItem(slashVFX,0.45)
- local goal = {Size=Vector3.new(19.2, 0.473, 6.62)}
- if Light==6 then
- goal = {Size=Vector3.new(21, 0.873, 9.42)}
- end
- local goal2 = {Transparency=1}
- game:GetService("TweenService"):Create(slashVFX,TweenInfo.new(0.45),goal2):Play()
- game:GetService("TweenService"):Create(slashVFX,TweenInfo.new(0.45),goal):Play()
- local slashVFX2 = game.ReplicatedStorage.InsertParts.SlashEffect2:Clone()
- slashVFX2.Parent=game.Players.LocalPlayer.Character
- slashVFX2.CFrame=game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame*CFrame.Angles(0,0,0)*CFrame.new(0,0.35,-4)
- game:GetService("Debris"):AddItem(slashVFX2,0.45)
- local goal3 = {Size=Vector3.new(19.2, 0.473, 6.62)}
- if Light==6 then
- goal3 = {Size=Vector3.new(21, 0.873, 9.42)}
- end
- local goal4 = {Transparency=1}
- game:GetService("TweenService"):Create(slashVFX2,TweenInfo.new(0.45),goal3):Play()
- game:GetService("TweenService"):Create(slashVFX2,TweenInfo.new(0.45),goal4):Play()
- end
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment