Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(.5)
- plr = game.Players.LocalPlayer
- chr = plr.Character or plr.CharacterAdded:wait()
- renderstepped = game:GetService('RunService').RenderStepped
- mouse = plr:GetMouse()
- userinput = game:GetService('UserInputService')
- myhum = chr.Humanoid
- torso = chr.Torso
- pi = math.pi
- huge = math.huge
- part = Instance.new('Part')
- part.TopSurface = 'Smooth'
- part.BottomSurface = 'Smooth'
- typing = false
- myhum.MaxHealth = 2500
- wait()
- myhum.Health = 2500
- attacking = false
- defending = false
- head = chr.Head
- torso.Anchored = true
- chr.Animate.Disabled = true
- cframeval = head.CFrame
- bloodpart = part:Clone()
- bloodpart.CanCollide = false
- bloodpart.Anchored = true
- bloodpart.Shape = Enum.PartType.Ball
- bloodpart.Size = Vector3.new(.4,.4,.4)
- bloodpart.Transparency = .8
- bloodpart.Material = Enum.Material.Neon
- bloodpart.BrickColor = BrickColor.Red()
- local bbgui = Instance.new('BillboardGui',bloodpart)
- bbgui.StudsOffset = Vector3.new(0,.5,0)
- bbgui.Enabled = true
- bbgui.Size = UDim2.new(0,50,0,25)
- local tlabel = Instance.new('TextLabel',bbgui)
- tlabel.BackgroundTransparency = 0
- tlabel.BackgroundColor3 = Color3.fromRGB(192, 57, 43)
- tlabel.BorderSizePixel = 0
- tlabel.TextColor3 = Color3.new(1,1,1)
- tlabel.Font = Enum.Font.Legacy
- tlabel.Size = UDim2.new(0,50,0,25)
- filtered = Instance.new('Model')
- mouse.TargetFilter = filtered
- floating = true
- ----------------------------------------------------------------------------------
- function floatynigga()
- local cframeval = head.CFrame
- while floating do
- for i = 0,1,0.01 do
- if floating then
- renderstepped:wait()
- chr:SetPrimaryPartCFrame(cframeval:lerp(cframeval*CFrame.new(0,15,0),i))
- else
- break
- end
- end
- local cframeval = head.CFrame
- for i = 0,1,0.01 do
- if floating then
- renderstepped:wait()
- chr:SetPrimaryPartCFrame(cframeval:lerp(cframeval*CFrame.new(0,-15,0),i))
- else
- break
- end
- end
- end
- end
- for i = 0,1,.025 do
- renderstepped:wait()
- chr:SetPrimaryPartCFrame(head.CFrame:lerp(cframeval*CFrame.new(0,10,0),i))
- end
- spawn(floatynigga)
- function bloodcframeB(random,torso,humanoid)
- if random ~= 0 then
- local clone = bloodpart:Clone()
- clone.BillboardGui.TextLabel.Text = random
- clone.CFrame = torso.Parent:FindFirstChild('Torso').CFrame*CFrame.new(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- clone.Parent = torso
- humanoid:TakeDamage(random)
- for i = 1,.5,-.01 do
- renderstepped:wait()
- clone.Transparency = i
- clone.BillboardGui.TextLabel.Transparency = i
- clone.CFrame = clone.CFrame*CFrame.new(0,.01,0)
- end
- wait(1)
- for i = .5,1,.01 do
- renderstepped:wait()
- clone.Transparency = i
- clone.BillboardGui.TextLabel.Transparency = i
- clone.CFrame = clone.CFrame*CFrame.new(0,.01,0)
- end
- clone:Destroy()
- end
- end
- function transparencyanim(part,a,b,speed,neg)
- if not neg then
- for i = a,b,speed do
- renderstepped:wait()
- part.Transparency = i
- end
- else
- for i = a,b,speed do
- renderstepped:wait()
- part.Transparency = i
- end
- end
- end
- function plerp(part,startpoint,endpoint,speed,canclone,clonepart,clonepartcframe,transpeed)
- for i = 0,1,speed do
- renderstepped:wait()
- part.CFrame = startpoint:lerp(endpoint,i)
- if canclone then
- local clone = clonepart:Clone()
- clone.CFrame = clone.CFrame*CFrame.Angles(math.random(-180,180),math.random(-180,180),math.random(-180,180))
- clone:ClearAllChildren()
- clone.Anchored = true
- clone.CanCollide = false
- clone.Parent = workspace
- local function tran()
- for i = 0,1,transpeed do
- renderstepped:wait()
- clone.Transparency = i
- end
- clone:Destroy()
- end
- spawn(tran)
- end
- end
- end
- --transparencyanim(part,a,b,speed,neg)
- function circle(point,rad,val,hollow,parent,part,a,b,speed,neg,destroy)
- local diameter = rad*2
- local circ = diameter*pi
- local n = circ/val
- local rot = 360/n
- if hollow then
- for i = 0,n do
- renderstepped:wait()
- local clone = part:Clone()
- clone.Touched:connect(function(part)
- if destroy and part and part.Parent then
- part:Destroy()
- end
- end)
- local function trananim()
- clone.Parent = parent
- transparencyanim(part,a,b,speed,neg)
- end
- clone.CFrame = point*CFrame.Angles(0,math.rad(i*n),0)*CFrame.new(rad,0,0)
- spawn(trananim)
- end
- else
- for i = 0,n/2 do
- renderstepped:wait()
- local clone = part:Clone()
- clone.Touched:connect(function(part)
- if destroy and part and part.Parent then
- part:Destroy()
- end
- end)
- local function trananim()
- clone.Parent = parent
- transparencyanim(part,a,b,speed,neg)
- end
- clone.CFrame = point*CFrame.Angles(0,math.rad(i*n),0)
- spawn(trananim)
- end
- end
- end
- mouse.Button1Down:connect(function()
- if typing then
- typing = false
- end
- end)
- ----------------------------------------------------------------------------------
- userinput.InputBegan:connect(function(k)
- local key = k.KeyCode
- if key == Enum.KeyCode.Slash or key == Enum.KeyCode.Quote then
- typing = true
- elseif
- key == Enum.KeyCode.Return then
- typing = false
- elseif not typing then
- if key == Enum.KeyCode.W and not defending then
- defending = true
- local group = Instance.new('Model')
- group.Parent = workspace.Terrain
- local shield = part:Clone()
- local start = head.CFrame
- shield.Material = Enum.Material.Neon
- shield.Size = Vector3.new(.5,50,.5)
- shield.Anchored = false
- shield.Transparency = 1
- shield.BrickColor = BrickColor.new(0,0,0)
- for i = -12.5,13,.5 do
- renderstepped:wait()
- local clone = shield:Clone()
- local function trananim()
- transparencyanim(clone,1,.1,-.02,true)
- end
- clone.Touched:connect(function(part)
- if part and part.Parent then
- local humanoid = part.Parent:FindFirstChild('Humanoid')
- local velocity = part:FindFirstChild('BodyVelocity')
- if humanoid and humanoid ~= myhum then
- bloodcframeB(math.random(5,15),part.Parent.Torso,humanoid)
- elseif velocity then
- velocity.Velocity = velocity.Velocity*-1
- elseif part.Name ~= 'Base' and part.Parent ~= group and part.Parent ~= chr and part.Parent.Parent ~= chr then
- part:Destroy()
- end
- end
- end)
- local function lerp()
- spawn(trananim)
- clone.Parent = group
- plerp(clone,start*CFrame.new(math.random(-25,25),math.random(30,50),math.random(-25,-5)),start*CFrame.new(i,0,-5),.01,false)
- clone.Anchored = true
- clone.CFrame = start*CFrame.new(i,0,-5)
- end
- spawn(lerp)
- end
- userinput.InputEnded:connect(function(keycode)
- if keycode.KeyCode == Enum.KeyCode.W then
- local children = group:GetChildren()
- for _,v in pairs(children) do
- renderstepped:wait()
- local start = v.CFrame
- local function trananim()
- transparencyanim(v,0,1,.025,false)
- end
- local function lerp()
- spawn(trananim)
- plerp(v,start,start*CFrame.new(0,-50,0),.01)
- end
- spawn(lerp)
- end
- defending = false
- wait(1)
- group:Destroy()
- end
- end)
- elseif key == Enum.KeyCode.A and not defending then
- defending = true
- local group = Instance.new('Model')
- group.Parent = workspace.Terrain
- local shield = part:Clone()
- local start = head.CFrame
- shield.Material = Enum.Material.Neon
- shield.Size = Vector3.new(.5,50,.5)
- shield.Anchored = false
- shield.Transparency = 1
- shield.BrickColor = BrickColor.new(0,0,0)
- for i = -12.5,13,.5 do
- renderstepped:wait()
- local clone = shield:Clone()
- local function trananim()
- transparencyanim(clone,1,.1,-.02,true)
- end
- clone.Touched:connect(function(part)
- if part and part.Parent then
- local humanoid = part.Parent:FindFirstChild('Humanoid')
- local velocity = part:FindFirstChild('BodyVelocity')
- if humanoid and humanoid ~= myhum then
- bloodcframeB(math.random(5,15),part.Parent.Torso,humanoid)
- elseif velocity then
- velocity.Velocity = velocity.Velocity*-1
- elseif part.Name ~= 'Base' and part.Parent ~= group and part.Parent ~= chr and part.Parent.Parent ~= chr then
- part:Destroy()
- end
- end
- end)
- local function lerp()
- spawn(trananim)
- clone.Parent = group
- plerp(clone,start*CFrame.Angles(0,math.rad(90),0)*CFrame.new(math.random(-25,25),math.random(30,50),math.random(-25,-5)),start*CFrame.Angles(0,math.rad(90),0)*CFrame.new(i,0,-5),.01,false)
- clone.Anchored = true
- clone.CFrame = start*CFrame.Angles(0,math.rad(90),0)*CFrame.new(i,0,-5)
- end
- spawn(lerp)
- end
- userinput.InputEnded:connect(function(keycode)
- if keycode.KeyCode == Enum.KeyCode.A then
- local children = group:GetChildren()
- for _,v in pairs(children) do
- renderstepped:wait()
- local start = v.CFrame
- local function trananim()
- transparencyanim(v,0,1,.025,false)
- end
- local function lerp()
- spawn(trananim)
- plerp(v,start,start*CFrame.new(0,-50,0),.01)
- end
- spawn(lerp)
- end
- defending = false
- wait(1)
- group:Destroy()
- end
- end)
- elseif key == Enum.KeyCode.D and not defending then
- defending = true
- local group = Instance.new('Model')
- group.Parent = workspace.Terrain
- local shield = part:Clone()
- local start = head.CFrame
- shield.Material = Enum.Material.Neon
- shield.Size = Vector3.new(.5,50,.5)
- shield.Anchored = false
- shield.Transparency = 1
- shield.BrickColor = BrickColor.new(0,0,0)
- for i = -12.5,13,.5 do
- renderstepped:wait()
- local clone = shield:Clone()
- local function trananim()
- transparencyanim(clone,1,.1,-.02,true)
- end
- clone.Touched:connect(function(part)
- if part and part.Parent then
- local humanoid = part.Parent:FindFirstChild('Humanoid')
- local velocity = part:FindFirstChild('BodyVelocity')
- if humanoid and humanoid ~= myhum then
- bloodcframeB(math.random(5,15),part.Parent.Torso,humanoid)
- elseif velocity then
- velocity.Velocity = velocity.Velocity*-1
- elseif part.Name ~= 'Base' and part.Parent ~= group and part.Parent ~= chr and part.Parent.Parent ~= chr then
- part:Destroy()
- end
- end
- end)
- local function lerp()
- spawn(trananim)
- clone.Parent = group
- plerp(clone,start*CFrame.Angles(0,math.rad(-90),0)*CFrame.new(math.random(-25,25),math.random(30,50),math.random(-25,-5)),start*CFrame.Angles(0,math.rad(-90),0)*CFrame.new(i,0,-5),.01,false)
- clone.Anchored = true
- clone.CFrame = start*CFrame.Angles(0,math.rad(-90),0)*CFrame.new(i,0,-5)
- end
- spawn(lerp)
- end
- userinput.InputEnded:connect(function(keycode)
- if keycode.KeyCode == Enum.KeyCode.D then
- local children = group:GetChildren()
- for _,v in pairs(children) do
- renderstepped:wait()
- local start = v.CFrame
- local function trananim()
- transparencyanim(v,0,1,.025,false)
- end
- local function lerp()
- spawn(trananim)
- plerp(v,start,start*CFrame.new(0,-50,0),.01)
- end
- spawn(lerp)
- end
- defending = false
- wait(1)
- group:Destroy()
- end
- end)
- elseif key == Enum.KeyCode.S and not defending then
- defending = true
- local group = Instance.new('Model')
- group.Parent = workspace.Terrain
- local shield = part:Clone()
- local start = head.CFrame
- shield.Material = Enum.Material.Neon
- shield.Size = Vector3.new(.5,50,.5)
- shield.Anchored = false
- shield.Transparency = 1
- shield.BrickColor = BrickColor.new(0,0,0)
- for i = -12.5,13,.5 do
- renderstepped:wait()
- local clone = shield:Clone()
- local function trananim()
- transparencyanim(clone,1,.1,-.02,true)
- end
- clone.Touched:connect(function(part)
- if part and part.Parent then
- local humanoid = part.Parent:FindFirstChild('Humanoid')
- local velocity = part:FindFirstChild('BodyVelocity')
- if humanoid and humanoid ~= myhum then
- bloodcframeB(math.random(5,15),part.Parent.Torso,humanoid)
- elseif velocity then
- velocity.Velocity = velocity.Velocity*-1
- elseif part.Name ~= 'Base' and part.Parent ~= group and part.Parent ~= chr and part.Parent.Parent ~= chr then
- part:Destroy()
- end
- end
- end)
- local function lerp()
- spawn(trananim)
- clone.Parent = group
- plerp(clone,start*CFrame.new(math.random(-25,25),math.random(30,50),math.random(5,25)),start*CFrame.new(i,0,5),.01,false)
- clone.Anchored = true
- clone.CFrame = start*CFrame.new(i,0,5)
- end
- spawn(lerp)
- end
- userinput.InputEnded:connect(function(keycode)
- if keycode.KeyCode == Enum.KeyCode.S then
- local children = group:GetChildren()
- for _,v in pairs(children) do
- renderstepped:wait()
- local start = v.CFrame
- local function trananim()
- transparencyanim(v,0,1,.025,false)
- end
- local function lerp()
- spawn(trananim)
- plerp(v,start,start*CFrame.new(0,-50,0),.01)
- end
- spawn(lerp)
- end
- defending = false
- wait(1)
- group:Destroy()
- end
- end)
- elseif key == Enum.KeyCode.Space and not defending then
- defending = true
- local template = part:Clone()
- local group = Instance.new('Model',workspace.Terrain)
- template.Material = Enum.Material.Neon
- template.Size = Vector3.new(.75,14,.75)
- template.CanCollide = false
- template.Anchored = true
- template.Color = Color3.fromRGB(128, 187, 219)
- template.Transparency = 1
- local rad = 7
- local circ = pi*rad*2
- local n = circ/.75
- local rot = 360/n
- floating = false
- local start = torso.CFrame
- for i = 0,n/2 do
- renderstepped:wait()
- for x = 0,n/2 do
- local clone = template:Clone()
- local function transanim()
- transparencyanim(clone,1,.9,-.005,true)
- end
- clone.Touched:connect(function(part)
- if part and part.Parent then
- local humanoid = part.Parent:FindFirstChild('Humanoid')
- local velocity = part:FindFirstChild('BodyVelocity')
- if humanoid and humanoid ~= myhum then
- bloodcframeB(math.random(5,10),part.Parent.Torso,humanoid)
- humanoid.Sit = true
- humanoid.PlatfornStand = true
- elseif velocity then
- velocity.Velocity = velocity.Velocity*-1
- elseif part.Name ~= 'Base' and part.Parent ~= group and part.Parent ~= chr and part.Parent.Parent ~= chr then
- part:Destroy()
- end
- end
- end)
- clone.CFrame = start*CFrame.Angles(math.rad(x*rot),0,math.rad(i*rot))*CFrame.new(0,rad,0)
- local function lerp()
- clone.Parent = group
- plerp(clone,clone.CFrame,clone.CFrame*CFrame.new(0,-rad,0),.05)
- clone.CFrame = start*CFrame.Angles(math.rad(x*rot),0,math.rad(i*rot))
- end
- spawn(lerp)
- spawn(transanim)
- end
- end
- userinput.InputEnded:connect(function(keycode)
- if keycode.KeyCode == Enum.KeyCode.Space and defending then
- defending = false
- local children = group:GetChildren()
- for _,v in pairs(children) do
- local function destroy()
- transparencyanim(v,.9,1,.01,false)
- v:Destroy()
- end
- spawn(destroy)
- end
- floating = true
- cframeval = head.CFrame
- spawn(floatynigga)
- end
- wait(4)
- group:Destroy()
- end)
- elseif key == Enum.KeyCode.Q and not attacking then
- attacking = true
- local sword = Instance.new('Model')
- local group = Instance.new('Model')
- local blade = Instance.new('Part')
- blade.Anchored = false
- blade.CanCollide = false
- blade.Color = Color3.new(0,0,0)
- blade.Material = Enum.Material.SmoothPlastic
- blade.Size = Vector3.new(.2,5,.2)
- blade.CFrame = CFrame.new(0,0,0)
- blade.Parent = sword
- local hilt = blade:Clone()
- hilt.Parent = sword
- hilt.CFrame = CFrame.new(0,1.8,0)
- hilt.Size = Vector3.new(1,.2,.2)
- local sphere = part:Clone()
- sphere.Material = Enum.Material.Neon
- sphere.CanCollide = false
- sphere.Anchored = true
- sphere.Color = Color3.new(0,0,0)
- sphere.Size = Vector3.new(.2,.2,.2)
- sphere.Shape = 'Ball'
- local val = head.CFrame*CFrame.new(0,45,0)
- sphere.CFrame = val
- sphere.Parent = group
- sword.PrimaryPart = blade
- group.Parent = workspace.Terrain
- local function shoot()
- local clone = sword:Clone()
- clone.PrimaryPart.Touched:connect(function(part)
- if part and part.Parent then
- local h = part.Parent:FindFirstChild('Humanoid')
- if h and h ~= myhum then
- h.Sit = true
- bloodcframeB(math.random(25,50),h.Parent.Torso,h)
- end
- end
- end)
- local randomA = math.random(10,30)
- local randomB = math.random()
- local randomC = math.random(10,30)
- local randomD = math.random()
- if randomB>=.5 then
- randomA = randomA*-1
- elseif randomD>=.5 then
- randomC = randomC*-1
- end
- clone:SetPrimaryPartCFrame(val*CFrame.Angles(math.rad(randomA),math.rad(math.random(0,360)),math.rad(randomC)))
- local valB = clone.PrimaryPart.CFrame
- clone.Parent = group
- for i = 0,1,.05 do
- renderstepped:wait()
- clone:SetPrimaryPartCFrame(valB:lerp(valB*CFrame.new(0,-120,0),i))
- end
- end
- for i = .2,10,.25 do
- renderstepped:wait()
- sphere.Size = Vector3.new(i,i,i)
- for i = 1,2 do
- spawn(shoot)
- end
- end
- attacking = false
- wait(2)
- for i = 0,1,.1 do
- renderstepped:wait()
- sphere.Transparency = i
- sphere.Size = sphere.Size+Vector3.new(.25,.25,.25)
- end
- wait(3)
- group:Destroy()
- elseif key == Enum.KeyCode.Z and not attacking then
- attacking = true
- local group = Instance.new('Model')
- local earth = part:Clone()
- earth.Color = Color3.fromRGB(40, 127, 71)
- earth.CanCollide = true
- earth.Anchored = true
- earth.Size = Vector3.new(5,5,5)
- earth.Material = Enum.Material.Grass
- group.ChildAdded:connect(function(part)
- part.Touched:connect(function(human)
- if part and part.Parent then
- local h = human.Parent:FindFirstChild('Humanoid')
- if h and h ~= myhum then
- h.Sit = true
- bloodcframeB(math.random(7,13),h.Parent.Torso,h)
- end
- end
- end)
- part.CFrame = part.CFrame*CFrame.Angles(math.random(0,360),math.random(0,360),math.random(0,360))
- end)
- center = head.CFrame
- group.Parent = workspace.Terrain
- for i = 20,75,3 do
- renderstepped:wait()
- local function bend()
- local rad = i
- local circ = pi*rad*2
- local n = circ/3
- local rot = 360/n
- for x = 0,n do
- local clone = earth:Clone()
- clone.CFrame = CFrame.new(center.X,0,center.Z)*CFrame.Angles(0,math.rad(x*rot),0)*CFrame.new(rad,0,0)
- clone.Parent = group
- end
- end
- spawn(bend)
- end
- attacking = false
- group.PrimaryPart = group.Part
- group.PrimaryPart.CanCollide = false
- wait()
- group.PrimaryPart.Rotation = Vector3.new(0,0,0)
- wait(1)
- for i = 0,20 do
- renderstepped:wait()
- group:SetPrimaryPartCFrame(group.PrimaryPart.CFrame*CFrame.new(0,-.5,0))
- end
- group:Destroy()
- end
- end
- end)
- --earthbend infront of you using math.sin() or cos
- --plerp(part,startpoint,endpoint,speed,canclone,clonepart,clonepartcframe,transpeed)
- --transparencyanim(part,a,b,speed,neg)
- --circle(point,rad,val,hollow,parent,part,a,b,speed,neg,destroy)
- --wasd = gfhj or rety
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement