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