SHOW:
|
|
- or go back to the newest paste.
1 | --[[ | |
2 | Made by Fenrier. | |
3 | ]] | |
4 | Player = game:GetService("Players").LocalPlayer | |
5 | Character = Player.Character | |
6 | PlayerGui = Player.PlayerGui | |
7 | Backpack = Player.Backpack | |
8 | Torso = Character.Torso | |
9 | Head = Character.Head | |
10 | Humanoid = Character.Humanoid | |
11 | LeftArm = Character["Left Arm"] | |
12 | LeftLeg = Character["Left Leg"] | |
13 | RightArm = Character["Right Arm"] | |
14 | RightLeg = Character["Right Leg"] | |
15 | LS = Torso["Left Shoulder"] | |
16 | LH = Torso["Left Hip"] | |
17 | RS = Torso["Right Shoulder"] | |
18 | RH = Torso["Right Hip"] | |
19 | Neck = Torso.Neck | |
20 | it=Instance.new | |
21 | vt=Vector3.new | |
22 | cf=CFrame.new | |
23 | euler=CFrame.fromEulerAnglesXYZ | |
24 | angles=CFrame.Angles | |
25 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
26 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
27 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
28 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
29 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
30 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
31 | local MainC0=euler(1.57,0,0)*cf(0,0,0) | |
32 | local MainC02=cf(0,0,-2.5) | |
33 | local Tracer1C0=MainC02*euler(0,1.57-(0.628*0),0) | |
34 | local Tracer2C0=MainC02*euler(0,1.57-(0.628*1),0) | |
35 | local Tracer3C0=MainC02*euler(0,1.57-(0.628*2),0) | |
36 | local Tracer4C0=MainC02*euler(0,1.57-(0.628*3),0) | |
37 | local Tracer5C0=MainC02*euler(0,1.57-(0.628*4),0) | |
38 | local Tracer6C0=MainC02*euler(0,1.57-(0.628*5),0) | |
39 | RootPart=Character.HumanoidRootPart | |
40 | RootJoint=RootPart.RootJoint | |
41 | RootCF=euler(-1.57,0,3.14) | |
42 | attack=false | |
43 | attackdebounce=false | |
44 | MMouse=nil | |
45 | combo=0 | |
46 | local MainWelds={} | |
47 | local PrtWelds={} | |
48 | local tehnum=1 | |
49 | circle=false | |
50 | local blocked=false | |
51 | --player | |
52 | player = nil | |
53 | --save shoulders | |
54 | RSH, LSH = nil, nil | |
55 | --welds | |
56 | RW, LW = Instance.new("Weld"), Instance.new("Weld") | |
57 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
58 | LH=Torso["Left Hip"] | |
59 | RH=Torso["Right Hip"] | |
60 | ||
61 | function swait(num) | |
62 | if num==0 or num==nil then | |
63 | game:service'RunService'.RenderStepped:wait() | |
64 | game:service'RunService'.RenderStepped:wait() | |
65 | else | |
66 | num=num*1.5 | |
67 | for i=0,num do | |
68 | game:service'RunService'.RenderStepped:wait() | |
69 | end | |
70 | end | |
71 | end | |
72 | ||
73 | if Character:findFirstChild("Tracers",true) ~= nil then | |
74 | Character:findFirstChild("Tracers",true).Parent = nil | |
75 | end | |
76 | function NoOutline(Part) | |
77 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
78 | end | |
79 | ||
80 | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
81 | local fp = it("Part") | |
82 | fp.formFactor = formfactor | |
83 | fp.Parent = parent | |
84 | fp.Reflectance = reflectance | |
85 | fp.Transparency = transparency | |
86 | fp.CanCollide = false | |
87 | fp.Locked=true | |
88 | fp.BrickColor = brickcolor | |
89 | fp.Name = name | |
90 | fp.Size = size | |
91 | fp.Position = Torso.Position | |
92 | NoOutline(fp) | |
93 | fp.Material="SmoothPlastic" | |
94 | fp:BreakJoints() | |
95 | return fp | |
96 | end | |
97 | ||
98 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
99 | local mesh = it(Mesh) | |
100 | mesh.Parent = part | |
101 | if Mesh=="SpecialMesh" then | |
102 | mesh.MeshType = meshtype | |
103 | mesh.MeshId = meshid | |
104 | end | |
105 | mesh.Offset=offset | |
106 | mesh.Scale=scale | |
107 | return mesh | |
108 | end | |
109 | ||
110 | function weld(parent,part0,part1,c0) | |
111 | local weld = it("Weld") | |
112 | weld.Parent = parent | |
113 | weld.Part0 = part0 | |
114 | weld.Part1 = part1 | |
115 | weld.C0 = c0 | |
116 | return weld | |
117 | end | |
118 | ||
119 | local modelzorz = Instance.new("Model") | |
120 | modelzorz.Parent = Character | |
121 | modelzorz.Name = "Tracers" | |
122 | ||
123 | local prt1=part(1,modelzorz,0,1,Torso.BrickColor,"Base",vt(1,1,1)) | |
124 | msh1=mesh("BlockMesh",prt1,"","",vt(0,0,0),vt(1,1,1)) | |
125 | local wld1=weld(prt1,prt1,RootPart,euler(0,0,0)*cf(0,0,0)) | |
126 | local hitbox=part(1,nil,0,1,BrickColor.new("Black"),"Hitbox",vt(1,1,1)) | |
127 | hitbox.Anchored=false | |
128 | ||
129 | --3.14/6=0.52 | |
130 | --3.14/5=0.628 | |
131 | numb=0 | |
132 | for i=1,6 do | |
133 | local firstbase=part(1,modelzorz,0,1,Torso.BrickColor,"FirstBase",vt(1,1,1)) | |
134 | local firstprt1=part(1,modelzorz,0,0,BrickColor.new("White"),"Part1",vt(1,1,1)) | |
135 | local firstprt2=part(1,modelzorz,0,0,BrickColor.new("White"),"Part2",vt(1,1,1)) | |
136 | local firstprt3=part(1,modelzorz,0,0,BrickColor.new("White"),"Part3",vt(1,1,1)) | |
137 | local firstprt4=part(1,modelzorz,0,0,BrickColor.new("White"),"Part4",vt(1,1,1)) | |
138 | local firstprt5=part(1,modelzorz,0,0,BrickColor.new("White"),"Part5",vt(1,1,1)) | |
139 | local firstprt6=part(1,modelzorz,0,0.2,BrickColor.new("Bright red"),"Part6",vt(1,1,1)) | |
140 | local firstprt7=part(1,modelzorz,0,0.2,BrickColor.new("Bright red"),"Part7",vt(1,1,1)) | |
141 | local firstprt8=part(1,modelzorz,0,0,BrickColor.new("White"),"Part8",vt(1,1,1)) | |
142 | local firstprt9=part(1,modelzorz,0,0,BrickColor.new("White"),"Part9",vt(1,1,1)) | |
143 | local firstprt10=part(1,modelzorz,0,0.5,BrickColor.new("Bright red"),"Part10",vt(1,1,1)) | |
144 | local firstprt11=part(1,modelzorz,0,0,BrickColor.new("Bright red"),"Part11",vt(1,1,1)) | |
145 | local firstprt12=part(1,modelzorz,0,0,BrickColor.new("Black"),"Part12",vt(1,1,1)) | |
146 | local firstprt13=part(1,modelzorz,0,0,BrickColor.new("Bright orange"),"Part13",vt(1,1,1)) | |
147 | local firstprt14=part(1,modelzorz,0,0,BrickColor.new("Bright orange"),"Part14",vt(1,1,1)) | |
148 | ||
149 | firstbasemsh=mesh("BlockMesh",firstbase,"","",vt(0,0,0),vt(0.5,0.5,0.5)) | |
150 | firstmsh1=mesh("CylinderMesh",firstprt1,"","",vt(0,0,0),vt(0.5,0.2,0.5)) | |
151 | firstmsh2=mesh("BlockMesh",firstprt2,"","",vt(0,0,0),vt(0.3,0.1,0.2)) | |
152 | firstmsh3=mesh("BlockMesh",firstprt3,"","",vt(0,0,0),vt(0.3,0.1,0.2)) | |
153 | firstmsh4=mesh("BlockMesh",firstprt4,"","",vt(0,0,0),vt(0.2,0.099,0.5)) | |
154 | firstmsh5=mesh("BlockMesh",firstprt5,"","",vt(0,0,0),vt(0.2,0.099,0.5)) | |
155 | firstmsh6=mesh("BlockMesh",firstprt6,"","",vt(0,0,0),vt(0.25,0.05,0.55)) | |
156 | firstmsh7=mesh("BlockMesh",firstprt7,"","",vt(0,0,0),vt(0.25,0.05,0.55)) | |
157 | firstmsh8=mesh("SpecialMesh",firstprt8,"Torso","",vt(0,0,0),vt(0.35,0.2,0.1)) | |
158 | firstmsh9=mesh("SpecialMesh",firstprt9,"Torso","",vt(0,0,0),vt(0.35,0.4,0.1)) | |
159 | firstmsh10=mesh("BlockMesh",firstprt10,"","",vt(0,0,0),vt(0.35,0.6,0.01)) | |
160 | firstmsh11=mesh("BlockMesh",firstprt11,"","",vt(0,0,0),vt(0.2,0.6,0.15)) | |
161 | firstmsh12=mesh("CylinderMesh",firstprt12,"","",vt(0,0,0),vt(0.35,0.21,0.35)) | |
162 | firstmsh13=mesh("SpecialMesh",firstprt13,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(0.2,0.2,1.8)) | |
163 | firstmsh14=mesh("BlockMesh",firstprt14,"","",vt(0,0,0),vt(0.05,0.2,0.27)) | |
164 | ||
165 | local firstbasewld=weld(firstbase,firstbase,prt1,cf(0,0,-2.5)*euler(0,1.57-numb,0)) | |
166 | table.insert(MainWelds,firstbasewld) | |
167 | --[[coroutine.resume(coroutine.create(function(Weld,Numb) | |
168 | if tehnum==1 then | |
169 | while true do | |
170 | swait() | |
171 | Weld.C0=Tracer1C0*cf(0,0,-2.5)*euler(0,1.57-Numb,0) | |
172 | end | |
173 | elseif tehnum==2 then | |
174 | while true do | |
175 | swait() | |
176 | Weld.C0=Tracer2C0*cf(0,0,-2.5)*euler(0,1.57-Numb,0) | |
177 | end | |
178 | elseif tehnum==3 then | |
179 | while true do | |
180 | swait() | |
181 | Weld.C0=Tracer3C0*cf(0,0,-2.5)*euler(0,1.57-Numb,0) | |
182 | end | |
183 | elseif tehnum==4 then | |
184 | while true do | |
185 | swait() | |
186 | Weld.C0=Tracer4C0*cf(0,0,-2.5)*euler(0,1.57-Numb,0) | |
187 | end | |
188 | elseif tehnum==5 then | |
189 | while true do | |
190 | swait() | |
191 | Weld.C0=Tracer5C0*cf(0,0,-2.5)*euler(0,1.57-Numb,0) | |
192 | end | |
193 | elseif tehnum==6 then | |
194 | while true do | |
195 | swait() | |
196 | Weld.C0=Tracer6C0*cf(0,0,-2.5)*euler(0,1.57-Numb,0) | |
197 | end | |
198 | tehnum=tehnum+1 | |
199 | --Weld.C0=MainC02*cf(0,0,-2.5)*euler(0,1.57-Numb,0) | |
200 | end | |
201 | end),firstbasewld,numb)]] | |
202 | local firstwld1=weld(firstprt1,firstprt1,firstbase,euler(1.57,0,0)*cf(0,0,0)) | |
203 | coroutine.resume(coroutine.create(function(Weld) | |
204 | while true do | |
205 | swait() | |
206 | Weld.C0=MainC0 | |
207 | end | |
208 | end),firstwld1) | |
209 | table.insert(PrtWelds,firstwld1) | |
210 | local firstwld2=weld(firstprt2,firstprt2,firstprt1,euler(0,0.7,0)*cf(-0.1,0,-0.2)) | |
211 | local firstwld3=weld(firstprt3,firstprt3,firstprt1,euler(0,-0.7,0)*cf(0.1,0,-0.2)) | |
212 | local firstwld4=weld(firstprt4,firstprt4,firstprt2,euler(0,0.7+1.57,0)*cf(0.05,0,-0.4)) | |
213 | local firstwld5=weld(firstprt5,firstprt5,firstprt3,euler(0,-0.7+1.57,0)*cf(-0.05,0,-0.4)) | |
214 | local firstwld6=weld(firstprt6,firstprt6,firstprt4,euler(0,0,0)*cf(0,0,0)) | |
215 | local firstwld7=weld(firstprt7,firstprt7,firstprt5,euler(0,0,0)*cf(0,0,0)) | |
216 | local firstwld8=weld(firstprt8,firstprt8,firstprt1,euler(-1.57,0,0)*cf(0,0,0.3)) | |
217 | local firstwld9=weld(firstprt9,firstprt9,firstprt8,euler(0,0,3.14)*cf(0,0.36,0)) | |
218 | local firstwld10=weld(firstprt10,firstprt10,firstprt9,euler(0,0,0)*cf(0,-0.1,0)) | |
219 | local firstwld11=weld(firstprt11,firstprt11,firstprt9,euler(0,0,0)*cf(0,0.1,0)) | |
220 | local firstwld12=weld(firstprt12,firstprt12,firstprt1,euler(0,0,0)*cf(0,0,0)) | |
221 | local firstwld13=weld(firstprt13,firstprt13,firstprt1,euler(1.57,0,0)*cf(0,0,0.05)) | |
222 | local firstwld14=weld(firstprt14,firstprt14,firstprt1,euler(1.57,0,0)*cf(0,0,-0.05)) | |
223 | ||
224 | coroutine.resume(coroutine.create(function() | |
225 | while true do | |
226 | for i=0,1,0.05 do | |
227 | if attack==false and combo==0 then | |
228 | swait() | |
229 | wld1.C0=euler(0,0,0)*cf(0,0.1*i,0) | |
230 | end | |
231 | end | |
232 | for i=0,1,0.05 do | |
233 | if attack==false and combo==0 then | |
234 | swait() | |
235 | wld1.C0=euler(0,0,0)*cf(0,0.1-0.1*i,0) | |
236 | end | |
237 | end | |
238 | swait(0) | |
239 | end | |
240 | end)) | |
241 | numb=numb+0.628 | |
242 | end | |
243 | for i=1,#MainWelds do | |
244 | print(MainWelds[i]) | |
245 | coroutine.resume(coroutine.create(function(Weld,Numb) | |
246 | while true do | |
247 | swait() | |
248 | if Numb==1 then | |
249 | Weld.C0=Tracer1C0 | |
250 | end | |
251 | if Numb==2 then | |
252 | Weld.C0=Tracer2C0 | |
253 | end | |
254 | if Numb==3 then | |
255 | Weld.C0=Tracer3C0 | |
256 | end | |
257 | if Numb==4 then | |
258 | Weld.C0=Tracer4C0 | |
259 | end | |
260 | if Numb==5 then | |
261 | Weld.C0=Tracer5C0 | |
262 | end | |
263 | if Numb==6 then | |
264 | Weld.C0=Tracer6C0 | |
265 | end | |
266 | end | |
267 | end),MainWelds[i],i) | |
268 | --Weld.C0=Tracer6C0*cf(0,0,-2.5)*euler(0,1.57-Numb,0) | |
269 | end | |
270 | ||
271 | if (script.Parent.className ~= "HopperBin") then | |
272 | Tool = Instance.new("HopperBin") | |
273 | Tool.Parent = Backpack | |
274 | Tool.Name = "Tracers" | |
275 | script.Parent = Tool | |
276 | end | |
277 | Bin = script.Parent | |
278 | ||
279 | local Bg = it("BodyGyro") | |
280 | Bg.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge | |
281 | Bg.P = 20e+003 | |
282 | Bg.Parent = nil | |
283 | ||
284 | so = function(id,par,vol,pit) | |
285 | coroutine.resume(coroutine.create(function() | |
286 | local sou = Instance.new("Sound",par or workspace) | |
287 | sou.Volume=vol | |
288 | sou.Pitch=pit or 1 | |
289 | sou.SoundId=id | |
290 | swait() | |
291 | sou:play() | |
292 | swait(6) | |
293 | sou:Remove() | |
294 | end)) | |
295 | end | |
296 | ||
297 | function hideanim() | |
298 | equipped=false | |
299 | wld1.C0=euler(0,0,0) | |
300 | MainC0=euler(1.57,0,0)*cf(0,0,0) | |
301 | MainC02=cf(0,0,-2.5) | |
302 | Tracer1C0=MainC02*euler(0,1.57-(0.628*0),0) | |
303 | Tracer2C0=MainC02*euler(0,1.57-(0.628*1),0) | |
304 | Tracer3C0=MainC02*euler(0,1.57-(0.628*2),0) | |
305 | Tracer4C0=MainC02*euler(0,1.57-(0.628*3),0) | |
306 | Tracer5C0=MainC02*euler(0,1.57-(0.628*4),0) | |
307 | Tracer6C0=MainC02*euler(0,1.57-(0.628*5),0) | |
308 | end | |
309 | ||
310 | function equipanim() | |
311 | equipped=true | |
312 | for i=0,1,0.1 do | |
313 | swait() | |
314 | MainC0=euler(1.57+0.43*i,0,0)*cf(0,0,0) | |
315 | MainC02=cf(0,0,-2.5-0.5*i) | |
316 | Tracer1C0=MainC02*euler(0,1.57-(0.628*0),0) | |
317 | Tracer2C0=MainC02*euler(0,1.57-(0.628*1),0) | |
318 | Tracer3C0=MainC02*euler(0,1.57-(0.628*2),0) | |
319 | Tracer4C0=MainC02*euler(0,1.57-(0.628*3),0) | |
320 | Tracer5C0=MainC02*euler(0,1.57-(0.628*4),0) | |
321 | Tracer6C0=MainC02*euler(0,1.57-(0.628*5),0) | |
322 | Neck.C0=necko | |
323 | RootJoint.C0=RootCF | |
324 | RW.C0=cf(1.5,0.5,0)*euler(0,0,0.5*i) | |
325 | RW.C1=cf(0,0.5,0)*euler(0,0,0) | |
326 | LW.C0=cf(-1.5,0.5,0)*euler(0,0,-0.5*i) | |
327 | LW.C1=cf(0,0.5,0)*euler(0,0,0) | |
328 | end | |
329 | end | |
330 | ||
331 | --6.28/6=1.046 | |
332 | function Circle(circtime) | |
333 | circle=true | |
334 | for i=0,1,circtime do | |
335 | swait() | |
336 | Tracer1C0=MainC02*euler(0,1.57-(0.628*0),0)*euler(0,(0.628*0)*i,0)*euler(0,-(1.046*0)*i,0) | |
337 | Tracer2C0=MainC02*euler(0,1.57-(0.628*1),0)*euler(0,(0.628*1)*i,0)*euler(0,-(1.046*1)*i,0) | |
338 | Tracer3C0=MainC02*euler(0,1.57-(0.628*2),0)*euler(0,(0.628*2)*i,0)*euler(0,-(1.046*2)*i,0) | |
339 | Tracer4C0=MainC02*euler(0,1.57-(0.628*3),0)*euler(0,(0.628*3)*i,0)*euler(0,-(1.046*3)*i,0) | |
340 | Tracer5C0=MainC02*euler(0,1.57-(0.628*4),0)*euler(0,(0.628*4)*i,0)*euler(0,-(1.046*4)*i,0) | |
341 | Tracer6C0=MainC02*euler(0,1.57-(0.628*5),0)*euler(0,(0.628*5)*i,0)*euler(0,-(1.046*5)*i,0) | |
342 | end | |
343 | coroutine.resume(coroutine.create(function() | |
344 | while circle==true do | |
345 | swait() | |
346 | Tracer1C0=MainC02*euler(0,1.57-(1.046*0),0) | |
347 | Tracer2C0=MainC02*euler(0,1.57-(1.046*1),0) | |
348 | Tracer3C0=MainC02*euler(0,1.57-(1.046*2),0) | |
349 | Tracer4C0=MainC02*euler(0,1.57-(1.046*3),0) | |
350 | Tracer5C0=MainC02*euler(0,1.57-(1.046*4),0) | |
351 | Tracer6C0=MainC02*euler(0,1.57-(1.046*5),0) | |
352 | end | |
353 | end)) | |
354 | end | |
355 | ||
356 | function UnCircle(circtime) | |
357 | circle=false | |
358 | for i=0,1,circtime do | |
359 | swait() | |
360 | Tracer1C0=MainC02*euler(0,1.57-(1.046*0),0)*euler(0,(1.046*0)*i,0)*euler(0,-(0.628*0)*i,0) | |
361 | Tracer2C0=MainC02*euler(0,1.57-(1.046*1),0)*euler(0,(1.046*1)*i,0)*euler(0,-(0.628*1)*i,0) | |
362 | Tracer3C0=MainC02*euler(0,1.57-(1.046*2),0)*euler(0,(1.046*2)*i,0)*euler(0,-(0.628*2)*i,0) | |
363 | Tracer4C0=MainC02*euler(0,1.57-(1.046*3),0)*euler(0,(1.046*3)*i,0)*euler(0,-(0.628*3)*i,0) | |
364 | Tracer5C0=MainC02*euler(0,1.57-(1.046*4),0)*euler(0,(1.046*4)*i,0)*euler(0,-(0.628*4)*i,0) | |
365 | Tracer6C0=MainC02*euler(0,1.57-(1.046*5),0)*euler(0,(1.046*5)*i,0)*euler(0,-(0.628*5)*i,0) | |
366 | end | |
367 | coroutine.resume(coroutine.create(function() | |
368 | while circle==false do | |
369 | swait() | |
370 | Tracer1C0=MainC02*euler(0,1.57-(0.628*0),0) | |
371 | Tracer2C0=MainC02*euler(0,1.57-(0.628*1),0) | |
372 | Tracer3C0=MainC02*euler(0,1.57-(0.628*2),0) | |
373 | Tracer4C0=MainC02*euler(0,1.57-(0.628*3),0) | |
374 | Tracer5C0=MainC02*euler(0,1.57-(0.628*4),0) | |
375 | Tracer6C0=MainC02*euler(0,1.57-(0.628*5),0) | |
376 | end | |
377 | end)) | |
378 | end | |
379 | ||
380 | function attackone() | |
381 | attack=true | |
382 | Humanoid.WalkSpeed=5 | |
383 | coroutine.resume(coroutine.create(function() | |
384 | Circle(0.2) | |
385 | end)) | |
386 | coroutine.resume(coroutine.create(function() | |
387 | for i=0,1,0.2 do | |
388 | swait() | |
389 | wld1.C0=euler(1.57*i,0,0)*cf(0,-1*i,2*i) | |
390 | MainC0=euler(2+1.14*i,0,0)*cf(0,0,0) | |
391 | MainC02=cf(0,0,-3+1.5*i) | |
392 | end | |
393 | end)) | |
394 | for i=0,1,0.1 do | |
395 | swait() | |
396 | Neck.C0=necko*euler(0,0,0.5*i) | |
397 | RootJoint.C0=RootCF*euler(0,0,-0.5*i) | |
398 | RW.C0=cf(1.5,0.5,0)*euler(-0.2*i,0,0.5) | |
399 | RW.C1=cf(0,0.5,0)*euler(0,0,0) | |
400 | LW.C0=cf(-1.5+1*i,0.5,-0.5*i)*euler(2.5*i,0,-0.5+1.5*i) | |
401 | LW.C1=cf(0,0.5,0)*euler(0,0,0) | |
402 | end | |
403 | con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,15,math.random(10,20),"Knockdown",RootPart) end) | |
404 | hitbox.Parent=modelzorz | |
405 | HBCF=prt1.CFrame | |
406 | hitbox.CFrame=HBCF | |
407 | hitbox.Size=vt(1.5,2,1.5) | |
408 | so("http://www.roblox.com/asset/?id=2101148",prt1,0.5,2) | |
409 | so("http://www.roblox.com/asset/?id=161006182",prt1,1,1) | |
410 | MagicCircle(BrickColor.new("White"),prt1.CFrame*cf(0,1,0),1,1,1,0.2,0.2,0.2,0.05) | |
411 | WaveEffect(BrickColor.new("Bright red"),prt1.CFrame*cf(0,0,0),0.5,0.5,0.5,0.2,0.6,0.2) | |
412 | for i=1,3 do | |
413 | MagicBlock2(BrickColor.new("White"),prt1.CFrame*euler((math.random(-1,0)+math.random())/2,(math.random(-1,0)+math.random())/2,(math.random(-1,0)+math.random())/2),0,0,0,0.2,0.2,0.2,0) | |
414 | end | |
415 | for i=0,1,0.2 do | |
416 | swait() | |
417 | hitbox.CFrame=HBCF*cf(0,0.8,0) | |
418 | HBCF=HBCF*cf(0,0.8,0) | |
419 | MagicBlock(BrickColor.new("Bright red"),hitbox.CFrame*cf(math.random(-3,3),math.random(-3,3),math.random(-3,3)),0.5,0.5,0.5,0.3,0.3,0.3) | |
420 | MainC0=euler(3.14-0.5*i,0,0)*cf(0,0,0) | |
421 | Neck.C0=necko*euler(0,0,0.5-0.5*i) | |
422 | RootJoint.C0=RootCF*euler(0,0,-0.5+0.5*i) | |
423 | RW.C0=cf(1.5,0.5,0)*euler(-0.2,0,0.5) | |
424 | RW.C1=cf(0,0.5,0)*euler(0,0,0) | |
425 | LW.C0=cf(-0.5-1*i,0.5,-0.5+0.5*i)*euler(2.5-2.7*i,0,1-1.5*i) | |
426 | LW.C1=cf(0,0.5,0)*euler(0,0,0) | |
427 | end | |
428 | aninumb=2 | |
429 | for i=0,1,0.2 do | |
430 | swait() | |
431 | hitbox.CFrame=HBCF*cf(0,0.4,0) | |
432 | HBCF=HBCF*cf(0,0.5,0) | |
433 | MagicBlock(BrickColor.new("Bright red"),hitbox.CFrame*cf(math.random(-3,3),math.random(-3,3),math.random(-3,3)),0.5,0.5,0.5,0.3,0.3,0.3) | |
434 | MainC0=euler(3.14-0.5-0.1*(i*aninumb),0,0)*cf(0,0,0) | |
435 | Neck.C0=necko*euler(0,0,-0.1*(i*aninumb)) | |
436 | RootJoint.C0=RootCF*euler(0,0,0.1*(i*aninumb)) | |
437 | RW.C0=cf(1.5,0.5,0)*euler(-0.2,0,0.5) | |
438 | RW.C1=cf(0,0.5,0)*euler(0,0,0) | |
439 | LW.C0=cf(-1.5,0.5,0)*euler(-0.2-0.1*(i*aninumb),0,-0.5) | |
440 | LW.C1=cf(0,0.5,0)*euler(0,0,0) | |
441 | aninumb=aninumb-0.2 | |
442 | end | |
443 | con1:disconnect() | |
444 | hitbox.Parent=nil | |
445 | - | Humanoid.WalkSpeed=16 |
445 | + | Humanoid.WalkSpeed=50 |
446 | attack=false | |
447 | end | |
448 | ||
449 | function attacktwo() | |
450 | attack=true | |
451 | Humanoid.WalkSpeed=5 | |
452 | for i=0,1,0.1 do | |
453 | swait() | |
454 | MainC0=euler(2.54+0.6*i,0,0)*cf(0,0,0) | |
455 | MainC02=cf(0,0,-1.5-1*i)*euler(0,1*i,0) | |
456 | Neck.C0=necko*euler(0,0,-0.1+0.9*i) | |
457 | RootJoint.C0=RootCF*euler(0,0,0.1-0.9*i) | |
458 | RW.C0=cf(1.5,0.5,0)*euler(-0.2,0,0.5+0.1*i) | |
459 | RW.C1=cf(0,0.5,0)*euler(0,0,0) | |
460 | LW.C0=cf(-1.5,0.5,0)*euler(-0.3+1.3*i,0,-0.5+0.3*i) | |
461 | LW.C1=cf(0,0.5,0)*euler(0,0,0) | |
462 | end | |
463 | con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,30),"Normal",RootPart) end) | |
464 | hitbox.Parent=modelzorz | |
465 | HBCF=prt1.CFrame | |
466 | hitbox.CFrame=HBCF | |
467 | hitbox.Size=vt(4,5,4) | |
468 | MagicCircle(BrickColor.new("White"),prt1.CFrame*cf(0,0,0),4,4,4,0.4,0.4,0.4,0.05) | |
469 | WaveEffect(BrickColor.new("Bright red"),prt1.CFrame*cf(0,0,0),2,0.5,2,0.2,1.3,0.2) | |
470 | so("http://www.roblox.com/asset/?id=2101148",prt1,0.5,1.6) | |
471 | so("http://www.roblox.com/asset/?id=161006182",prt1,1,0.8) | |
472 | for i=0,1,0.15 do | |
473 | swait() | |
474 | hitbox.CFrame=HBCF | |
475 | HBCF=HBCF*cf(0,3,0) | |
476 | MagicBlock(BrickColor.new("Bright red"),hitbox.CFrame*cf(math.random(-3,3),math.random(-3,3),math.random(-3,3)),0.5,0.5,0.5,0.3,0.3,0.3) | |
477 | MainC02=cf(0,0,-2.5)*euler(0,1+0.5*i,0) | |
478 | MainC0=euler(3.14-0.5*i,0,0)*cf(0,0,0) | |
479 | Neck.C0=necko*euler(0,0,0.8+0.2*i) | |
480 | RootJoint.C0=RootCF*euler(0,0,-0.8-0.2*i) | |
481 | RW.C0=cf(1.5,0.5,0)*euler(-0.2,0,0.6) | |
482 | RW.C1=cf(0,0.5,0)*euler(0,0,0) | |
483 | LW.C0=cf(-1.5,0.5,0)*euler(1+2*i,0,-0.2) | |
484 | LW.C1=cf(0,0.5,0)*euler(0,0,0) | |
485 | end | |
486 | aninumb=2 | |
487 | for i=0,1,0.2 do | |
488 | swait() | |
489 | hitbox.CFrame=HBCF | |
490 | HBCF=HBCF*cf(0,0.5,0) | |
491 | MagicBlock(BrickColor.new("Bright red"),hitbox.CFrame*cf(math.random(-3,3),math.random(-3,3),math.random(-3,3)),0.5,0.5,0.5,0.3,0.3,0.3) | |
492 | MainC02=cf(0,0,-2.5)*euler(0,1.5+0.1*(i*aninumb),0) | |
493 | MainC0=euler(2.64-0.1*(i*aninumb),0,0)*cf(0,0,0) | |
494 | Neck.C0=necko*euler(0,0,1) | |
495 | RootJoint.C0=RootCF*euler(0,0,-1) | |
496 | RW.C0=cf(1.5,0.5,0)*euler(-0.2,0,0.6) | |
497 | RW.C1=cf(0,0.5,0)*euler(0,0,0) | |
498 | LW.C0=cf(-1.5,0.5,0)*euler(3+0.1*(i*aninumb),0,-0.2) | |
499 | LW.C1=cf(0,0.5,0)*euler(0,0,0) | |
500 | aninumb=aninumb-0.2 | |
501 | end | |
502 | con1:disconnect() | |
503 | hitbox.Parent=nil | |
504 | - | Humanoid.WalkSpeed=16 |
504 | + | Humanoid.WalkSpeed=50 |
505 | attack=false | |
506 | end | |
507 | ||
508 | function attackthree() | |
509 | attack=true | |
510 | Humanoid.WalkSpeed=5 | |
511 | for i=0,1,0.1 do | |
512 | swait() | |
513 | wld1.C0=euler(1.57,0,0)*cf(-0.8*i,-1+0.5*i,2) | |
514 | MainC02=cf(0,0,-2.5)*euler(0,1.6+1*i,0) | |
515 | MainC0=euler(2.54-4.11*i,0,0)*cf(0,0,0) | |
516 | Neck.C0=necko*euler(0,0,1-2*i) | |
517 | RootJoint.C0=RootCF*euler(0,0,-1+2*i) | |
518 | RW.C0=cf(1.5,0.5,0)*euler(-0.2+1.77*i,0,0.6+0.4*i) | |
519 | RW.C1=cf(0,0.5,0)*euler(0,0,0) | |
520 | LW.C0=cf(-1.5,0.5,0)*euler(3.1-3.3*i,0,-0.2-0.2*i) | |
521 | LW.C1=cf(0,0.5,0)*euler(0,0,0) | |
522 | end | |
523 | hitbox.Parent=modelzorz | |
524 | HBCF=prt1.CFrame | |
525 | hitbox.CFrame=HBCF | |
526 | hitbox.Size=vt(4,5,4) | |
527 | con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,5,10,1,"Snare",RootPart) end) | |
528 | so("http://www.roblox.com/asset/?id=161006131",prt1,1,1.2) | |
529 | vel=Instance.new("BodyVelocity") | |
530 | vel.Parent=Torso | |
531 | vel.maxForce=vt(4e+005,4e+005,4e+005)*1 | |
532 | vel.velocity=RootPart.CFrame.lookVector*50 | |
533 | coroutine.resume(coroutine.create(function(Vel) | |
534 | swait(10) | |
535 | Vel.velocity=RootPart.CFrame.lookVector*10 | |
536 | end),vel) | |
537 | bg=it("BodyGyro") | |
538 | bg.maxTorque=Vector3.new(4e+005,4e+005,4e+005)*math.huge | |
539 | bg.P=20e+003 | |
540 | bg.Parent=Head | |
541 | bg.cframe=Head.CFrame | |
542 | for i=0,1,0.05 do | |
543 | swait() | |
544 | hitbox.CFrame=HBCF | |
545 | HBCF=prt1.CFrame | |
546 | MainC02=cf(0,0,-2.5)*euler(0,2.6+2.4*i,0) | |
547 | MagicRing(BrickColor.new("White"),prt1.CFrame*euler(1.57,0,0),5,5,2,0,0,0) | |
548 | end | |
549 | con1:disconnect() | |
550 | hitbox.Parent=nil | |
551 | bg.Parent=nil | |
552 | vel.Parent=nil | |
553 | - | Humanoid.WalkSpeed=16 |
553 | + | Humanoid.WalkSpeed=50 |
554 | attack=false | |
555 | end | |
556 | ||
557 | function attackfour() | |
558 | attack=true | |
559 | Humanoid.WalkSpeed=0 | |
560 | for i=0,1,0.2 do | |
561 | swait() | |
562 | wld1.C0=euler(1.57-1.57*i,0,0)*cf(-0.8+0.8*i,-0.5+3.5*i,2+2*i) | |
563 | MainC02=cf(0,0,-2.5)*euler(0,1.6+1-1.5*i,0) | |
564 | MainC0=euler(-1.57+1.57*i,0,0)*cf(0,0,0) | |
565 | Neck.C0=necko*euler(-0.4*i,0,-1+1*i) | |
566 | RootJoint.C0=RootCF*euler(0.5*i,0,1-1*i) | |
567 | RW.C0=cf(1.5,0.5,0)*euler(1.57+0.13*i,0,1-1*i) | |
568 | RW.C1=cf(0,0.5,0)*euler(0,0,0) | |
569 | LW.C0=cf(-1.5,0.5,0)*euler(-0.2,0,-0.4) | |
570 | LW.C1=cf(0,0.5,0)*euler(0,0,0) | |
571 | LH.C0=LHC0*euler(0,0,-1*i) | |
572 | end | |
573 | for i=0,1,0.2 do | |
574 | swait() | |
575 | Neck.C0=necko*euler(-0.4,0,-0.2*i) | |
576 | RootJoint.C0=RootCF*cf(0,0,-1.5*i)*euler(0.5+0.3*i,0,0.5*i) | |
577 | RW.C0=cf(1.5,0.5,0)*euler(1.7-0.3*i,0,0.5*i) | |
578 | RW.C1=cf(0,0.5,0)*euler(0,0,0) | |
579 | LW.C0=cf(-1.5,0.5,0)*euler(-0.2,0,-0.4) | |
580 | LW.C1=cf(0,0.5,0)*euler(0,0,0) | |
581 | RH.C0=RHC0*cf(0,0,0)*euler(0,-0.5*i,-0.5*i) | |
582 | LH.C0=LHC0*cf(-0.5*i,1*i,0)*euler(0.5*i,0,-1+0.5*i) | |
583 | end | |
584 | hitbox.Parent=modelzorz | |
585 | HBCF=prt1.CFrame | |
586 | hitbox.CFrame=HBCF | |
587 | hitbox.Size=vt(10,8,10) | |
588 | so("http://www.roblox.com/asset/?id=2233908",prt1,1,1.1) | |
589 | so("http://www.roblox.com/asset/?id=153092334",prt1,0.7,0.9) | |
590 | POS=prt1.Position | |
591 | WaveEffect2(BrickColor.new("White"),CFrame.new(POS),0.5,0.2,0.5,0.5,0.5,0.5) | |
592 | MagicCircle(BrickColor.new("White"),CFrame.new(POS),6,6,6,0.8,0.8,0.8,0.05) | |
593 | MagicBlock(BrickColor.new("Bright red"),CFrame.new(POS),1,1,1,2,2,2) | |
594 | MagicBlock(BrickColor.new("Bright stone grey"),CFrame.new(POS),1,1,1,2,2,2) | |
595 | coroutine.resume(coroutine.create(function(TehPos) | |
596 | con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,20,40,1,"Knockdown",prt1) end) | |
597 | for i=1,5 do | |
598 | hitbox.CFrame=HBCF | |
599 | Lightning(TehPos+vt(math.random(-1,1),math.random(-1,1),math.random(-1,1)),TehPos+vt(math.random(-1,1),200,math.random(-1,1)),20,1,"White",0.1,0.1,0.4) | |
600 | swait(0.1) | |
601 | end | |
602 | con1:disconnect() | |
603 | hitbox.Parent=nil | |
604 | end),POS) | |
605 | swait(5) | |
606 | - | Humanoid.WalkSpeed=16 |
606 | + | Humanoid.WalkSpeed=50 |
607 | coroutine.resume(coroutine.create(function() | |
608 | UnCircle(0.1) | |
609 | end)) | |
610 | for i=0,1,0.1 do | |
611 | swait() | |
612 | wld1.C0=euler(0,0,0)*cf(0,3-3*i,4-4*i) | |
613 | MainC02=cf(0,0,-2.5-0.5*i)*euler(0,1.1-1.1*i,0) | |
614 | MainC0=euler(2*i,0,0)*cf(0,0,0) | |
615 | Neck.C0=necko*euler(-0.4+0.4*i,0,-0.2+0.2*i) | |
616 | RootJoint.C0=RootCF*cf(0,0,-1.5+1.5*i)*euler(0.8-0.8*i,0,0.5-0.5*i) | |
617 | RW.C0=cf(1.5,0.5,0)*euler(1.4-1.4*i,0,0.5) | |
618 | RW.C1=cf(0,0.5,0)*euler(0,0,0) | |
619 | LW.C0=cf(-1.5,0.5,0)*euler(-0.2+0.2*i,0,-0.4-0.1*i) | |
620 | LW.C1=cf(0,0.5,0)*euler(0,0,0) | |
621 | RH.C0=RHC0*cf(0,0,0)*euler(0,-0.5+0.5*i,-0.5+0.5*i) | |
622 | LH.C0=LHC0*cf(-0.5+0.5*i,1-1*i,0)*euler(0.5-0.5*i,0,-0.5+0.5*i) | |
623 | end | |
624 | attack=false | |
625 | end | |
626 | ||
627 | function dashattackone() | |
628 | attack=true | |
629 | coroutine.resume(coroutine.create(function() | |
630 | Circle(0.2) | |
631 | end)) | |
632 | for i=0,1,0.2 do | |
633 | swait() | |
634 | wld1.C0=euler(1.57*i,0,0)*cf(0,0,1*i) | |
635 | MainC0=euler(2,0,0)*cf(0,0,0) | |
636 | MainC02=cf(0,0,-3) | |
637 | Neck.C0=necko*euler(0,0,0.5*i) | |
638 | RootJoint.C0=RootCF*euler(0,0,-1*i) | |
639 | RW.C0=cf(1.5,0.5,0)*euler(0,0,0.5+0.2*i) | |
640 | RW.C1=cf(0,0.5,0)*euler(0,0,0) | |
641 | LW.C0=cf(-1.5+0.5*i,0.5,-0.5*i)*euler(1.57*i,0,-0.5+1.5*i) | |
642 | LW.C1=cf(0,0.5,0)*euler(0,0,0) | |
643 | RH.C0=RHC0 | |
644 | RH.C1=RHC1*cf(0,0,0) | |
645 | LH.C0=LHC0 | |
646 | end | |
647 | hitbox.Parent=modelzorz | |
648 | HBCF=prt1.CFrame | |
649 | hitbox.CFrame=HBCF | |
650 | hitbox.Size=vt(4,5,4) | |
651 | con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,5,10,1,"Snare",RootPart) end) | |
652 | vel=Instance.new("BodyVelocity") | |
653 | vel.Parent=Torso | |
654 | vel.maxForce=vt(4e+005,4e+005,4e+005)*1 | |
655 | vel.velocity=RootPart.CFrame.lookVector*50 | |
656 | bg=it("BodyGyro") | |
657 | bg.maxTorque=Vector3.new(4e+005,4e+005,4e+005)*math.huge | |
658 | bg.P=20e+003 | |
659 | bg.Parent=Head | |
660 | bg.cframe=Head.CFrame | |
661 | so("http://www.roblox.com/asset/?id=161006131",prt1,1,1.5) | |
662 | for i=0,1,0.1 do | |
663 | swait() | |
664 | HBCF=prt1.CFrame | |
665 | hitbox.CFrame=HBCF | |
666 | MainC02=cf(0,0,-3)*euler(0,2.5*i,0) | |
667 | MagicRing(BrickColor.new("White"),prt1.CFrame*cf(0,0.5,0)*euler(1.57,0,0),5,5,2,0,0,0) | |
668 | end | |
669 | con1:disconnect() | |
670 | hitbox.Parent=nil | |
671 | bg.Parent=nil | |
672 | vel.Parent=nil | |
673 | attack=false | |
674 | end | |
675 | ||
676 | function dashattacktwo() | |
677 | attack=true | |
678 | Humanoid.WalkSpeed=5 | |
679 | for i=0,1,0.1 do | |
680 | swait() | |
681 | wld1.C0=euler(1.57-1.57*i,0,0)*cf(0,0,1+3*i) | |
682 | MainC0=euler(2-2*i,0,0)*cf(0,0,0) | |
683 | MainC02=cf(0,0,-3-1*i)*euler(0,2.5-2.6*i,0) | |
684 | Neck.C0=necko*euler(0,0,0.5+1.07*i) | |
685 | RootJoint.C0=RootCF*euler(0,0,-1-0.57*i) | |
686 | LW.C0=cf(-1-0.5*i,0.5,-0.5+0.5*i)*euler(1.57,0,1-2.57*i) | |
687 | LW.C1=cf(0,0.5,0)*euler(0,0,0) | |
688 | end | |
689 | swait(0.1) | |
690 | so("http://www.roblox.com/asset/?id=2233908",prt1,1,0.9) | |
691 | --so("http://www.roblox.com/asset/?id=2101148",prt1,0.5,2) | |
692 | so("http://www.roblox.com/asset/?id=161006182",prt1,1,1) | |
693 | WaveEffect2(BrickColor.new("White"),prt1.CFrame*cf(0,-2,0),0.5,0.2,0.5,0.7,0.3,0.7) | |
694 | MagicCircle(BrickColor.new("White"),prt1.CFrame,6,6,6,0.8,0.8,0.8,0.05) | |
695 | MagicBlock(BrickColor.new("Bright stone grey"),prt1.CFrame,1,1,1,2,2,2) | |
696 | hitbox.Parent=modelzorz | |
697 | hitbox.CFrame=HBCF | |
698 | HBCF=prt1.CFrame | |
699 | hitbox.Size=vt(10,5,10) | |
700 | con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,20,1,"Knockdown",prt1) end) | |
701 | aninumb=2 | |
702 | for i=0,1,0.2 do | |
703 | swait() | |
704 | MainC02=cf(0,0,-4)*euler(0,-0.1-2*i,0) | |
705 | LW.C0=cf(-1.5,0.5,0)*euler(1.57,0,-1.57) | |
706 | LW.C1=cf(0,0.5,0)*euler(-0.5*(i*aninumb),0,0) | |
707 | HBCF=prt1.CFrame | |
708 | hitbox.CFrame=HBCF | |
709 | aninumb=aninumb-0.2 | |
710 | end | |
711 | con1:disconnect() | |
712 | hitbox.Parent=nil | |
713 | - | Humanoid.WalkSpeed=16 |
713 | + | Humanoid.WalkSpeed=50 |
714 | attack=false | |
715 | end | |
716 | ||
717 | function dashattackthree() | |
718 | attack=true | |
719 | Humanoid.WalkSpeed=5 | |
720 | for i=0,1,0.1 do | |
721 | swait() | |
722 | wld1.C0=euler(1.57*i,0,0)*cf(0,-0.5*i,4) | |
723 | MainC0=euler(0,0,0)*cf(0,0,0) | |
724 | MainC02=cf(0,0,-4+1*i)*euler(-1*i,-2.1+2.1*i,0) | |
725 | LW.C0=cf(-1.5,0.5,0)*euler(1.57,0,-1.57) | |
726 | LW.C1=cf(0,0.5,0)*euler(-0.5+0.5*i,0,0) | |
727 | end | |
728 | Humanoid.WalkSpeed=0 | |
729 | so("http://www.roblox.com/asset/?id=153092334",prt1,0.7,0.5) | |
730 | hitbox.Parent=modelzorz | |
731 | HBCF=prt1.CFrame | |
732 | hitbox.CFrame=HBCF | |
733 | hitbox.Size=vt(5,5,5) | |
734 | con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,5,10,math.random(10,20),"Snare",RootPart) end) | |
735 | for i=0,1,0.1 do | |
736 | swait() | |
737 | HBCF=prt1.CFrame | |
738 | hitbox.CFrame=HBCF | |
739 | MagicCircle(BrickColor.new("White"),prt1.CFrame,0,0,0,1.5,1.5,1.5,0.1) | |
740 | wld1.C0=euler(1.57,0,0)*cf(0,-0.5,4) | |
741 | MainC0=euler(0,0,0)*cf(0,0,0) | |
742 | MainC02=cf(0,0,-3)*euler(-1+1*i,1.5*i,0) | |
743 | end | |
744 | con1:disconnect() | |
745 | hitbox.Parent=nil | |
746 | for i=0,1,0.1 do | |
747 | swait() | |
748 | MagicCircle(BrickColor.new("White"),prt1.CFrame,0,0,0,1,1,1,0.2) | |
749 | wld1.C0=euler(1.57,0,0)*cf(0,-0.5,4) | |
750 | MainC0=euler(3.14*i,0,0)*cf(0,0,0) | |
751 | MainC02=cf(0,0,-3)*euler(-0.5*i,1.5+1.5*i,0) | |
752 | Neck.C0=necko*euler(0,0,1.57-3.14*i) | |
753 | RootJoint.C0=RootCF*euler(0,0,-1.57+3.14*i) | |
754 | RW.C0=cf(1.5,0.5,0)*euler(1.57*i,0,0.7+0.87*i) | |
755 | RW.C1=cf(0,0.5,0)*euler(0,0,0) | |
756 | LW.C0=cf(-1.5,0.5,0)*euler(1.57-1.77*i,0,-1.57+1.57*i) | |
757 | LW.C1=cf(0,0.5,0)*euler(0,0,0) | |
758 | end | |
759 | con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,30,math.random(50,60),"Knockdown",RootPart) end) | |
760 | hitbox.Parent=modelzorz | |
761 | HBCF=prt1.CFrame | |
762 | hitbox.CFrame=HBCF | |
763 | hitbox.Size=vt(4,5,4) | |
764 | so("http://www.roblox.com/asset/?id=2101148",prt1,0.5,2) | |
765 | so("http://www.roblox.com/asset/?id=161006182",prt1,1,0.7) | |
766 | MagicCircle(BrickColor.new("White"),prt1.CFrame*cf(0,0,0),4,4,4,0.4,0.4,0.4,0.05) | |
767 | WaveEffect(BrickColor.new("White"),prt1.CFrame*cf(0,0,0),2,0.5,2,0.2,1.3,0.2) | |
768 | for i=1,3 do | |
769 | MagicBlock2(BrickColor.new("Bright orange"),prt1.CFrame*euler((math.random(-1,0)+math.random())/2,(math.random(-1,0)+math.random())/2,(math.random(-1,0)+math.random())/2),0,0,0,0.2,0.2,0.2,0) | |
770 | end | |
771 | for i=0,1,0.1 do | |
772 | swait() | |
773 | hitbox.CFrame=HBCF*cf(0,0.8,0) | |
774 | HBCF=HBCF*cf(0,0.8,0) | |
775 | MagicBlock(BrickColor.new("White"),hitbox.CFrame*cf(math.random(-3,3),math.random(-3,3),math.random(-3,3)),0.5,0.5,0.5,0.3,0.3,0.3) | |
776 | wld1.C0=euler(1.57,0,0)*cf(0,-0.5,4-7*i) | |
777 | MainC0=euler(3.14+5.5*i,0,0)*cf(0,0,0) | |
778 | MainC02=cf(0,0,-3-1*i)*euler(-0.5,3+1.5*i,0) | |
779 | Neck.C0=necko*euler(0,0,-1.57+2.57*i) | |
780 | RootJoint.C0=RootCF*euler(0,0,1.57-2.57*i) | |
781 | RW.C0=cf(1.5-0.5*i,0.5,-0.5*i)*euler(1.57-0.57*i,0,1.57-2.57*i) | |
782 | RW.C1=cf(0,0.5,0)*euler(0,0,0) | |
783 | LW.C0=cf(-1.5,0.5,0)*euler(-0.2,0,-0.5*i) | |
784 | LW.C1=cf(0,0.5,0)*euler(0,0,0) | |
785 | end | |
786 | aninumb=2 | |
787 | for i=0,1,0.1 do | |
788 | swait() | |
789 | wld1.C0=euler(1.57,0,0)*cf(0,-0.5,-3-1*i) | |
790 | MainC0=euler(8.64+1*i,0,0)*cf(0,0,0) | |
791 | MainC02=cf(0,0,-4)*euler(-0.5,4.5,0) | |
792 | Neck.C0=necko*euler(0,0,1+0.1*(i*aninumb)) | |
793 | RootJoint.C0=RootCF*euler(0,0,-1-0.1*(i*aninumb)) | |
794 | RW.C0=cf(1,0.5,-0.5)*euler(1,0,-1+0.1*(i*aninumb)) | |
795 | RW.C1=cf(0,0.5,0)*euler(0,0,0) | |
796 | LW.C0=cf(-1.5,0.5,0)*euler(-0.2,0,-0.5) | |
797 | LW.C1=cf(0,0.5,0)*euler(0,0,0) | |
798 | aninumb=aninumb-0.1 | |
799 | end | |
800 | coroutine.resume(coroutine.create(function() | |
801 | UnCircle(0.1) | |
802 | end)) | |
803 | for i=0,1,0.1 do | |
804 | swait() | |
805 | wld1.C0=euler(1.57-1.57*i,0,0)*cf(0,-0.5+0.5*i,-4+4*i) | |
806 | MainC0=euler((0.16+3.14)+(1.84-3.14)*i,0,0)*cf(0,0,0) | |
807 | --MainC0=euler(9.64-9.64*i,0,0)*cf(0,0,0) | |
808 | MainC02=cf(0,0,-4+1*i)*euler(-0.5+0.5*i,0.07-0.07*i,0) | |
809 | Neck.C0=necko*euler(0,0,1.1-1.1*i) | |
810 | RootJoint.C0=RootCF*euler(0,0,-1.1+1.1*i) | |
811 | RW.C0=cf(1+0.5*i,0.5,-0.5+0.5*i)*euler(1-1*i,0,-0.9+1.4*i) | |
812 | RW.C1=cf(0,0.5,0)*euler(0,0,0) | |
813 | LW.C0=cf(-1.5,0.5,0)*euler(-0.2+0.2*i,0,-0.5) | |
814 | LW.C1=cf(0,0.5,0)*euler(0,0,0) | |
815 | end | |
816 | con1:disconnect() | |
817 | hitbox.Parent=nil | |
818 | - | Humanoid.WalkSpeed=16 |
818 | + | Humanoid.WalkSpeed=50 |
819 | attack=false | |
820 | end | |
821 | ||
822 | function heavyattackone() | |
823 | attack=true | |
824 | Humanoid.WalkSpeed=5 | |
825 | coroutine.resume(coroutine.create(function() | |
826 | Circle(0.1) | |
827 | end)) | |
828 | for i=0,1,0.1 do | |
829 | swait() | |
830 | wld1.C0=euler(1.57*i,0,0)*cf(0,2*i,2*i) | |
831 | MainC0=euler(2+0.5*i,0,0)*cf(0,0,0) | |
832 | MainC02=cf(0,0,-3+2*i)*euler(0,0,0) | |
833 | Neck.C0=necko*euler(0.2*i,0,0.5*i) | |
834 | RootJoint.C0=RootCF*euler(0,0,-0.5*i) | |
835 | RW.C0=cf(1.5-0.3*i,0.5,-0.5*i)*euler(-0.2*i,0,0.5-0.7*i) | |
836 | RW.C1=cf(0,0.5,0)*euler(0,0,0) | |
837 | LW.C0=cf(-1.5,0.5,0)*euler(-0.4*i,0,-0.5) | |
838 | LW.C1=cf(0,0.5,0)*euler(0,0,0) | |
839 | RH.C0=RHC0*cf(0.5*i,0.2*i,-0.2*i)*euler(-0.4*i,0,-0.2*i) | |
840 | RH.C1=RHC1 | |
841 | LH.C0=LHC0*euler(-0.1*i,0,0) | |
842 | LH.C1=LHC1 | |
843 | end | |
844 | for i=0,1,0.2 do | |
845 | swait() | |
846 | wld1.C0=euler(1.57,0,0)*cf(0,2,2-0.5*i) | |
847 | MainC0=euler(2.5-0.3*i,0,0)*cf(0,0,0) | |
848 | MainC02=cf(0,0,-1-1*i) | |
849 | Neck.C0=necko*euler(0.2-0.1*i,0,0.5-0.7*i) | |
850 | RootJoint.C0=RootCF*euler(0,0,-0.5+0.7*i) | |
851 | RW.C0=cf(1.2+0.3*i,0.5,-0.5+0.5*i)*euler(-0.2,0,-0.2+0.2*i) | |
852 | RW.C1=cf(0,0.5,0)*euler(0,0,0) | |
853 | LW.C0=cf(-1.5,0.5,0)*euler(-0.4,0,-0.5) | |
854 | LW.C1=cf(0,0.5,0)*euler(0,0,0) | |
855 | RH.C0=RHC0*cf(0.5-0.5*i,0.2,-0.2)*euler(-0.4+0.4*i,0,-0.2+1.2*i) | |
856 | RH.C1=RHC1 | |
857 | LH.C0=LHC0*euler(-0.1,0,0) | |
858 | LH.C1=LHC1 | |
859 | end | |
860 | aninumb=2 | |
861 | for i=0,1,0.1 do | |
862 | swait() | |
863 | wld1.C0=euler(1.57,0,0)*cf(0,2,1.5) | |
864 | MainC0=euler(2.2,0,0)*cf(0,0,0) | |
865 | MainC02=cf(0,0,-2) | |
866 | Neck.C0=necko*euler(0.1,0,-0.2) | |
867 | RootJoint.C0=RootCF*euler(0,0,0.2) | |
868 | RW.C0=cf(1.5,0.5,0)*euler(-0.2,0,0) | |
869 | RW.C1=cf(0,0.5,0)*euler(0,0,0) | |
870 | LW.C0=cf(-1.5,0.5,0)*euler(-0.4,0,-0.5) | |
871 | LW.C1=cf(0,0.5,0)*euler(0,0,0) | |
872 | RH.C0=RHC0*cf(0,0.2,-0.2)*euler(0,0,1+0.2*(i*aninumb)) | |
873 | RH.C1=RHC1 | |
874 | LH.C0=LHC0*euler(-0.1,0,0) | |
875 | LH.C1=LHC1 | |
876 | aninumb=aninumb-0.1 | |
877 | end | |
878 | - | Humanoid.WalkSpeed=16 |
878 | + | Humanoid.WalkSpeed=50 |
879 | attack=false | |
880 | end | |
881 | ||
882 | ||
883 | function ALLCHILD() | |
884 | local all={} | |
885 | for _,v in pairs(workspace:children()) do | |
886 | table.insert(all,v) | |
887 | end | |
888 | return all | |
889 | end | |
890 | ||
891 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
892 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
893 | end | |
894 | ||
895 | --[[local LastPoint=prt4.CFrame*CFrame.new(0,prt4.Size.Y*2.5,0) | |
896 | local Point=prt4.CFrame*CFrame.new(0,prt4.Size.Y*2.5,0)]] | |
897 | function effect(Color,Ref,Size,LP,P1,returnn) | |
898 | local effectsmsh = Instance.new("BlockMesh") | |
899 | effectsmsh.Scale = Vector3.new(0.4,1,0.4) | |
900 | effectsmsh.Name = "Mesh" | |
901 | local effectsg = Instance.new("Part") | |
902 | effectsg.formFactor = 3 | |
903 | effectsg.CanCollide = false | |
904 | effectsg.Name = "Eff" | |
905 | effectsg.Locked = true | |
906 | effectsg.Anchored = true | |
907 | effectsg.Size = Vector3.new(0.2,1,0.2) | |
908 | effectsg.Parent = workspace | |
909 | effectsmsh.Parent = effectsg | |
910 | effectsg.BrickColor = BrickColor.new(Color) | |
911 | effectsg.Reflectance = Ref | |
912 | local point1 = P1 | |
913 | local mg = (LP.p - point1.p).magnitude | |
914 | effectsg.Size = Vector3.new(Size,mg,Size) | |
915 | effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0) | |
916 | if returnn then return effectsg end | |
917 | coroutine.resume(coroutine.create(function() | |
918 | if not returnn then | |
919 | for i = 0 , 1 , 0.1 do | |
920 | swait() | |
921 | effectsg.Transparency = 1*i | |
922 | effectsmsh.Scale = Vector3.new(Size-Size*i,1,Size-Size*i) | |
923 | end | |
924 | swait() | |
925 | effectsg.Parent = nil | |
926 | end | |
927 | end)) | |
928 | end | |
929 | ||
930 | function ElecEffect(cff,x,y,z) | |
931 | local prt=part(3,workspace,0,0,BrickColor.new("White"),"Part",vt(1,1,1)) | |
932 | prt.Anchored=true | |
933 | xval=math.random() | |
934 | yval=math.random() | |
935 | zval=math.random() | |
936 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(xval,yval,zval)) | |
937 | coroutine.resume(coroutine.create(function(Part,Mesh,Frame,xvaal,yvaal,zvaal) | |
938 | Part.CFrame=Frame*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z)) | |
939 | for i=1,30 do | |
940 | swait() | |
941 | xvaal=xvaal-0.1 | |
942 | yvaal=yvaal-0.1 | |
943 | zvaal=zvaal-0.1 | |
944 | Mesh.Scale=vt(xvaal,yvaal,zvaal) | |
945 | Part.Transparency=Part.Transparency+0.001 | |
946 | end | |
947 | Part.Parent=nil | |
948 | end),prt,msh,cff,xval,yval,zval) | |
949 | end | |
950 | ||
951 | function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3) | |
952 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
953 | prt.Anchored=true | |
954 | prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
955 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
956 | game:GetService("Debris"):AddItem(prt,2) | |
957 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
958 | for i=0,1,0.1 do | |
959 | swait() | |
960 | Part.CFrame=Part.CFrame | |
961 | Part.Transparency=i | |
962 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
963 | end | |
964 | Part.Parent=nil | |
965 | end),prt,msh) | |
966 | end | |
967 | ||
968 | function MagicBlock2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,decrease) | |
969 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
970 | prt.Anchored=true | |
971 | prt.CFrame=cframe | |
972 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
973 | game:GetService("Debris"):AddItem(prt,2) | |
974 | CF=prt.CFrame | |
975 | num=math.random(5,20) | |
976 | coroutine.resume(coroutine.create(function(Part,Mesh,CF2,Num) | |
977 | for i=0,1.05,0.05 do | |
978 | swait() | |
979 | Part.CFrame=CF2*cf(0,i*Num,0)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
980 | Part.Transparency=i | |
981 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
982 | Num=Num-decrease | |
983 | end | |
984 | Part.Parent=nil | |
985 | end),prt,msh,CF,num) | |
986 | end | |
987 | ||
988 | function MagicBlock3(brickcolor,cframe,x1,y1,z1,x3,y3,z3) | |
989 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
990 | prt.Anchored=true | |
991 | prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
992 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
993 | game:GetService("Debris"):AddItem(prt,2) | |
994 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
995 | for i=0,1,0.1 do | |
996 | swait() | |
997 | TehCF=cframe | |
998 | Part.CFrame=TehCF*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
999 | Part.Transparency=i | |
1000 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1001 | end | |
1002 | Part.Parent=nil | |
1003 | end),prt,msh) | |
1004 | end | |
1005 | ||
1006 | function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1007 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1008 | prt.Anchored=true | |
1009 | prt.CFrame=cframe | |
1010 | msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
1011 | game:GetService("Debris"):AddItem(prt,2) | |
1012 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1013 | for i=0,1,delay do | |
1014 | swait() | |
1015 | Part.CFrame=Part.CFrame | |
1016 | Part.Transparency=i | |
1017 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1018 | end | |
1019 | Part.Parent=nil | |
1020 | end),prt,msh) | |
1021 | end | |
1022 | ||
1023 | function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3) | |
1024 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1025 | prt.Anchored=true | |
1026 | prt.CFrame=cframe | |
1027 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1)) | |
1028 | game:GetService("Debris"):AddItem(prt,2) | |
1029 | coroutine.resume(coroutine.create(function(Part,Mesh,num) | |
1030 | for i=0,1,0.1 do | |
1031 | swait() | |
1032 | Part.CFrame=Part.CFrame*cf(0,0,-num) | |
1033 | Part.Transparency=i | |
1034 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1035 | end | |
1036 | Part.Parent=nil | |
1037 | end),prt,msh,(math.random(0,2)+math.random())/5) | |
1038 | end | |
1039 | ||
1040 | function MagicFire(brickcolor,cframe,x1,y1,z1) | |
1041 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1042 | prt.Anchored=true | |
1043 | prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1044 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1045 | game:GetService("Debris"):AddItem(prt,2) | |
1046 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1047 | for i=0,1,0.1 do | |
1048 | swait() | |
1049 | Part.CFrame=cf(Part.Position+vt(0,0.5,0))*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1050 | Part.Transparency=i | |
1051 | Mesh.Scale=Mesh.Scale+vt(0.1,0.1,0.1) | |
1052 | end | |
1053 | Part.Parent=nil | |
1054 | end),prt,msh) | |
1055 | end | |
1056 | ||
1057 | function BlastEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3) | |
1058 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1059 | prt.Anchored=true | |
1060 | prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1061 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=24388358",vt(0,0,0),vt(x1,y1,z1)) | |
1062 | game:GetService("Debris"):AddItem(prt,2) | |
1063 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1064 | for i=0,1,0.05 do | |
1065 | swait() | |
1066 | Part.CFrame=Part.CFrame | |
1067 | Part.Transparency=i | |
1068 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1069 | end | |
1070 | Part.Parent=nil | |
1071 | end),prt,msh) | |
1072 | end | |
1073 | ||
1074 | function ElecEffect(cff,x,y,z) | |
1075 | local prt=part(3,workspace,0,0,BrickColor.new("White"),"Part",vt(1,1,1)) | |
1076 | prt.Anchored=true | |
1077 | xval=math.random() | |
1078 | yval=math.random() | |
1079 | zval=math.random() | |
1080 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(xval,yval,zval)) | |
1081 | coroutine.resume(coroutine.create(function(Part,Mesh,Frame,xvaal,yvaal,zvaal) | |
1082 | Part.CFrame=Frame*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z)) | |
1083 | for i=1,8 do | |
1084 | swait() | |
1085 | xvaal=xvaal-0.1 | |
1086 | yvaal=yvaal-0.1 | |
1087 | zvaal=zvaal-0.1 | |
1088 | Mesh.Scale=vt(xvaal,yvaal,zvaal) | |
1089 | Part.Transparency=Part.Transparency+0.09 | |
1090 | end | |
1091 | Part.Parent=nil | |
1092 | end),prt,msh,cff,xval,yval,zval) | |
1093 | end | |
1094 | ||
1095 | function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3) | |
1096 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1097 | prt.Anchored=true | |
1098 | prt.CFrame=cframe | |
1099 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1323306",vt(0,0,0),vt(x1,y1,z1)) | |
1100 | game:GetService("Debris"):AddItem(prt,2) | |
1101 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1102 | for i=0,1,0.1 do | |
1103 | swait() | |
1104 | Part.CFrame=Part.CFrame*cf(0,y3,0) | |
1105 | Part.Transparency=i | |
1106 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1107 | end | |
1108 | Part.Parent=nil | |
1109 | end),prt,msh) | |
1110 | end | |
1111 | ||
1112 | function WaveEffect2(brickcolor,cframe,x1,y1,z1,x3,y3,z3) | |
1113 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1114 | prt.Anchored=true | |
1115 | prt.CFrame=cframe | |
1116 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1)) | |
1117 | game:GetService("Debris"):AddItem(prt,2) | |
1118 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1119 | for i=0,1,0.05 do | |
1120 | swait() | |
1121 | Part.CFrame=Part.CFrame | |
1122 | Part.Transparency=i | |
1123 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1124 | end | |
1125 | Part.Parent=nil | |
1126 | end),prt,msh) | |
1127 | end | |
1128 | ||
1129 | function Lightning(p0,p1,tym,ofs,col,th,tra,last) | |
1130 | --[[p0=pos1 | |
1131 | p1=pos2 | |
1132 | tym=times | |
1133 | ofs=offset | |
1134 | col=color | |
1135 | th=size | |
1136 | tra=transparency | |
1137 | last=lastingtime]] | |
1138 | local magz = (p0 - p1).magnitude local curpos = p0 local trz = {-ofs,ofs} | |
1139 | for i=1,tym do | |
1140 | local li = Instance.new("Part",workspace) li.TopSurface =0 li.BottomSurface = 0 li.Anchored = true li.Transparency = tra or 0.4 li.BrickColor = BrickColor.new(col) | |
1141 | li.formFactor = "Custom" li.CanCollide = false li.Size = Vector3.new(th,th,magz/tym) local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)]) | |
1142 | light1=Instance.new("PointLight") | |
1143 | light1.Brightness=.8 | |
1144 | light1.Color=Color3.new(.2,255,.2) | |
1145 | light1.Range=8 | |
1146 | light1.Parent=li | |
1147 | local trolpos = CFrame.new(curpos,p1)*CFrame.new(0,0,magz/tym).p+ofz | |
1148 | if tym == i then | |
1149 | local magz2 = (curpos - p1).magnitude li.Size = Vector3.new(th,th,magz2) | |
1150 | li.CFrame = CFrame.new(curpos,p1)*CFrame.new(0,0,-magz2/2) | |
1151 | else | |
1152 | li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/tym/2) | |
1153 | end | |
1154 | curpos = li.CFrame*CFrame.new(0,0,magz/tym/2).p game.Debris:AddItem(li,last) | |
1155 | end | |
1156 | end | |
1157 | ||
1158 | so = function(id,par,vol,pit) | |
1159 | coroutine.resume(coroutine.create(function() | |
1160 | local sou = Instance.new("Sound",par or workspace) | |
1161 | sou.Volume=vol | |
1162 | sou.Pitch=pit or 1 | |
1163 | sou.SoundId=id | |
1164 | swait() | |
1165 | sou:play() | |
1166 | game:GetService("Debris"):AddItem(sou,6) | |
1167 | end)) | |
1168 | end | |
1169 | ||
1170 | function findNearestTorso(pos) | |
1171 | local list = game:service("Workspace"):children() | |
1172 | local torso = nil | |
1173 | local dist = 50 | |
1174 | local temp = nil | |
1175 | local human = nil | |
1176 | local temp2 = nil | |
1177 | for x = 1, #list do | |
1178 | temp2 = list[x] | |
1179 | if (temp2.className == "Model") and (temp2 ~= Character) and (temp2.Name ~= "Fenrier") then | |
1180 | temp = temp2:findFirstChild("Torso") | |
1181 | human = temp2:findFirstChild("Humanoid") | |
1182 | if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then | |
1183 | if (temp.Position - pos).magnitude < dist then | |
1184 | torso = temp | |
1185 | dist = (temp.Position - pos).magnitude | |
1186 | end | |
1187 | end | |
1188 | end | |
1189 | end | |
1190 | return torso | |
1191 | end | |
1192 | ||
1193 | Damagefunc=function(hit,minim,maxim,knockback,Type,Property) | |
1194 | if hit.Parent==nil then | |
1195 | return | |
1196 | end | |
1197 | CPlayer=Bin | |
1198 | h=hit.Parent:FindFirstChild("Humanoid") | |
1199 | for _,v in pairs(hit.Parent:children()) do | |
1200 | if v:IsA("Humanoid") then | |
1201 | h=v | |
1202 | end | |
1203 | end | |
1204 | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then | |
1205 | if attackdebounce == false then | |
1206 | attackdebounce = true | |
1207 | coroutine.resume(coroutine.create(function() | |
1208 | swait(5) | |
1209 | attackdebounce = false | |
1210 | end)) | |
1211 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
1212 | return | |
1213 | end]] | |
1214 | -- hs(hit,1.2) | |
1215 | c=Instance.new("ObjectValue") | |
1216 | c.Name="creator" | |
1217 | c.Value=game:service("Players").LocalPlayer | |
1218 | c.Parent=h | |
1219 | game:GetService("Debris"):AddItem(c,.5) | |
1220 | Damage=math.random(minim,maxim) | |
1221 | -- h:TakeDamage(Damage) | |
1222 | blocked=false | |
1223 | block=hit.Parent:findFirstChild("Block") | |
1224 | if block~=nil then | |
1225 | if block.className=="IntValue" then | |
1226 | if block.Value>0 then | |
1227 | blocked=true | |
1228 | block.Value=block.Value-1 | |
1229 | print(block.Value) | |
1230 | end | |
1231 | end | |
1232 | end | |
1233 | if blocked==false then | |
1234 | -- h:TakeDamage(Damage) | |
1235 | h.Health=h.Health-Damage | |
1236 | showDamage(hit.Parent,Damage,.5,BrickColor:Red()) | |
1237 | else | |
1238 | h.Health=h.Health-(Damage/2) | |
1239 | showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue")) | |
1240 | end | |
1241 | if Type=="Knockdown" then | |
1242 | hum=hit.Parent.Humanoid | |
1243 | hum.PlatformStand=true | |
1244 | coroutine.resume(coroutine.create(function(HHumanoid) | |
1245 | swait(1) | |
1246 | HHumanoid.PlatformStand=false | |
1247 | end),hum) | |
1248 | local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit | |
1249 | --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
1250 | local bodvol=Instance.new("BodyVelocity") | |
1251 | bodvol.velocity=angle*knockback | |
1252 | bodvol.P=5000 | |
1253 | bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
1254 | bodvol.Parent=hit | |
1255 | rl=Instance.new("BodyAngularVelocity") | |
1256 | rl.P=3000 | |
1257 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
1258 | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
1259 | rl.Parent=hit | |
1260 | game:GetService("Debris"):AddItem(bodvol,.5) | |
1261 | game:GetService("Debris"):AddItem(rl,.5) | |
1262 | elseif Type=="Normal" then | |
1263 | vp=Instance.new("BodyVelocity") | |
1264 | vp.P=500 | |
1265 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
1266 | -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback | |
1267 | vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05 | |
1268 | if knockback>0 then | |
1269 | vp.Parent=hit.Parent.Torso | |
1270 | end | |
1271 | game:GetService("Debris"):AddItem(vp,.5) | |
1272 | elseif Type=="Up" then | |
1273 | local bodyVelocity=Instance.new("BodyVelocity") | |
1274 | bodyVelocity.velocity=vt(0,20,0) | |
1275 | bodyVelocity.P=5000 | |
1276 | bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
1277 | bodyVelocity.Parent=hit | |
1278 | game:GetService("Debris"):AddItem(bodyVelocity,.5) | |
1279 | elseif Type=="Snare" then | |
1280 | bp=Instance.new("BodyPosition") | |
1281 | bp.P=2000 | |
1282 | bp.D=100 | |
1283 | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
1284 | bp.position=hit.Parent.Torso.Position | |
1285 | bp.Parent=hit.Parent.Torso | |
1286 | game:GetService("Debris"):AddItem(bp,1) | |
1287 | elseif Type=="Freeze" then | |
1288 | BodPos=Instance.new("BodyPosition") | |
1289 | BodPos.P=50000 | |
1290 | BodPos.D=1000 | |
1291 | BodPos.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
1292 | BodPos.position=hit.Parent.Torso.Position | |
1293 | BodPos.Parent=hit.Parent.Torso | |
1294 | BodGy = it("BodyGyro") | |
1295 | BodGy.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge | |
1296 | BodGy.P = 20e+003 | |
1297 | BodGy.Parent=hit.Parent.Torso | |
1298 | BodGy.cframe = hit.Parent.Torso.CFrame | |
1299 | hit.Parent.Torso.Anchored=true | |
1300 | coroutine.resume(coroutine.create(function(Part) | |
1301 | swait(1.5) | |
1302 | Part.Anchored=false | |
1303 | end),hit.Parent.Torso) | |
1304 | game:GetService("Debris"):AddItem(BodPos,3) | |
1305 | game:GetService("Debris"):AddItem(BodGy,3) | |
1306 | end | |
1307 | c=Instance.new("ObjectValue") | |
1308 | c.Name="creator" | |
1309 | c.Value=Player | |
1310 | c.Parent=h | |
1311 | game:GetService("Debris"):AddItem(c,.5) | |
1312 | CRIT=false | |
1313 | hitDeb=true | |
1314 | AttackPos=6 | |
1315 | end | |
1316 | end | |
1317 | end | |
1318 | ||
1319 | showDamage=function(Char,Dealt,du,Color) | |
1320 | m=Instance.new("Model") | |
1321 | m.Name=tostring(Dealt) | |
1322 | h=Instance.new("Humanoid") | |
1323 | h.Health=0 | |
1324 | h.MaxHealth=0 | |
1325 | h.Parent=m | |
1326 | c=Instance.new("Part") | |
1327 | c.Transparency=0 | |
1328 | c.BrickColor=Color | |
1329 | c.Name="Head" | |
1330 | c.TopSurface=0 | |
1331 | c.BottomSurface=0 | |
1332 | c.formFactor="Plate" | |
1333 | c.Size=Vector3.new(1,.4,1) | |
1334 | ms=Instance.new("CylinderMesh") | |
1335 | ms.Scale=Vector3.new(.8,.8,.8) | |
1336 | if CRIT==true then | |
1337 | ms.Scale=Vector3.new(1,1.25,1) | |
1338 | end | |
1339 | ms.Parent=c | |
1340 | c.Reflectance=0 | |
1341 | Instance.new("BodyGyro").Parent=c | |
1342 | c.Parent=m | |
1343 | c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
1344 | f=Instance.new("BodyPosition") | |
1345 | f.P=2000 | |
1346 | f.D=100 | |
1347 | f.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
1348 | f.position=c.Position+Vector3.new(0,3,0) | |
1349 | f.Parent=c | |
1350 | game:GetService("Debris"):AddItem(m,.5+du) | |
1351 | c.CanCollide=false | |
1352 | m.Parent=workspace | |
1353 | c.CanCollide=false | |
1354 | end | |
1355 | ||
1356 | combo=0 | |
1357 | num=0 | |
1358 | function ob1d(mouse) | |
1359 | if attack==true then return end | |
1360 | hold=true | |
1361 | if combo==1 then | |
1362 | combo=2 | |
1363 | attacktwo() | |
1364 | elseif combo==2 then | |
1365 | combo=3 | |
1366 | attackthree() | |
1367 | elseif combo==3 then | |
1368 | combo=4 | |
1369 | attackfour() | |
1370 | elseif combo==5 then | |
1371 | combo=6 | |
1372 | dashattacktwo() | |
1373 | elseif combo==6 then | |
1374 | combo=7 | |
1375 | dashattackthree() | |
1376 | else | |
1377 | combo=0 | |
1378 | end | |
1379 | if holdq==true then | |
1380 | combo=8 | |
1381 | heavyattackone() | |
1382 | else | |
1383 | local fentorvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
1384 | if fentorvel>10 then | |
1385 | if combo==0 then | |
1386 | combo=5 | |
1387 | dashattackone() | |
1388 | end | |
1389 | else | |
1390 | if combo==0 then | |
1391 | combo=1 | |
1392 | attackone() | |
1393 | end | |
1394 | end | |
1395 | end | |
1396 | coroutine.resume(coroutine.create(function() | |
1397 | swait(5) | |
1398 | if attack==false then | |
1399 | combo=0 | |
1400 | UnCircle(1) | |
1401 | wld1.C0=euler(0,0,0) | |
1402 | MainC0=euler(2,0,0)*cf(0,0,0) | |
1403 | MainC02=cf(0,0,-3) | |
1404 | Neck.C0=necko | |
1405 | RootJoint.C0=RootCF | |
1406 | RW.C0=cf(1.5,0.5,0)*euler(0,0,0.5) | |
1407 | RW.C1=cf(0,0.5,0)*euler(0,0,0) | |
1408 | LW.C0=cf(-1.5,0.5,0)*euler(0,0,-0.5) | |
1409 | LW.C1=cf(0,0.5,0)*euler(0,0,0) | |
1410 | RH.C0=RHC0 | |
1411 | RH.C1=RHC1 | |
1412 | LH.C0=LHC0 | |
1413 | LH.C1=LHC1 | |
1414 | end | |
1415 | end)) | |
1416 | end | |
1417 | ||
1418 | function ob1u(mouse) | |
1419 | hold = false | |
1420 | end | |
1421 | ||
1422 | buttonhold = false | |
1423 | ||
1424 | eul=0 | |
1425 | holdq=false | |
1426 | jumpcount=0 | |
1427 | function key(key) | |
1428 | if key:byte()==32 then | |
1429 | if attack==false then | |
1430 | jumpcount=jumpcount+1 | |
1431 | end | |
1432 | if hovering==true then | |
1433 | hovering=false | |
1434 | return end | |
1435 | coroutine.resume(coroutine.create(function() | |
1436 | swait(5) | |
1437 | jumpcount=0 | |
1438 | end)) | |
1439 | if jumpcount==2 then | |
1440 | hovering=true | |
1441 | Hover() | |
1442 | end | |
1443 | end | |
1444 | if attack==true then return end | |
1445 | if key=="q" then | |
1446 | holdq=true | |
1447 | end | |
1448 | end | |
1449 | ||
1450 | function key2(key) | |
1451 | if key=="q" then | |
1452 | holdq=false | |
1453 | end | |
1454 | end | |
1455 | ||
1456 | function s(mouse) | |
1457 | mouse.Button1Down:connect(function() ob1d(mouse) end) | |
1458 | mouse.Button1Up:connect(function() ob1u(mouse) end) | |
1459 | mouse.KeyDown:connect(key) | |
1460 | mouse.KeyUp:connect(key2) | |
1461 | unsheathed = true | |
1462 | player = Player | |
1463 | ch = Character | |
1464 | MMouse = mouse | |
1465 | RSH = ch.Torso["Right Shoulder"] | |
1466 | LSH = ch.Torso["Left Shoulder"] | |
1467 | -- | |
1468 | RSH.Parent = nil | |
1469 | LSH.Parent = nil | |
1470 | -- | |
1471 | RW.Part0 = ch.Torso | |
1472 | RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
1473 | RW.C1 = CFrame.new(0, 0.5, 0) | |
1474 | RW.Part1 = ch["Right Arm"] | |
1475 | RW.Parent = ch.Torso | |
1476 | --_G.R = RW | |
1477 | -- | |
1478 | LW.Part0 = ch.Torso | |
1479 | LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
1480 | LW.C1 = CFrame.new(0, 0.5, 0) | |
1481 | LW.Part1 = ch["Left Arm"] | |
1482 | LW.Parent = ch.Torso | |
1483 | --_G.L = LW | |
1484 | -- | |
1485 | equipanim() | |
1486 | end | |
1487 | ||
1488 | function ds(mouse) | |
1489 | hideanim() | |
1490 | swait(0) | |
1491 | RW.Parent = nil | |
1492 | LW.Parent = nil | |
1493 | RSH.Parent = player.Character.Torso | |
1494 | LSH.Parent = player.Character.Torso | |
1495 | end | |
1496 | ||
1497 | Bin.Selected:connect(s) | |
1498 | Bin.Deselected:connect(ds) | |
1499 | ||
1500 | print("Tracers Loaded.") | |
1501 | --[[ | |
1502 | Copyrighted (C) Fenrier 2014 | |
1503 | ]] |