Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local p = game.Players.LocalPlayer
- local char = p.Character
- local mouse = p:GetMouse()
- local larm = char["Left Arm"]
- local rarm = char["Right Arm"]
- local lleg = char["Left Leg"]
- local rleg = char["Right Leg"]
- local hed = char.Head
- local torso = char.Torso
- local hum = char.Humanoid
- local stance = "idle"
- local root = char.HumanoidRootPart
- local tool = script.Parent
- local attacking = false
- LS = torso["Left Shoulder"]
- LH = torso["Left Hip"]
- RS = torso["Right Shoulder"]
- RH = torso["Right Hip"]
- Neck = torso.Neck
- RootPart = char.HumanoidRootPart
- RootJoint = RootPart.RootJoint
- r = game:service'RunService'.RenderStepped
- v3 = Vector3.new
- c3 = Color3.new
- cf = CFrame.new
- rad = math.rad
- ran = math.random
- it = Instance.new
- angles = CFrame.Angles
- necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
- LSC0=cf(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
- RSC0=cf(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- ROOTC0 = cf(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- function Lerp(c1,c2,al)
- local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
- local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
- for i,v in pairs(com1) do
- com1[i] = v+(com2[i]-v)*al
- end
- return CFrame.new(com1[1],com1[2],com1[3]) * angles(select(4,unpack(com1)))
- end
- function defpos()
- Neck.C0 = necko
- LH.C0 = LHC0
- LS.C0 = LSC0
- RH.C0 = RHC0
- RS.C0 = RSC0
- RootJoint.C0 = ROOTC0
- end
- function newpos()
- Neck.C0 = necko
- LH.C0 = LHC0
- LS.C0 = LSC0
- RH.C0 = RHC0
- RS.C0 = RSC0
- RootJoint.C0 = ROOTC0
- RS.C0 = Lerp(RS.C0,RS.C0* angles(rad(0), rad(0), rad(0)), 1)
- LS.C0 = Lerp(LS.C0,LS.C0* angles(rad(0), rad(0), rad(0)), 1)
- RH.C0 = Lerp(RH.C0,RH.C0* angles(rad(0), rad(0), rad(0)), 1)
- LH.C0 = Lerp(LH.C0,LH.C0* angles(rad(0), rad(0), rad(0)), 1)
- RootJoint.C0 = Lerp(RootJoint.C0,RootJoint.C0*angles(rad(0), rad(0), rad(0)), 1)
- Neck.C0 = Lerp(Neck.C0,Neck.C0*angles(rad(0), rad(0), rad(0)), 1)
- end
- function part(parent,anchored,collide,size,cframe,color3,material,trans,meshtype,meshscale)
- local partt = it("Part",parent)
- partt.Anchored = anchored
- partt.CanCollide = collide
- partt.Size = size
- partt.CFrame = cframe
- partt.Color = color3
- partt.Material = material
- partt.Transparency = trans
- if meshtype then
- local mesh = it("SpecialMesh", partt)
- mesh.MeshType = meshtype
- mesh.Scale = meshscale
- end
- return partt
- end
- function spmesh(parent,id,scale)
- local smesh = it("SpecialMesh", parent)
- smesh.MeshId = id
- smesh.Scale = scale
- return smesh
- end
- function decal(parent,texture,face)
- local dec = it("Decal", parent)
- dec.Texture = texture
- dec.Face = face
- return dec
- end
- function weld(parent,part0,part1)
- local we = it("Weld",parent)
- we.Part0 = part0
- we.Part1 = part1
- end
- walkanim = function()
- end
- spawn(function()
- TEngineAnimationSoftware = function()
- while true do
- wait()
- local torvel = (game.Players.LocalPlayer.Character.HumanoidRootPart.Velocity * Vector3.new(1,0,1)).magnitude
- if torvel > 2 and stance == "idle" and attacking == false then
- stance = "walking"
- print("walking")
- walkanim()
- elseif torvel < 1 and stance=="walking" and attacking == false then
- stance = "idle"
- print("idle")
- newpos()
- end
- end
- end
- TEngineAnimationSoftware()
- wait()
- end)
- function instrail(a)
- local trail = Instance.new("Part", a)
- trail.Anchored = true
- trail.CanCollide = false
- trail.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- trail.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- local rand = math.random(0,10)
- if rand >= 5 then
- trail.BrickColor = BrickColor.new("Really red")
- elseif rand < 5 then
- trail.BrickColor = BrickColor.new("Really black")
- end
- trail.Size = Vector3.new(0,0,0)
- local trailm = Instance.new("SpecialMesh", trail)
- trailm.MeshType = "Brick"
- trailm.Scale = Vector3.new(5,5,5)
- trail.CFrame = a.CFrame
- trail.CFrame = trail.CFrame*CFrame.Angles((math.random(10)),(math.random(10)),(math.random(10)))*CFrame.new(math.random(7),math.random(7),math.random(7))
- for i = 0,5,.2 do
- trail.Transparency = i
- wait()
- end
- trail:Destroy()
- end
- mouse.KeyDown:connect(function(key)
- if key == "x" then
- local doing = true
- local pppp = part(char,true,false,v3(1,1,1),mouse.Hit,c3(1,0,0),"Neon",0)
- pppp.Rotation = torso.Rotation
- local cyl = it("CylinderMesh", pppp)
- cyl.Scale = Vector3.new(.5,.2,.5)
- local part2 = part(char,true,false,v3(1,1,1),pppp.CFrame,c3(0,0,0),"Neon",0)
- local cyl2 = it("CylinderMesh", part2)
- cyl2.Scale = Vector3.new(10,.1,10)
- for i = 1,50 do
- wait()
- cyl.Scale = cyl.Scale+Vector3.new(.2,0,.2)
- end
- local placeholder = it("Part", char)
- placeholder.Size = v3(1,1,1)
- placeholder.CFrame = pppp.CFrame*cf(0,100,0)
- placeholder.Transparency = 1
- placeholder.Anchored = true
- pppp:Destroy()
- part2:Destroy()
- --[[ local cy = part(char,true,false,v3(1,1,1),placeholder.CFrame,c3(0,0,0),"Neon",0)
- local cyl = it("CylinderMesh", cy)
- cyl.Scale = Vector3.new(7,300,7)]]
- local red = part(char,true,false,v3(0,0,0),placeholder.CFrame*cf(0,5,0),c3(1,0,0),"Neon",0)
- local rbrick = it("SpecialMesh",red)
- rbrick.MeshType = "Brick"
- rbrick.Scale = v3(40,40,40)
- local black = red:Clone()
- black.Parent = char
- black.Color = c3(0,0,0)
- local bbrick = rbrick:Clone()
- bbrick.Parent = black
- black.CFrame = black.CFrame*angles(ran(10),ran(10),ran(10))
- red.CFrame = red.CFrame*angles(ran(10),ran(10),ran(10))
- local function crowns()
- local crown = part(placeholder,true,false,v3(0,0,0),placeholder.CFrame,c3(1,0,0),"Neon",0)
- local crownm = spmesh(crown,"https://www.roblox.com/asset/?id=20329976",v3(10,1,10))
- for i = 1,10 do
- crownm.Scale = crownm.Scale+v3(0,5,0)
- crownm.Scale = crownm.Scale-v3(1,0,1)
- crown.CFrame = crown.CFrame * CFrame.Angles(0,-math.rad(15 + i),0)
- black.CFrame = black.CFrame*angles(ran(10),ran(10),ran(10))
- red.CFrame = red.CFrame*angles(ran(10),ran(10),ran(10))
- black.Position = placeholder.Position
- red.Position = placeholder.Position
- wait()
- end
- end --eof
- local function rings()
- local rhr = it("Part", placeholder)
- rhr.Size = v3(0,0,0)
- rhr.CFrame = placeholder.CFrame*angles(ran(10),ran(10),ran(10))*cf(0,5,0)
- rhr.Color = c3(1,0,0)
- rhr.Anchored = true
- rhr.CanCollide = false
- rhr.Material = "Neon"
- local bhr = rhr:Clone()
- bhr.Parent = char
- bhr.Color = c3(0,0,0)
- local rhrm= it("SpecialMesh",rhr)
- rhrm.Scale = v3(1,.2,1)
- rhrm.MeshId = "https://www.roblox.com/asset/?id=3270017"
- local bhrm = rhrm:Clone()
- bhrm.Parent = bhr
- for i = 0,1,.1 do
- r:wait()
- bhrm.Scale = bhrm.Scale+v3(2,2,0)
- rhrm.Scale = rhrm.Scale+v3(2,2,0)
- bhr.Transparency = i
- rhr.Transparency =i
- end
- rhr:Destroy()
- bhr:Destroy()
- end
- spawn(function()
- wait(3.2)
- doing = false
- end)
- while doing ==true do
- wait()
- spawn(function()
- crowns()
- placeholder.CFrame = placeholder.CFrame*cf(0,-5,0)
- end)
- spawn(function()
- rings()
- end)
- wait(.1)
- end
- spawn(function()
- hbox = it("Part", placeholder)
- hboxing = true
- hbox.Size = v3(50,50,50)
- hbox.Anchored = true
- hbox.Transparency = 1
- hbox.CanCollide = false
- hbox.CFrame = placeholder.CFrame
- hbox.Touched:connect(function(hit)
- if hit.Parent:FindFirstChild("Humanoid") then
- if hit.Parent.Name ~=p.Name then
- local hoom = hit.Parent:FindFirstChild("Humanoid")
- hoom.Health = hoom.Health-100
- end
- end
- end)
- spawn(function()
- while hboxing == true do
- hbox.CFrame = placeholder.CFrame
- wait()
- end
- end)
- for i = 1,10,.1 do
- r:wait()
- rbrick.Scale = rbrick.Scale+v3(3,3,3)
- bbrick.Scale = bbrick.Scale+v3(3,3,3)
- red.CFrame = red.CFrame*angles(ran(10),ran(10),ran(10))
- black.CFrame = black.CFrame*angles(ran(10),ran(10),ran(10))
- end
- end)
- local rng = it("SpecialMesh", placeholder)
- rng.MeshId = "rbxassetid://3270017"
- rng.Scale = v3(5,5,5)
- placeholder.CFrame = placeholder.CFrame*angles(rad(90),rad(0),rad(0))
- placeholder.Transparency = .5
- placeholder.Color = c3(1,0,0)
- for i = 1,100 do
- r:wait()
- rng.Scale = rng.Scale+v3(8,8,1)
- end
- hboxing = false
- hbox:Destroy()
- rng:Destroy()
- placeholder:Destroy()
- red:Destroy()
- black:Destroy()
- end
- end)
- mouse.KeyDown:connect(function(key)
- if key == "q" then
- end
- end)
- mouse.KeyDown:connect(function(key)
- if key == "r" then
- doingr = true
- local holder = part(char,true,false,v3(1,1,1),torso.CFrame*cf(0,0,-2),c3(1,0,0),"Neon",1)
- local whirlho = part(holder,true,false,v3(1,1,1),holder.CFrame,c3(1,0,0),"Neon",0)
- local whirl = it("SpecialMesh", whirlho)
- whirl.MeshId = "rbxassetid://1051557"
- whirl.Scale = v3(12,12,12)
- local w2h = part(holder,true,false,v3(1,1,1),holder.CFrame,c3(1,0,0),"Neon",0)
- local wh2 = it("SpecialMesh", w2h)
- wh2.MeshId = "rbxassetid://168892432"
- wh2.Scale = v3(4,4,4)
- local function crowns()
- local crown = part(char,true,false,v3(0,0,0),holder.CFrame*angles(rad(90),rad(0),rad(0)),c3(1,0,0),"Neon",.5)
- local cm = it("SpecialMesh", crown)
- cm.MeshId = "rbxassetid://20329976"
- cm.Scale = v3(10,30,10)
- while doingr == true do
- crown.CFrame = crown.CFrame:lerp(crown.CFrame*angles(rad(0),rad(16),rad(0)),1)
- crown.Position = holder.Position
- r:wait()
- end
- crown:Destroy()
- end
- local function dragon()
- local drag = part(char,true,false,v3(0,0,0),holder.CFrame*angles(rad(0),rad(0),rad(90))*cf(0,0,-4),c3(1,0,0),"Neon",0)
- local dm = it("SpecialMesh", drag)
- dm.MeshId = "rbxassetid://58430372"
- dm.Scale = v3(10,10,10)
- while doingr == true do
- drag.CFrame = holder.CFrame*cf(0,0,-4)
- r:wait()
- end
- drag:Destroy()
- end
- local function trailonholder()
- local red = part(char,true,false,v3(0,0,0),holder.CFrame*angles(ran(10),ran(10),ran(10)),c3(1,0,0),"Neon",0)
- local black = part(char,true,false,v3(0,0,0),holder.CFrame*angles(ran(10),ran(10),ran(10)),c3(0,0,0),"Neon",0)
- local rm = it("SpecialMesh", red)
- rm.MeshType = "Brick"
- rm.Scale = v3(50,50,50)
- local bm = it("SpecialMesh", black)
- bm.MeshType = "Brick"
- bm.Scale = v3(50,50,50)
- for i = 0,1,.1 do
- black.Transparency = i
- red.Transparency = i
- wait()
- end
- end
- spawn(function()
- dragon()
- end)
- spawn(function()
- crowns()
- end)
- spawn(function()
- while doingr == true do
- r:wait()
- spawn(function()
- trailonholder()
- end)
- r:wait()
- end
- end)
- spawn(function()
- while doingr == true do
- wait()
- spawn(function()
- instrail(holder)
- end)
- r:wait()
- end
- end)
- spawn(function()
- while doingr == true do
- r:wait()
- whirlho.CFrame = whirlho.CFrame*angles(rad(0),rad(16),rad(0))
- w2h.CFrame = whirlho.CFrame*angles(rad(0),rad(16),rad(0))
- whirlho.Position = holder.Position
- w2h.Position = holder.Position
- end
- end)
- for i = 1,10,.1 do
- r:wait()
- holder.CFrame = holder.CFrame*cf(0,0,-3)
- end
- doingr = false
- holder:Destroy()
- w2h:Destroy()
- whirlho:Destroy()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement