SHOW:
|
|
- or go back to the newest paste.
1 | --Riven | |
2 | math.randomseed(tick()) | |
3 | plr=game:service'Players'.LocalPlayer | |
4 | ch,char=plr.Character,plr.Character | |
5 | hum=ch.Humanoid | |
6 | tor,torso,rootpart,rj=ch.Torso,ch.Torso,ch.HumanoidRootPart,ch.HumanoidRootPart.RootJoint | |
7 | m,mouse=plr:GetMouse(),plr:GetMouse() | |
8 | cfn,ang,mr,int=CFrame.new,CFrame.Angles,math.rad,Instance.new | |
9 | bc=BrickColor.new | |
10 | head=ch.Head | |
11 | cam=workspace.CurrentCamera | |
12 | ||
13 | rj.C0=cfn() | |
14 | rj.C1=cfn() | |
15 | ||
16 | lib={} | |
17 | lib.cone='1033714' | |
18 | lib.ring="3270017" | |
19 | lib.yato='579392805' | |
20 | lib.diamond='9756362' | |
21 | lib.crown='20329976' | |
22 | rbx='rbxassetid://' | |
23 | ||
24 | --tb and anti sc | |
25 | v3 = Vector3.new | |
26 | cn = CFrame.new | |
27 | ca2 = CFrame.Angles | |
28 | mf = math.floor | |
29 | mran = math.random rn=mran | |
30 | mrad = math.rad rd=mrad | |
31 | mdeg = math.deg dg=mdeg | |
32 | ca = function(x,y,z) return ca2(mrad(x),mrad(y),mrad(z)) end | |
33 | mran2 = function(a,b) return mran(a*1000,b*1000)/1000 end | |
34 | ud=UDim2.new | |
35 | bn = BrickColor.new | |
36 | c3 = Color3.new | |
37 | --tb and anti sc | |
38 | ||
39 | getSound=function(id) | |
40 | game:service'ContentProvider':Preload('rbxassetid'..tostring(id)) | |
41 | local s=int("Sound",ch.Head) | |
42 | s.SoundId='rbxassetid://' .. tostring(id-1) | |
43 | s.Volume=1 | |
44 | return s | |
45 | end | |
46 | ||
47 | --declarations | |
48 | ||
49 | --strings | |
50 | local combostring=[[]] | |
51 | local attackstring=[[]] | |
52 | ||
53 | --sounds, some by qaeo | |
54 | blocksound=getSound(260433722) | |
55 | blocksound.Pitch=1 | |
56 | startsound=getSound(588738950) --260433747 | |
57 | startsound.Pitch=1 | |
58 | endsound=getSound(588736246) --260433769 | |
59 | endsound.Pitch=1 | |
60 | endsound.Volume=2 | |
61 | swsound=getSound(588736970) | |
62 | --swsound.Pitch=0.8 | |
63 | swexp=getSound(365002939) | |
64 | swexp.Pitch=1 | |
65 | spexp=getSound(365002939) | |
66 | spexp.Pitch=1.2 | |
67 | startsound2=getSound(260433769)--260433769 | |
68 | startsound2.Pitch=0.8 | |
69 | startsound3=getSound(260433769) | |
70 | startsound3.Pitch=0.89 | |
71 | chargesound=getSound(181004944) | |
72 | chargesound.Pitch=1 | |
73 | basicsound=getSound(588736246)--260433747 | |
74 | basicsound.Pitch=1.2 | |
75 | dodgesound=getSound(177162407) | |
76 | dodgesound.Pitch=1.4 | |
77 | landsound=getSound(315775190) | |
78 | rushsound=getSound(134012323)--134012323 | |
79 | swoosh=getSound(231917988) | |
80 | --swoosh.Pitch=1.2 | |
81 | swoosh.Volume=2 | |
82 | aerialcharge=getSound(265109959) | |
83 | aerialcharge.Pitch=1.1 | |
84 | curse=getSound(231917971) | |
85 | glass=getSound(130779172) | |
86 | magictone1=getSound(588738950) | |
87 | chargedupbeam=getSound(588735946) | |
88 | chargedupbeam.Volume=2.5 | |
89 | diamondproj=getSound(231917751) | |
90 | diamondproj.PlaybackSpeed=5 | |
91 | diamondbreak=getSound(130779172) | |
92 | diamondbreak.Pitch=2 | |
93 | magicriff=getSound(588735156) | |
94 | bigmagic=getSound(231917773) | |
95 | walksound=getSound(142665236) | |
96 | ||
97 | --tables | |
98 | tweenTable={} | |
99 | altTweenTable={} | |
100 | local alljoints={} | |
101 | textTable={} | |
102 | local fx={} | |
103 | moves={} | |
104 | connectlist={} | |
105 | cooldowns={} | |
106 | movers={} | |
107 | local linetable={} | |
108 | moveDescriptions={ | |
109 | ['Dark Missile']={move='Dark Missile',key='Left Mouse Button',desc=[[A basic, dark blast that is cheap on mana and easy to use. Deals low damage.]]}, | |
110 | ['Normal Block']={move='Normal Block',desc=[[Blocks projectile attacks where you aim.]]}, | |
111 | ['Rive Beam']={move='Rive Beam',desc=[[A beam of energy that deals heavy damage and knocks down foes.]]}, | |
112 | ['Dark Spikes']={move='Dark Spikes',desc=[[A series of dark stakes that explode to push enemies back and deal medium damage.]]}, | |
113 | ['Down Slam']={move='Down Slam',key=[[Space, Space, Q]],desc=[[An aerial attack that slams the character against the ground to create a shockwave that knocks down and deals low damage to enemies.]]}, | |
114 | ['Aerial Sword']={move='Aerial Sword',key=[[Space, Space, Hold R]],desc=[[An aerial attack with huge power; creates a sphere of dark energy that flings spectral swords which explode and deal damage.]]}, | |
115 | ['Curse']={move='Curse',desc=[[An attack that inflicts the Cursed debuff (5% maxhealth damage every second) and lifesteals half of damage dealt.]]}, | |
116 | ['Dark Slash']={move='Dark Slash',desc=[[Summons a spectral sword that slashes to deal huge critical damage. Very high crit chance.]]}, | |
117 | ['Diamond Storm']={move='Diamond Storm',desc=[[Charge up dark energy to release a flurry of diamonds that explode to deal damage with high crit chance. Heals twice damage dealt. High mana cost.]]}, | |
118 | ||
119 | ||
120 | } | |
121 | ||
122 | --bool global | |
123 | local run=false | |
124 | idle=false | |
125 | local animPlaying=false | |
126 | local runLeg=false | |
127 | canRunLeg=false | |
128 | local deb=false | |
129 | local basicswitch=false | |
130 | local canExecuteMoves=true | |
131 | local bg=false | |
132 | local sprinting=false | |
133 | ascension=false | |
134 | local aright=false | |
135 | local aleft=false | |
136 | local aforward=false | |
137 | local aback=false | |
138 | local mult=2 | |
139 | ||
140 | --num | |
141 | maxmana=900 | |
142 | mana=900 | |
143 | chain=0 | |
144 | regws=16 | |
145 | bigws=14 | |
146 | hum.MaxHealth=200 | |
147 | spawn(function() | |
148 | wait() hum.Health=200 | |
149 | end) | |
150 | ||
151 | -- gui | |
152 | local managui=int('ScreenGui',plr.PlayerGui) | |
153 | managui.Name='Mana Gui' | |
154 | local frame=int('Frame',managui) | |
155 | frame.Size=UDim2.new(0.15,0,0.02,0) | |
156 | frame.Position=UDim2.new(1-0.17,0,0.7,0) | |
157 | frame.BackgroundColor3=BrickColor.new('Black').Color | |
158 | - | frame.BorderColor3=BrickColor.new('Toothpaste').Color |
158 | + | frame.BorderColor3=BrickColor.new('Really red').Color |
159 | frame.BorderSizePixel=6 | |
160 | ||
161 | local manabartext=int('TextLabel',frame) | |
162 | manabartext.ZIndex=2 | |
163 | manabartext.Size=UDim2.new(1,0,1,0) | |
164 | manabartext.TextColor3=BrickColor.new('White').Color | |
165 | manabartext.TextStrokeTransparency=1 | |
166 | manabartext.Font='SourceSansLight' | |
167 | manabartext.Text=tostring(mana)..'/'..tostring(maxmana) | |
168 | manabartext.FontSize='Size18' | |
169 | manabartext.BackgroundTransparency=1 | |
170 | ||
171 | local manabar=int('Frame',frame) | |
172 | manabar.Size=UDim2.new(1,0,1,0) | |
173 | manabar.BorderSizePixel=0 | |
174 | manabar.BackgroundColor3=BrickColor.new('Bright blue').Color | |
175 | manabar.Size=UDim2.new(mana/maxmana,0,1,0) | |
176 | ||
177 | local chainframe=int('Frame',managui) | |
178 | chainframe.Size=frame.Size | |
179 | chainframe.BackgroundTransparency=1 | |
180 | chainframe.Position=frame.Position+UDim2.new(0.07,0,-0.05,0) | |
181 | local chaintext=int('TextLabel',chainframe) | |
182 | chaintext.BackgroundTransparency=1 | |
183 | chaintext.TextStrokeColor3=BrickColor.new('White').Color | |
184 | chaintext.TextStrokeTransparency=0 | |
185 | chaintext.Size=UDim2.new(1,0,1,0) | |
186 | chaintext.Font='Antique' | |
187 | chaintext.FontSize='Size48' | |
188 | chaintext.Text='0x' | |
189 | ||
190 | local cooldownframe=int('Frame',managui) | |
191 | cooldownframe.Size=UDim2.new(0.3,0,0.2,0) | |
192 | cooldownframe.BorderSizePixel=0 | |
193 | cooldownframe.Transparency=1 | |
194 | cooldownframe.Position=UDim2.new(0.7,0,0.8,0) | |
195 | ||
196 | local movebutton=int('TextButton',managui) | |
197 | movebutton.Position=UDim2.new(0.93,0,0.73,0) | |
198 | movebutton.Text='Moves' | |
199 | movebutton.Font='Antique' | |
200 | - | movebutton.BackgroundColor3=BrickColor.new('Toothpaste').Color |
200 | + | movebutton.BackgroundColor3=BrickColor.new('Really red').Color |
201 | movebutton.BorderSizePixel=0 | |
202 | movebutton.TextColor3=BrickColor.new('White').Color | |
203 | movebutton.FontSize='Size24' | |
204 | movebutton.Size=UDim2.new(0.05,0,0.025,0) | |
205 | ||
206 | movesframe=int('Frame',managui) | |
207 | movesframe.Size=UDim2.new(0.3,0,0.5,0) | |
208 | - | movesframe.BackgroundColor3=BrickColor.new('Toothpaste').Color |
208 | + | movesframe.BackgroundColor3=BrickColor.new('Really red').Color |
209 | movesframe.BorderSizePixel=6 | |
210 | movesframe.Position=UDim2.new(0.35,0,0.25,0) | |
211 | movesframe.BorderColor3=BrickColor.new('Black').Color | |
212 | movesframe.Visible=false | |
213 | ||
214 | local scrollframe=int('ScrollingFrame',movesframe) | |
215 | scrollframe.Size=UDim2.new(0.35,0,1,0) | |
216 | - | scrollframe.BackgroundColor3=BrickColor.new('Toothpaste').Color |
216 | + | scrollframe.BackgroundColor3=BrickColor.new('Really red').Color |
217 | scrollframe.ZIndex=2 | |
218 | scrollframe.BorderColor3=BrickColor.new('Black').Color | |
219 | scrollframe.BorderSizePixel=5 | |
220 | ||
221 | local descbox=int('Frame',movesframe) | |
222 | descbox.Size=UDim2.new(1-0.35,0,1,0) | |
223 | descbox.Position=UDim2.new(0.35,0,0,0) | |
224 | descbox.ZIndex=3 | |
225 | descbox.BackgroundTransparency=1 | |
226 | descbox.BorderSizePixel=0 | |
227 | ||
228 | local nam=int('TextLabel',descbox) | |
229 | nam.Size=UDim2.new(1,0,0.05,0) | |
230 | nam.Position=UDim2.new(0,0,0.1,0) | |
231 | nam.ZIndex=4 | |
232 | nam.Font='Antique' | |
233 | nam.FontSize='Size24' | |
234 | nam.BackgroundTransparency=1 | |
235 | nam.TextColor3=BrickColor.new('White').Color | |
236 | nam.Text='Select a move!' | |
237 | ||
238 | local desc=int('TextLabel',descbox) | |
239 | desc.BackgroundTransparency=1 | |
240 | desc.TextWrapped=true | |
241 | desc.Font='Antique' | |
242 | desc.FontSize='Size36' | |
243 | desc.Text='' | |
244 | desc.TextColor3=BrickColor.new('White').Color | |
245 | desc.TextXAlignment='Center' | |
246 | desc.TextYAlignment='Top' | |
247 | desc.Size=UDim2.new(1,0,0.6,0) | |
248 | desc.Position=UDim2.new(0,0,0.2,0) | |
249 | desc.ZIndex=4 | |
250 | ||
251 | local manacostg=int('TextLabel',desc) | |
252 | manacostg.Size=UDim2.new(1,0,0.1,0) | |
253 | manacostg.Text='' | |
254 | manacostg.Font='Antique' | |
255 | manacostg.FontSize='Size28' | |
256 | manacostg.TextColor3=BrickColor.new('White').Color | |
257 | manacostg.Position=UDim2.new(0,0,0.85,0) | |
258 | manacostg.BackgroundTransparency=1 | |
259 | ||
260 | local cmb=int('TextLabel',desc) | |
261 | cmb.Size=UDim2.new(1,0,0.1,0) | |
262 | cmb.Text='' | |
263 | cmb.Font='Antique' | |
264 | cmb.FontSize='Size28' | |
265 | cmb.TextColor3=BrickColor.new('White').Color | |
266 | cmb.Position=UDim2.new(0,0,0.7,0) | |
267 | cmb.BackgroundTransparency=1 | |
268 | ||
269 | local buttony=0.002 | |
270 | ||
271 | for _,v in pairs(moveDescriptions) do | |
272 | local button=int('TextButton',scrollframe) | |
273 | button.Size=UDim2.new(0.85,0,0.05,0) | |
274 | button.BorderSizePixel=0 | |
275 | button.BackgroundColor3=BrickColor.new('Black').Color | |
276 | button.Font='Antique' | |
277 | button.FontSize='Size24' | |
278 | button.TextColor3=BrickColor.new('White').Color | |
279 | button.TextWrapped=true | |
280 | button.Text=v.move | |
281 | button.ZIndex=3 | |
282 | button.Position=UDim2.new(0.03,0,buttony,0) | |
283 | buttony=buttony+0.052 | |
284 | button.MouseButton1Down:connect(function() | |
285 | desc.Text=v.desc | |
286 | nam.Text=v.move | |
287 | if v.key then | |
288 | cmb.Text='Keys: ' .. v.key | |
289 | else | |
290 | cmb.Text='Keys: ' .. string.upper(moves[v.move].key) | |
291 | end | |
292 | manacostg.Text='Mana Cost: ' .. tostring(moves[v.move].manacost) | |
293 | end) | |
294 | end | |
295 | ||
296 | movebutton.MouseButton1Down:connect(function() | |
297 | if movesframe.Visible==false then | |
298 | movesframe.Visible=true | |
299 | else | |
300 | movesframe.Visible=false | |
301 | end | |
302 | end) | |
303 | ||
304 | local cx=0 | |
305 | local cy=0 | |
306 | ||
307 | addCoolDownGui=function(v) | |
308 | local thing=int('TextLabel',cooldownframe) | |
309 | thing.TextWrapped=true | |
310 | thing.Size=UDim2.new(0.2,0,0.5,0) | |
311 | thing.Position=UDim2.new(cx,0,cy,0) | |
312 | - | thing.BackgroundColor3=BrickColor.new('Toothpaste').Color |
312 | + | thing.BackgroundColor3=BrickColor.new('Really red').Color |
313 | thing.Font='Antique' | |
314 | thing.FontSize='Size24' | |
315 | thing.TextColor3=BrickColor.new('White').Color | |
316 | thing.BorderSizePixel=0 | |
317 | thing.Text=v.move .. ' ' .. tostring(v.timeleft) | |
318 | spawn(function() | |
319 | repeat wait(0.1) thing.Text=v.move .. ' ' .. tostring(v.timeleft) until v.timeleft<0.1 | |
320 | thing:Destroy() | |
321 | if cy<1 and cx>0 then | |
322 | cx=cx-0.2 | |
323 | end | |
324 | if cy>1 and cx>0 then | |
325 | cx=cx-0.2 | |
326 | end | |
327 | ||
328 | end) | |
329 | if cx<1-0.2 then | |
330 | cx=cx+0.2 | |
331 | else | |
332 | cy=0.5 | |
333 | cx=0 | |
334 | end | |
335 | end | |
336 | ||
337 | ypcall(function() | |
338 | ch.Animate:Destroy() | |
339 | ch.Humanoid.Animator:Destroy() | |
340 | end) | |
341 | ||
342 | if ch:findFirstChild("Riven") then | |
343 | ch['Riven']:Destroy() | |
344 | end | |
345 | ||
346 | local tube=int("Model",ch) | |
347 | tube.Name='Riven' | |
348 | script.Parent=tube | |
349 | ||
350 | --functions | |
351 | ||
352 | Weld = function(p0,p1,x,y,z,rx,ry,rz,par)--recommend to use this with my weld. use this function only with arm lockers. | |
353 | p0.Position = p1.Position | |
354 | local w = Instance.new('Motor',par or p0) | |
355 | w.Part0 = p1 | |
356 | w.Part1 = p0 | |
357 | w.C0 = CFrame.new(x or 0,y or 0,z or 0)*CFrame.Angles(rx or 0,ry or 0,rz or 0) | |
358 | w.MaxVelocity = .1 | |
359 | return w | |
360 | end | |
361 | ||
362 | function clerp(c1,c2,sp) | |
363 | local R1,R2,R3 = c1:toEulerAnglesXYZ() | |
364 | local R21,R22,R23 = c2:toEulerAnglesXYZ() | |
365 | return CFrame.new( | |
366 | c1.X + (c2.X-c1.X)*sp, | |
367 | c1.Y + (c2.Y-c1.Y)*sp, | |
368 | c1.Z + (c2.Z-c1.Z)*sp)*CFrame.Angles( | |
369 | R1 + (R21-R1)*sp, | |
370 | R2 + (R22-R2)*sp, | |
371 | R3 + (R23-R3)*sp | |
372 | ) | |
373 | end | |
374 | ||
375 | Tween = function(Weld, Stop, Step,a) | |
376 | ypcall(function() | |
377 | local func = function() | |
378 | local Start = Weld.C1 | |
379 | local X1, Y1, Z1 = Start:toEulerAnglesXYZ() | |
380 | local Stop = Stop | |
381 | local X2, Y2, Z2 = Stop:toEulerAnglesXYZ() | |
382 | if not Step then Step=0.1 end | |
383 | table.insert(tweenTable,{th=0,Weld=Weld,Step=Step,Start=Start,X1=X1,Y1=Y1,Z1=Z1,Stop=Stop,X2=X2,Y2=Y2,Z2=Z2}) | |
384 | end | |
385 | if a then coroutine.wrap(func)() else func() end | |
386 | end) | |
387 | end | |
388 | ||
389 | altTween = function(Weld, Stop, Step,a) | |
390 | ypcall(function() | |
391 | local func = function() | |
392 | local Start = Weld.C1 | |
393 | local X1, Y1, Z1 = Start:toEulerAnglesXYZ() | |
394 | local Stop = Stop | |
395 | local X2, Y2, Z2 = Stop:toEulerAnglesXYZ() | |
396 | if not Step then Step=0.1 end | |
397 | table.insert(altTweenTable,{th=0,Weld=Weld,Step=Step,Start=Start,X1=X1,Y1=Y1,Z1=Z1,Stop=Stop,X2=X2,Y2=Y2,Z2=Z2}) | |
398 | end | |
399 | if a then coroutine.wrap(func)() else func() end | |
400 | end) | |
401 | end | |
402 | ||
403 | weld=function(p0,p1,c0) | |
404 | local w=Instance.new("Weld",p0) | |
405 | w.Part0=p0 | |
406 | w.Part1=p1 | |
407 | w.C0=c0 | |
408 | return w | |
409 | end | |
410 | ||
411 | cp=function(parent,color,size,anchored,cancollide) | |
412 | local newp=Instance.new("Part",parent) | |
413 | newp.TopSurface='SmoothNoOutlines' | |
414 | newp.BottomSurface='SmoothNoOutlines' | |
415 | newp.FrontSurface='SmoothNoOutlines' | |
416 | newp.BackSurface='SmoothNoOutlines' | |
417 | newp.RightSurface='SmoothNoOutlines' | |
418 | newp.LeftSurface='SmoothNoOutlines' | |
419 | newp.FormFactor="Custom" | |
420 | newp.BrickColor=bc(color) | |
421 | local rn=math.random(3) | |
422 | if rn==1 then | |
423 | - | -- newp.BrickColor=BrickColor.new('Institutional white') |
423 | + | -- newp.BrickColor=BrickColor.new('Really black') |
424 | end | |
425 | newp.Size=size | |
426 | newp.Anchored=anchored | |
427 | newp.CanCollide=cancollide | |
428 | newp:BreakJoints() | |
429 | return newp | |
430 | end | |
431 | ||
432 | ||
433 | if ch:findFirstChild('Body Colors') then | |
434 | - | ch['Body Colors'].HeadColor=BrickColor.new('Toothpaste') |
434 | + | ch['Body Colors'].HeadColor=BrickColor.new('Really red') |
435 | - | ch['Body Colors'].TorsoColor=BrickColor.new('Toothpaste') |
435 | + | ch['Body Colors'].TorsoColor=BrickColor.new('Really red') |
436 | - | ch['Body Colors'].LeftLegColor=BrickColor.new('Toothpaste') |
436 | + | ch['Body Colors'].LeftLegColor=BrickColor.new('Really red') |
437 | - | ch['Body Colors'].RightLegColor=BrickColor.new('Institutional white') |
437 | + | ch['Body Colors'].RightLegColor=BrickColor.new('Really black') |
438 | - | ch['Body Colors'].RightArmColor=BrickColor.new('Toothpaste') |
438 | + | ch['Body Colors'].RightArmColor=BrickColor.new('Really red') |
439 | - | ch['Body Colors'].LeftArmColor=BrickColor.new('Toothpaste') |
439 | + | ch['Body Colors'].LeftArmColor=BrickColor.new('Really red') |
440 | end | |
441 | ||
442 | for _,v in pairs(ch:GetChildren()) do | |
443 | if v.className=='Accessory' then | |
444 | v:Destroy() | |
445 | elseif v.className=='Part' then | |
446 | - | v.BrickColor=BrickColor.new('Toothpaste') |
446 | + | v.BrickColor=BrickColor.new('Really red') |
447 | end | |
448 | if v.Name=='Right Leg' then | |
449 | - | v.BrickColor=BrickColor.new('Institutional white') |
449 | + | v.BrickColor=BrickColor.new('Really black') |
450 | end | |
451 | end | |
452 | ||
453 | if ch:findFirstChild('Pants') then | |
454 | ch.Pants:Destroy() | |
455 | end | |
456 | ||
457 | if ch:findFirstChild('Shirt') then | |
458 | ch.Shirt:Destroy() | |
459 | end | |
460 | ||
461 | destroyJoints=function() | |
462 | for i=1,5 do | |
463 | for _,v in pairs(alljoints) do | |
464 | ypcall(function() | |
465 | v:Destroy() | |
466 | table.remove(alljoints,_) | |
467 | end) | |
468 | end | |
469 | end | |
470 | end | |
471 | ||
472 | initializeJoints=function() | |
473 | destroyJoints() | |
474 | rabr = cp(tube,'White',Vector3.new(1,1,1),false,false) rabr.Transparency = 1 rabr.Name='Locker' | |
475 | rabr.Position = torso.Position | |
476 | rw = Weld(rabr,torso,1.5,.5,0,0,0,0) rw.Parent = tube rw.Name = 'rw' | |
477 | w = Instance.new("Weld",tube) | |
478 | w.Part0,w.Part1 = ch['Right Arm'],rabr | |
479 | w.C1 = CFrame.new(0,-.5,0) | |
480 | labr = cp(tube,'White',Vector3.new(1,1,1),false,false) labr.Transparency = 1 labr.Name='Locker' | |
481 | labr.Position = torso.Position | |
482 | lw = Weld(labr,torso,-1.5,.5,0,0,0,0) lw.Parent = tube lw.Name = 'lw' | |
483 | ww = Instance.new("Weld",tube) | |
484 | ww.Part0,ww.Part1 = ch['Left Arm'],labr | |
485 | ww.C1 = CFrame.new(0,-.5,0) | |
486 | rlabr = cp(tube,'White',Vector3.new(1,1,1),false,false) rlabr.Transparency = 1 rlabr.Name='Locker' | |
487 | rlabr.Position = torso.Position | |
488 | rlw = Weld(rlabr,torso,0.5,-1.5,0,0,0,0) rlw.Parent = tube rlw.Name = 'rlw' | |
489 | wl = Instance.new("Weld",tube) | |
490 | wl.Part0,wl.Part1 = ch['Right Leg'],rlabr | |
491 | wl.C1 = CFrame.new(0,-.5,0) | |
492 | llabr = cp(tube,'White',Vector3.new(1,1,1),false,false) llabr.Transparency = 1 llabr.Name='Locker' | |
493 | llabr.Position = torso.Position | |
494 | llw = Weld(llabr,torso,-0.5,-1.5,0,0,0,0) llw.Parent = tube llw.Name = 'llw' | |
495 | wwl = Instance.new("Weld",tube) | |
496 | wwl.Part0,wwl.Part1 = ch['Left Leg'],llabr | |
497 | wwl.C1 = CFrame.new(0,-.5,0) | |
498 | nk = cp(tube,'White',Vector3.new(1,1,1),false,false) nk.Transparency = 1 nk.Name='Locker' | |
499 | nk.Position = torso.Position | |
500 | neck = Weld(nk,torso,0,2,0,0,0,0) neck.Parent = tube neck.Name = 'neck' | |
501 | www = Instance.new("Weld",tube) | |
502 | www.Part0,www.Part1 = ch['Head'],nk | |
503 | www.C1 = CFrame.new(0,-.5,0) | |
504 | table.insert(alljoints,rabr) | |
505 | table.insert(alljoints,labr) | |
506 | table.insert(alljoints,rw) | |
507 | table.insert(alljoints,lw) | |
508 | table.insert(alljoints,w) | |
509 | table.insert(alljoints,ww) | |
510 | table.insert(alljoints,rlabr) | |
511 | table.insert(alljoints,llabr) | |
512 | table.insert(alljoints,rlw) | |
513 | table.insert(alljoints,llw) | |
514 | table.insert(alljoints,wl) | |
515 | table.insert(alljoints,wwl) | |
516 | table.insert(alljoints,nk) | |
517 | table.insert(alljoints,neck) | |
518 | table.insert(alljoints,www) | |
519 | end | |
520 | ||
521 | cyl=function(prt) | |
522 | local c=int("CylinderMesh",prt) | |
523 | return c | |
524 | end | |
525 | ||
526 | blo=function(prt) | |
527 | local c=int("BlockMesh",prt) | |
528 | c.Name='bmsh' | |
529 | return c | |
530 | end | |
531 | ||
532 | sphere=function(prt) | |
533 | local c=int('SpecialMesh',prt) | |
534 | c.MeshType='Sphere' | |
535 | return c | |
536 | end | |
537 | ||
538 | newSpm=function(prt) | |
539 | local nspm=int('SpecialMesh',prt) | |
540 | nspm.MeshType='FileMesh' | |
541 | return nspm | |
542 | end | |
543 | ||
544 | ||
545 | --cool hat | |
546 | - | local hat=cp(tube,'Toothpaste',Vector3.new(1,1,1)) |
546 | + | local hat=cp(tube,'Really red',Vector3.new(1,1,1)) |
547 | local hatmesh=int('SpecialMesh',hat) | |
548 | hatmesh.MeshId=rbx..'24102243' | |
549 | weld(ch.Head,hat,cfn(0,0.6,0)) | |
550 | ||
551 | ||
552 | - | local rarmdiamond=cp(tube,'Institutional white',Vector3.new(1,1,1)) |
552 | + | local rarmdiamond=cp(tube,'Really black',Vector3.new(1,1,1)) |
553 | local dia=newSpm(rarmdiamond) | |
554 | dia.MeshId=rbx..lib.diamond | |
555 | dia.Scale=Vector3.new(0.4,0.8,0.4) | |
556 | weld(ch['Right Arm'],rarmdiamond,cfn(0.4,0,0)) | |
557 | ||
558 | - | local testshoulder=cp(tube,'Institutional white',Vector3.new(1.1,0.6,1.1)) |
558 | + | local testshoulder=cp(tube,'Really black',Vector3.new(1.1,0.6,1.1)) |
559 | testshoulder.Material='SmoothPlastic' | |
560 | weld(ch['Right Arm'],testshoulder,cfn(0,0.8,0)) | |
561 | ||
562 | - | --local testtorso=cp(tube,'Institutional white',Vector3.new(2.8,0.4,1.1)) |
562 | + | --local testtorso=cp(tube,'Really black',Vector3.new(2.8,0.4,1.1)) |
563 | --blo(testtorso).Scale=Vector3.new(0.95,1,0.95) | |
564 | --weld(tor,testtorso,cfn(0,0,0)*ang(0,0,mr(45))) | |
565 | ||
566 | - | local testhalf=cp(tube,'Institutional white',Vector3.new(1,2,1)) |
566 | + | local testhalf=cp(tube,'Really black',Vector3.new(1,2,1)) |
567 | testhalf.Material='SmoothPlastic' | |
568 | blo(testhalf).Scale=Vector3.new(1.003,1.003,1.005) | |
569 | weld(tor,testhalf,cfn(0.5,0,0)) | |
570 | ||
571 | - | local cooldiamond=cp(tube,'Toothpaste',Vector3.new(0.5,0.5,0.5)) |
571 | + | local cooldiamond=cp(tube,'Really red',Vector3.new(0.5,0.5,0.5)) |
572 | local dia=newSpm(cooldiamond) | |
573 | dia.Scale=Vector3.new(0.4,0.8,0.45) | |
574 | dia.MeshId=rbx..lib.diamond | |
575 | weld(testhalf,cooldiamond,cfn(0,0.3,-0.3)) | |
576 | ||
577 | - | local cooldiamond2=cp(tube,'Toothpaste',Vector3.new(0.5,0.5,0.5)) |
577 | + | local cooldiamond2=cp(tube,'Really red',Vector3.new(0.5,0.5,0.5)) |
578 | local dia=newSpm(cooldiamond2) | |
579 | dia.Scale=Vector3.new(0.4,0.8,0.45) | |
580 | dia.MeshId=rbx..lib.diamond | |
581 | weld(testhalf,cooldiamond2,cfn(0.2,-0.15,-0.3)) | |
582 | ||
583 | - | local cooldiamond3=cp(tube,'Toothpaste',Vector3.new(0.5,0.5,0.5)) |
583 | + | local cooldiamond3=cp(tube,'Really red',Vector3.new(0.5,0.5,0.5)) |
584 | local dia=newSpm(cooldiamond3) | |
585 | dia.Scale=Vector3.new(0.4,0.8,0.45) | |
586 | dia.MeshId=rbx..lib.diamond | |
587 | weld(testhalf,cooldiamond3,cfn(-0.2,-0.15,-0.3)) | |
588 | ||
589 | --blo(ch['Right Leg']) | |
590 | --ch['Right Leg'].Material='SmoothPlastic' | |
591 | ||
592 | --[[ | |
593 | - | local testp=cp(tube,'Institutional white',Vector3.new(2.1,1.3,1.2)) |
593 | + | local testp=cp(tube,'Really black',Vector3.new(2.1,1.3,1.2)) |
594 | local tpb=blo(tstp) | |
595 | tpb.Scale=Vector3.new(1.01,1.01,1) | |
596 | weld(tor,testp,cfn(0,0.4,0)) | |
597 | ]] | |
598 | ||
599 | ||
600 | ||
601 | initializeJoints() | |
602 | ||
603 | reset=function() | |
604 | if run == false and animPlaying == false then | |
605 | altTweenTable={} | |
606 | Tween(llw,cfn(0,-0.08*math.sin(tick()*1.5),0)*ang(0,0,mr(5))) | |
607 | Tween(rlw,cfn(0,-0.08*math.sin(tick()*1.5),0)*ang(0,0,mr(-5))) | |
608 | Tween(rw,cfn(0,0.03*math.sin(tick()*1.5),0)*ang(0,0,mr(-15)+mr(-5*math.sin(tick()*1.5)))) | |
609 | Tween(lw,cfn(0,0.03*math.sin(tick()*1.5),0)*ang(0,0,mr(15)+mr(5*math.sin(tick()*1.5)))) | |
610 | Tween(neck,cfn()) | |
611 | Tween(rj,cfn(0,0.08*math.sin(tick()*1.5),0),0.3) | |
612 | end | |
613 | end | |
614 | ||
615 | bigreset=function() | |
616 | if run == false and animPlaying == false then | |
617 | altTweenTable={} | |
618 | Tween(llw,cfn(0,-0.08*math.sin(tick()*1.5*mult),0)*ang(0,0,mr(5))) | |
619 | Tween(rlw,cfn(0,-0.08*math.sin(tick()*1.5*mult),0)*ang(0,0,mr(-5))) | |
620 | Tween(rw,cfn(0,0.03*math.sin(tick()*1.5*mult),0)*ang(0,0,mr(-15)+mr(-5*math.sin(tick()*1.5)))) | |
621 | Tween(lw,cfn(0,0.03*math.sin(tick()*1.5*mult),0)*ang(0,0,mr(15)+mr(5*math.sin(tick()*1.5)))) | |
622 | Tween(neck,cfn()) | |
623 | Tween(rj,cfn(0,0.08*math.sin(tick()*1.5*mult),0),0.3) | |
624 | end | |
625 | end | |
626 | ||
627 | ||
628 | resetLegs=function() | |
629 | altTweenTable={} | |
630 | Tween(llw,cfn()) | |
631 | Tween(rlw,cfn()) | |
632 | end | |
633 | ||
634 | walkCycle=function() | |
635 | if run==true and animPlaying==false then | |
636 | tweenTable={} | |
637 | Tween(neck,cfn()) | |
638 | Tween(rj,cfn()) | |
639 | Tween(llw,cfn(0,0,-0.2*math.sin(tick()*8))*ang(mr(10)+mr(40*math.sin(tick()*8)),0,0),0.6) | |
640 | Tween(rlw,cfn(0,0,0.2*math.sin(tick()*8))*ang(mr(10)+mr(-40*math.sin(tick()*8)),0,0),0.6) | |
641 | Tween(rw,cfn()*ang(mr(-40),0,mr(-30)),0.07) | |
642 | Tween(lw,cfn()*ang(mr(20),0,mr(20)),0.07) | |
643 | end | |
644 | end | |
645 | ||
646 | walkCycleBig=function() | |
647 | if run==true and animPlaying==false then | |
648 | tweenTable={} | |
649 | Tween(neck,cfn()) | |
650 | Tween(rj,cfn()) | |
651 | Tween(llw,cfn(0,0,-0.2*math.sin(tick()*8)*mult)*ang(mr(10)+mr(40*math.sin(tick()*8)),0,0),0.6) | |
652 | Tween(rlw,cfn(0,0,0.2*math.sin(tick()*8)*mult)*ang(mr(10)+mr(-40*math.sin(tick()*8)),0,0),0.6) | |
653 | Tween(rw,cfn()*ang(mr(-40),0,mr(-30)),0.07) | |
654 | Tween(lw,cfn()*ang(mr(20),0,mr(20)),0.07) | |
655 | end | |
656 | end | |
657 | ||
658 | sprintCycle=function() | |
659 | if run==true and animPlaying==false then | |
660 | tweenTable={} | |
661 | Tween(rj,cfn()*ang(mr(10),0,0)) | |
662 | Tween(llw,cfn(0,0,-0.2*math.sin(tick()*11))*ang(mr(20)+mr(60*math.sin(tick()*11)),0,0),0.25) | |
663 | Tween(rlw,cfn(0,0,0.2*math.sin(tick()*11))*ang(mr(20)+mr(-60*math.sin(tick()*11)),0,0),0.25) | |
664 | Tween(rw,cfn()*ang(mr(-20)+mr(60*math.sin(tick()*11)),0,mr(-10)),0.25) | |
665 | Tween(lw,cfn()*ang(mr(-20)+mr(-60*math.sin(tick()*11)),0,mr(10)),0.25) | |
666 | end | |
667 | end | |
668 | ||
669 | local jumping=false | |
670 | ||
671 | jump=function() | |
672 | if animPlaying==false then | |
673 | jumping=true | |
674 | run=false | |
675 | resetLegs() | |
676 | tweenTable={} | |
677 | altTweenTable={} | |
678 | -- animPlaying=true | |
679 | -- Tween(rj,cfn()*ang(mr(-15),0,0),0.2) | |
680 | Tween(neck,cfn(0,0,-0.2)*ang(mr(-20),0,0),0.1) | |
681 | Tween(rw,cfn()*ang(mr(15),0,mr(-25)),0.1) | |
682 | Tween(lw,cfn()*ang(mr(15),0,mr(25)),0.1) | |
683 | Tween(rlw,cfn()*ang(mr(15),0,0),0.1) | |
684 | Tween(llw,cfn()*ang(mr(15),0,0),0.1) | |
685 | wait(0.2) | |
686 | reset() | |
687 | wait(0.1) | |
688 | -- animPlaying=false | |
689 | jumping=false | |
690 | end | |
691 | end | |
692 | ||
693 | walkLegs=function() | |
694 | if runLeg==true then | |
695 | altTweenTable={} | |
696 | altTween(llw,cfn(0,0,-0.2*math.sin(tick()*8))*ang(mr(20)+mr(50*math.sin(tick()*8)),0,0),0.6) | |
697 | altTween(rlw,cfn(0,0,0.2*math.sin(tick()*8))*ang(mr(20)+mr(-50*math.sin(tick()*8)),0,0),0.6) | |
698 | end | |
699 | end | |
700 | ||
701 | dealDamage=function(man,damage,crit,multi,lifesteal) | |
702 | if man and man:findFirstChild'Humanoid' and man:findFirstChild'Head' then | |
703 | local dm=damage | |
704 | local cr=false | |
705 | local hm=man.Humanoid | |
706 | if crit then | |
707 | if crit>0 then | |
708 | local c=math.random(crit) | |
709 | if c==1 then | |
710 | cr=true | |
711 | end | |
712 | end | |
713 | end | |
714 | if cr==true then | |
715 | if not multi then | |
716 | dm=dm*1.5 | |
717 | else | |
718 | dm=dm*multi | |
719 | end | |
720 | end | |
721 | hm:TakeDamage(dm) | |
722 | if lifesteal then | |
723 | --print'lifesteal' | |
724 | local plife=lifesteal*dm | |
725 | if hum.Health<hum.MaxHealth then | |
726 | hum.Health=hum.Health+plife | |
727 | local bbg=int('BillboardGui',tube) | |
728 | bbg.Size=UDim2.new(1,0,1,0) | |
729 | bbg.StudsOffset=Vector3.new(0,2,0) | |
730 | bbg.StudsOffset=bbg.StudsOffset+Vector3.new(math.random(-math.random(50)/10,math.random(50)/10),0,math.random(-math.random(50)/10,math.random(50)/10)) | |
731 | bbg.Adornee=ch.Head | |
732 | bbg.AlwaysOnTop=true | |
733 | local tlabl=int('TextLabel',bbg) | |
734 | tlabl.Size=UDim2.new(1,0,1,0) | |
735 | tlabl.Text=tostring(plife) | |
736 | tlabl.BackgroundTransparency=1 | |
737 | tlabl.TextColor3=BrickColor.new('Bright green').Color | |
738 | tlabl.TextStrokeColor3=BrickColor.new('White').Color | |
739 | tlabl.TextStrokeTransparency=0 | |
740 | tlabl.Font='Antique' | |
741 | tlabl.FontSize='Size60' | |
742 | table.insert(textTable,bbg) | |
743 | end | |
744 | end | |
745 | chain=chain+1 | |
746 | if hm.MaxHealth>=99999 then | |
747 | hm.Parent:BreakJoints() | |
748 | end | |
749 | local bbg=int('BillboardGui',tube) | |
750 | bbg.Size=UDim2.new(1,0,1,0) | |
751 | bbg.StudsOffset=Vector3.new(0,2,0) | |
752 | bbg.StudsOffset=bbg.StudsOffset+Vector3.new(math.random(-math.random(50)/10,math.random(50)/10),0,math.random(-math.random(50)/10,math.random(50)/10)) | |
753 | bbg.Adornee=man.Head | |
754 | bbg.AlwaysOnTop=true | |
755 | local tlabl=int('TextLabel',bbg) | |
756 | tlabl.Size=UDim2.new(1,0,1,0) | |
757 | tlabl.Text=tostring(dm) | |
758 | tlabl.BackgroundTransparency=1 | |
759 | - | tlabl.TextColor3=BrickColor.new('Toothpaste').Color |
759 | + | tlabl.TextColor3=BrickColor.new('Really red').Color |
760 | tlabl.TextStrokeColor3=BrickColor.new('White').Color | |
761 | if cr==true then | |
762 | - | tlabl.TextColor3=BrickColor.new('Institutional white').Color |
762 | + | tlabl.TextColor3=BrickColor.new('Really black').Color |
763 | - | tlabl.TextStrokeColor3=BrickColor.new('Toothpaste').Color |
763 | + | tlabl.TextStrokeColor3=BrickColor.new('Really red').Color |
764 | end | |
765 | tlabl.TextStrokeTransparency=0 | |
766 | tlabl.Font='Antique' | |
767 | tlabl.FontSize='Size60' | |
768 | table.insert(textTable,bbg) | |
769 | return dm | |
770 | end | |
771 | end | |
772 | ||
773 | displayText=function(thing,text,color) | |
774 | local bbg=int('BillboardGui',tube) | |
775 | bbg.Size=UDim2.new(1,0,1,0) | |
776 | bbg.StudsOffset=Vector3.new(0,3,0) | |
777 | bbg.Adornee=thing | |
778 | bbg.AlwaysOnTop=true | |
779 | local tlabl=int('TextLabel',bbg) | |
780 | tlabl.Size=UDim2.new(1,0,1,0) | |
781 | tlabl.Text=text | |
782 | tlabl.BackgroundTransparency=1 | |
783 | - | tlabl.TextColor3=BrickColor.new('Toothpaste').Color |
783 | + | tlabl.TextColor3=BrickColor.new('Really red').Color |
784 | tlabl.TextStrokeColor3=BrickColor.new('White').Color | |
785 | tlabl.TextStrokeTransparency=0 | |
786 | tlabl.Font='Antique' | |
787 | tlabl.FontSize='Size60' | |
788 | table.insert(textTable,bbg) | |
789 | end | |
790 | ||
791 | local tp=cp(tube,'White',Vector3.new(1,1,1)) | |
792 | tp.Transparency=1 | |
793 | weld(ch['Right Arm'],tp,cfn(0,-1,0)) | |
794 | ||
795 | addFx=function(item,int,final,func) | |
796 | table.insert(fx,{item=item,int=int,func=func,final=final,stepval=0}) | |
797 | end | |
798 | ||
799 | addMove=function(name,key,cooldown,func,manacost) | |
800 | moves[name]={key=key,cooldown=cooldown,func=func,manacost=manacost} | |
801 | end | |
802 | ||
803 | drawLine=function(point_a,point_b,bc_code,angle,mag,width) | |
804 | local dist=(point_a-point_b).magnitude; | |
805 | local num=1 | |
806 | if mag then | |
807 | num=mag | |
808 | end | |
809 | if dist>num then | |
810 | local rad=dist/2; | |
811 | local line=Instance.new('Part',tube) | |
812 | line.Anchored=true; | |
813 | line.FormFactor='Custom'; | |
814 | line.BrickColor=BrickColor.new(bc_code); | |
815 | line.TopSurface='SmoothNoOutlines' | |
816 | line.BottomSurface='SmoothNoOutlines' | |
817 | line.LeftSurface='SmoothNoOutlines' | |
818 | line.RightSurface='SmoothNoOutlines' | |
819 | line.FrontSurface='SmoothNoOutlines' | |
820 | line.BackSurface='SmoothNoOutlines' | |
821 | line.Material='Neon' | |
822 | line.CanCollide=false; | |
823 | line.Size=Vector3.new(0.7,dist,0.7); | |
824 | if width then | |
825 | line.Size=Vector3.new(width,dist,width); | |
826 | end | |
827 | cyl(line).Name='blok' | |
828 | -- Instance.new("BlockMesh",line).Name='blok' | |
829 | line.CFrame=CFrame.new(point_a,point_b)*CFrame.new(0,0,-rad)*ang(mr(90),0,0)--*angle; | |
830 | return line; | |
831 | end | |
832 | end; | |
833 | ||
834 | depleteMana=function(amount) | |
835 | if mana>0 then | |
836 | if mana-amount>0 then | |
837 | mana=mana-amount | |
838 | return true | |
839 | else | |
840 | return false | |
841 | end | |
842 | end | |
843 | end | |
844 | ||
845 | executeMove=function(name) | |
846 | if canExecuteMoves==true then | |
847 | if ch and hum and hum.Health>0 then | |
848 | local can=true | |
849 | for _,v in pairs(cooldowns) do | |
850 | if v.move==name then | |
851 | can=false | |
852 | break | |
853 | end | |
854 | end | |
855 | if can==true then | |
856 | local can2=true | |
857 | if moves[name].manacost then | |
858 | local a=depleteMana(-moves[name].manacost) | |
859 | if not a then | |
860 | can2=false | |
861 | end | |
862 | end | |
863 | if can2 then | |
864 | moves[name].func() | |
865 | end | |
866 | end | |
867 | end | |
868 | end | |
869 | end | |
870 | ||
871 | addToCList=function(what,key) | |
872 | local a={what,key=key,up=false} | |
873 | table.insert(connectlist,a) | |
874 | return a | |
875 | end | |
876 | ||
877 | waitForUp=function(what) | |
878 | repeat wait() until what.up==true | |
879 | end | |
880 | ||
881 | addMover=function(what,step,func) | |
882 | table.insert(movers,{mover=what,step=step,lastpoint=what.CFrame,func=func}) | |
883 | end | |
884 | ||
885 | local function CreateRegion3FromLocAndSize(Position, Size) | |
886 | local SizeOffset = Size/2 | |
887 | local Point1 = Position - SizeOffset | |
888 | local Point2 = Position + SizeOffset | |
889 | return Region3.new(Point1, Point2) | |
890 | end | |
891 | ||
892 | local righthandle=cp(tube,"White",Vector3.new(1,1,1)) | |
893 | weld(ch['Right Arm'],righthandle,cfn(0,-1,0)) | |
894 | righthandle.Transparency=1 | |
895 | ||
896 | local lefthandle=cp(tube,"White",Vector3.new(1,1,1)) | |
897 | weld(ch['Left Arm'],lefthandle,cfn(0,-1,0)) | |
898 | lefthandle.Transparency=1 | |
899 | ||
900 | --[[ | |
901 | Current Moves: | |
902 | Normal Block | |
903 | Dark Missile (High Crit (20% chance)) | |
904 | Rive Beam (10% Crit chance) | |
905 | Dark Slash (Very High Crit (50% chance)) | |
906 | Down Slam | |
907 | Aerial Sword (Very High Crit (50% chance)) | |
908 | Dark Spikes (Very High Crit (50% chance)) | |
909 | Curse (Damage Over Time and Lifesteal) | |
910 | ]] | |
911 | ||
912 | addCoolDown=function(move) | |
913 | local a={timeleft=moves[move].cooldown,move=move} | |
914 | addCoolDownGui(a) | |
915 | table.insert(cooldowns,a) | |
916 | end | |
917 | ||
918 | addMove('Normal Block','f',0,function() | |
919 | deb=true | |
920 | idle=false | |
921 | local ws=hum.WalkSpeed | |
922 | tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z)) | |
923 | hum.WalkSpeed=32 | |
924 | tweenTable={} | |
925 | animPlaying=true | |
926 | local pcf=tor.CFrame | |
927 | Tween(rj,cfn()*ang(0,mr(-45),0),0.2) | |
928 | Tween(rw,cfn()*ang(mr(-86),mr(-15),0),0.2) | |
929 | Tween(lw,cfn()*ang(0,mr(5),mr(20)),0.2) | |
930 | blocksound:Play() | |
931 | - | local block=cp(workspace,'Toothpaste',Vector3.new(8,6,1),true,true) |
931 | + | local block=cp(workspace,'Really red',Vector3.new(8,6,1),true,true) |
932 | block.CFrame=pcf*CFrame.new(0,0,-5) | |
933 | block.Material='Neon' | |
934 | local bm=blo(block) | |
935 | bm.Scale=Vector3.new(0,0,0.9) | |
936 | addFx(block,0.05,nil,function() bm.Scale=bm.Scale+Vector3.new(0.05,0.05,0) end) | |
937 | local a=addToCList('block_connect','f') | |
938 | waitForUp(a) | |
939 | addCoolDown('Normal Block') | |
940 | hum.WalkSpeed=ws | |
941 | deb=false | |
942 | addFx(block,0.05,"destroy",function() block.Transparency=block.Transparency+0.05 block.bmsh.Scale=block.bmsh.Scale+Vector3.new(0.07,0.07,0) end) | |
943 | idle=true | |
944 | reset() | |
945 | animPlaying=false | |
946 | end,15) | |
947 | ||
948 | addMove('Diamond Storm','v',0,function() | |
949 | animPlaying=true | |
950 | deb=true | |
951 | canExecuteMoves=false | |
952 | hum.WalkSpeed=32 | |
953 | tweenTable={} | |
954 | altTweenTable={} | |
955 | Tween(rw,cfn(0,1,0)*ang(mr(-70),mr(-45),0)) | |
956 | Tween(lw,cfn()*ang(mr(-70),mr(45),0)) | |
957 | magicriff:Play() | |
958 | game.Debris:AddItem(bgmc,1) | |
959 | spawn(function() | |
960 | for i=1,20 do | |
961 | wait() | |
962 | - | local fx=cp(tube,'Toothpaste',Vector3.new(1.2,1.2,1.2),true) |
962 | + | local fx=cp(tube,'Really red',Vector3.new(1.2,1.2,1.2),true) |
963 | fx.CFrame=righthandle.CFrame*ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90))) | |
964 | local bl=blo(fx) | |
965 | addFx(fx,0.07,'destroy',function() bl.Scale=bl.Scale+Vector3.new(.1,.1,.1) fx.Transparency=fx.Transparency+0.07 end) | |
966 | end | |
967 | end) | |
968 | wait(1) | |
969 | bg=true | |
970 | local a=addToCList('diamond_connect','v') | |
971 | Tween(rj,cfn()*ang(0,mr(-90),0),0.2) | |
972 | Tween(rw,cfn()*ang(0,0,mr(-90)),0.2) | |
973 | Tween(lw,cfn()*ang(0,mr(5),mr(20)),0.2) | |
974 | repeat wait(0.1) | |
975 | local d=depleteMana(-10) | |
976 | if d then | |
977 | local bgmc=bigmagic:clone() | |
978 | bgmc.Parent=ch.Head | |
979 | bgmc.Volume=1 | |
980 | bgmc:Play() | |
981 | - | local crn=cp(tube,'Toothpaste',Vector3.new(1,1,1),true) |
981 | + | local crn=cp(tube,'Really red',Vector3.new(1,1,1),true) |
982 | crn.CFrame=tor.CFrame*cfn(0,-2.5,0) | |
983 | local ms=newSpm(crn) | |
984 | ms.TextureId=rbx..'132155326' | |
985 | ms.MeshId=rbx..lib.crown | |
986 | ms.VertexColor=Vector3.new(0,0,0) | |
987 | ms.Scale=Vector3.new(1.5,1,1.5) | |
988 | addFx(crn,0.07,'destroy',function() crn.Transparency=crn.Transparency+0.07 ms.Scale=ms.Scale+Vector3.new(0.3,0,0.3) end) | |
989 | diamondproj:Play() | |
990 | - | local dia=cp(tube,'Toothpaste',Vector3.new(1,1,1)) |
990 | + | local dia=cp(tube,'Really red',Vector3.new(1,1,1)) |
991 | local ran=math.random(2) | |
992 | if ran==1 then | |
993 | - | dia.BrickColor=BrickColor.new('Institutional white') |
993 | + | dia.BrickColor=BrickColor.new('Really black') |
994 | end | |
995 | local dmm=newSpm(dia) | |
996 | dmm.Scale=Vector3.new(0.5,1,0.5) | |
997 | dmm.MeshId=rbx..lib.diamond | |
998 | dia.CFrame=righthandle.CFrame | |
999 | local sw=dia | |
1000 | local vel=int('BodyVelocity',dia) | |
1001 | sw.CFrame=CFrame.new(righthandle.CFrame.p, Vector3.new(m.Hit.p.X,m.Hit.p.Y,m.Hit.p.Z))*ang(mr(math.random(-math.random(5),math.random(5))),mr(math.random(-math.random(5),math.random(5))),mr(math.random(-math.random(5),math.random(5))))--*ang(mr(90),0,0) | |
1002 | vel.MaxForce=Vector3.new(math.huge,math.huge,math.huge) | |
1003 | vel.Velocity=sw.CFrame.lookVector*152 | |
1004 | sw.CFrame=sw.CFrame*ang(mr(90),0,0) | |
1005 | game.Debris:AddItem(sw,2) | |
1006 | local dmgdealt=false | |
1007 | local nct=sw.Touched:connect(function(part) | |
1008 | if part.Parent and part.Parent:findFirstChild('Humanoid') and not part:IsDescendantOf(ch) and not dmgdealt then | |
1009 | dealDamage(part.Parent,4.5,5,2,2) | |
1010 | dmgdealt=true | |
1011 | end | |
1012 | if part:IsDescendantOf(ch)==false then | |
1013 | local snd=diamondbreak:clone() | |
1014 | snd.Parent=sw | |
1015 | snd:Play() | |
1016 | vel:Destroy() | |
1017 | sw.Anchored=true | |
1018 | addFx(sw,0.07,'destroy',function() dmm.Scale=dmm.Scale+Vector3.new(0.1,0.1,0.1) dia.Transparency=dia.Transparency+0.07 end) | |
1019 | end | |
1020 | end) | |
1021 | else | |
1022 | a.up=true | |
1023 | end | |
1024 | until a.up==true | |
1025 | animPlaying=false | |
1026 | deb=false | |
1027 | bg=false | |
1028 | canExecuteMoves=true | |
1029 | hum.WalkSpeed=regws | |
1030 | reset() | |
1031 | end,100) | |
1032 | ||
1033 | addMove('Curse','g',0,function() | |
1034 | deb=true | |
1035 | idle=false | |
1036 | animPlaying=true | |
1037 | canRunLeg=true | |
1038 | tweenTable={} | |
1039 | altTweenTable={} | |
1040 | Tween(rj,cfn()*ang(0,mr(-90),0),0.2) | |
1041 | Tween(rw,cfn()*ang(0,0,mr(-90)),0.2) | |
1042 | Tween(lw,cfn()*ang(0,mr(5),mr(20)),0.2) | |
1043 | tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z)) | |
1044 | wait(0.15) | |
1045 | curse:Play() | |
1046 | addCoolDown('Curse') | |
1047 | - | local bullet=cp(tube,'Toothpaste',Vector3.new(1,1,1)) |
1047 | + | local bullet=cp(tube,'Really red',Vector3.new(1,1,1)) |
1048 | bullet.CFrame=CFrame.new(righthandle.CFrame.p, Vector3.new(m.Hit.p.X,m.Hit.p.Y,m.Hit.p.Z)) | |
1049 | bullet.Transparency=1 | |
1050 | local bulletfx=bullet:clone() | |
1051 | bulletfx.Transparency=1 | |
1052 | bulletfx.Parent=bullet | |
1053 | bulletfx.Anchored=true | |
1054 | sphere(bulletfx) | |
1055 | local angle=0 | |
1056 | local lastpoint=bullet.CFrame | |
1057 | spawn(function() | |
1058 | repeat wait(0.06) | |
1059 | - | local cfx=cp(tube,'Toothpaste',Vector3.new(0.4,0.4,0.4),true) |
1059 | + | local cfx=cp(tube,'Really red',Vector3.new(0.4,0.4,0.4),true) |
1060 | cfx.Transparency=1 | |
1061 | - | local rfx=cp(tube,'Toothpaste',Vector3.new(0.4,0.4,0.4),true) |
1061 | + | local rfx=cp(tube,'Really red',Vector3.new(0.4,0.4,0.4),true) |
1062 | rfx.Material='Neon' | |
1063 | local ran=math.random(2) | |
1064 | if ran==1 then | |
1065 | - | rfx.BrickColor=BrickColor.new('Institutional white') |
1065 | + | rfx.BrickColor=BrickColor.new('Really black') |
1066 | end | |
1067 | local bm=int('SpecialMesh',rfx)--blo(rfx) | |
1068 | bm.MeshType='FileMesh' | |
1069 | bm.MeshId=rbx..'9756362' | |
1070 | bm.Scale=Vector3.new(0.3,0.7,0.3) | |
1071 | local angls=ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90))) | |
1072 | addFx(cfx,0.02,'destroy',function() rfx.Transparency=rfx.Transparency+0.02 rfx.CFrame=cfx.CFrame*angls cfx.CFrame=cfx.CFrame*CFrame.new(0,0,0) --[[bm.Scale=bm.Scale+Vector3.new(0.02,0.02,0.02)]] end) | |
1073 | cfx.CFrame=bullet.CFrame*CFrame.new(math.random(-math.random(25/10),math.random(25)/10),0,math.random(-math.random(25)/10,math.random(25)/10)) | |
1074 | rfx.CFrame=cfx.CFrame*angls*CFrame.Angles(math.rad(-90),0,0) | |
1075 | game.Debris:AddItem(cfx,1.1) | |
1076 | game.Debris:AddItem(rfx,1.1) | |
1077 | until bullet.Parent==nil | |
1078 | end) | |
1079 | addMover(bullet,0.8,function() | |
1080 | angle=angle+1 | |
1081 | local angles=CFrame.Angles(0,0,mr(angle)) | |
1082 | bulletfx.CFrame=bullet.CFrame--*angles | |
1083 | --bullet.CFrame=bullet.CFrame*angles | |
1084 | - | local fxp=cp(tube,'Toothpaste',Vector3.new(1,1,1),true) |
1084 | + | local fxp=cp(tube,'Really red',Vector3.new(1,1,1),true) |
1085 | fxp.CFrame=bulletfx.CFrame--*ang(mr(-90),0,0) | |
1086 | local bmesh=int('SpecialMesh',fxp) | |
1087 | bmesh.MeshType='FileMesh' | |
1088 | bmesh.MeshId=rbx..lib.ring | |
1089 | bmesh.Scale=Vector3.new(2,2,2) | |
1090 | addFx(fxp,0.07,'destroy',function() bulletfx.CFrame=bullet.CFrame bmesh.Scale=bmesh.Scale-Vector3.new(0.1,0.1,0) fxp.Transparency=fxp.Transparency+0.07 end) | |
1091 | end) | |
1092 | bullet.Touched:connect(function(p) | |
1093 | if not p:isDescendantOf(ch) then | |
1094 | local thing | |
1095 | local region=CreateRegion3FromLocAndSize(bullet.Position,bullet.Size*2) | |
1096 | for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},50)) do | |
1097 | if v.Parent and v.Parent:findFirstChild'Humanoid' then | |
1098 | thing=v | |
1099 | break | |
1100 | end | |
1101 | end | |
1102 | if thing and thing.Parent then | |
1103 | if thing.Parent:findFirstChild('Head') then | |
1104 | - | displayText(thing.Parent.Head,'Cursed','Toothpaste') |
1104 | + | displayText(thing.Parent.Head,'Cursed','Really red') |
1105 | else | |
1106 | - | displayText(thing,'Cursed','Toothpaste') |
1106 | + | displayText(thing,'Cursed','Really red') |
1107 | end | |
1108 | end | |
1109 | local mgp=cp(tube,'White',Vector3.new(1,1,1),true) | |
1110 | mgp.Transparency=1 | |
1111 | mgp.CFrame=bullet.CFrame | |
1112 | game.Debris:AddItem(mgp,3) | |
1113 | local tsound=glass:clone() | |
1114 | tsound.Volume=2 | |
1115 | tsound.Parent=mgp | |
1116 | tsound:Play() | |
1117 | --local explosound=getSound(142070128) | |
1118 | --explosound.Volume=0.8 | |
1119 | --explosound.Pitch=1.2 | |
1120 | -- explosound.Parent=p | |
1121 | --explosound:Play() | |
1122 | local position=bullet.CFrame | |
1123 | if thing and thing.Parent then | |
1124 | dealDamage(thing.Parent,5,5) | |
1125 | local humin=thing.Parent.Humanoid | |
1126 | spawn(function() | |
1127 | for i=1,10 do | |
1128 | wait(1) | |
1129 | if thing.Parent then | |
1130 | dealDamage(thing.Parent,0.05*humin.MaxHealth,10,1.5,0.5) | |
1131 | end | |
1132 | end | |
1133 | end) | |
1134 | end | |
1135 | - | local blast=cp(tube,"Toothpaste",Vector3.new(2,2,2),true,false) |
1135 | + | local blast=cp(tube,"Really red",Vector3.new(2,2,2),true,false) |
1136 | blast.Material='Neon' | |
1137 | local spm2=blo(blast) | |
1138 | spm2.Name='mesh' | |
1139 | blast.CFrame=CFrame.new(position.X,position.Y,position.Z)*ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90))) | |
1140 | if p.Name=='Torso' or p.Parent and p.Parent:findFirstChild'Torso' then | |
1141 | blast.CFrame=p.Parent.Torso.CFrame*ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90))) | |
1142 | end | |
1143 | for i=1,5 do | |
1144 | local fx=blast:clone() | |
1145 | fx.Parent=tube | |
1146 | fx.CFrame=blast.CFrame*ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90))) | |
1147 | addFx(fx,0.05,"destroy",function() | |
1148 | fx.mesh.Scale=fx.mesh.Scale+Vector3.new(0.1,0.1,0.1) | |
1149 | fx.Transparency=fx.Transparency+0.05 | |
1150 | end) | |
1151 | end | |
1152 | addFx(blast,0.05,"destroy",function() | |
1153 | spm2.Scale=spm2.Scale+Vector3.new(0.1,0.1,0.1) | |
1154 | blast.Transparency=blast.Transparency+0.05 | |
1155 | end) | |
1156 | bullet:Destroy() | |
1157 | bulletfx:Destroy() | |
1158 | end | |
1159 | end) | |
1160 | game.Debris:AddItem(bullet,3) | |
1161 | local bv=int('BodyVelocity',bullet) | |
1162 | bv.MaxForce=Vector3.new(math.huge,math.huge,math.huge) | |
1163 | bv.Velocity=bullet.CFrame.lookVector*150 | |
1164 | wait(0.5) | |
1165 | reset() | |
1166 | deb=false | |
1167 | canRunLeg=false | |
1168 | animPlaying=false | |
1169 | end,100) | |
1170 | ||
1171 | addMove('Rive Beam','e',0,function() | |
1172 | tweenTable={} | |
1173 | animPlaying=true | |
1174 | idle=false | |
1175 | deb=true | |
1176 | local pcf=tor.CFrame | |
1177 | canRunLeg=true | |
1178 | startsound:Play() | |
1179 | chargesound.Looped=true | |
1180 | chargesound:Play() | |
1181 | Tween(rj,cfn()*ang(0,mr(-90),0),0.2) | |
1182 | Tween(rw,cfn()*ang(0,0,mr(-90)),0.2) | |
1183 | Tween(lw,cfn()*ang(0,mr(5),mr(20)),0.2) | |
1184 | bg=true | |
1185 | local a=addToCList('beam_connect','e') | |
1186 | - | local charge=cp(tube,"Toothpaste",Vector3.new(1,1,1)) |
1186 | + | local charge=cp(tube,"Really red",Vector3.new(1,1,1)) |
1187 | charge.Material='Neon' | |
1188 | local spm=int('SpecialMesh',charge) | |
1189 | spm.MeshType='Sphere' | |
1190 | spm.Name='sphere' | |
1191 | weld(ch['Right Arm'],charge,cfn(0,-2,0)) | |
1192 | local up=false | |
1193 | local multiplier=1 | |
1194 | local cn=chargesound.DidLoop:connect(function() | |
1195 | local fx=charge:clone() | |
1196 | fx.Parent=tube | |
1197 | fx.CFrame=charge.CFrame | |
1198 | - | fx.BrickColor=BrickColor.new('Institutional white') |
1198 | + | fx.BrickColor=BrickColor.new('Really black') |
1199 | weld(charge,fx,cfn()) | |
1200 | addFx(fx,0.07,'destroy',function() if fx and fx:findFirstChild'sphere' then fx.sphere.Scale=fx.sphere.Scale+Vector3.new(0.1,0.1,0.1) fx.Transparency=fx.Transparency+0.07 end end) | |
1201 | end) | |
1202 | spawn(function() | |
1203 | repeat wait() if spm.Scale.X<2 then spm.Scale=spm.Scale+Vector3.new(0.05,0.05,0.05) multiplier=multiplier+0.1 end until up==true | |
1204 | end) | |
1205 | waitForUp(a) | |
1206 | cn:Disconnect() | |
1207 | up=true | |
1208 | addCoolDown('Rive Beam') | |
1209 | chargesound:Stop() | |
1210 | if multiplier<3.1 then | |
1211 | endsound:Play() | |
1212 | else | |
1213 | chargedupbeam:Play() | |
1214 | end | |
1215 | - | local ringFx=cp(tube,"Toothpaste",Vector3.new(2,2,2),true,false) |
1215 | + | local ringFx=cp(tube,"Really red",Vector3.new(2,2,2),true,false) |
1216 | ringFx.CFrame=charge.CFrame*ang(mr(-90),0,0) | |
1217 | ringFx.Material='Neon' | |
1218 | local spm=int('SpecialMesh',ringFx) | |
1219 | spm.MeshId=rbx..lib.ring | |
1220 | spm.Scale=Vector3.new(2,2,2) | |
1221 | addFx(ringFx,0.08,"destroy",function() | |
1222 | spm.Scale=spm.Scale+Vector3.new(0.2,0.2,0) | |
1223 | ringFx.Transparency=ringFx.Transparency+0.08 | |
1224 | end) | |
1225 | print(multiplier) | |
1226 | - | local beam=cp(tube,"Toothpaste",Vector3.new(1,1,1),true,false) |
1226 | + | local beam=cp(tube,"Really red",Vector3.new(1,1,1),true,false) |
1227 | if multiplier>=3.1 then | |
1228 | - | beam.BrickColor=BrickColor.new('Institutional white') |
1228 | + | beam.BrickColor=BrickColor.new('Really black') |
1229 | end | |
1230 | local ray = Ray.new(charge.CFrame.p, (mouse.Hit.p - charge.CFrame.p).unit * 300) | |
1231 | local part, position = workspace:FindPartOnRay(ray, ch, false, true) | |
1232 | local distance = (charge.CFrame.p - position).magnitude | |
1233 | beam.Size = Vector3.new(1, 1, distance) | |
1234 | beam.Material='Neon' | |
1235 | beam.CFrame = CFrame.new(charge.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
1236 | - | local blast=cp(tube,"Toothpaste",Vector3.new(2.6*multiplier,2.6*multiplier,2.6*multiplier),true,false) |
1236 | + | local blast=cp(tube,"Really red",Vector3.new(2.6*multiplier,2.6*multiplier,2.6*multiplier),true,false) |
1237 | blast.Material='Neon' | |
1238 | blast.CFrame=CFrame.new(position.X,position.Y,position.Z) | |
1239 | if multiplier>=3.1 then | |
1240 | local blast2=blast:clone() | |
1241 | --blast2.Size=blast.Size-Vector3.new(1,1,1) | |
1242 | blast2.CFrame=blast.CFrame | |
1243 | blast2.Parent=blast | |
1244 | - | blast2.BrickColor=BrickColor.new('Institutional white') |
1244 | + | blast2.BrickColor=BrickColor.new('Really black') |
1245 | local spml=sphere(blast2) | |
1246 | spml.Scale=Vector3.new(0.8,0.8,0.8) | |
1247 | addFx(blast2,0.008,'destroy',function() spml.Scale=spml.Scale+Vector3.new(0.05,0.05,0.05) blast2.Transparency=blast2.Transparency+0.008 end ) | |
1248 | end | |
1249 | local region=CreateRegion3FromLocAndSize(blast.Position,blast.Size*2) | |
1250 | local people={} | |
1251 | for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},100)) do | |
1252 | if v and v.Parent and v.className=='Part' and v.Parent:findFirstChild('Humanoid') then | |
1253 | local can=false | |
1254 | if not v.Parent:findFirstChild('HitDeb') then | |
1255 | can=true | |
1256 | end | |
1257 | if can==true then | |
1258 | local db=Instance.new('StringValue',v.Parent) | |
1259 | db.Name='HitDeb' | |
1260 | game.Debris:AddItem(db,0.5) | |
1261 | local humin=v.Parent.Humanoid | |
1262 | if humin then | |
1263 | local php=humin.Health | |
1264 | dealDamage(humin.Parent,20*multiplier,10,1,0.05) | |
1265 | humin.Sit=true | |
1266 | humin.PlatformStand=true | |
1267 | if humin.Health>=php and humin.MaxHealth~=math.huge then | |
1268 | print('equal') | |
1269 | humin:TakeDamage(20*multiplier) | |
1270 | end | |
1271 | end | |
1272 | end | |
1273 | end | |
1274 | end | |
1275 | local blastsound=getSound(262562443) | |
1276 | blastsound.Parent=blast | |
1277 | blastsound.Volume=5 | |
1278 | blastsound:Play() | |
1279 | blastsound:Stop() | |
1280 | blastsound:Play() | |
1281 | canRunLeg=false | |
1282 | runLeg=false | |
1283 | animPlaying=false | |
1284 | tweenTable={} | |
1285 | local spm2=int('SpecialMesh',blast) | |
1286 | spm2.MeshType='Sphere' | |
1287 | addFx(blast,0.008,"destroy",function() | |
1288 | spm2.Scale=spm2.Scale+Vector3.new(0.05,0.05,0.05) | |
1289 | blast.Transparency=blast.Transparency+0.008 | |
1290 | end) | |
1291 | addFx(beam,0.1,"destroy",function() | |
1292 | beam.Transparency=beam.Transparency+0.1 | |
1293 | end) | |
1294 | addFx(charge,0.1,"destroy",function() | |
1295 | charge.Transparency=charge.Transparency+0.1 | |
1296 | end) | |
1297 | bg=false | |
1298 | run=false | |
1299 | idle=true | |
1300 | reset() | |
1301 | deb=false | |
1302 | end,60) | |
1303 | ||
1304 | addMove('Down Slam','q',0,function() | |
1305 | currentkey=key | |
1306 | deb=true | |
1307 | animPlaying=true | |
1308 | altTweenTable={} | |
1309 | tweenTable={} | |
1310 | local rv=tor.CFrame.upVector | |
1311 | local bv=int('BodyVelocity',tor) | |
1312 | bv.MaxForce=Vector3.new(math.huge,math.huge,math.huge) | |
1313 | bv.Velocity=rv*-150 | |
1314 | rushsound:Play() | |
1315 | Tween(rj,cfn()*ang(mr(180),0,0)) | |
1316 | Tween(rw,cfn()*ang(mr(-180),0,0)) | |
1317 | Tween(lw,cfn()*ang(mr(-180),0,0)) | |
1318 | addCoolDown('Down Slam',4) | |
1319 | spawn(function() | |
1320 | repeat | |
1321 | wait() | |
1322 | - | local cfx=cp(tube,'Toothpaste',Vector3.new(6,6,6),true,false) |
1322 | + | local cfx=cp(tube,'Really red',Vector3.new(6,6,6),true,false) |
1323 | local ran=math.random(2) | |
1324 | if ran==1 then | |
1325 | - | cfx.BrickColor=BrickColor.new('Institutional white') |
1325 | + | cfx.BrickColor=BrickColor.new('Really black') |
1326 | cfx.Material='Neon' | |
1327 | end | |
1328 | cfx.CFrame=tor.CFrame*CFrame.Angles(math.rad(math.random(90)),math.rad(math.random(90)),0) | |
1329 | local b=blo(cfx) | |
1330 | addFx(cfx,0.05,'destroy',function() | |
1331 | cfx.Transparency=cfx.Transparency+0.05 | |
1332 | b.Scale=b.Scale+Vector3.new(0.1,0.1,0.1) | |
1333 | end) | |
1334 | until Vector3.new(0,tor.Velocity.Y,0).magnitude<2 | |
1335 | end) | |
1336 | wait() | |
1337 | bv:Destroy() | |
1338 | multiplier=1 | |
1339 | repeat wait() until Vector3.new(0,tor.Velocity.Y,0).magnitude<2 | |
1340 | local bhit,pos=FindGround(cn(tor.CFrame.p),ch) | |
1341 | - | local blast=cp(tube,"Toothpaste",Vector3.new(10,10,10),true,false) |
1341 | + | local blast=cp(tube,"Really red",Vector3.new(10,10,10),true,false) |
1342 | blast.CFrame=pos | |
1343 | local region=CreateRegion3FromLocAndSize(blast.Position,blast.Size*3) | |
1344 | local people={} | |
1345 | for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},100)) do | |
1346 | if v and v.Parent and v.className=='Part' and v.Parent:findFirstChild('Humanoid') then | |
1347 | local can=false | |
1348 | if not v.Parent:findFirstChild('HitDeb') then | |
1349 | can=true | |
1350 | end | |
1351 | if can==true then | |
1352 | local db=Instance.new('StringValue',v.Parent) | |
1353 | db.Name='HitDeb' | |
1354 | game.Debris:AddItem(db,0.5) | |
1355 | local humin=v.Parent.Humanoid | |
1356 | if humin then | |
1357 | local php=humin.Health | |
1358 | dealDamage(humin.Parent,20*multiplier,10) | |
1359 | humin.Sit=true | |
1360 | humin.PlatformStand=true | |
1361 | if humin.Health>=php and humin.MaxHealth~=math.huge then | |
1362 | print('equal') | |
1363 | humin:TakeDamage(20*multiplier) | |
1364 | end | |
1365 | end | |
1366 | end | |
1367 | end | |
1368 | end | |
1369 | local sp=sphere(blast) | |
1370 | blast.Material='Neon' | |
1371 | landsound:Play() | |
1372 | addFx(blast,0.02,'destroy', | |
1373 | function() | |
1374 | sp.Scale=sp.Scale+Vector3.new(0.1,0.1,0.1) | |
1375 | blast.Transparency=blast.Transparency+0.02 | |
1376 | end) | |
1377 | animPlaying=false | |
1378 | deb=false | |
1379 | end,40) | |
1380 | ||
1381 | addMove('Aerial Sword','r',0,function() | |
1382 | deb=true | |
1383 | animPlaying=true | |
1384 | tweenTable={} | |
1385 | altTweenTable={} | |
1386 | canExecuteMoves=false | |
1387 | idle=false | |
1388 | run=false | |
1389 | aerialcharge:Play() | |
1390 | Tween(rw,cfn()*ang(mr(-90),0,0)) | |
1391 | local bp | |
1392 | local bgg | |
1393 | local a=addToCList('Aerial Sword','r') | |
1394 | local still=true | |
1395 | bp=int('BodyPosition',tor) | |
1396 | bp.MaxForce=Vector3.new(math.huge,math.huge,math.huge) | |
1397 | bp.Position=tor.Position | |
1398 | - | local sphr=cp(tube,'Toothpaste',Vector3.new(8,8,8),true) |
1398 | + | local sphr=cp(tube,'Really red',Vector3.new(8,8,8),true) |
1399 | sphr.Transparency=1 | |
1400 | sphr.Material='Neon' | |
1401 | local spho=sphere(sphr) | |
1402 | spho.Name='spho' | |
1403 | spho.Scale=Vector3.new(0,0,0) | |
1404 | sphr.CFrame=tor.CFrame | |
1405 | addFx(sphr,0.07,nil,function() spho.Scale=spho.Scale+Vector3.new(0.1,0.1,0.1) sphr.Transparency=sphr.Transparency-0.07 end) | |
1406 | Delay(6,function() | |
1407 | if not a.up then | |
1408 | a.up=true | |
1409 | end | |
1410 | end) | |
1411 | repeat wait(0.3) | |
1412 | local b=depleteMana(-35) | |
1413 | if b then | |
1414 | swsound:Play() | |
1415 | local fx=sphr:clone() | |
1416 | fx.Parent=tube | |
1417 | fx.CFrame=sphr.CFrame | |
1418 | - | fx.BrickColor=BrickColor.new('Institutional white') |
1418 | + | fx.BrickColor=BrickColor.new('Really black') |
1419 | addFx(fx,0.07,'destroy',function() fx.spho.Scale=fx.spho.Scale+Vector3.new(0.1,0.1,0.1) fx.Transparency=fx.Transparency+0.07 end) | |
1420 | local sw=int('Part') | |
1421 | game.Debris:AddItem(sw,6) | |
1422 | sw.CanCollide=false | |
1423 | sw.Anchored=false | |
1424 | - | sw.BrickColor=BrickColor.new('Toothpaste') |
1424 | + | sw.BrickColor=BrickColor.new('Really red') |
1425 | sw.Material='Neon' | |
1426 | sw.Size=Vector3.new(1,1,2) | |
1427 | sw.CFrame=CFrame.new(righthandle.CFrame.p, Vector3.new(m.Hit.p.X,m.Hit.p.Y,m.Hit.p.Z))--*ang(mr(90),0,0) | |
1428 | sw.Parent=tube | |
1429 | sw.Transparency=1 | |
1430 | addFx(sw,0.1,nil,function() sw.Transparency=sw.Transparency-.1 end) | |
1431 | local spm=int("SpecialMesh",sw) | |
1432 | spm.MeshType='FileMesh' | |
1433 | spm.MeshId=rbx..lib.yato | |
1434 | spm.Scale=Vector3.new(0.05,0.05,0.05) | |
1435 | local vel=int('BodyVelocity',sw) | |
1436 | vel.MaxForce=Vector3.new(math.huge,math.huge,math.huge) | |
1437 | vel.Velocity=sw.CFrame.lookVector*152 | |
1438 | sw.CFrame=sw.CFrame*ang(0,mr(180),0) | |
1439 | sw.Touched:connect(function(p) | |
1440 | if p:IsDescendantOf(ch)==false then | |
1441 | sw.Anchored=true | |
1442 | local mgp=cp(tube,'White',Vector3.new(1,1,1),true,false) | |
1443 | mgp.CFrame=sw.CFrame | |
1444 | mgp.Transparency=1 | |
1445 | game.Debris:AddItem(mgp,2) | |
1446 | ssp=swexp:clone() | |
1447 | ssp.Parent=mgp | |
1448 | ssp.Volume=2 | |
1449 | ssp:Play() | |
1450 | - | local blast=cp(tube,'Institutional white',Vector3.new(8,8,8),true) |
1450 | + | local blast=cp(tube,'Really black',Vector3.new(8,8,8),true) |
1451 | blast.Material='Neon' | |
1452 | blast.CFrame=sw.CFrame | |
1453 | local sp=sphere(blast) | |
1454 | addFx(sw,0.05,'destroy',function() sw.Transparency=sw.Transparency+0.05 spm.Scale=spm.Scale+Vector3.new(0.01,0.01,0.01) end) | |
1455 | addFx(blast,0.07,'destroy',function() blast.Transparency=blast.Transparency+0.07 sp.Scale=sp.Scale+Vector3.new(0.1,0.1,0.1) end) | |
1456 | local region=CreateRegion3FromLocAndSize(blast.Position,blast.Size*2) | |
1457 | local people={} | |
1458 | for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},100)) do | |
1459 | if v and v.Parent and v.className=='Part' and v.Parent:findFirstChild('Humanoid') then | |
1460 | local can=false | |
1461 | if not v.Parent:findFirstChild('HitDeb') then | |
1462 | can=true | |
1463 | end | |
1464 | if can==true then | |
1465 | local db=Instance.new('StringValue',v.Parent) | |
1466 | db.Name='HitDeb' | |
1467 | game.Debris:AddItem(db,0.2) | |
1468 | local humin=v.Parent.Humanoid | |
1469 | if humin then | |
1470 | local php=humin.Health | |
1471 | dealDamage(humin.Parent,20+math.random(5),5) | |
1472 | humin.Sit=true | |
1473 | --humin.PlatformStand=true | |
1474 | if humin.Health>=php and humin.MaxHealth~=math.huge then | |
1475 | print('equal') | |
1476 | humin:TakeDamage(20) | |
1477 | end | |
1478 | end | |
1479 | end | |
1480 | end | |
1481 | end | |
1482 | end | |
1483 | end) | |
1484 | else | |
1485 | a.up=true | |
1486 | end | |
1487 | until a.up==true | |
1488 | addCoolDown('Aerial Sword') | |
1489 | addFx(sphr,0.07,'destroy',function() sphr.Transparency=sphr.Transparency+0.07 spho.Scale=spho.Scale+Vector3.new(0.1,0.1,0.1) end) | |
1490 | still=false | |
1491 | spawn(function() | |
1492 | wait(0.3) | |
1493 | canExecuteMoves=true | |
1494 | end) | |
1495 | bp:Destroy() | |
1496 | tor.Anchored=false | |
1497 | deb=false | |
1498 | animPlaying=false | |
1499 | reset() | |
1500 | end,200) | |
1501 | ||
1502 | addMove('Dark Missile','mb1',0.1,function() | |
1503 | tweenTable={} | |
1504 | animPlaying=true | |
1505 | deb=true | |
1506 | canRunLeg=true | |
1507 | tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z)) | |
1508 | bg=true | |
1509 | idle=false | |
1510 | basicsound:Play() | |
1511 | if basicswitch==false then | |
1512 | Tween(rw,cfn()*ang(mr(-100),mr(45),0),0.2) | |
1513 | Tween(rj,cfn()*ang(0,mr(-45),0),0.2) | |
1514 | else | |
1515 | Tween(lw,cfn()*ang(mr(-100),mr(-45),0),0.2) | |
1516 | Tween(rj,cfn()*ang(0,mr(45),0),0.2) | |
1517 | end | |
1518 | wait(0.06) | |
1519 | - | local bullet=cp(tube,"Toothpaste",Vector3.new(1,1,1),false,false) |
1519 | + | local bullet=cp(tube,"Really red",Vector3.new(1,1,1),false,false) |
1520 | bullet.Transparency=1 | |
1521 | if basicswitch==false then | |
1522 | bullet.CFrame=righthandle.CFrame | |
1523 | bullet.CFrame=CFrame.new(righthandle.CFrame.p, Vector3.new(m.Hit.p.X,m.Hit.p.Y,m.Hit.p.Z)) | |
1524 | basicswitch=true | |
1525 | else | |
1526 | bullet.CFrame=lefthandle.CFrame | |
1527 | bullet.CFrame=CFrame.new(lefthandle.CFrame.p, Vector3.new(m.Hit.p.X,m.Hit.p.Y,m.Hit.p.Z)) | |
1528 | basicswitch=false | |
1529 | end | |
1530 | local bv=int('BodyVelocity',bullet) | |
1531 | bv.MaxForce=Vector3.new(math.huge,math.huge,math.huge) | |
1532 | bv.Velocity=bullet.CFrame.lookVector*150 | |
1533 | - | local bulletfx=cp(tube,"Institutional white",Vector3.new(1,1,1),true,false) |
1533 | + | local bulletfx=cp(tube,"Really black",Vector3.new(1,1,1),true,false) |
1534 | if basicswitch==false then | |
1535 | - | bulletfx.BrickColor=BrickColor.new('Toothpaste') |
1535 | + | bulletfx.BrickColor=BrickColor.new('Really red') |
1536 | end | |
1537 | bulletfx.CFrame=bullet.CFrame | |
1538 | bulletfx.Material='Neon' | |
1539 | sphere(bulletfx) | |
1540 | local angle=0 | |
1541 | local bfsd=basicswitch | |
1542 | local lastpoint=bulletfx.CFrame | |
1543 | addCoolDown('Dark Missile') | |
1544 | addMover(bullet,0.8,function() | |
1545 | angle=angle+1 | |
1546 | local angles=CFrame.Angles(math.rad(angle),mr(angle),0) | |
1547 | bulletfx.CFrame=bullet.CFrame | |
1548 | bulletfx.CFrame=bulletfx.CFrame*angles | |
1549 | if (lastpoint.p-bulletfx.CFrame.p).magnitude>1 then | |
1550 | - | local line=drawLine(lastpoint.p,bulletfx.CFrame.p,'Toothpaste',angles) |
1550 | + | local line=drawLine(lastpoint.p,bulletfx.CFrame.p,'Really red',angles) |
1551 | --local ran=math.random(2) | |
1552 | if bfsd==true then | |
1553 | - | line.BrickColor=BrickColor.new('Institutional white') |
1553 | + | line.BrickColor=BrickColor.new('Really black') |
1554 | end | |
1555 | addFx(line,0.05,'destroy',function() | |
1556 | line.blok.Scale=line.blok.Scale+Vector3.new(0.05,0,0.05) | |
1557 | line.Transparency=line.Transparency+0.05 | |
1558 | end) | |
1559 | lastpoint=bulletfx.CFrame | |
1560 | end | |
1561 | end) | |
1562 | bullet.Touched:connect(function(p) | |
1563 | if not p:isDescendantOf(ch) then | |
1564 | local thing | |
1565 | local region=CreateRegion3FromLocAndSize(bullet.Position,bullet.Size*2) | |
1566 | for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},50)) do | |
1567 | if v.Parent and v.Parent:findFirstChild'Humanoid' then | |
1568 | thing=v | |
1569 | break | |
1570 | end | |
1571 | end | |
1572 | local explosound=getSound(142070128) | |
1573 | explosound.Volume=0.8 | |
1574 | explosound.Pitch=1.2 | |
1575 | explosound.Parent=p | |
1576 | explosound:Play() | |
1577 | local position=bullet.CFrame | |
1578 | if thing and thing.Parent then | |
1579 | dealDamage(thing.Parent,20,5) | |
1580 | end | |
1581 | - | local blast=cp(tube,"Toothpaste",Vector3.new(2,2,2),true,false) |
1581 | + | local blast=cp(tube,"Really red",Vector3.new(2,2,2),true,false) |
1582 | if bfsd==false then | |
1583 | - | blast.BrickColor=BrickColor.new('Institutional white') |
1583 | + | blast.BrickColor=BrickColor.new('Really black') |
1584 | end | |
1585 | blast.Material='Neon' | |
1586 | local spm2=sphere(blast) | |
1587 | blast.CFrame=CFrame.new(position.X,position.Y,position.Z) | |
1588 | addFx(blast,0.05,"destroy",function() | |
1589 | spm2.Scale=spm2.Scale+Vector3.new(0.1,0.1,0.1) | |
1590 | blast.Transparency=blast.Transparency+0.05 | |
1591 | end) | |
1592 | bullet:Destroy() | |
1593 | bulletfx:Destroy() | |
1594 | end | |
1595 | end) | |
1596 | game.Debris:AddItem(bullet,2.5) | |
1597 | game.Debris:AddItem(bulletfx,2.5) | |
1598 | wait(0.1) | |
1599 | idle=true | |
1600 | reset() | |
1601 | deb=false | |
1602 | animPlaying=false | |
1603 | bg=false | |
1604 | end,20) | |
1605 | ||
1606 | ||
1607 | ||
1608 | ||
1609 | local mult=2 | |
1610 | ||
1611 | ||
1612 | initializeBigJoints=function() | |
1613 | destroyJoints() | |
1614 | rabr = cp(tube,'White',Vector3.new(1,1,1),false,false) rabr.Transparency = 1 rabr.Name='Locker' | |
1615 | rabr.Position = torso.Position | |
1616 | rw = Weld(rabr,torso,1.5*mult,.5*mult,0,0,0,0) rw.Parent = tube rw.Name = 'rw' | |
1617 | w = Instance.new("Weld",tube) | |
1618 | w.Part0,w.Part1 = ch['Right Arm'],rabr | |
1619 | w.C1 = CFrame.new(0,-.5,0) | |
1620 | labr = cp(tube,'White',Vector3.new(1,1,1),false,false) labr.Transparency = 1 labr.Name='Locker' | |
1621 | labr.Position = torso.Position | |
1622 | lw = Weld(labr,torso,-1.5*mult,.5*mult,0,0,0,0) lw.Parent = tube lw.Name = 'lw' | |
1623 | ww = Instance.new("Weld",tube) | |
1624 | ww.Part0,ww.Part1 = ch['Left Arm'],labr | |
1625 | ww.C1 = CFrame.new(0,-.5,0) | |
1626 | rlabr = cp(tube,'White',Vector3.new(1,1,1),false,false) rlabr.Transparency = 1 rlabr.Name='Locker' | |
1627 | rlabr.Position = torso.Position | |
1628 | rlw = Weld(rlabr,torso,0.5*mult,-1.7*mult,0,0,0,0) rlw.Parent = tube rlw.Name = 'rlw' | |
1629 | wl = Instance.new("Weld",tube) | |
1630 | wl.Part0,wl.Part1 = ch['Right Leg'],rlabr | |
1631 | wl.C1 = CFrame.new(0,-.5,0) | |
1632 | llabr = cp(tube,'White',Vector3.new(1,1,1),false,false) llabr.Transparency = 1 llabr.Name='Locker' | |
1633 | llabr.Position = torso.Position | |
1634 | llw = Weld(llabr,torso,-0.5*mult,-1.7*mult,0,0,0,0) llw.Parent = tube llw.Name = 'llw' | |
1635 | wwl = Instance.new("Weld",tube) | |
1636 | wwl.Part0,wwl.Part1 = ch['Left Leg'],llabr | |
1637 | wwl.C1 = CFrame.new(0,-.5,0) | |
1638 | nk = cp(tube,'White',Vector3.new(1,1,1),false,false) nk.Transparency = 1 nk.Name='Locker' | |
1639 | nk.Position = torso.Position | |
1640 | neck = Weld(nk,torso,0,2,0,0,0,0) neck.Parent = tube neck.Name = 'neck' | |
1641 | www = Instance.new("Weld",tube) | |
1642 | www.Part0,www.Part1 = ch['Head'],nk | |
1643 | www.C1 = CFrame.new(0,-.5,0) | |
1644 | table.insert(alljoints,rabr) | |
1645 | table.insert(alljoints,labr) | |
1646 | table.insert(alljoints,rw) | |
1647 | table.insert(alljoints,lw) | |
1648 | table.insert(alljoints,w) | |
1649 | table.insert(alljoints,ww) | |
1650 | table.insert(alljoints,rlabr) | |
1651 | table.insert(alljoints,llabr) | |
1652 | table.insert(alljoints,rlw) | |
1653 | table.insert(alljoints,llw) | |
1654 | table.insert(alljoints,wl) | |
1655 | table.insert(alljoints,wwl) | |
1656 | table.insert(alljoints,nk) | |
1657 | table.insert(alljoints,neck) | |
1658 | table.insert(alljoints,www) | |
1659 | end | |
1660 | ||
1661 | addMove('Ascend','l',1,function() | |
1662 | if not ascension then | |
1663 | ascension=true | |
1664 | ch['Right Arm'].Size=ch['Right Arm'].Size*mult | |
1665 | ch['Left Arm'].Size=ch['Left Arm'].Size*mult | |
1666 | tor.Size=tor.Size*mult | |
1667 | ch.HumanoidRootPart.Size=ch.HumanoidRootPart.Size*mult | |
1668 | ch['Right Leg'].Size=ch['Right Leg'].Size*mult | |
1669 | ch['Left Leg'].Size=ch['Left Leg'].Size*mult | |
1670 | ch['Head'].Size=ch['Head'].Size*mult | |
1671 | - | ch['Right Leg'].BrickColor=BrickColor.new('Toothpaste') |
1671 | + | ch['Right Leg'].BrickColor=BrickColor.new('Really red') |
1672 | - | ch['Body Colors'].RightLegColor=BrickColor.new('Toothpaste') |
1672 | + | ch['Body Colors'].RightLegColor=BrickColor.new('Really red') |
1673 | hat:Destroy() | |
1674 | testhalf:Destroy() | |
1675 | rarmdiamond:Destroy() | |
1676 | cooldiamond:Destroy() | |
1677 | cooldiamond2:Destroy() | |
1678 | cooldiamond3:Destroy() | |
1679 | -- hum.HipHeight=hum.HipHeight*mult | |
1680 | initializeBigJoints() | |
1681 | rj:Destroy() | |
1682 | rj=weld(ch.HumanoidRootPart,tor,cfn()) | |
1683 | --parts | |
1684 | --[[ | |
1685 | - | local rsold=cp(tube,'Institutional white',Vector3.new(1,0.4,1)*mult) |
1685 | + | local rsold=cp(tube,'Really black',Vector3.new(1,0.4,1)*mult) |
1686 | rsold.Material='Granite' | |
1687 | local rsb=blo(rsold) | |
1688 | rsb.Scale=Vector3.new(1.05,1.05,1.05) | |
1689 | weld(ch['Right Arm'],rsold,cfn(0,0.8*mult,0)) | |
1690 | - | local lsold=cp(tube,'Institutional white',Vector3.new(1,0.4,1)*mult) |
1690 | + | local lsold=cp(tube,'Really black',Vector3.new(1,0.4,1)*mult) |
1691 | lsold.Material='Granite' | |
1692 | local lsb=blo(lsold) | |
1693 | lsb.Scale=Vector3.new(1.05,1.05,1.05) | |
1694 | weld(ch['Left Arm'],lsold,cfn(0,0.8*mult,0)) | |
1695 | ||
1696 | - | local rhand=cp(tube,'Institutional white',Vector3.new(1,1,1)*mult) |
1696 | + | local rhand=cp(tube,'Really black',Vector3.new(1,1,1)*mult) |
1697 | rhand.Material='Granite' | |
1698 | local rhb=blo(rhand) | |
1699 | rhb.Scale=Vector3.new(1.1,1.1,1.1) | |
1700 | weld(ch['Right Arm'],rhand,cfn(0,-1,0)) | |
1701 | ||
1702 | ||
1703 | - | local lhand=cp(tube,'Institutional white',Vector3.new(1,1,1)*mult) |
1703 | + | local lhand=cp(tube,'Really black',Vector3.new(1,1,1)*mult) |
1704 | lhand.Material='Granite' | |
1705 | local rhb=blo(lhand) | |
1706 | rhb.Scale=Vector3.new(1.1,1.1,1.1) | |
1707 | weld(ch['Left Arm'],lhand,cfn(0,-1,0)) | |
1708 | ||
1709 | - | local lhand1=cp(tube,'Toothpaste',Vector3.new(0.2,0.7,0.2)*mult) |
1709 | + | local lhand1=cp(tube,'Really red',Vector3.new(0.2,0.7,0.2)*mult) |
1710 | weld(lhand,lhand1,cfn(-1,0,0)) | |
1711 | lhand1.Material='Granite' | |
1712 | ||
1713 | - | local lstripe1=cp(tube,'Institutional white',Vector3.new(1,0.8,0.3)*mult) |
1713 | + | local lstripe1=cp(tube,'Really black',Vector3.new(1,0.8,0.3)*mult) |
1714 | lstripe1.Material='Granite' | |
1715 | blo(lstripe1).Scale=Vector3.new(1.02,1.1,1.02) | |
1716 | weld(ch['Left Arm'],lstripe1,cfn(0,0.3,0)) | |
1717 | ||
1718 | - | local rstripe1=cp(tube,'Institutional white',Vector3.new(1,0.8,0.3)*mult) |
1718 | + | local rstripe1=cp(tube,'Really black',Vector3.new(1,0.8,0.3)*mult) |
1719 | rstripe1.Material='Granite' | |
1720 | blo(rstripe1).Scale=Vector3.new(1.02,1.1,1.02) | |
1721 | weld(ch['Right Arm'],rstripe1,cfn(0,0.3,0)) | |
1722 | ||
1723 | - | local testdiag=cp(tube,'Institutional white',Vector3.new(0.3,2.4,1)*mult) |
1723 | + | local testdiag=cp(tube,'Really black',Vector3.new(0.3,2.4,1)*mult) |
1724 | testdiag.Material='Granite' | |
1725 | blo(testdiag).Scale=Vector3.new(1.1,1.1,1.05) | |
1726 | weld(tor,testdiag,(cfn(0,0,0))*ang(0,0,mr(45))) | |
1727 | ]] | |
1728 | - | local that=cp(tube,'Institutional white',Vector3.new(1,1,1)*mult) |
1728 | + | local that=cp(tube,'Really black',Vector3.new(1,1,1)*mult) |
1729 | local spm=newSpm(that) | |
1730 | spm.MeshId=rbx..lib.cone | |
1731 | spm.Scale=Vector3.new(3,1.5,3) | |
1732 | weld(ch.Head,that,cfn(0,1,0)) | |
1733 | --[[ | |
1734 | - | local belt=cp(tube,'Institutional white',Vector3.new(2,0.3,1)*mult) |
1734 | + | local belt=cp(tube,'Really black',Vector3.new(2,0.3,1)*mult) |
1735 | belt.Material='Granite' | |
1736 | blo(belt).Scale=Vector3.new(1.03,1.1,1.1) | |
1737 | weld(tor,belt,cfn(0,-2,0)) | |
1738 | ]] | |
1739 | ||
1740 | ||
1741 | New = function(Object, Parent, Name, Data) | |
1742 | local Object = Instance.new(Object) | |
1743 | for Index, Value in pairs(Data or {}) do | |
1744 | Object[Index] = Value | |
1745 | end | |
1746 | Object.Parent = Parent | |
1747 | Object.Name = Name | |
1748 | return Object | |
1749 | end | |
1750 | ||
1751 | chest = New("Model",tube,"chest",{}) | |
1752 | - | redwedgehalf = New("WedgePart",chest,"redwedgehalf",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(2.09999919, 4.00000048, 4.05000019),CFrame = CFrame.new(14.0277252, 5.99809361, 24.9995251, -2.61053401e-011, -1.77635684e-015, -0.999506414, 2.22681209e-019, 0.999753237, -3.55271368e-015, 0.999753237, -2.00206143e-020, -1.76481052e-011),Color = Color3.new(0.768628, 0.156863, 0.109804),}) |
1752 | + | redwedgehalf = New("WedgePart",chest,"redwedgehalf",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(2.09999919, 4.00000048, 4.05000019),CFrame = CFrame.new(14.0277252, 5.99809361, 24.9995251, -2.61053401e-011, -1.77635684e-015, -0.999506414, 2.22681209e-019, 0.999753237, -3.55271368e-015, 0.999753237, -2.00206143e-020, -1.76481052e-011),Color = Color3.new(0.768628, 0.156863, 0.109804),}) |
1753 | - | chestdiamond = New("Part",chest,"chestdiamond",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Slate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(2, 1.64999986, 0.200000003),CFrame = CFrame.new(15.0479803, 7.07389736, 26.0992107, 0.999506414, -2.97996383e-008, -2.97928651e-008, 2.98069978e-008, 0.999753237, -1.60258799e-019, 2.97917584e-008, -8.87859141e-016, 0.999753237),BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.768628, 0.156863, 0.109804),}) |
1753 | + | chestdiamond = New("Part",chest,"chestdiamond",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.Slate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(2, 1.64999986, 0.200000003),CFrame = CFrame.new(15.0479803, 7.07389736, 26.0992107, 0.999506414, -2.97996383e-008, -2.97928651e-008, 2.98069978e-008, 0.999753237, -1.60258799e-019, 2.97917584e-008, -8.87859141e-016, 0.999753237),BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.768628, 0.156863, 0.109804),}) |
1754 | Mesh = New("SpecialMesh",chestdiamond,"Mesh",{Scale = Vector3.new(1, 1, 0.300000012),MeshId = "http://www.roblox.com/Asset/?id=9756362",MeshType = Enum.MeshType.FileMesh,}) | |
1755 | mot = New("Motor",chestdiamond,"mot",{Part0 = chestdiamond,Part1 = redwedgehalf,C0 = CFrame.new(0, 0, 0, 1, 2.98143554e-008, 2.98075769e-008, -2.98143554e-008, 1, -8.88533432e-016, -2.98075769e-008, -1.60245396e-019, 1),C1 = CFrame.new(1.09995651, 1.07606936, -1.02075863, -2.61182326e-011, 2.22736242e-019, 1, -1.77723415e-015, 1, -2.22736294e-019, -1, -1.77723437e-015, -2.61182343e-011),}) | |
1756 | - | blackwedgehalf = New("WedgePart",chest,"blackwedgehalf",{BrickColor = BrickColor.new("Toothpaste"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(2.24999905, 1.00000048, 4.05000019),CFrame = CFrame.new(14.0216274, 4.49221802, 24.9745178, -8.40483239e-011, 1.0658141e-014, -0.999506414, 1.6280148e-018, 0.999753177, 7.10542736e-015, 0.999753177, -1.42536268e-018, -7.56052998e-011),Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
1756 | + | blackwedgehalf = New("WedgePart",chest,"blackwedgehalf",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(2.24999905, 1.00000048, 4.05000019),CFrame = CFrame.new(14.0216274, 4.49221802, 24.9745178, -8.40483239e-011, 1.0658141e-014, -0.999506414, 1.6280148e-018, 0.999753177, 7.10542736e-015, 0.999753177, -1.42536268e-018, -7.56052998e-011),Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
1757 | mot = New("Motor",blackwedgehalf,"mot",{Part0 = blackwedgehalf,Part1 = redwedgehalf,C0 = CFrame.new(0, 0, 0, -8.40898323e-011, 1.62841702e-018, 1, 1.06634045e-014, 1, -1.62841608e-018, -1, 1.06634045e-014, -8.40898323e-011),C1 = CFrame.new(-0.0250015259, -1.50550413, 0.00609493256, -2.61182326e-011, 2.22736242e-019, 1, -1.77723415e-015, 1, -2.22736294e-019, -1, -1.77723437e-015, -2.61182343e-011),}) | |
1758 | -- blo(tor) | |
1759 | weld(tor,redwedgehalf,cfn()*ang(0,mr(90),0)) | |
1760 | - | ch['Right Arm'].BrickColor=BrickColor.new('Institutional white') |
1760 | + | ch['Right Arm'].BrickColor=BrickColor.new('Really black') |
1761 | - | ch['Left Leg'].BrickColor=BrickColor.new('Institutional white') |
1761 | + | ch['Left Leg'].BrickColor=BrickColor.new('Really black') |
1762 | - | ch['Right Leg'].BrickColor=BrickColor.new('Institutional white') |
1762 | + | ch['Right Leg'].BrickColor=BrickColor.new('Really black') |
1763 | - | ch['Body Colors'].RightArmColor=BrickColor.new('Institutional white') |
1763 | + | ch['Body Colors'].RightArmColor=BrickColor.new('Really black') |
1764 | - | ch['Body Colors'].LeftLegColor=BrickColor.new('Institutional white') |
1764 | + | ch['Body Colors'].LeftLegColor=BrickColor.new('Really black') |
1765 | - | ch['Body Colors'].RightLegColor=BrickColor.new('Institutional white') |
1765 | + | ch['Body Colors'].RightLegColor=BrickColor.new('Really black') |
1766 | - | pantl = New("Part",tube,"pantl",{BrickColor = BrickColor.new("Toothpaste"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(2.04999995, 3.25, 2.0999999),CFrame = CFrame.new(12.9745045, 2.42501593, 25.0000038, 1, -2.98099572e-008, -2.98055873e-008, 2.98099572e-008, 1, -1.05248658e-019, 2.98055838e-008, -8.88397907e-016, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
1766 | + | pantl = New("Part",tube,"pantl",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(2.04999995, 3.25, 2.0999999),CFrame = CFrame.new(12.9745045, 2.42501593, 25.0000038, 1, -2.98099572e-008, -2.98055873e-008, 2.98099572e-008, 1, -1.05248658e-019, 2.98055838e-008, -8.88397907e-016, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
1767 | weld(ch['Left Leg'],pantl,cfn(0,0.4,0)) | |
1768 | - | pantl = New("Part",tube,"pantl",{BrickColor = BrickColor.new("Toothpaste"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(2.04999995, 3.25, 2.0999999),CFrame = CFrame.new(12.9745045, 2.42501593, 25.0000038, 1, -2.98099572e-008, -2.98055873e-008, 2.98099572e-008, 1, -1.05248658e-019, 2.98055838e-008, -8.88397907e-016, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
1768 | + | pantl = New("Part",tube,"pantl",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(2.04999995, 3.25, 2.0999999),CFrame = CFrame.new(12.9745045, 2.42501593, 25.0000038, 1, -2.98099572e-008, -2.98055873e-008, 2.98099572e-008, 1, -1.05248658e-019, 2.98055838e-008, -8.88397907e-016, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
1769 | weld(ch['Right Leg'],pantl,cfn(0,0.4,0)) | |
1770 | blo(ch['Right Arm']) | |
1771 | - | --local rab=cp(tube,'Institutional white',ch['Right Arm'].Size) |
1771 | + | --local rab=cp(tube,'Really black',ch['Right Arm'].Size) |
1772 | --blo(rab) | |
1773 | --weld(ch['Right Arm'],rab,cfn()) | |
1774 | --ch['Left Leg'].Transparency=1 | |
1775 | --ch['Right Leg'].Transparency=1 | |
1776 | --[[ | |
1777 | ||
1778 | - | local lpant=cp(tube,'Institutional white',Vector3.new(1,1,1)*mult) |
1778 | + | local lpant=cp(tube,'Really black',Vector3.new(1,1,1)*mult) |
1779 | blo(lpant).Scale=Vector3.new(1.02,1.23,1.02) | |
1780 | lpant.Material='Granite' | |
1781 | weld(ch['Left Leg'],lpant,cfn(0,0.8,0)) | |
1782 | ||
1783 | - | local rpant=cp(tube,'Institutional white',Vector3.new(1,1,1)*mult) |
1783 | + | local rpant=cp(tube,'Really black',Vector3.new(1,1,1)*mult) |
1784 | blo(rpant).Scale=Vector3.new(1.02,1.23,1.02) | |
1785 | rpant.Material='Granite' | |
1786 | weld(ch['Right Leg'],rpant,cfn(0,0.8,0)) | |
1787 | ||
1788 | ||
1789 | ]] | |
1790 | --head | |
1791 | --[[ | |
1792 | - | local hb1=cp(tube,'Institutional white',Vector3.new(0.3,1,1)*mult) |
1792 | + | local hb1=cp(tube,'Really black',Vector3.new(0.3,1,1)*mult) |
1793 | hb1.Material='Granite' | |
1794 | blo(hb1).Scale=Vector3.new(0.95,1.25,1.2) | |
1795 | weld(ch.Head,hb1,cfn(0,0.05,0)) | |
1796 | ||
1797 | - | local chin=cp(tube,'Institutional white',Vector3.new(0.3,1,0.3)*mult) |
1797 | + | local chin=cp(tube,'Really black',Vector3.new(0.3,1,0.3)*mult) |
1798 | chin.Material='Granite' | |
1799 | weld(hb1,chin,cfn(0,-0.75,-1)*ang(mr(45),0,0)) | |
1800 | ||
1801 | - | local backchin=cp(tube,'Institutional white',Vector3.new(0.3,1,0.3)*mult) |
1801 | + | local backchin=cp(tube,'Really black',Vector3.new(0.3,1,0.3)*mult) |
1802 | backchin.Material='Granite' | |
1803 | weld(hb1,backchin,cfn(0,-0.75,1)*ang(mr(-45),0,0)) | |
1804 | - | local cp1=cp(tube,'Institutional white',Vector3.new(0.3,1.7,0.2)*mult) |
1804 | + | local cp1=cp(tube,'Really black',Vector3.new(0.3,1.7,0.2)*mult) |
1805 | cp1.Material='Granite' | |
1806 | weld(hb1,cp1,cfn(0,0,1.8)) | |
1807 | blo(cp1).Scale=Vector3.new(1.05,1,1.05) | |
1808 | ||
1809 | - | local cp2=cp(tube,'Institutional white',Vector3.new(0.3,1.7,0.2)*mult) |
1809 | + | local cp2=cp(tube,'Really black',Vector3.new(0.3,1.7,0.2)*mult) |
1810 | cp2.Material='Granite' | |
1811 | weld(hb1,cp2,cfn(0,0,-1.8)) | |
1812 | blo(cp2).Scale=Vector3.new(1.05,1,1.05) | |
1813 | ||
1814 | - | local top=cp(tube,'Institutional white',Vector3.new(0.3,0.2,2)*mult) |
1814 | + | local top=cp(tube,'Really black',Vector3.new(0.3,0.2,2)*mult) |
1815 | top.Material='Granite' | |
1816 | weld(hb1,top,cfn(0,1.8,0)) | |
1817 | ]] | |
1818 | end | |
1819 | end,1) | |
1820 | ||
1821 | local dumbbox=nil | |
1822 | local dhand=nil | |
1823 | local darknum=1 | |
1824 | ||
1825 | addMove('Dark Slash','r',0,function() | |
1826 | local oldspeed=hum.WalkSpeed | |
1827 | hum.WalkSpeed=32 | |
1828 | local meshd='http://www.roblox.com/asset/?id=12171188' | |
1829 | tweenTable={} | |
1830 | altTweenTable={} | |
1831 | deb=true | |
1832 | animPlaying=true | |
1833 | canRunLeg=true | |
1834 | startsound2:Play() | |
1835 | - | local sp=cp(tube,'Toothpaste',Vector3.new(10,10,10),false,false) |
1835 | + | local sp=cp(tube,'Really red',Vector3.new(10,10,10),false,false) |
1836 | sp.CFrame=tor.CFrame | |
1837 | sp.Transparency=0.5 | |
1838 | local sph=sphere(sp) | |
1839 | addFx(sp,0.07,'destroy',function() sph.Scale=sph.Scale-Vector3.new(0.05,0.05,0.05) sp.Transparency=sp.Transparency+0.035 end) | |
1840 | spawn(function() | |
1841 | for i=1,10 do | |
1842 | wait() | |
1843 | - | local cool1=cp(tube,'Toothpaste',Vector3.new(1.5,1.5,1.5),true) |
1843 | + | local cool1=cp(tube,'Really red',Vector3.new(1.5,1.5,1.5),true) |
1844 | local rnd=math.random(2) | |
1845 | if rnd==1 then | |
1846 | - | cool1.BrickColor=BrickColor.new('Institutional white') |
1846 | + | cool1.BrickColor=BrickColor.new('Really black') |
1847 | cool1.Material='Neon' | |
1848 | end | |
1849 | local ms1=blo(cool1) | |
1850 | cool1.CFrame=righthandle.CFrame*ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90))) | |
1851 | addFx(cool1,0.07,'destroy',function() ms1.Scale=ms1.Scale+Vector3.new(0.08,0.08,0.08) cool1.Transparency=cool1.Transparency+0.07 end) | |
1852 | end | |
1853 | end) | |
1854 | addCoolDown('Dark Slash') | |
1855 | local allahsword=cp(tube,'White',Vector3.new(1,1,1)) | |
1856 | local critmultiplier=2.4 | |
1857 | local spm=int('SpecialMesh',allahsword) | |
1858 | spm.MeshType='FileMesh' | |
1859 | spm.MeshId=meshd | |
1860 | allahsword.Transparency=1 | |
1861 | tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z)) | |
1862 | local tv=Vector3.new(tor.CFrame.lookVector.X,0,tor.CFrame.lookVector.Z)--CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z)).lookVector | |
1863 | - | local col=BrickColor.new("Toothpaste").Color |
1863 | + | local col=BrickColor.new("Really red").Color |
1864 | spm.TextureId=rbx..'132155326' | |
1865 | spm.Name='mesh' | |
1866 | spm.VertexColor=Vector3.new(0,0,0) | |
1867 | spm.Scale=Vector3.new(1,1,1) | |
1868 | addFx(allahsword,0.05,nil,function() allahsword.Transparency=allahsword.Transparency-0.05 end) | |
1869 | weld(ch['Right Arm'],allahsword,cfn(0,-4,-0.5)*ang(mr(110),0,mr(180))) | |
1870 | Tween(rj,cfn()*ang(0,mr(-90),0)) | |
1871 | Tween(rw,cfn(0.5,0.5,0.5)*ang(mr(-55),mr(-35),0)) | |
1872 | Tween(lw,cfn(-0.5,0.5,0.5)*ang(mr(-55),mr(35),0)) | |
1873 | Delay(0.08,function() | |
1874 | local tstvel=int('BodyVelocity',tor) | |
1875 | tstvel.MaxForce=Vector3.new(math.huge,0,math.huge) | |
1876 | tstvel.Velocity=tv*35 | |
1877 | game.Debris:AddItem(tstvel,0.24) | |
1878 | end) | |
1879 | wait(0.22) | |
1880 | local hitbox=cp(tube,'White',Vector3.new(2,12,2)) | |
1881 | hitbox.Transparency=1 | |
1882 | hitbox.CFrame=allahsword.CFrame | |
1883 | dumbbox=hitbox | |
1884 | dumbhand=allahsword | |
1885 | swoosh:Play() | |
1886 | spawn(function() | |
1887 | for i=1,10 do | |
1888 | wait() | |
1889 | local trl=allahsword:clone() | |
1890 | trl.Parent=tube | |
1891 | trl.CFrame=allahsword.CFrame | |
1892 | if trl:findFirstChild('mesh') then | |
1893 | - | -- trl.mesh.VertexColor=Vector3.new(BrickColor.new('Institutional white').Color.r,BrickColor.new('Institutional white').Color.g,BrickColor.new('Institutional white').Color.b) |
1893 | + | -- trl.mesh.VertexColor=Vector3.new(BrickColor.new('Really black').Color.r,BrickColor.new('Really black').Color.g,BrickColor.new('Really black').Color.b) |
1894 | end | |
1895 | addFx(trl,0.07,'destroy',function() trl.Transparency=trl.Transparency+0.07 end) | |
1896 | end | |
1897 | end) | |
1898 | addFx(allahsword,.05,'destroy',function() allahsword.Transparency=allahsword.Transparency+.05 spm.Scale=spm.Scale+Vector3.new(0.1,0.1,0.1) --[[hitbox.CFrame=allahsword.CFrame*ang(mr(-90),0,0)]] end) | |
1899 | hitbox.Touched:connect(function(v) | |
1900 | if v and v.Parent and v.Parent:findFirstChild'Humanoid' and not v:IsDescendantOf(ch) then | |
1901 | --print'touched' | |
1902 | local can=false | |
1903 | if not v.Parent:findFirstChild('HitDeb') then | |
1904 | can=true | |
1905 | end | |
1906 | if can==true then | |
1907 | local sls=getSound(220834020) | |
1908 | sls.Pitch=1+(math.random(3)/10) | |
1909 | sls.Parent=v | |
1910 | sls:Play() | |
1911 | local db=Instance.new('StringValue',v.Parent) | |
1912 | db.Name='HitDeb' | |
1913 | game.Debris:AddItem(db,0.5) | |
1914 | dealDamage(v.Parent,20+math.random(20),2,critmultiplier) | |
1915 | end | |
1916 | end | |
1917 | end) | |
1918 | Tween(rj,cfn(0,0,0)*ang(mr(0),mr(90),0)) | |
1919 | Tween(rw,cfn(0.5,0.8,0)*ang(mr(-80),mr(-35),0)) | |
1920 | Tween(lw,cfn(-0.5,0.8,0)*ang(mr(-90),mr(35),0)) | |
1921 | wait(0.2) | |
1922 | hitbox:Destroy() | |
1923 | hum.WalkSpeed=oldspeed | |
1924 | reset() | |
1925 | animPlaying=false | |
1926 | canRunLeg=false | |
1927 | deb=false | |
1928 | end,80) | |
1929 | ||
1930 | --[[ | |
1931 | addMove('Dark Slash2','r',2,function() | |
1932 | --http://www.roblox.com/asset/?id=12171188 | |
1933 | local oldspeed=hum.WalkSpeed | |
1934 | if oldspeed==0 then | |
1935 | oldspeed=16 | |
1936 | end | |
1937 | hum.WalkSpeed=32 | |
1938 | local meshd='http://www.roblox.com/asset/?id=12171188' | |
1939 | tweenTable={} | |
1940 | altTweenTable={} | |
1941 | deb=true | |
1942 | idle=false | |
1943 | animPlaying=true | |
1944 | canRunLeg=true | |
1945 | tweenTable={} | |
1946 | altTweenTable={} | |
1947 | startsound3:Play() | |
1948 | Tween(rj,cfn(),1) | |
1949 | tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z)) | |
1950 | - | local sp=cp(tube,'Toothpaste',Vector3.new(10,10,10),false,false) |
1950 | + | local sp=cp(tube,'Really red',Vector3.new(10,10,10),false,false) |
1951 | sp.CFrame=tor.CFrame | |
1952 | sp.Transparency=0.5 | |
1953 | ||
1954 | local sph=sphere(sp) | |
1955 | addFx(sp,0.07,'destroy',function() sph.Scale=sph.Scale-Vector3.new(0.05,0.05,0.05) sp.Transparency=sp.Transparency+0.035 end) | |
1956 | spawn(function() | |
1957 | for i=1,10 do | |
1958 | wait() | |
1959 | - | local cool1=cp(tube,'Toothpaste',Vector3.new(1.5,1.5,1.5),true) |
1959 | + | local cool1=cp(tube,'Really red',Vector3.new(1.5,1.5,1.5),true) |
1960 | local ms1=blo(cool1) | |
1961 | cool1.CFrame=righthandle.CFrame*ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90))) | |
1962 | addFx(cool1,0.07,'destroy',function() ms1.Scale=ms1.Scale+Vector3.new(0.08,0.08,0.08) cool1.Transparency=cool1.Transparency+0.07 end) | |
1963 | end | |
1964 | end) | |
1965 | ||
1966 | --addCoolDown('Dark Slash2') | |
1967 | local allahsword=cp(tube,'White',Vector3.new(1,1,1)) | |
1968 | ||
1969 | ||
1970 | local spm=int('SpecialMesh',allahsword) | |
1971 | spm.MeshType='FileMesh' | |
1972 | spm.MeshId=meshd | |
1973 | allahsword.Transparency=1 | |
1974 | tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z)) | |
1975 | local tv=Vector3.new(tor.CFrame.lookVector.X,0,tor.CFrame.lookVector.Z)--CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z)).lookVector | |
1976 | - | local col=BrickColor.new("Toothpaste").Color |
1976 | + | local col=BrickColor.new("Really red").Color |
1977 | spm.TextureId=rbx..'132155326' | |
1978 | spm.Name='mesh' | |
1979 | spm.VertexColor=Vector3.new(0,0,0) | |
1980 | spm.Scale=Vector3.new(1,1,1) | |
1981 | addFx(allahsword,0.05,nil,function() allahsword.Transparency=allahsword.Transparency-0.05 end) | |
1982 | weld(ch['Right Arm'],allahsword,cfn(0,-4,-2)*ang(-180,0,mr(-25)))--(-25) | |
1983 | local hitbox=cp(tube,'White',Vector3.new(2,12,2)) | |
1984 | hitbox.Transparency=1 | |
1985 | hitbox.CFrame=allahsword.CFrame | |
1986 | dumbbox=hitbox | |
1987 | dumbhand=allahsword | |
1988 | Tween(rj,cfn()*ang(0,mr(90),0)) | |
1989 | Tween(rw,cfn(0.5,0.5,0.5)*ang(mr(-90),mr(-35),0)) | |
1990 | Tween(lw,cfn(-0.5,0.5,0.5)*ang(mr(-90),mr(35),0)) | |
1991 | ||
1992 | Delay(0.08,function() | |
1993 | local tstvel=int('BodyVelocity',tor) | |
1994 | tstvel.MaxForce=Vector3.new(math.huge,0,math.huge) | |
1995 | tstvel.Velocity=tv*35 | |
1996 | game.Debris:AddItem(tstvel,0.24) | |
1997 | end) | |
1998 | ||
1999 | wait(0.22) | |
2000 | swoosh:Play() | |
2001 | spawn(function() | |
2002 | for i=1,10 do | |
2003 | wait() | |
2004 | local trl=allahsword:clone() | |
2005 | trl.Parent=tube | |
2006 | trl.CFrame=allahsword.CFrame | |
2007 | addFx(trl,0.07,'destroy',function() trl.Transparency=trl.Transparency+0.07 end) | |
2008 | end | |
2009 | end) | |
2010 | addFx(allahsword,.05,'destroy',function() allahsword.Transparency=allahsword.Transparency+.05 spm.Scale=spm.Scale+Vector3.new(0.1,0.1,0.1) end) | |
2011 | hitbox.Touched:connect(function(v) | |
2012 | if v and v.Parent and v.Parent:findFirstChild'Humanoid' and not v:IsDescendantOf(ch) then | |
2013 | --print'touched' | |
2014 | local can=false | |
2015 | if not v.Parent:findFirstChild('HitDeb') then | |
2016 | can=true | |
2017 | end | |
2018 | if can==true then | |
2019 | local sls=getSound(220834020) | |
2020 | sls.Pitch=1+(math.random(3)/10) | |
2021 | sls.Parent=v | |
2022 | sls:Play() | |
2023 | local db=Instance.new('StringValue',v.Parent) | |
2024 | db.Name='HitDeb' | |
2025 | game.Debris:AddItem(db,0.5) | |
2026 | dealDamage(v.Parent,20+math.random(20),10) | |
2027 | end | |
2028 | end | |
2029 | end) | |
2030 | Tween(rj,cfn(0,0,0)*ang(mr(0),mr(-90),0)) | |
2031 | Tween(rw,cfn(0.5,0.8,0)*ang(mr(-20),mr(-35),0)) --(-10) | |
2032 | Tween(lw,cfn(-0.5,0.8,0)*ang(mr(-20),mr(35),0)) | |
2033 | wait(0.2) | |
2034 | hitbox:Destroy() | |
2035 | hum.WalkSpeed=oldspeed | |
2036 | reset() | |
2037 | deb=false | |
2038 | animPlaying=false | |
2039 | canRunLeg=false | |
2040 | end) | |
2041 | ]] | |
2042 | ||
2043 | addMove('Dark Spikes','t',0.4,function() | |
2044 | tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z)) | |
2045 | local lv=tor.CFrame | |
2046 | tweenTable={} | |
2047 | animPlaying=true | |
2048 | deb=true | |
2049 | canRunLeg=true | |
2050 | magictone1:Play() | |
2051 | Tween(rj,cfn()*ang(0,mr(25),0),0.2) | |
2052 | Tween(rw,cfn()*ang(mr(25),mr(-20),0),0.2) | |
2053 | wait(0.2) | |
2054 | Tween(rj,cfn()*ang(0,mr(-55),0),0.15) | |
2055 | Tween(rw,cfn()*ang(mr(-115),mr(45),0),0.15) | |
2056 | Tween(neck,cfn()*ang(0,mr(55),0)) | |
2057 | local spot=4 | |
2058 | addCoolDown('Dark Spikes') | |
2059 | for i=1,10 do | |
2060 | wait(0.1) | |
2061 | local v=lv.lookVector*spot | |
2062 | --print(v) | |
2063 | spot=spot+14 | |
2064 | - | local spike=cp(tube,'Toothpaste',Vector3.new(10,1,10),true,false) |
2064 | + | local spike=cp(tube,'Really red',Vector3.new(10,1,10),true,false) |
2065 | spike.CFrame=lv*CFrame.new(0,0,-spot) | |
2066 | - | local dam=cp(tube,'Toothpaste',Vector3.new(7,14,7),true,false) |
2066 | + | local dam=cp(tube,'Really red',Vector3.new(7,14,7),true,false) |
2067 | local dml=cyl(dam) | |
2068 | local angls=CFrame.Angles(spike.CFrame:toEulerAnglesXYZ()) | |
2069 | local bhit,pos=FindGround(cn(spike.CFrame.p),ch) | |
2070 | if bhit then | |
2071 | spike.CFrame=pos*CFrame.new(0,0,0) | |
2072 | local mgp=cp(tube,'White',Vector3.new(1,1,1),true,false) | |
2073 | mgp.Transparency=1 | |
2074 | mgp.CFrame=spike.CFrame | |
2075 | game.Debris:AddItem(mgp,2) | |
2076 | local sn=spexp:clone() | |
2077 | sn.Parent=mgp | |
2078 | sn.Volume=2 | |
2079 | sn:Play() | |
2080 | dam.CFrame=spike.CFrame*CFrame.new(0,7,0) | |
2081 | local blast=dam | |
2082 | local region=CreateRegion3FromLocAndSize(blast.Position,blast.Size*2) | |
2083 | local people={} | |
2084 | for _,v in pairs(workspace:findPartsInRegion3WithIgnoreList(region,{ch},100)) do | |
2085 | if v and v.Parent and v.className=='Part' and v.Parent:findFirstChild('Humanoid') then | |
2086 | local can=false | |
2087 | if not v.Parent:findFirstChild('HitDeb') then | |
2088 | can=true | |
2089 | end | |
2090 | if can==true then | |
2091 | local db=Instance.new('StringValue',v.Parent) | |
2092 | db.Name='HitDeb' | |
2093 | game.Debris:AddItem(db,0.2) | |
2094 | local humin=v.Parent.Humanoid | |
2095 | if humin then | |
2096 | local php=humin.Health | |
2097 | dealDamage(humin.Parent,10+math.random(3),2) | |
2098 | local testvel=int('BodyVelocity',v) | |
2099 | testvel.MaxForce=Vector3.new(math.huge,math.huge,math.huge) | |
2100 | testvel.Velocity=lv.lookVector*100 | |
2101 | game.Debris:addItem(testvel,1) | |
2102 | humin.Sit=true | |
2103 | if humin.Health>=php and humin.MaxHealth~=math.huge then | |
2104 | print('equal') | |
2105 | humin:TakeDamage(20) | |
2106 | end | |
2107 | end | |
2108 | end | |
2109 | end | |
2110 | end | |
2111 | local cl=cyl(spike) | |
2112 | addFx(spike,0.05,'destroy',function() cl.Scale=cl.Scale-Vector3.new(0.05,0,0.05) spike.Transparency=spike.Transparency+0.05 end) | |
2113 | addFx(dml,0.05,'destroy',function() dml.Scale=dml.Scale-Vector3.new(0.05,-0.05,0.05) dam.Transparency=dam.Transparency+0.05 end) | |
2114 | else | |
2115 | spike:Destroy() | |
2116 | end | |
2117 | end | |
2118 | wait(0.7) | |
2119 | deb=false | |
2120 | canRunLeg=false | |
2121 | animPlaying=false | |
2122 | reset() | |
2123 | end,30) | |
2124 | ||
2125 | mouse.Button1Down:connect(function() | |
2126 | executeMove('Dark Missile') | |
2127 | --print('movers:' .. #movers) | |
2128 | --print('fx:' .. #fx) | |
2129 | end) | |
2130 | ||
2131 | local vt | |
2132 | local dodgecool=false | |
2133 | ||
2134 | iPart=function(tab) --tigrebloodd | |
2135 | local v=Instance.new(tab.type or 'Part') | |
2136 | if tab.type~='CornerWedgePart' then v.formFactor='Custom' end | |
2137 | v.CanCollide=false | |
2138 | v.TopSurface=0 v.BottomSurface=0 | |
2139 | v.Size=v3(tab[2],tab[3],tab[4]) | |
2140 | if tab.co then v.BrickColor=bn(tab.co) end | |
2141 | if tab.tr then v.Transparency=tab.tr end | |
2142 | if tab.rf then v.Reflectance=tab.rf end | |
2143 | if tab.cf then v.CFrame=tab.cf end | |
2144 | if tab.an then v.Anchored=tab.an end | |
2145 | v.Parent=tab[1] | |
2146 | LastMade=v | |
2147 | return v | |
2148 | end | |
2149 | ||
2150 | iNew=function(tab) --tigrebloodd | |
2151 | local v=Instance.new(tab[1]) | |
2152 | for Ind,Val in pairs(tab) do | |
2153 | if Ind~=1 and Ind~=2 then | |
2154 | v[Ind] = Val | |
2155 | end | |
2156 | end | |
2157 | v.Parent=tab[2]==0 and LastMade or tab[2] | |
2158 | LastMade=v | |
2159 | return v | |
2160 | end | |
2161 | ||
2162 | -- Antiboomz0r's functions ----------------------------------------------------------------- | |
2163 | ||
2164 | local ppart = iPart{nil,0.2,0.2,0.2} | |
2165 | ppart.Material = "SmoothPlastic" | |
2166 | ppart.TopSurface = "SmoothNoOutlines" | |
2167 | ppart.BottomSurface = "SmoothNoOutlines" | |
2168 | ppart.RightSurface = "SmoothNoOutlines" | |
2169 | ppart.LeftSurface = "SmoothNoOutlines" | |
2170 | ppart.Transparency=0 | |
2171 | ppart.Anchored=true | |
2172 | --ppart.Parent=tube | |
2173 | ||
2174 | local function CFrameFromTopBack(at, top, back) | |
2175 | local right = top:Cross(back) | |
2176 | return CFrame.new(at.x, at.y, at.z, | |
2177 | right.x, top.x, back.x, | |
2178 | right.y, top.y, back.y, | |
2179 | right.z, top.z, back.z) | |
2180 | end | |
2181 | ||
2182 | function Triangle(a, b, c) | |
2183 | local edg1 = (c-a):Dot((b-a).unit) | |
2184 | local edg2 = (a-b):Dot((c-b).unit) | |
2185 | local edg3 = (b-c):Dot((a-c).unit) | |
2186 | if edg1 <= (b-a).magnitude and edg1 >= 0 then | |
2187 | a, b, c = a, b, c | |
2188 | elseif edg2 <= (c-b).magnitude and edg2 >= 0 then | |
2189 | a, b, c = b, c, a | |
2190 | elseif edg3 <= (a-c).magnitude and edg3 >= 0 then | |
2191 | a, b, c = c, a, b | |
2192 | else | |
2193 | print("unreachable") | |
2194 | end | |
2195 | local len1 = (c-a):Dot((b-a).unit) | |
2196 | local len2 = (b-a).magnitude - len1 | |
2197 | local width = (a + (b-a).unit*len1 - c).magnitude | |
2198 | local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit) | |
2199 | local list = {} | |
2200 | if len1 > 0.01 then | |
2201 | local w1 = iNew{ | |
2202 | "WedgePart", | |
2203 | Pack, | |
2204 | FormFactor="Custom", | |
2205 | BrickColor=ppart.BrickColor, | |
2206 | Transparency=ppart.Transparency, | |
2207 | Reflectance=ppart.Reflectance, | |
2208 | Material=ppart.Material, | |
2209 | CanCollide=ppart.CanCollide | |
2210 | } | |
2211 | w1.Parent=tube | |
2212 | local sz = v3(0.2, width, len1) | |
2213 | w1.Size = sz | |
2214 | local sp = iNew{"SpecialMesh",w1,MeshType="Wedge",Scale=v3(0,1,1)*sz/w1.Size} | |
2215 | w1:BreakJoints() | |
2216 | w1.Anchored = true | |
2217 | w1.Transparency = 0.7 | |
2218 | Spawn(function() | |
2219 | for i=0,1,0.1 do | |
2220 | wait() | |
2221 | w1.Transparency=w1.Transparency+0.03 | |
2222 | end | |
2223 | end) | |
2224 | w1.CFrame = maincf*ca2(math.pi,0,math.pi/2)*cn(0,width/2,len1/2) | |
2225 | table.insert(list,w1) | |
2226 | end | |
2227 | if len2 > 0.01 then | |
2228 | local w2 = iNew{ | |
2229 | "WedgePart", | |
2230 | Pack, | |
2231 | FormFactor="Custom", | |
2232 | BrickColor=ppart.BrickColor, | |
2233 | Transparency=ppart.Transparency, | |
2234 | Reflectance=ppart.Reflectance, | |
2235 | Material=ppart.Material, | |
2236 | CanCollide=ppart.CanCollide | |
2237 | } | |
2238 | local sz = v3(0.2, width, len2) | |
2239 | w2.Size = sz | |
2240 | local sp = iNew{"SpecialMesh",w2,MeshType="Wedge",Scale=v3(0,1,1)*sz/w2.Size} | |
2241 | w2:BreakJoints() | |
2242 | w2.Anchored = true | |
2243 | w2.Transparency = 0.7 | |
2244 | Spawn(function() | |
2245 | for i=0,1,0.1 do | |
2246 | wait() | |
2247 | w2.Transparency=w2.Transparency+0.03 | |
2248 | end | |
2249 | end) | |
2250 | w2.CFrame = maincf*ca2(math.pi,math.pi,-math.pi/2)*cn(0,width/2,-len1 - len2/2) | |
2251 | w2.Parent=tube | |
2252 | table.insert(list,w2) | |
2253 | end | |
2254 | return unpack(list) | |
2255 | end | |
2256 | ||
2257 | bclf=ch['Right Arm'].CFrame | |
2258 | scfr=bclf | |
2259 | ||
2260 | --[[ | |
2261 | while wait() do--test | |
2262 | ||
2263 | local h=3.8 | |
2264 | local a,b=Triangle(scfr*CFrame.new(0,h/2,0).p,scfr*CFrame.new(0,-h/2,0).p,scfr*CFrame.new(0,h/2,0).p) | |
2265 | scfr=bclf | |
2266 | bclf=ch['Right Arm'].CFrame | |
2267 | local a,b=Triangle(bclf*CFrame.new(0,h/2,0).p,bclf*CFrame.new(0,-h/2,0).p,bclf*CFrame.new(0,h/2,0).p) | |
2268 | print(a.Parent) | |
2269 | print(a.CFrame) | |
2270 | end | |
2271 | ]] | |
2272 | ||
2273 | -- Antiboomz0r's functions ----------------------------------------------------------------- | |
2274 | ||
2275 | -------------------tigrebloodd functions------------------------------ | |
2276 | ||
2277 | ca=CFrame.Angles | |
2278 | cn=CFrame.new | |
2279 | v3=Vector3.new | |
2280 | ||
2281 | function Raycast(Pos,Dir,Ign) | |
2282 | return workspace:FindPartOnRay(Ray.new(Pos,Dir.unit*300),Ign) | |
2283 | end | |
2284 | ||
2285 | function FindGround(cf,ig) | |
2286 | local ax,ay,az = cf:toEulerAnglesXYZ() | |
2287 | local bhit,bpos=Raycast(cf.p,cf.p-(cf.p+v3(0,200,0)),ig) | |
2288 | if bhit and bpos then | |
2289 | return bhit,cn(bpos)*ca(ax,ay,az) | |
2290 | end | |
2291 | end | |
2292 | -------------------tigrebloodd functions---------------------------- | |
2293 | ||
2294 | currentkey='' | |
2295 | ||
2296 | mouse.KeyDown:connect(function(key) | |
2297 | if key=='q' and currentkey=='32' and Vector3.new(0,tor.Velocity.Y,0).magnitude>2 then | |
2298 | executeMove('Down Slam') | |
2299 | elseif key=='r' and currentkey=='32' and Vector3.new(0,tor.Velocity.Y,0).magnitude>2 then | |
2300 | executeMove('Aerial Sword') | |
2301 | end | |
2302 | if string.byte(key)==32 and canExecuteMoves==true then | |
2303 | combostring=combostring..'.' | |
2304 | spawn(function() | |
2305 | jump() | |
2306 | end) | |
2307 | --jump() | |
2308 | if combostring:match('..') and dodgecool==false then | |
2309 | currentkey=tostring(string.byte(key)) | |
2310 | animPlaying=true | |
2311 | altTween(rj,cfn()*ang(mr(-15),0,0)) | |
2312 | altTween(rw,cfn()*ang(mr(10),0,mr(-15))) | |
2313 | altTween(lw,cfn()*ang(mr(10),0,mr(15))) | |
2314 | dodgecool=true | |
2315 | combostring=[[]] | |
2316 | local rv=tor.CFrame.upVector | |
2317 | local bv=int('BodyVelocity',tor) | |
2318 | dodgesound:Play() | |
2319 | bv.MaxForce=Vector3.new(math.huge,math.huge,math.huge) | |
2320 | bv.Velocity=rv*150 | |
2321 | spawn(function() | |
2322 | for i=1,14 do | |
2323 | wait() | |
2324 | - | local cfx=cp(tube,'Toothpaste',Vector3.new(6,6,6),true,false) |
2324 | + | local cfx=cp(tube,'Really red',Vector3.new(6,6,6),true,false) |
2325 | --cfx.Material='Neon' | |
2326 | local ran=math.random(2) | |
2327 | if ran==1 then | |
2328 | - | cfx.BrickColor=BrickColor.new('Institutional white') |
2328 | + | cfx.BrickColor=BrickColor.new('Really black') |
2329 | cfx.Material='Neon' | |
2330 | end | |
2331 | cfx.CFrame=tor.CFrame*CFrame.Angles(math.rad(math.random(90)),math.rad(math.random(90)),0) | |
2332 | local b=blo(cfx) | |
2333 | addFx(cfx,0.05,'destroy',function() | |
2334 | cfx.Transparency=cfx.Transparency+0.05 | |
2335 | b.Scale=b.Scale+Vector3.new(0.1,0.1,0.1) | |
2336 | end) | |
2337 | end | |
2338 | end) | |
2339 | wait() | |
2340 | bv:Destroy() | |
2341 | wait(0.4) | |
2342 | reset() | |
2343 | dodgecool=false | |
2344 | wait(0.4) | |
2345 | if currentkey=='32' then | |
2346 | currentkey='' | |
2347 | end | |
2348 | if not deb then | |
2349 | animPlaying=false | |
2350 | end | |
2351 | --repeat wait() until Vector3.new(0,tor.Velocity.Y,0).magnitude<2 | |
2352 | --currentkey | |
2353 | end | |
2354 | elseif string.byte(key)==48 and canExecuteMoves==true then | |
2355 | sprinting=true | |
2356 | hum.WalkSpeed=24 | |
2357 | end | |
2358 | if key=='d' and canExecuteMoves==true then | |
2359 | combostring=combostring..'d' | |
2360 | if combostring:match('dd') and dodgecool==false then | |
2361 | --animPlaying=true | |
2362 | dodgecool=true | |
2363 | combostring=[[]] | |
2364 | local rv=cam.CFrame.rightVector | |
2365 | local bv=int('BodyVelocity',tor) | |
2366 | dodgesound:Play() | |
2367 | bv.MaxForce=Vector3.new(math.huge,math.huge,math.huge) | |
2368 | bv.Velocity=rv*150 | |
2369 | --Tween(rj,cfn()*ang(mr(90),0,0)) | |
2370 | spawn(function() | |
2371 | for i=1,16 do | |
2372 | wait() | |
2373 | - | local cfx=cp(tube,'Toothpaste',Vector3.new(6,6,6),true,false) |
2373 | + | local cfx=cp(tube,'Really red',Vector3.new(6,6,6),true,false) |
2374 | local ran=math.random(2) | |
2375 | if ran==1 then | |
2376 | - | cfx.BrickColor=BrickColor.new('Institutional white') |
2376 | + | cfx.BrickColor=BrickColor.new('Really black') |
2377 | cfx.Material='Neon' | |
2378 | end | |
2379 | --cfx.Material='Neon' | |
2380 | cfx.CFrame=tor.CFrame*CFrame.Angles(math.rad(math.random(90)),math.rad(math.random(90)),0) | |
2381 | local b=blo(cfx) | |
2382 | addFx(cfx,0.05,'destroy',function() | |
2383 | cfx.Transparency=cfx.Transparency+0.05 | |
2384 | b.Scale=b.Scale+Vector3.new(0.1,0.1,0.1) | |
2385 | end) | |
2386 | end | |
2387 | end) | |
2388 | wait() | |
2389 | bv:Destroy() | |
2390 | wait(0.4) | |
2391 | dodgecool=false | |
2392 | end | |
2393 | elseif key=='w' and canExecuteMoves==true then | |
2394 | combostring=combostring..'w' | |
2395 | if combostring:match('ww') and dodgecool==false then | |
2396 | dodgecool=true | |
2397 | combostring="" | |
2398 | local rv=cam.CFrame:vectorToWorldSpace(Vector3.new(0,0,-1)) | |
2399 | --tor.CFrame=CFrame.new(tor.Position,Vector3.new(rv.X,tor.Position.Y,rv.Z)) | |
2400 | local bv=int('BodyVelocity',tor) | |
2401 | dodgesound:Play() | |
2402 | bv.MaxForce=Vector3.new(math.huge,0,math.huge) | |
2403 | bv.Velocity=rv*150 | |
2404 | spawn(function() | |
2405 | for i=1,16 do | |
2406 | wait() | |
2407 | - | local cfx=cp(tube,'Toothpaste',Vector3.new(6,6,6),true,false) |
2407 | + | local cfx=cp(tube,'Really red',Vector3.new(6,6,6),true,false) |
2408 | --cfx.Material='Neon' | |
2409 | local ran=math.random(2) | |
2410 | if ran==1 then | |
2411 | - | cfx.BrickColor=BrickColor.new('Institutional white') |
2411 | + | cfx.BrickColor=BrickColor.new('Really black') |
2412 | cfx.Material='Neon' | |
2413 | end | |
2414 | cfx.CFrame=tor.CFrame*CFrame.Angles(math.rad(math.random(90)),math.rad(math.random(90)),0) | |
2415 | local b=blo(cfx) | |
2416 | addFx(cfx,0.05,'destroy',function() | |
2417 | cfx.Transparency=cfx.Transparency+0.05 | |
2418 | b.Scale=b.Scale+Vector3.new(0.1,0.1,0.1) | |
2419 | end) | |
2420 | end | |
2421 | end) | |
2422 | wait() | |
2423 | bv:Destroy() | |
2424 | wait(0.4) | |
2425 | dodgecool=false | |
2426 | end | |
2427 | elseif key=='s' and canExecuteMoves==true then | |
2428 | combostring=combostring..'s' | |
2429 | if combostring:match('ss') and dodgecool==false then | |
2430 | dodgecool=true | |
2431 | combostring="" | |
2432 | local rv=cam.CFrame:vectorToWorldSpace(Vector3.new(0,0,1)) | |
2433 | local bv=int('BodyVelocity',tor) | |
2434 | dodgesound:Play() | |
2435 | bv.MaxForce=Vector3.new(math.huge,0,math.huge) | |
2436 | bv.Velocity=rv*150 | |
2437 | spawn(function() | |
2438 | for i=1,16 do | |
2439 | wait() | |
2440 | - | local cfx=cp(tube,'Toothpaste',Vector3.new(6,6,6),true,false) |
2440 | + | local cfx=cp(tube,'Really red',Vector3.new(6,6,6),true,false) |
2441 | --cfx.Material='Neon' | |
2442 | local ran=math.random(2) | |
2443 | if ran==1 then | |
2444 | - | cfx.BrickColor=BrickColor.new('Institutional white') |
2444 | + | cfx.BrickColor=BrickColor.new('Really black') |
2445 | cfx.Material='Neon' | |
2446 | end | |
2447 | cfx.CFrame=tor.CFrame*CFrame.Angles(math.rad(math.random(90)),math.rad(math.random(90)),0) | |
2448 | local b=blo(cfx) | |
2449 | addFx(cfx,0.05,'destroy',function() | |
2450 | cfx.Transparency=cfx.Transparency+0.05 | |
2451 | b.Scale=b.Scale+Vector3.new(0.1,0.1,0.1) | |
2452 | end) | |
2453 | end | |
2454 | end) | |
2455 | wait() | |
2456 | bv:Destroy() | |
2457 | wait(.4) | |
2458 | dodgecool=false | |
2459 | end | |
2460 | elseif key=='a' and canExecuteMoves==true then | |
2461 | combostring=combostring..'a' | |
2462 | if combostring:match('aa') and dodgecool==false then | |
2463 | dodgecool=true | |
2464 | combostring=[[]] | |
2465 | local rv=cam.CFrame.rightVector | |
2466 | local bv=int('BodyVelocity',tor) | |
2467 | dodgesound:Play() | |
2468 | bv.MaxForce=Vector3.new(math.huge,math.huge,math.huge) | |
2469 | bv.Velocity=rv*-150 | |
2470 | spawn(function() | |
2471 | for i=1,16 do | |
2472 | wait() | |
2473 | - | local cfx=cp(tube,'Toothpaste',Vector3.new(6,6,6),true,false) |
2473 | + | local cfx=cp(tube,'Really red',Vector3.new(6,6,6),true,false) |
2474 | --cfx.Material='Neon' | |
2475 | local ran=math.random(2) | |
2476 | if ran==1 then | |
2477 | - | cfx.BrickColor=BrickColor.new('Institutional white') |
2477 | + | cfx.BrickColor=BrickColor.new('Really black') |
2478 | cfx.Material='Neon' | |
2479 | end | |
2480 | cfx.CFrame=tor.CFrame*CFrame.Angles(math.rad(math.random(90)),math.rad(math.random(90)),0) | |
2481 | local b=blo(cfx) | |
2482 | addFx(cfx,0.05,'destroy',function() | |
2483 | cfx.Transparency=cfx.Transparency+0.05 | |
2484 | b.Scale=b.Scale+Vector3.new(0.1,0.1,0.1) | |
2485 | end) | |
2486 | end | |
2487 | end) | |
2488 | wait() | |
2489 | bv:Destroy() | |
2490 | wait(.4) | |
2491 | dodgecool=false | |
2492 | end | |
2493 | end | |
2494 | if key=='f' then | |
2495 | if deb==false then | |
2496 | executeMove('Normal Block') | |
2497 | end | |
2498 | elseif key=='e' then | |
2499 | if deb==false then | |
2500 | executeMove('Rive Beam') | |
2501 | end | |
2502 | elseif key=='v' then | |
2503 | if deb==false then | |
2504 | executeMove('Diamond Storm') | |
2505 | end | |
2506 | elseif key=='t' then | |
2507 | if deb==false and not sprinting then | |
2508 | executeMove('Dark Spikes') | |
2509 | end | |
2510 | elseif key=='g' then | |
2511 | if deb==false then | |
2512 | executeMove('Curse') | |
2513 | end | |
2514 | elseif key=='l' then | |
2515 | if deb==false then | |
2516 | executeMove('Ascend') | |
2517 | end | |
2518 | elseif key=='r' then | |
2519 | if deb==false and Vector3.new(0,tor.Velocity.Y,0).magnitude<2 and currentkey~='32' then | |
2520 | -- if darknum==1 then | |
2521 | executeMove('Dark Slash') | |
2522 | --darknum=darknum+1 | |
2523 | -- else | |
2524 | -- executeMove('Dark Slash2') | |
2525 | -- darknum=1 | |
2526 | -- end | |
2527 | end | |
2528 | end | |
2529 | end) | |
2530 | ||
2531 | mouse.KeyUp:connect(function(key) | |
2532 | for _,v in pairs(connectlist) do | |
2533 | if v.up==false and v.key==key then | |
2534 | v.up=true | |
2535 | table.remove(connectlist,_) | |
2536 | end | |
2537 | end | |
2538 | if string.byte(key)==48 and canExecuteMoves==true then | |
2539 | sprinting=false | |
2540 | hum.WalkSpeed=regws | |
2541 | end | |
2542 | end) | |
2543 | ||
2544 | mouse.Button1Up:connect(function() | |
2545 | for _,v in pairs(connectlist) do | |
2546 | if v.up==false then | |
2547 | v.up=true | |
2548 | table.remove(connectlist,_) | |
2549 | end | |
2550 | end | |
2551 | end) | |
2552 | ||
2553 | local oldsize=mana/maxmana | |
2554 | local oldchain=0 | |
2555 | spawn(function() | |
2556 | while wait(1) do | |
2557 | if deb==false then | |
2558 | if chain==oldchain then | |
2559 | chain=0 | |
2560 | end | |
2561 | oldchain=chain | |
2562 | end | |
2563 | end | |
2564 | end) | |
2565 | ||
2566 | --tor.Anchored=true | |
2567 | --cam.CameraType='Track' | |
2568 | ||
2569 | --[[ | |
2570 | local segments={} | |
2571 | - | local head=cp(tube,'Toothpaste',Vector3.new(1,1,1)) |
2571 | + | local head=cp(tube,'Really red',Vector3.new(1,1,1)) |
2572 | weld(tor,head,cfn()) | |
2573 | local oldsg=head | |
2574 | --local linez=drawLine(oldsg.CFrame.p,ch.Head.CFrame.p,'White') | |
2575 | --linez.Parent=tube | |
2576 | ||
2577 | for _,v in pairs(ch:GetChildren()) do | |
2578 | if v.className=='Part' or v.className=='BasePart' then | |
2579 | v.Transparency=1 | |
2580 | v.CanCollide=false | |
2581 | end | |
2582 | end | |
2583 | ||
2584 | ch.Head.face:Destroy() | |
2585 | ch['Right Arm']:Destroy() | |
2586 | ch['Left Arm']:Destroy() | |
2587 | ch['Right Leg']:Destroy() | |
2588 | ch['Left Leg']:Destroy() | |
2589 | tor.CanCollide=false | |
2590 | ch.HumanoidRootPart.CanCollide=false | |
2591 | ||
2592 | for _,v in pairs(tube:GetChildren()) do | |
2593 | if v.className=='Part' or v.className=='BasePart' then | |
2594 | v.Transparency=1 | |
2595 | v.CanCollide=false | |
2596 | end | |
2597 | end | |
2598 | ||
2599 | ]] | |
2600 | ||
2601 | game:service'RunService'.Heartbeat:connect(function() | |
2602 | --oldsg=head | |
2603 | --[[ | |
2604 | if ascension==true and aright==true then | |
2605 | abv.Velocity=cam.CFrame.rightVector * 100 | |
2606 | elseif ascension==true and aforward==true then | |
2607 | abv.Velocity=cam.CFrame.lookVector*150 | |
2608 | end | |
2609 | - | local line=drawLine(oldsg.CFrame.p,ch.Head.CFrame.p,'Toothpaste',nil,1,7) |
2609 | + | local line=drawLine(oldsg.CFrame.p,ch.Head.CFrame.p,'Really red',nil,1,7) |
2610 | if line then | |
2611 | line.Parent=tube | |
2612 | table.insert(segments,line) | |
2613 | oldsg=line | |
2614 | end | |
2615 | if #segments>=40 then | |
2616 | --segments[1]:Destroy() | |
2617 | local thing=segments[1] | |
2618 | for i=1,10 do | |
2619 | wait() | |
2620 | if thing and thing:findFirstChild'blok' then | |
2621 | thing.blok.Scale=thing.blok.Scale-Vector3.new(0.1,0.1,0.1) | |
2622 | thing.Transparency=thing.Transparency+0.1 | |
2623 | end | |
2624 | end | |
2625 | thing:Destroy() | |
2626 | table.remove(segments,1) | |
2627 | end | |
2628 | ]] | |
2629 | --tor.CFrame=cam.CFrame | |
2630 | --cam.CameraSubject=nil | |
2631 | chaintext.Text=tostring(chain) .. 'x' | |
2632 | manabartext.Text=tostring(mana)..'/'..tostring(maxmana) | |
2633 | if mana/maxmana~=oldsize then | |
2634 | manabar:TweenSize(UDim2.new(mana/maxmana,0,1,0),'Out','Sine',1,true) | |
2635 | oldsize=mana/maxmana | |
2636 | end | |
2637 | if dumbbox then | |
2638 | dumbbox.CFrame=dumbhand.CFrame*cfn(0,0,4)*ang(mr(-90),0,0) | |
2639 | end | |
2640 | for _,v in pairs(textTable) do | |
2641 | if v.TextLabel.TextTransparency<1 then | |
2642 | v.TextLabel.TextTransparency=v.TextLabel.TextTransparency+0.02 | |
2643 | v.TextLabel.TextStrokeTransparency=v.TextLabel.TextStrokeTransparency+0.02 | |
2644 | v.StudsOffset=v.StudsOffset+Vector3.new(0,0.02,0) | |
2645 | else | |
2646 | v:Destroy() | |
2647 | table.remove(textTable,_) | |
2648 | end | |
2649 | end | |
2650 | if Vector3.new(tor.Velocity.X,0,tor.Velocity.Z).magnitude>2 and jumping==false then | |
2651 | run=true | |
2652 | elseif Vector3.new(tor.Velocity.X,0,tor.Velocity.Z).magnitude<2 and jumping==false then | |
2653 | run=false | |
2654 | idle=true | |
2655 | end | |
2656 | --shift=48 | |
2657 | if Vector3.new(tor.Velocity.X,0,tor.Velocity.Z).magnitude>2 and canRunLeg==true then | |
2658 | runLeg=true | |
2659 | elseif Vector3.new(tor.Velocity.X,0,tor.Velocity.Z).magnitude<2 and canRunLeg==true then | |
2660 | runLeg=false | |
2661 | resetLegs() | |
2662 | end | |
2663 | for _,v in pairs(movers) do | |
2664 | if v.mover and v.mover:IsDescendantOf(tube) then | |
2665 | v.func() | |
2666 | else | |
2667 | table.remove(movers,_) | |
2668 | end | |
2669 | end | |
2670 | if bg then | |
2671 | if hum.Health > 0 then | |
2672 | tor.CFrame = CFrame.new(tor.Position, Vector3.new(mouse.Hit.p.X, tor.Position.Y, mouse.Hit.p.Z)) | |
2673 | end | |
2674 | end | |
2675 | for _,v in pairs(fx) do | |
2676 | if v.stepval<1 then | |
2677 | v.func() | |
2678 | v.stepval=v.stepval+v.int | |
2679 | else | |
2680 | if v.final then | |
2681 | if v.final=='destroy' then | |
2682 | v.item:Destroy() | |
2683 | table.remove(fx,_) | |
2684 | -- print(#fx) | |
2685 | end | |
2686 | else | |
2687 | table.remove(fx,_) | |
2688 | end | |
2689 | end | |
2690 | end | |
2691 | for _,v in pairs(tweenTable) do | |
2692 | if v.Weld.C1==v.Stop then | |
2693 | table.remove(tweenTable,_) | |
2694 | else | |
2695 | if v.th<1-v.Step then | |
2696 | v.th=v.th+v.Step | |
2697 | i=v.th | |
2698 | ||
2699 | v.Weld.C1 = v.Weld.C1:lerp(CFrame.new( (v.Start.p.X * (1 - i)) + (v.Stop.p.X * i), | |
2700 | (v.Start.p.Y * (1 - i)) + (v.Stop.p.Y * i), | |
2701 | (v.Start.p.Z * (1 - i)) + (v.Stop.p.Z * i)) * CFrame.fromEulerAnglesXYZ( | |
2702 | (v.X1 * (1 - i)) + (v.X2 * i), (v.Y1 * (1 - i)) + (v.Y2 * i), | |
2703 | (v.Z1 * (1 - i)) + (v.Z2 * i) ),1) | |
2704 | else | |
2705 | v.Weld.C1 = v.Stop | |
2706 | end | |
2707 | end | |
2708 | end | |
2709 | for _,v in pairs(altTweenTable) do | |
2710 | if v.Weld.C1==v.Stop then | |
2711 | table.remove(tweenTable,_) | |
2712 | else | |
2713 | if v.th<1-v.Step then | |
2714 | v.th=v.th+v.Step | |
2715 | i=v.th | |
2716 | v.Weld.C1 = v.Weld.C1:lerp(CFrame.new( (v.Start.p.X * (1 - i)) + (v.Stop.p.X * i), | |
2717 | (v.Start.p.Y * (1 - i)) + (v.Stop.p.Y * i), | |
2718 | (v.Start.p.Z * (1 - i)) + (v.Stop.p.Z * i)) * CFrame.fromEulerAnglesXYZ( | |
2719 | (v.X1 * (1 - i)) + (v.X2 * i), (v.Y1 * (1 - i)) + (v.Y2 * i), | |
2720 | (v.Z1 * (1 - i)) + (v.Z2 * i) ),1) | |
2721 | else | |
2722 | v.Weld.C1 = v.Stop | |
2723 | end | |
2724 | end | |
2725 | end | |
2726 | end) | |
2727 | ||
2728 | local oldcombo | |
2729 | local thingz=false | |
2730 | ||
2731 | spawn(function() | |
2732 | while wait(0.1) do | |
2733 | for _,v in pairs(cooldowns) do | |
2734 | if v.timeleft<0.1 then | |
2735 | table.remove(cooldowns,_) | |
2736 | else | |
2737 | v.timeleft=v.timeleft-0.1 | |
2738 | end | |
2739 | end | |
2740 | if thingz==false then | |
2741 | oldcombo=combostring | |
2742 | thingz=true | |
2743 | else | |
2744 | if string.len(oldcombo)==string.len(combostring) then | |
2745 | combostring=[[]] | |
2746 | oldcombo=[[]] | |
2747 | end | |
2748 | thingz=false | |
2749 | end | |
2750 | end | |
2751 | end) | |
2752 | ||
2753 | spawn(function() | |
2754 | while wait(0.3) do | |
2755 | if run==false then | |
2756 | - | local cfx=cp(tube,'Toothpaste',Vector3.new(0.4,0.4,0.4),true) |
2756 | + | local cfx=cp(tube,'Really red',Vector3.new(0.4,0.4,0.4),true) |
2757 | cfx.Transparency=1 | |
2758 | - | local rfx=cp(tube,'Toothpaste',Vector3.new(0.4,0.4,0.4),true) |
2758 | + | local rfx=cp(tube,'Really red',Vector3.new(0.4,0.4,0.4),true) |
2759 | rfx.Material='Neon' | |
2760 | local ran=math.random(2) | |
2761 | if ran==1 then | |
2762 | - | rfx.BrickColor=BrickColor.new('Institutional white') |
2762 | + | rfx.BrickColor=BrickColor.new('Really black') |
2763 | end | |
2764 | local bm=int('SpecialMesh',rfx)--blo(rfx) | |
2765 | bm.MeshType='FileMesh' | |
2766 | bm.MeshId=rbx..'9756362' | |
2767 | bm.Scale=Vector3.new(0.3,0.7,0.3) | |
2768 | local angls=ang(mr(math.random(90)),mr(math.random(90)),mr(math.random(90))) | |
2769 | addFx(cfx,0.02,'destroy',function() rfx.Transparency=rfx.Transparency+0.02 rfx.CFrame=cfx.CFrame*angls cfx.CFrame=cfx.CFrame*CFrame.new(0,0.1,0) --[[bm.Scale=bm.Scale+Vector3.new(0.02,0.02,0.02)]] end) | |
2770 | cfx.CFrame=tor.CFrame*CFrame.new(0,-2,0)*CFrame.new(math.random(-math.random(45/10),math.random(45)/10),0,math.random(-math.random(45)/10,math.random(45)/10)) | |
2771 | rfx.CFrame=cfx.CFrame*angls*CFrame.Angles(math.rad(-90),0,0) | |
2772 | game.Debris:AddItem(cfx,1.1) | |
2773 | game.Debris:AddItem(rfx,1.1) | |
2774 | end | |
2775 | end | |
2776 | end) | |
2777 | ||
2778 | while wait() do | |
2779 | if mana<maxmana and not deb and not animPlaying then | |
2780 | mana=mana+2 | |
2781 | if mana==maxmana+1 then | |
2782 | mana=maxmana | |
2783 | end | |
2784 | end | |
2785 | if animPlaying==true and runLeg==true then | |
2786 | walkLegs() | |
2787 | end | |
2788 | if run==true and animPlaying==false then | |
2789 | altTweenTable={} | |
2790 | tweenTable={} | |
2791 | if not sprinting then | |
2792 | if not ascension then | |
2793 | walkCycle() | |
2794 | else | |
2795 | walkCycleBig() | |
2796 | end | |
2797 | else | |
2798 | sprintCycle() | |
2799 | end | |
2800 | elseif idle==true and animPlaying==false and not jumping then | |
2801 | tweenTable={} | |
2802 | if not ascension then | |
2803 | reset() | |
2804 | else | |
2805 | bigreset() | |
2806 | end | |
2807 | end | |
2808 | end |