SHOW:
|
|
- or go back to the newest paste.
1 | - | lp=game.Players.Jerry_Dandridge777=lp.Character mouse=lp:GetMouse() |
1 | + | lp=game.Players.jassm11=lp.Character mouse=lp:GetMouse() |
2 | rshr = Instance.new("Weld",pl.Torso) | |
3 | rshr.Part0 = pl.Torso;rshr.Part1 = pl['Right Arm'] | |
4 | rshr.C1 = CFrame.new(-1.5,0,0) | |
5 | LerpTo = CFrame.new(-1.5,0,0) | |
6 | asds=false Parts={} | |
7 | deb=false | |
8 | function getAngles(cf) | |
9 | local sx,sy,sz,m00,m01,m02,m10,m11,m12,m20,m21,m22 = cf:components() | |
10 | return math.atan2(-m12,m22),math.asin(m02),math.atan2(-m01,m00)end | |
11 | Lerp = {Number = function(C1,C2,inc) | |
12 | return C1 + (C2 - C1) * inc | |
13 | end;CFrame = function(C1,C2,inc) | |
14 | local x1,y1,z1 = getAngles(C1) | |
15 | local x2,y2,z2 = getAngles(C2) | |
16 | return CFrame.new(Lerp.Number(C1.X,C2.X,inc),Lerp.Number(C1.Y,C2.Y,inc), Lerp.Number(C1.Z,C2.Z,inc)) * CFrame.Angles(Lerp.Number(x1,x2,inc),Lerp.Number(y1,y2,inc),Lerp.Number(z1,z2,inc)) | |
17 | end;} | |
18 | Part = function(x,y,z,color,tr,cc,an,parent) | |
19 | local p = Instance.new('Part',parent or Weapon) | |
20 | p.formFactor = 'Custom' | |
21 | p.Size = Vector3.new(x,y,z) | |
22 | p.BrickColor = BrickColor.new(color) | |
23 | p.CanCollide = cc | |
24 | p.Transparency = tr | |
25 | p.Anchored = an | |
26 | p.TopSurface,p.BottomSurface = 0,0 | |
27 | return p end | |
28 | fir = function(n1,n2,n3,n4,n5,n6,hs,fs,parent) | |
29 | local fi = Instance.new('Fire',parent or Weapon) | |
30 | fi.Color=Color3.new(n1,n2,n3) | |
31 | fi.Heat=hs | |
32 | fi.SecondaryColor=Color3.new(n4,n5,n6) | |
33 | fi.Size=fs | |
34 | return fi end | |
35 | wPart = function(x,y,z,color,tr,cc,an,parent) | |
36 | local wp = Instance.new('WedgePart',parent or Weapon) | |
37 | wp.formFactor = 'Custom' | |
38 | wp.Size = Vector3.new(x,y,z) | |
39 | wp.BrickColor = BrickColor.new(color) | |
40 | wp.CanCollide = cc | |
41 | wp.Transparency = tr | |
42 | wp.Anchored = an | |
43 | wp.TopSurface,wp.BottomSurface = 0,0 | |
44 | return wp end | |
45 | Weld = function(p0,p1,x,y,z,rx,ry,rz,par) | |
46 | p0.Position = p1.Position | |
47 | local w = Instance.new('Motor',par or p0) | |
48 | w.Part0 = p0 | |
49 | w.Part1 = p1 | |
50 | w.C1 = CFrame.new(x,y,z)*CFrame.Angles(rx,ry,rz) | |
51 | return w end | |
52 | Mesh = function(par,num,x,y,z) | |
53 | local msh = _ | |
54 | if num == 1 then msh = Instance.new("CylinderMesh",par) | |
55 | elseif num == 2 then msh = Instance.new("SpecialMesh",par) msh.MeshType = 3 | |
56 | elseif num == 3 then msh = Instance.new("BlockMesh",par) | |
57 | elseif num == 4 then msh = Instance.new("SpecialMesh",par) msh.MeshType = "Torso" | |
58 | elseif type(num) == 'string' then msh = Instance.new("SpecialMesh",par) msh.MeshId = num | |
59 | end msh.Scale = Vector3.new(x,y,z) | |
60 | return msh end function TweenCFrame(part,cframe,q) | |
61 | local c0 = part.CFrame | |
62 | for i = -90,90,q do | |
63 | local r = ((math.sin(math.rad(i))+1)/2) | |
64 | part.CFrame = CFrame.new(c0.p:lerp(cframe.p,r)) | |
65 | wait()end end | |
66 | cube = function(pos) | |
67 | for i=1,6 do local ascube = Part(1.5,1.5,1.5,'Teal',0,false,true,mo) | |
68 | ascube.CFrame= pos table.insert(Parts,ascube) | |
69 | coroutine.wrap(function() | |
70 | TweenCFrame(ascube,pos+Vector3.new(math.random(-20,20),10,math.random(-20,20)),10) | |
71 | ascube.Anchored=false | |
72 | end)()end end | |
73 | s1 = Instance.new("Sound",pl.Torso)s1.SoundId = "http://www.roblox.com/asset/?id=30299564" | |
74 | s2 = Instance.new("Sound",pl.Torso)s2.SoundId = "http://www.roblox.com/asset/?id=30172281" | |
75 | s3 = Instance.new("Sound",pl.Torso)s3.SoundId = "http://www.roblox.com/asset/?id=30172373" | |
76 | s4 = Instance.new("Sound",pl.Torso)s4.SoundId = "http://www.roblox.com/asset/?id=32656754" | |
77 | s5 = Instance.new("Sound",pl.Torso)s5.SoundId = "http://www.roblox.com/asset/?id=32656713" | |
78 | s6 = Instance.new("Sound",pl.Torso)s6.SoundId = "http://www.roblox.com/asset/?id=31758934" | |
79 | mo=Instance.new("Model",pl) | |
80 | mpa= Part(.25,3,.25,'Really black',0,false,false,mo) | |
81 | mwl= Weld(mpa,pl.Torso,0,.5,.5,0,0,math.pi/3.5,mo) | |
82 | pa= Part(.4,1,.4,'Teal',0,false,false,mo) | |
83 | wl= Weld(pa,mpa,0,-1,0,0,0,0,mo) | |
84 | m= Mesh(pa,1,1,1,1) | |
85 | pa= Part(.4,.5,.4,'Teal',0,false,false,mo) | |
86 | wl= Weld(pa,mpa,0,1.25,0,0,0,0,mo) | |
87 | m= Mesh(pa,1,1,1,1) | |
88 | pa= Part(.5,.5,.5,'Teal',0,false,false,mo) | |
89 | wl= Weld(pa,mpa,0,-1.5,0,math.pi/10,math.pi/4,0,mo) | |
90 | pa= Part(.5,.5,.5,'Teal',0,false,false,mo) | |
91 | wl= Weld(pa,mpa,0,-1.5,0,math.pi/5,math.pi/8,0,mo) | |
92 | pa= Part(.4,.4,.4,'Teal',0,false,false,mo) | |
93 | wl= Weld(pa,mpa,0,1.5,0,math.pi/10,math.pi/4,0,mo) | |
94 | pa= Part(.4,.4,.4,'Teal',0,false,false,mo) | |
95 | wl= Weld(pa,mpa,0,1.5,0,math.pi/5,math.pi/8,0,mo) | |
96 | pa= Part(.75,.76,.75,'Dark stone grey',0,false,false,mo) | |
97 | wl= Weld(pa,mpa,0,1.9,0,0,0,0,mo) | |
98 | pa= Part(.75,.25,.75,'Teal',0,false,false,mo) | |
99 | wl= Weld(pa,mpa,-.5,1.9,0,0,0,math.pi/2,mo)m= Mesh(pa,4,1,1,1) | |
100 | pa= Part(.75,.5,.75,'Really black',0,false,false,mo) | |
101 | wl= Weld(pa,mpa,-.5,1.9,0,math.pi/2,0,math.pi/2,mo)m= Mesh(pa,4,1,1,1) | |
102 | pa= wPart(.75,.2,.4,'Really black',0,false,false,mo) | |
103 | wl= Weld(pa,mpa,.2,2.375,0,0,math.pi/2,0,mo) | |
104 | pa= wPart(.75,.2,.4,'Really black',0,false,false,mo) | |
105 | wl= Weld(pa,mpa,.2,1.9,.475,math.pi/2,math.pi/2,0,mo) | |
106 | pa= wPart(.75,.2,.4,'Really black',0,false,false,mo) | |
107 | wl= Weld(pa,mpa,.2,1.9,-.475,-math.pi/2,math.pi/2,0,mo) | |
108 | pa= wPart(.75,.2,.4,'Really black',0,false,false,mo) | |
109 | wl= Weld(pa,mpa,.2,1.425,0,math.pi/1,math.pi/2,0,mo) | |
110 | asd= Part(.1,1.13,1.13,'Teal',0,false,false,mo) | |
111 | wl= Weld(asd,mpa,.5,1.9,0,0,0,0,mo) | |
112 | function eq() | |
113 | s6:play() | |
114 | LerpTo = CFrame.new(-1,0,0) * CFrame.Angles(-math.rad(-70),math.rad(70),0) * CFrame.new(-0.4,-0.5,-0.1) | |
115 | wait(0.1) | |
116 | mwl.Part1 = pl['Right Arm'] | |
117 | mwl.C1 = CFrame.new(0,-1,0)*CFrame.Angles(-math.pi/2,math.pi/2,0) | |
118 | LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(-math.rad(40),math.rad(30),0) * CFrame.new(0,0.1,1) | |
119 | seq=true end function dc() seq=false s6:play() | |
120 | LerpTo = CFrame.new(-1,0,0) * CFrame.Angles(-math.rad(-70),math.rad(70),0) * CFrame.new(-0.4,-0.5,-0.1) | |
121 | wait(0.1) | |
122 | mwl.Part1 = pl.Torso | |
123 | mwl.C1 = CFrame.new(0,.5,.5)*CFrame.Angles(0,0,math.pi/3.5) | |
124 | LerpTo = CFrame.new(-1.5,0,0)end function hit() | |
125 | asds=true wait(0.2) asds=false end | |
126 | function grav() if seq==true then if deb==true then return end deb=true | |
127 | LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(-math.rad(115),0,-math.rad(30)) * CFrame.new(0,0,0.5) | |
128 | s1:play() | |
129 | wait(0.2) | |
130 | LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(-math.rad(20),0,math.rad(30)) * CFrame.new(0,-.3,0.5) | |
131 | wait(0.2) | |
132 | LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(-math.rad(40),math.rad(30),0) * CFrame.new(0,0.1,1) | |
133 | deb=false | |
134 | hit()end end | |
135 | function fly() | |
136 | if seq==true then | |
137 | LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(-math.rad(115),0,-math.rad(30)) * CFrame.new(0,0,0.5) | |
138 | s1:play() | |
139 | wait(0.2) | |
140 | LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(-math.rad(20),0,math.rad(30)) * CFrame.new(0,-.3,0.5) | |
141 | wait(0.2) | |
142 | expa= Part(.4,.5,.4,'Really black',0,false,true,mo) | |
143 | spm= Mesh(expa,'http://www.roblox.com/asset/?id=3270017',0,0,0) | |
144 | expa.CFrame=pl.Torso.CFrame*CFrame.Angles(math.pi/2,0,0)-Vector3.new(0,3,0) | |
145 | s4:play() | |
146 | for i=1,10 do wait() | |
147 | spm.Scale=spm.Scale+Vector3.new(5,5,2) | |
148 | expa.Transparency=expa.Transparency +.1 end expa:remove() | |
149 | cube(pl.Torso.CFrame) | |
150 | v=game.Players:GetChildren() for i = 1, #v do | |
151 | dist = (v[i].Character.Torso.Position - pl.Torso.Position).magnitude | |
152 | if dist <= 20 and v[i].Character.Name ~= pl.Name then | |
153 | coroutine.wrap(function() | |
154 | local bps=Instance.new("BodyPosition",v[i].Character.Torso)bps.position=v[i].Character.Torso.Position+Vector3.new(0,20,0) bps.maxForce=Vector3.new(1e1000,1e1000,1e1000) | |
155 | wait(.5) bps:remove() | |
156 | v[i].Character.Humanoid:TakeDamage(50) | |
157 | end)() end end | |
158 | LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(-math.rad(40),math.rad(30),0) * CFrame.new(0,0.1,1) | |
159 | end | |
160 | end | |
161 | function onKeyDown(key) | |
162 | key = key:lower() | |
163 | if key == "e" then a=not a | |
164 | if a then eq()else dc()end end | |
165 | if key == "q" then fly() end | |
166 | if key == "r" then th() end end | |
167 | ||
168 | function onClicked() grav() end | |
169 | game:service'RunService'.RenderStepped:connect(function() | |
170 | rshr.C1 = Lerp.CFrame(rshr.C1,LerpTo,0.2)end) | |
171 | mouse.KeyDown:connect(onKeyDown) | |
172 | mouse.Button1Down:connect(function() onClicked(mouse) end) | |
173 | function touch(hit) if hit.Parent:findFirstChild("Humanoid") ~= nil then | |
174 | if asds==false then return end deb=true asds=false s2:play() | |
175 | expa= Part(.4,.5,.4,'Really black',0,false,true,mo) | |
176 | spm= Mesh(expa,'http://www.roblox.com/asset/?id=3270017',0,0,0) | |
177 | expa.CFrame=pl.Torso.CFrame*CFrame.Angles(math.pi/2,0,0)-Vector3.new(0,3,0) | |
178 | expa2= Part(.4,.5,.4,'Teal',0,false,true,mo) | |
179 | spm2= Mesh(expa2,'http://www.roblox.com/asset/?id=1185246',0,0,0) | |
180 | expa2.CFrame=pl.Torso.CFrame | |
181 | for i=1,10 do wait()for _,v in pairs(mo:GetChildren()) do if v.ClassName=="Part" or v.ClassName=="WedgePart" then v.Transparency=v.Transparency+.1 end end | |
182 | expa2.CFrame=pl.Torso.CFrame*CFrame.Angles(0,i,0) | |
183 | spm.Scale=spm.Scale+Vector3.new(4,4,4) | |
184 | spm2.Scale=spm2.Scale+Vector3.new(2,2,2) | |
185 | end expa:remove()expa2:remove() | |
186 | LerpTo = CFrame.new(-1.5,0,0)bps=Instance.new("BodyPosition",pl.Torso)bps.position=pl.Torso.Position+Vector3.new(0,20,0) bps.maxForce=Vector3.new(1e1000,1e1000,1e1000) | |
187 | dds=bps:Clone() dds.Parent=hit.Parent.Torso dds.position=pl.Torso.Position+Vector3.new(0,40,0) | |
188 | wait(.5) s3:play() | |
189 | for i=1,6 do | |
190 | expa= Part(.4,.5,.4,'Really black',0,false,true,mo) | |
191 | spm= Mesh(expa,'http://www.roblox.com/asset/?id=3270017',0,0,0) | |
192 | expa2= Part(.4,.5,.4,'Teal',0,false,true,mo) | |
193 | spm2= Mesh(expa2,'http://www.roblox.com/asset/?id=1185246',0,0,0) | |
194 | expa2.CFrame=pl.Torso.CFrame+Vector3.new(0,7,0) | |
195 | cube(expa2.CFrame) s5:play() | |
196 | for i=1,10 do wait() | |
197 | expa.CFrame=pl.Torso.CFrame*CFrame.Angles(0,math.rad(i*10),math.rad(i*10))+Vector3.new(0,7,0) | |
198 | spm.Scale=spm.Scale+Vector3.new(2,2,2) | |
199 | spm2.Scale=spm2.Scale+Vector3.new(2,2,2) | |
200 | expa.Transparency=expa.Transparency +.1 | |
201 | expa2.Transparency=expa2.Transparency +.1 | |
202 | end wait(.1) | |
203 | for i,v in pairs(Parts)do | |
204 | coroutine.wrap(function() | |
205 | TweenCFrame(v,CFrame.new(hit.Parent.Torso.Position),30) | |
206 | v:remove() | |
207 | end)()end wait(.1) | |
208 | hit.Parent.Humanoid:TakeDamage(10)Parts={} | |
209 | expa:remove()expa2:remove() | |
210 | end | |
211 | bps:remove()dds:remove() | |
212 | for i=1,10 do wait()for _,v in pairs(mo:GetChildren()) do if v.ClassName=="Part" or v.ClassName=="WedgePart" then v.Transparency=v.Transparency-.1 end end end | |
213 | LerpTo = CFrame.new(-1.5,0,0) * CFrame.Angles(-math.rad(40),math.rad(30),0) * CFrame.new(0,0.1,1) | |
214 | deb=false | |
215 | end end asd.Touched:connect(touch) |