SHOW:
|
|
- or go back to the newest paste.
1 | - | local p = game.Players.LocalPlayer |
1 | + | -- This script has been converted to FE by iPxter |
2 | ||
3 | - | local mouse = p:GetMouse() |
3 | + | |
4 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
5 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
6 | do | |
7 | print("FE Compatibility code by Mokiros | Translated to FE by iPxter") | |
8 | script.Parent = Player.Character | |
9 | ||
10 | --RemoteEvent for communicating | |
11 | local Event = Instance.new("RemoteEvent") | |
12 | Event.Name = "UserInput_Event" | |
13 | ||
14 | --Fake event to make stuff like Mouse.KeyDown work | |
15 | local function fakeEvent() | |
16 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} | |
17 | t.connect = t.Connect | |
18 | return t | |
19 | end | |
20 | ||
21 | --Creating fake input objects with fake variables | |
22 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
23 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
24 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
25 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
26 | end} | |
27 | --Merged 2 functions into one by checking amount of arguments | |
28 | CAS.UnbindAction = CAS.BindAction | |
29 | ||
30 | --This function will trigger the events that have been :Connect()'ed | |
31 | local function te(self,ev,...) | |
32 | local t = m[ev] | |
33 | if t and t._fakeEvent and t.Function then | |
34 | t.Function(...) | |
35 | end | |
36 | end | |
37 | m.TrigEvent = te | |
38 | UIS.TrigEvent = te | |
39 | ||
40 | Event.OnServerEvent:Connect(function(plr,io) | |
41 | if plr~=Player then return end | |
42 | if io.isMouse then | |
43 | m.Target = io.Target | |
44 | m.Hit = io.Hit | |
45 | else | |
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 = owner | |
63 | local Event = script:WaitForChild("UserInput_Event") | |
64 | ||
65 | local UIS = game:GetService("UserInputService") | |
66 | local input = function(io,a) | |
67 | if a then return end | |
68 | --Since InputObject is a client-side instance, we create and pass table instead | |
69 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
70 | end | |
71 | UIS.InputBegan:Connect(input) | |
72 | UIS.InputEnded:Connect(input) | |
73 | ||
74 | local Mouse = Player:GetMouse() | |
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 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
85 | end | |
86 | ||
87 | local p = owner | |
88 | local char = p.Character | |
89 | local larm = char["Left Arm"] | |
90 | local rarm = char["Right Arm"] | |
91 | local lleg = char["Left Leg"] | |
92 | local rleg = char["Right Leg"] | |
93 | local hed = char.Head | |
94 | local torso = char.Torso | |
95 | local hum = char.Humanoid | |
96 | local cam = game.Workspace.CurrentCamera | |
97 | local root = char.HumanoidRootPart | |
98 | local deb = false | |
99 | local CanAttack = true | |
100 | local shot = 0 | |
101 | local animpose = "Idle" | |
102 | local lastanimpose = "Idle" | |
103 | local stanceToggle = "Normal" | |
104 | local l = game:GetService("Lighting") | |
105 | local rs = game:GetService("RunService").RenderStepped | |
106 | math.randomseed(os.time()) | |
107 | hum.MaxHealth = 9001 | |
108 | wait(1) | |
109 | hum.Health = 9001 | |
110 | ||
111 | for i,v in pairs (hed:GetChildren()) do | |
112 | if v:IsA("Sound") then | |
113 | v:Destroy() | |
114 | end | |
115 | end | |
116 | --game:service'InsertService':LoadAsset(16469427):children()[1].Parent = char | |
117 | --char.Reaper.Handle.Mesh.TextureId = "http://www.roblox.com/asset/?id=176349813" | |
118 | ||
119 | ---------------------------------------------------- | |
120 | --[[Additional Variables]] | |
121 | ||
122 | ||
123 | ||
124 | ||
125 | ||
126 | local lightspeed = math.random(0.1,0.2) | |
127 | local holy = false -- Is in holy/angel of death form? | |
128 | local eColors = {"Lime green", "Really black"} | |
129 | local idz = {"161006212", "161006195"} | |
130 | local Effects={} | |
131 | ||
132 | ||
133 | hs = Instance.new("Sound",torso) | |
134 | hs.SoundId = "http://www.roblox.com/asset/?id=149560784" | |
135 | hs.Pitch = 1.2 | |
136 | hs.Volume = 0.6 | |
137 | hs.Looped = true | |
138 | ||
139 | ds = Instance.new("Sound",torso) | |
140 | ds.SoundId = "http://roblox.com/asset/?id=149560784" | |
141 | ds.Pitch = 0.3 | |
142 | ds.Volume = 0.4 | |
143 | ds.Looped = true | |
144 | ||
145 | ||
146 | ds:play() | |
147 | ||
148 | ||
149 | if holy == false then | |
150 | eColors = {"Lime green", "Really black"} | |
151 | else if holy == true then | |
152 | eColors = {"Lime green"} | |
153 | end | |
154 | end | |
155 | ||
156 | ||
157 | ||
158 | ||
159 | ||
160 | ---------------------------------------------------- | |
161 | --[[Additional Functions]] | |
162 | ||
163 | cf=CFrame.new | |
164 | vt=Vector3.new | |
165 | ||
166 | function swait(num) | |
167 | if num==0 or num==nil then | |
168 | game:service'RunService'.Stepped:wait(0) | |
169 | else | |
170 | for i=0,num do | |
171 | game:service'RunService'.Stepped:wait(0) | |
172 | end | |
173 | end | |
174 | end | |
175 | ||
176 | so = function(id,par,vol,pit) | |
177 | coroutine.resume(coroutine.create(function() | |
178 | local sou = Instance.new("Sound",par or workspace) | |
179 | sou.Volume=vol | |
180 | sou.Pitch=pit or 1 | |
181 | sou.SoundId=id | |
182 | swait() | |
183 | sou:play() | |
184 | game:GetService("Debris"):AddItem(sou,6) | |
185 | end)) | |
186 | end | |
187 | ||
188 | ||
189 | ||
190 | ||
191 | ||
192 | ---------------------------------------------------- | |
193 | Debounces = { | |
194 | CanAttack = true; | |
195 | CanJoke = true; | |
196 | NoIdl = false; | |
197 | Slashing = false; | |
198 | Slashed = false; | |
199 | Slapping = false; | |
200 | Slapped = false; | |
201 | ks = false; | |
202 | } | |
203 | ||
204 | local Touche = {char.Name, } | |
205 | ---------------------------------------------------- | |
206 | function HasntTouched(plrname) | |
207 | local ret = true | |
208 | for _, v in pairs(Touche) do | |
209 | if v == plrname then | |
210 | ret = false | |
211 | end | |
212 | end | |
213 | return ret | |
214 | end | |
215 | ---------------------------------------------------- | |
216 | function weld5(part0, part1, c0, c1) | |
217 | weeld=Instance.new("Weld", part0) | |
218 | weeld.Part0=part0 | |
219 | weeld.Part1=part1 | |
220 | weeld.C0=c0 | |
221 | weeld.C1=c1 | |
222 | return weeld | |
223 | end | |
224 | ---------------------------------------------------- | |
225 | mod=Instance.new('Model',char) | |
226 | ||
227 | function Burst() | |
228 | part=Instance.new('Part',mod) | |
229 | part.Anchored=true | |
230 | part.CanCollide=false | |
231 | part.FormFactor='Custom' | |
232 | part.Size=Vector3.new(.2,.2,.2) | |
233 | part.CFrame=root.CFrame*CFrame.new(0,1,0)*CFrame.Angles(math.rad(90),0,0) | |
234 | part.Transparency=.7 | |
235 | ||
236 | if holy ~= true then | |
237 | part.BrickColor=BrickColor.new('Really black') | |
238 | else | |
239 | part.BrickColor=BrickColor.new('Lime green') | |
240 | end | |
241 | ||
242 | mesh=Instance.new('SpecialMesh',part) | |
243 | mesh.MeshId='http://www.roblox.com/asset/?id=20329976' | |
244 | mesh.Scale=Vector3.new(10,5,10) | |
245 | part2=part:clone() | |
246 | part2.Parent=mod | |
247 | ||
248 | if holy ~= true then | |
249 | part2.BrickColor=BrickColor.new('Lime green') | |
250 | else | |
251 | part2.BrickColor=BrickColor.new('Lime green') | |
252 | end | |
253 | ||
254 | mesh2=mesh:clone() | |
255 | mesh2.Parent=part2 | |
256 | mesh2.Scale=Vector3.new(5,2.5,5) | |
257 | coroutine.resume(coroutine.create(function() | |
258 | for i=0,1,0.1 do | |
259 | wait() | |
260 | part.CFrame=part.CFrame | |
261 | part.Transparency=i | |
262 | mesh.Scale=mesh.Scale+Vector3.new(1,1,1) | |
263 | part2.CFrame=part2.CFrame | |
264 | part2.Transparency=i | |
265 | mesh2.Scale=mesh2.Scale+Vector3.new(1,1,1) | |
266 | end | |
267 | part.Parent=nil | |
268 | part2.Parent=nil | |
269 | end)) | |
270 | end | |
271 | ---------------------------------------------------- | |
272 | mod4 = Instance.new("Model",char) | |
273 | ||
274 | ptez = {0.7, 0.8, 0.9, 1} | |
275 | ||
276 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
277 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
278 | local List = {} | |
279 | for i,v in pairs(workspace:GetChildren())do | |
280 | if v:IsA("Model")then | |
281 | if v:findFirstChild("Torso")then | |
282 | if v ~= char then | |
283 | if(v.Torso.Position -Position).magnitude <= Distance then | |
284 | table.insert(List,v) | |
285 | end | |
286 | end | |
287 | end | |
288 | end | |
289 | end | |
290 | return List | |
291 | end | |
292 | ||
293 | function Slam() | |
294 | part=Instance.new('Part',mod4) | |
295 | part.Anchored=true | |
296 | part.CanCollide=false | |
297 | part.FormFactor='Custom' | |
298 | part.Size=Vector3.new(.2,.2,.2) | |
299 | part.CFrame=root.CFrame*CFrame.new(0,-2.8,-1.4)*CFrame.Angles(math.rad(90),0,0) | |
300 | part.Transparency=.7 | |
301 | ||
302 | if holy ~= true then | |
303 | part.BrickColor=BrickColor.new('Really black') | |
304 | else | |
305 | part.BrickColor=BrickColor.new('Lime green') | |
306 | end | |
307 | ||
308 | mesh=Instance.new('SpecialMesh',part) | |
309 | mesh.MeshId='http://www.roblox.com/asset/?id=3270017' | |
310 | mesh.Scale=Vector3.new(3,3,3) | |
311 | part2=Instance.new('Part',mod4) | |
312 | part2.Anchored=true | |
313 | part2.CanCollide=false | |
314 | part2.FormFactor='Custom' | |
315 | part2.Size=Vector3.new(.2,.2,.2) | |
316 | part2.CFrame=root.CFrame*CFrame.new(0,-2.4,-1.6) | |
317 | part2.Transparency=.7 | |
318 | ||
319 | if holy ~= true then | |
320 | part2.BrickColor=BrickColor.new('Lime green') | |
321 | else | |
322 | part2.BrickColor=BrickColor.new('Lime green') | |
323 | end | |
324 | ||
325 | mesh2=Instance.new('SpecialMesh',part2) | |
326 | mesh2.MeshId='http://www.roblox.com/asset/?id=20329976' | |
327 | mesh2.Scale=Vector3.new(3,1.5,3) | |
328 | x = Instance.new("Sound",char) | |
329 | x.SoundId = "http://www.roblox.com/asset/?id=142070127" | |
330 | x.Pitch = ptez[math.random(1,#ptez)] | |
331 | x.Volume = 1 | |
332 | wait(.1) | |
333 | x1 = Instance.new("Sound",char) | |
334 | x1.SoundId = "http://www.roblox.com/asset/?id=206082327" | |
335 | x1.Pitch = ptez[math.random(1,#ptez)] | |
336 | x1.Volume = 1 | |
337 | wait(.1) | |
338 | x:Play() | |
339 | x1:Play() | |
340 | for i,v in pairs(FindNearestTorso(torso.CFrame.p,4))do | |
341 | if v:FindFirstChild('Humanoid') then | |
342 | v.Humanoid:TakeDamage(math.random(99999999,99999999)) | |
343 | end | |
344 | end | |
345 | coroutine.resume(coroutine.create(function() | |
346 | for i=0,0.62,0.13 do | |
347 | wait() | |
348 | part.CFrame=part.CFrame | |
349 | part.Transparency=i | |
350 | mesh.Scale=mesh.Scale+Vector3.new(0.4,0.4,0.4) | |
351 | part2.CFrame=part2.CFrame | |
352 | part2.Transparency=i | |
353 | mesh2.Scale=mesh2.Scale+Vector3.new(0.4,0.2,0.4) | |
354 | end | |
355 | part.Parent=nil | |
356 | part2.Parent=nil | |
357 | x:Destroy() | |
358 | end)) | |
359 | end | |
360 | ----------------------------------------------------PUNCH FUNC | |
361 | function Punch() | |
362 | part=Instance.new('Part',mod4) | |
363 | part.Anchored=true | |
364 | part.CanCollide=false | |
365 | part.FormFactor='Custom' | |
366 | part.Size=Vector3.new(.2,.2,.2) | |
367 | part.CFrame=root.CFrame*CFrame.new(0,1.5,-2.4)*CFrame.Angles(math.rad(0),0,0) | |
368 | part.Transparency=.7 | |
369 | ||
370 | part.BrickColor=BrickColor.new('Really black') | |
371 | mesh=Instance.new('SpecialMesh',part) | |
372 | mesh.MeshId='http://www.roblox.com/asset/?id=3270017' | |
373 | mesh.Scale=Vector3.new(3,3,3) | |
374 | part2=Instance.new('Part',mod4) | |
375 | part2.Anchored=true | |
376 | part2.CanCollide=false | |
377 | ||
378 | part2.FormFactor='Custom' | |
379 | part2.Size=Vector3.new(.2,.2,.2) | |
380 | part2.CFrame=root.CFrame*CFrame.new(0,1.5,-2.4)*CFrame.Angles(math.rad(90),0,0) | |
381 | part2.Transparency=.7 | |
382 | part2.BrickColor=BrickColor.new('Lime green') | |
383 | mesh2=Instance.new('SpecialMesh',part2) | |
384 | mesh2.MeshId='http://www.roblox.com/asset/?id=20329976' | |
385 | mesh2.Scale=Vector3.new(3,1.5,3) | |
386 | for i,v in pairs(FindNearestTorso(torso.CFrame.p,4))do | |
387 | if v:FindFirstChild('Humanoid') then | |
388 | v.Humanoid:TakeDamage(math.random(2,6)) | |
389 | end | |
390 | end | |
391 | coroutine.resume(coroutine.create(function() | |
392 | for i=0,0.62,0.4 do | |
393 | wait() | |
394 | part.CFrame=part.CFrame | |
395 | part.Transparency=i | |
396 | mesh.Scale=mesh.Scale+Vector3.new(0.4,0.4,0.4) | |
397 | part2.CFrame=part2.CFrame | |
398 | part2.Transparency=i | |
399 | mesh2.Scale=mesh2.Scale+Vector3.new(0.4,0.2,0.4) | |
400 | end | |
401 | part.Parent=nil | |
402 | part2.Parent=nil | |
403 | end)) | |
404 | end | |
405 | ---------------------------------------------------- | |
406 | GroundWave = function() | |
407 | local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
408 | local Colors = {"Lime green", "Really black"} | |
409 | local wave = Instance.new("Part", torso) | |
410 | ||
411 | if holy == false then | |
412 | wave.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
413 | else | |
414 | wave.BrickColor = BrickColor.new("Lime green") | |
415 | end | |
416 | ||
417 | wave.Anchored = true | |
418 | wave.CanCollide = false | |
419 | wave.Material = "Neon" | |
420 | wave.Locked = true | |
421 | wave.Size = Vector3.new(1, 1, 1) | |
422 | wave.TopSurface = "Smooth" | |
423 | wave.BottomSurface = "Smooth" | |
424 | wave.Transparency = 0.35 | |
425 | wave.CFrame = HandCF | |
426 | wm = Instance.new("SpecialMesh", wave) | |
427 | wm.MeshId = "rbxassetid://3270017" | |
428 | coroutine.wrap(function() | |
429 | for i = 1, 14, 1 do | |
430 | wm.Scale = Vector3.new(1 + i*1.1, 1 + i*1.1, 1) | |
431 | wave.Size = wm.Scale | |
432 | wave.CFrame = HandCF | |
433 | wave.Transparency = i/14 | |
434 | wait() | |
435 | end | |
436 | wait() | |
437 | wave:Destroy() | |
438 | end)() | |
439 | end | |
440 | ---------------------------------------------------- | |
441 | Magik = function() | |
442 | Spawn(function() | |
443 | local function lerp(a,b,c) | |
444 | return a+(b-a)*c | |
445 | end | |
446 | local function rndRange(rng) | |
447 | return math.random(-rng*1000,rng*1000)/1000 | |
448 | end | |
449 | local magik = Instance.new("Part", larm) | |
450 | local Colors = {"Lime green", "Really black"} | |
451 | magik.Anchored = true | |
452 | magik.Locked = true | |
453 | magik.Material = "Neon" | |
454 | magik.FormFactor = "Custom" | |
455 | magik.Size = Vector3.new(1.2, 1.2, 1.2) | |
456 | magik.TopSurface = "Smooth" | |
457 | magik.BottomSurface = "Smooth" | |
458 | magik.Transparency = 0 | |
459 | magik.CanCollide = false | |
460 | ||
461 | if holy == false then | |
462 | magik.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
463 | else | |
464 | magik.BrickColor = BrickColor.new("Lime green") | |
465 | end | |
466 | ||
467 | local mr = math.rad | |
468 | local rnx,rny,rnz = mr(rndRange(180)),mr(rndRange(180)),mr(rndRange(180)) | |
469 | local cf = larm.CFrame * CFrame.new(0, -.8, 0) * CFrame.Angles(rnx,rny,rnz) | |
470 | magik.CFrame = cf | |
471 | for i = 0, 1, .05 do | |
472 | local newTrans = lerp(0.5, 1, i) | |
473 | local ns = lerp(1,1.2,i) | |
474 | magik.Transparency = newTrans | |
475 | magik.Size = Vector3.new(ns,ns,ns) | |
476 | magik.CFrame = cf | |
477 | rs:wait() | |
478 | end | |
479 | magik:Destroy() | |
480 | wait() | |
481 | end) | |
482 | end | |
483 | ---------------------------------------------------- | |
484 | Magik2 = function() | |
485 | Spawn(function() | |
486 | if stanceToggle == "Melee" then | |
487 | local function lerp(a,b,c) | |
488 | return a+(b-a)*c | |
489 | end | |
490 | local function rndRange(rng) | |
491 | return math.random(-rng*1000,rng*1000)/1000 | |
492 | end | |
493 | local magik2 = Instance.new("Part", rarm) | |
494 | local Colors = {"Lime green", "Really black"} | |
495 | magik2.Anchored = true | |
496 | magik2.Locked = true | |
497 | magik2.FormFactor = "Custom" | |
498 | magik2.Size = Vector3.new(1.2, 1.2, 1.2) | |
499 | magik2.TopSurface = "Smooth" | |
500 | magik2.BottomSurface = "Smooth" | |
501 | magik2.Transparency = 0 | |
502 | magik2.Material = "Neon" | |
503 | magik2.CanCollide = false | |
504 | ||
505 | if holy == false then | |
506 | magik2.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
507 | else | |
508 | magik2.BrickColor = BrickColor.new("Lime green") | |
509 | end | |
510 | ||
511 | local mr = math.rad | |
512 | local rnx,rny,rnz = mr(rndRange(180)),mr(rndRange(180)),mr(rndRange(180)) | |
513 | local cf = rarm.CFrame * CFrame.new(0, -.8, 0) * CFrame.Angles(rnx,rny,rnz) | |
514 | magik2.CFrame = cf | |
515 | for i = 0, 1, .05 do | |
516 | local newTrans = lerp(0.5, 1, i) | |
517 | local ns = lerp(1,1.2,i) | |
518 | magik2.Transparency = newTrans | |
519 | magik2.Size = Vector3.new(ns,ns,ns) | |
520 | magik2.CFrame = cf | |
521 | rs:wait() | |
522 | end | |
523 | magik2:Destroy() | |
524 | elseif stanceToggle ~= "Melee" then | |
525 | wait() | |
526 | end | |
527 | end) | |
528 | end | |
529 | ---------------------------------------------------- | |
530 | function lerp(a, b, t) -- Linear interpolation | |
531 | return a + (b - a)*t | |
532 | end | |
533 | ||
534 | function slerp(a, b, t) --Spherical interpolation | |
535 | dot = a:Dot(b) | |
536 | if dot > 0.99999 or dot < -0.99999 then | |
537 | return t <= 0.5 and a or b | |
538 | else | |
539 | r = math.acos(dot) | |
540 | return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r) | |
541 | end | |
542 | end | |
543 | ||
544 | function matrixInterpolate(a, b, t) | |
545 | local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components() | |
546 | local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components() | |
547 | local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position | |
548 | local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right | |
549 | local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up | |
550 | local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back | |
551 | local t = v1:Dot(v2) | |
552 | if not (t < 0 or t == 0 or t > 0) then -- Failsafe | |
553 | return CFrame.new() | |
554 | end | |
555 | return CFrame.new( | |
556 | v0.x, v0.y, v0.z, | |
557 | v1.x, v1.y, v1.z, | |
558 | v2.x, v2.y, v2.z, | |
559 | v3.x, v3.y, v3.z) | |
560 | end | |
561 | ---------------------------------------------------- | |
562 | function genWeld(a,b) | |
563 | local w = Instance.new("Weld",a) | |
564 | w.Part0 = a | |
565 | w.Part1 = b | |
566 | return w | |
567 | end | |
568 | function weld(a, b) | |
569 | local weld = Instance.new("Weld") | |
570 | weld.Name = "W" | |
571 | weld.Part0 = a | |
572 | weld.Part1 = b | |
573 | weld.C0 = a.CFrame:inverse() * b.CFrame | |
574 | weld.Parent = a | |
575 | return weld; | |
576 | end | |
577 | ---------------------------------------------------- | |
578 | function Lerp(c1,c2,al) | |
579 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()} | |
580 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()} | |
581 | for i,v in pairs(com1) do | |
582 | com1[i] = v+(com2[i]-v)*al | |
583 | end | |
584 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
585 | end | |
586 | ----------------------------------------------------[[Dissolve function]] | |
587 | function Dissolve(ret) | |
588 | ||
589 | ret.BrickColor = BrickColor.new("Really black") | |
590 | for i = 1, 10 do wait() | |
591 | for i,v in pairs(ret:GetChildren()) do | |
592 | if v:IsA("Part") or v:IsA("WedgePart") then | |
593 | v.Transparency = v.Transparency + 0.1 | |
594 | ||
595 | end | |
596 | end | |
597 | end | |
598 | ret:Destroy() | |
599 | end | |
600 | ||
601 | ---------------------------------------------------- | |
602 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
603 | local wld = Instance.new("Weld", wp1) | |
604 | wld.Part0 = wp0 | |
605 | wld.Part1 = wp1 | |
606 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
607 | end | |
608 | ---------------------------------------------------- | |
609 | newWeld(torso, larm, -1.5, 0.5, 0) | |
610 | larm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
611 | newWeld(torso, rarm, 1.5, 0.5, 0) | |
612 | rarm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
613 | newWeld(torso, hed, 0, 1.5, 0) | |
614 | newWeld(torso, lleg, -0.5, -1, 0) | |
615 | lleg.Weld.C1 = CFrame.new(0, 1, 0) | |
616 | newWeld(torso, rleg, 0.5, -1, 0) | |
617 | rleg.Weld.C1 = CFrame.new(0, 1, 0) | |
618 | newWeld(root, torso, 0, -1, 0) | |
619 | torso.Weld.C1 = CFrame.new(0, -1, 0) | |
620 | ---------------------------------------------------- | |
621 | --local SIDz = {"167985102, 163752916"}--181449739, 167161785, 148274436, 167985102, 163752916 | |
622 | z = Instance.new("Sound",char) --music | |
623 | z.SoundId = "rbxassetid://0"--..SIDz[math.random(1,#SIDz)] | |
624 | z.Looped = true | |
625 | z.Volume = 1 | |
626 | z.Pitch = .72 | |
627 | wait(1) | |
628 | z:Play() | |
629 | hum.WalkSpeed = 10 | |
630 | ||
631 | ||
632 | ||
633 | ||
634 | ||
635 | --[[partic = Instance.new("ParticleEmitter",hed) | |
636 | partic.Color = ColorSequence.new(Color3.new(15/225,0,225/45),Color3.new(20/255,0,205/255)) | |
637 | partic.LightEmission = .95 | |
638 | partic.VelocityInheritance = 0 | |
639 | partic.Rate = 300 | |
640 | partic.Texture = "rbxassetid:// 241650934" --56561915392079955 | |
641 | partic.Lifetime = NumberRange.new(0.1,0.2) | |
642 | partic.RotSpeed = NumberRange.new(100,100) | |
643 | partic.Speed = NumberRange.new(2,6) | |
644 | partic.Enabled = true | |
645 | partic.LockedToPart = true]] | |
646 | ||
647 | --Nah | |
648 | ||
649 | ---------------------------------------------------- | |
650 | ||
651 | ---------------------------------------------------- | |
652 | local m = Instance.new("Model") | |
653 | m.Name = "Genkadda" | |
654 | p1 = Instance.new("Part", m) | |
655 | p1.Material = "Metal" | |
656 | p1.BrickColor = BrickColor.new("Really black") | |
657 | p1.Name = "BladePart" | |
658 | p1.FormFactor = Enum.FormFactor.Symmetric | |
659 | p1.Size = Vector3.new(1, 1, 1) | |
660 | p1.CFrame = CFrame.new(103.003883, 10.755723, -7.61905956, 5.61699271e-005, -7.1823597e-006, 0.999998987, -0.984785616, -0.173714966, 3.55839729e-005, 0.173720747, -0.984761655, 5.9530139e-006) | |
661 | p1.CanCollide = false | |
662 | p1.Locked = true | |
663 | p1.Elasticity = 0 | |
664 | p1.BottomSurface = Enum.SurfaceType.Smooth | |
665 | p1.TopSurface = Enum.SurfaceType.Smooth | |
666 | b1 = Instance.new("BlockMesh", p1) | |
667 | b1.Name = "Mesh" | |
668 | b1.Scale = Vector3.new(0.299999923, 1, 0.120000005) | |
669 | p2 = Instance.new("Part", m) | |
670 | p2.Material = "Metal" | |
671 | p2.BrickColor = BrickColor.new("Really black") | |
672 | p2.FormFactor = Enum.FormFactor.Symmetric | |
673 | p2.Size = Vector3.new(1, 1, 1) | |
674 | p2.CFrame = CFrame.new(103.00399, 10.7255898, -6.52608919, 0.00135809346, 0.00169118668, -0.999996662, 0.965820193, 0.259168088, 0.0017684648, 0.259154975, -0.965800881, -0.00130418094) | |
675 | p2.CanCollide = false | |
676 | p2.Locked = true | |
677 | p2.Elasticity = 0 | |
678 | p2.BottomSurface = Enum.SurfaceType.Smooth | |
679 | p2.TopSurface = Enum.SurfaceType.Smooth | |
680 | b2 = Instance.new("BlockMesh", p2) | |
681 | b2.Name = "Mesh" | |
682 | b2.Scale = Vector3.new(0.099999927, 0.699999928, 0.099999927) | |
683 | p3 = Instance.new("Part", m) | |
684 | p3.Material = "Metal" | |
685 | p3.BrickColor = BrickColor.new("Really black") | |
686 | p3.FormFactor = Enum.FormFactor.Symmetric | |
687 | p3.Size = Vector3.new(1, 2, 1) | |
688 | p3.CFrame = CFrame.new(103.004028, 11.1456547, -6.819067, 1.43263023e-005, -2.88564479e-006, 0.999998987, -0.882936299, -0.469471544, -7.18829688e-006, 0.469469696, -0.882911503, 1.35099981e-005) | |
689 | p3.CanCollide = false | |
690 | p3.Locked = true | |
691 | p3.Elasticity = 0 | |
692 | p3.BottomSurface = Enum.SurfaceType.Smooth | |
693 | p3.TopSurface = Enum.SurfaceType.Smooth | |
694 | b3 = Instance.new("BlockMesh", p3) | |
695 | b3.Name = "Mesh" | |
696 | b3.Scale = Vector3.new(0.099999927, 0.699999928, 0.099999927) | |
697 | p4 = Instance.new("Part", m) | |
698 | p4.Material = "Metal" | |
699 | p4.BrickColor = BrickColor.new("Really black") | |
700 | p4.Name = "BladePart" | |
701 | p4.FormFactor = Enum.FormFactor.Symmetric | |
702 | p4.Size = Vector3.new(1, 1, 1) | |
703 | p4.CFrame = CFrame.new(103.003372, 10.965373, -6.66876507, 1.57370523e-005, -6.04354591e-006, 0.999996603, -0.965898931, -0.25886938, -7.14969246e-006, 0.258875549, -0.965874314, 1.58735529e-005) | |
704 | p4.CanCollide = false | |
705 | p4.Locked = true | |
706 | p4.Elasticity = 0 | |
707 | p4.BottomSurface = Enum.SurfaceType.Smooth | |
708 | p4.TopSurface = Enum.SurfaceType.Smooth | |
709 | b4 = Instance.new("BlockMesh", p4) | |
710 | b4.Name = "Mesh" | |
711 | b4.Scale = Vector3.new(0.299999923, 1, 0.120000005) | |
712 | p5 = Instance.new("Part", m) | |
713 | p5.Material = "Metal" | |
714 | p5.BrickColor = BrickColor.new("Really black") | |
715 | p5.Name = "Hilt" | |
716 | p5.FormFactor = Enum.FormFactor.Custom | |
717 | p5.Size = Vector3.new(1, 0.400000006, 1.60000014) | |
718 | p5.CFrame = CFrame.new(103.003395, 11.0653381, -6.1687479, -0.99999404, 5.54991711e-005, -0.000617815298, -0.000594727404, -0.000124425016, 0.999983907, 2.66434654e-005, 0.999962509, 0.000109782166) | |
719 | p5.CanCollide = false | |
720 | p5.Locked = true | |
721 | p5.BottomSurface = Enum.SurfaceType.Smooth | |
722 | p5.TopSurface = Enum.SurfaceType.Smooth | |
723 | b5 = Instance.new("BlockMesh", p5) | |
724 | b5.Name = "Mesh" | |
725 | b5.Scale = Vector3.new(0.299999923, 0.399999917, 0.799999952) | |
726 | p6 = Instance.new("Part", m) | |
727 | p6.Material = "Metal" | |
728 | p6.BrickColor = BrickColor.new("Really black") | |
729 | p6.Name = "Handle" | |
730 | p6.FormFactor = Enum.FormFactor.Custom | |
731 | p6.Size = Vector3.new(1.29999995, 1, 1) | |
732 | p6.CFrame = CFrame.new(103.000061, 11.0688219, -5.5480547, -1.23393656e-005, -1.36360759e-005, 0.999994218, 5.37017331e-006, 0.999984086, -9.45257489e-006, -0.999962509, -9.28580994e-006, 1.64470257e-005) | |
733 | p6.CanCollide = false | |
734 | p6.Locked = true | |
735 | p6.BottomSurface = Enum.SurfaceType.Smooth | |
736 | p6.TopSurface = Enum.SurfaceType.Smooth | |
737 | b6 = Instance.new("SpecialMesh", p6) | |
738 | b6.MeshType = Enum.MeshType.Cylinder | |
739 | b6.Name = "Mesh" | |
740 | b6.Scale = Vector3.new(1, 0.200000003, 0.200000003) | |
741 | p7 = Instance.new("Part", m) | |
742 | p7.Material = "Metal" | |
743 | p7.BrickColor = BrickColor.new("Really black") | |
744 | p7.FormFactor = Enum.FormFactor.Symmetric | |
745 | p7.Size = Vector3.new(1, 1, 1) | |
746 | p7.CFrame = CFrame.new(103.000099, 11.0688391, -4.79808855, -0.000332629686, 0.00429873355, -0.99998492, -4.5920292e-006, 0.999974728, 0.00432178052, 0.999962449, -8.49941443e-006, -0.000361445156) | |
747 | p7.CanCollide = false | |
748 | p7.Locked = true | |
749 | b7 = Instance.new("SpecialMesh", p7) | |
750 | b7.MeshId = "http://www.roblox.com/Asset/?id=9756362" | |
751 | b7.TextureId = "" | |
752 | b7.MeshType = Enum.MeshType.FileMesh | |
753 | b7.Name = "Mesh" | |
754 | b7.Scale = Vector3.new(0.400000006, 0.400000006, 0.400000006) | |
755 | p8 = Instance.new("Part", m) | |
756 | p8.Material = "Metal" | |
757 | p8.BrickColor = BrickColor.new("Really black") | |
758 | p8.Name = "BladePart" | |
759 | p8.FormFactor = Enum.FormFactor.Symmetric | |
760 | p8.Size = Vector3.new(1, 1, 1) | |
761 | p8.CFrame = CFrame.new(103.003326, 10.6254845, -8.59870911, -2.92104669e-005, -1.10579058e-005, 0.999994218, -0.996175766, -0.0871899351, -5.3152442e-005, 0.0872026458, -0.996152997, 2.03179661e-005) | |
762 | p8.CanCollide = false | |
763 | p8.Locked = true | |
764 | p8.Elasticity = 0 | |
765 | p8.BottomSurface = Enum.SurfaceType.Smooth | |
766 | p8.TopSurface = Enum.SurfaceType.Smooth | |
767 | b8 = Instance.new("BlockMesh", p8) | |
768 | b8.Name = "Mesh" | |
769 | b8.Scale = Vector3.new(0.299999923, 1, 0.120000005) | |
770 | p9 = Instance.new("Part", m) | |
771 | p9.Material = "Metal" | |
772 | p9.BrickColor = BrickColor.new("Really black") | |
773 | p9.Name = "BladePart" | |
774 | p9.FormFactor = Enum.FormFactor.Symmetric | |
775 | p9.Size = Vector3.new(1, 1, 1) | |
776 | p9.CFrame = CFrame.new(103.003311, 10.625597, -9.51878738, -2.59891603e-005, -1.34348729e-005, 0.999994218, -0.996185422, 0.087079078, -4.78096408e-005, -0.0870626047, -0.996165276, 1.31400229e-005) | |
777 | p9.CanCollide = false | |
778 | p9.Locked = true | |
779 | p9.Elasticity = 0 | |
780 | p9.BottomSurface = Enum.SurfaceType.Smooth | |
781 | p9.TopSurface = Enum.SurfaceType.Smooth | |
782 | b9 = Instance.new("BlockMesh", p9) | |
783 | b9.Name = "Mesh" | |
784 | b9.Scale = Vector3.new(0.299999923, 1, 0.120000005) | |
785 | p10 = Instance.new("Part", m) | |
786 | p10.Material = "Metal" | |
787 | p10.BrickColor = BrickColor.new("Really black") | |
788 | p10.Name = "BladeTip" | |
789 | p10.FormFactor = Enum.FormFactor.Symmetric | |
790 | p10.Size = Vector3.new(1, 1, 2) | |
791 | p10.CFrame = CFrame.new(103.00309, 11.1081867, -11.6109829, -0.999994099, -0.000455793255, 4.643387e-005, 0.00045133481, -0.965918779, -0.25878337, 0.000134008093, -0.258763671, 0.965901971) | |
792 | p10.CanCollide = false | |
793 | p10.Locked = true | |
794 | p10.Elasticity = 0 | |
795 | p10.BottomSurface = Enum.SurfaceType.Smooth | |
796 | p10.TopSurface = Enum.SurfaceType.Smooth | |
797 | b10 = Instance.new("SpecialMesh", p10) | |
798 | b10.MeshType = Enum.MeshType.Wedge | |
799 | b10.Name = "Mesh" | |
800 | b10.Scale = Vector3.new(0.119999997, 0.299999923, 0.699999928) | |
801 | p11 = Instance.new("Part", m) | |
802 | p11.Material = "Metal" | |
803 | p11.BrickColor = BrickColor.new("Really black") | |
804 | p11.Name = "BladePart" | |
805 | p11.FormFactor = Enum.FormFactor.Symmetric | |
806 | p11.Size = Vector3.new(1, 1, 1) | |
807 | p11.CFrame = CFrame.new(103.003296, 10.7956495, -10.4587727, 2.83485351e-005, -1.54050977e-005, 0.999994218, -0.96592474, 0.258761972, 8.27970416e-006, -0.258742362, -0.965907693, 2.1241216e-005) | |
808 | p11.CanCollide = false | |
809 | p11.Locked = true | |
810 | p11.Elasticity = 0 | |
811 | p11.BottomSurface = Enum.SurfaceType.Smooth | |
812 | p11.TopSurface = Enum.SurfaceType.Smooth | |
813 | b11 = Instance.new("BlockMesh", p11) | |
814 | b11.Name = "Mesh" | |
815 | b11.Scale = Vector3.new(0.299999923, 1, 0.120000005) | |
816 | p12 = Instance.new("Part", m) | |
817 | p12.Material = "Metal" | |
818 | p12.BrickColor = BrickColor.new("Really black") | |
819 | p12.Name = "BladeTip2" | |
820 | p12.FormFactor = Enum.FormFactor.Custom | |
821 | p12.Size = Vector3.new(1, 1, 2.4000001) | |
822 | p12.CFrame = CFrame.new(102.999977, 10.6319504, -10.4398403, -0.999994218, -5.5769262e-005, 6.55075928e-005, 4.61044419e-006, 0.882887006, 0.469551951, -0.000112806956, 0.469529003, -0.882874727) | |
823 | p12.CanCollide = false | |
824 | p12.Locked = true | |
825 | p12.Elasticity = 0 | |
826 | p12.BottomSurface = Enum.SurfaceType.Smooth | |
827 | p12.TopSurface = Enum.SurfaceType.Smooth | |
828 | b12 = Instance.new("SpecialMesh", p12) | |
829 | b12.MeshType = Enum.MeshType.Wedge | |
830 | b12.Name = "Mesh" | |
831 | b12.Scale = Vector3.new(0.119999997, 0.239999995, 0.699999928) | |
832 | p13 = Instance.new("Part", m) | |
833 | p13.Material = "Metal" | |
834 | p13.BrickColor = BrickColor.new("Medium stone grey") | |
835 | p13.Transparency = 1 | |
836 | p13.Name = "HitBox" | |
837 | p13.FormFactor = Enum.FormFactor.Custom | |
838 | p13.Size = Vector3.new(6.0999999, 0.400000006, 1.5999999) | |
839 | p13.CFrame = CFrame.new(103.009995, 10.9988394, -9.2679081, 1.22519814e-005, -0.999994218, 1.36361559e-005, -5.27501106e-006, 9.45320426e-006, -0.999984264, 0.999962687, -1.65344682e-005, 9.20891762e-006) | |
840 | p13.CanCollide = false | |
841 | p13.Locked = true | |
842 | p13.BottomSurface = Enum.SurfaceType.Smooth | |
843 | p13.TopSurface = Enum.SurfaceType.Smooth | |
844 | w1 = Instance.new("Weld", p1) | |
845 | w1.Name = "Part_Weld" | |
846 | w1.Part0 = p1 | |
847 | w1.C0 = CFrame.new(11.9124546, -5.63626003, -103.00383, 4.33940659e-005, -0.984795153, 0.173719674, 1.85460614e-009, -0.173719659, -0.984795094, 1, 4.27345876e-005, -7.53657105e-006) | |
848 | w1.Part1 = p2 | |
849 | w1.C1 = CFrame.new(-8.80891991, -9.26009178, 102.975845, 0.00136663229, 0.965830803, 0.259170175, 0.00170310249, 0.25916782, -0.965830863, -0.999997616, 0.00176132878, -0.00129072159) | |
850 | w2 = Instance.new("Weld", p2) | |
851 | w2.Name = "Part_Weld" | |
852 | w2.Part0 = p2 | |
853 | w2.C0 = CFrame.new(-8.80891991, -9.26009178, 102.975845, 0.00136663229, 0.965830803, 0.259170175, 0.00170310249, 0.25916782, -0.965830863, -0.999997616, 0.00176132878, -0.00129072159) | |
854 | w2.Part1 = p3 | |
855 | w2.C1 = CFrame.new(13.0439634, -0.78926897, -103.003448, -4.37113883e-008, -0.88294369, 0.469478935, 0, -0.469478935, -0.88294369, 1, -3.85946954e-008, 2.05215755e-008) | |
856 | w3 = Instance.new("Weld", p3) | |
857 | w3.Name = "BladePart_Weld" | |
858 | w3.Part0 = p3 | |
859 | w3.C0 = CFrame.new(13.0439634, -0.78926897, -103.003448, -4.37113883e-008, -0.88294369, 0.469478935, 0, -0.469478935, -0.88294369, 1, -3.85946954e-008, 2.05215755e-008) | |
860 | w3.Part1 = p4 | |
861 | w3.C1 = CFrame.new(12.3193283, -3.60437131, -103.003067, 2.38418579e-006, -0.965907753, 0.258877277, 0, -0.258874893, -0.965907753, 0.999997616, 0, 2.38418579e-006) | |
862 | w4 = Instance.new("Weld", p4) | |
863 | w4.Name = "Hilt_Weld" | |
864 | w4.Part0 = p4 | |
865 | w4.C0 = CFrame.new(12.3193283, -3.60437131, -103.003067, 2.38418579e-006, -0.965907753, 0.258877277, 0, -0.258874893, -0.965907753, 0.999997616, 0, 2.38418579e-006) | |
866 | w4.Part1 = p5 | |
867 | w4.C1 = CFrame.new(103.010277, 6.16758585, -11.003541, -0.999999821, -0.00060418935, 4.31301851e-005, 4.32021443e-005, -0.000119086159, 1, -0.000604184228, 0.999999821, 0.000119112243) | |
868 | w5 = Instance.new("Weld", p5) | |
869 | w5.Name = "Handle_Weld" | |
870 | w5.Part0 = p5 | |
871 | w5.C0 = CFrame.new(103.010277, 6.16758585, -11.003541, -0.999999821, -0.00060418935, 4.31301851e-005, 4.32021443e-005, -0.000119086159, 1, -0.000604184228, 0.999999821, 0.000119112243) | |
872 | w5.Part1 = p6 | |
873 | w5.C1 = CFrame.new(-5.54999733, -11.0699978, -103, -4.37113883e-008, 2.98366913e-008, -1, 0, 1, 2.98366913e-008, 1, 1.3042032e-015, -4.37113883e-008) | |
874 | w6 = Instance.new("Weld", p6) | |
875 | w6.Name = "Part_Weld" | |
876 | w6.Part0 = p6 | |
877 | w6.C0 = CFrame.new(-5.54999733, -11.0699978, -103, -4.37113883e-008, 2.98366913e-008, -1, 0, 1, 2.98366913e-008, 1, 1.3042032e-015, -4.37113883e-008) | |
878 | w6.Part1 = p7 | |
879 | w6.C1 = CFrame.new(4.83552647, -11.5140886, 102.949669, -0.000344927335, 7.4505806e-007, 0.99999994, 0.00431239465, 0.999990702, 7.4505806e-007, -0.999990642, 0.00431239465, -0.000344927335) | |
880 | w7 = Instance.new("Weld", p7) | |
881 | w7.Name = "BladePart_Weld" | |
882 | w7.Part0 = p7 | |
883 | w7.C0 = CFrame.new(4.83552647, -11.5140886, 102.949669, -0.000344927335, 7.4505806e-007, 0.99999994, 0.00431239465, 0.999990702, 7.4505806e-007, -0.999990642, 0.00431239465, -0.000344927335) | |
884 | w7.Part1 = p8 | |
885 | w7.C1 = CFrame.new(11.3406382, -7.6414094, -103.0028, -4.38670977e-005, -0.996191144, 0.0871966407, 1.91451011e-009, -0.0871966407, -0.996191144, 1, -4.36998489e-005, 3.82696771e-006) | |
886 | w8 = Instance.new("Weld", p8) | |
887 | w8.Name = "BladePart_Weld" | |
888 | w8.Part0 = p8 | |
889 | w8.C0 = CFrame.new(11.3406382, -7.6414094, -103.0028, -4.38670977e-005, -0.996191144, 0.0871966407, 1.91451011e-009, -0.0871966407, -0.996191144, 1, -4.36998489e-005, 3.82696771e-006) | |
890 | w8.Part1 = p9 | |
891 | w8.C1 = CFrame.new(9.76131344, -10.4100504, -103.002922, -3.85031162e-005, -0.996201694, -0.0870751292, 1.47589729e-009, 0.0870751366, -0.996201754, 1, -3.83570004e-005, -3.35119148e-006) | |
892 | w9 = Instance.new("Weld", p9) | |
893 | w9.Name = "BladeTip_Weld" | |
894 | w9.Part0 = p9 | |
895 | w9.C0 = CFrame.new(9.76131344, -10.4100504, -103.002922, -3.85031162e-005, -0.996201694, -0.0870751292, 1.47589729e-009, 0.0870751366, -0.996201754, 1, -3.83570004e-005, -3.35119148e-006) | |
896 | w9.Part1 = p10 | |
897 | w9.C1 = CFrame.new(102.999939, 7.7735939, 14.0892649, -0.999999881, 0.000441889424, 0.000150508567, -0.000465785735, -0.965935588, -0.258782327, 3.10284122e-005, -0.258782327, 0.965935647) | |
898 | w10 = Instance.new("Weld", p10) | |
899 | w10.Name = "BladePart_Weld" | |
900 | w10.Part0 = p10 | |
901 | w10.C0 = CFrame.new(102.999939, 7.7735939, 14.0892649, -0.999999881, 0.000441889424, 0.000150508567, -0.000465785735, -0.965935588, -0.258782327, 3.10284122e-005, -0.258782327, 0.965935647) | |
902 | w10.Part1 = p11 | |
903 | w10.C1 = CFrame.new(7.72030354, -12.8984127, -103.003448, 1.83585671e-005, -0.965941429, -0.258760989, 3.25545535e-010, 0.258760959, -0.96594137, 1, 1.77332167e-005, 4.7507956e-006) | |
904 | w11 = Instance.new("Weld", p11) | |
905 | w11.Name = "BladeTip2_Weld" | |
906 | w11.Part0 = p11 | |
907 | w11.C0 = CFrame.new(7.72030354, -12.8984127, -103.003448, 1.83585671e-005, -0.965941429, -0.258760989, 3.25545535e-010, 0.258760959, -0.96594137, 1, 1.77332167e-005, 4.7507956e-006) | |
908 | w11.Part1 = p12 | |
909 | w11.C1 = CFrame.new(102.999031, -4.47981405, -14.2206001, -1, -4.84334305e-006, -9.63198472e-005, -4.95036402e-005, 0.882903397, 0.469554722, 8.27668991e-005, 0.469554722, -0.882903397) | |
910 | w12 = Instance.new("Weld", p12) | |
911 | w12.Name = "HitBox_Weld" | |
912 | w12.Part0 = p12 | |
913 | w12.C0 = CFrame.new(102.999031, -4.47981405, -14.2206001, -1, -4.84334305e-006, -9.63198472e-005, -4.95036402e-005, 0.882903397, 0.469554722, 8.27668991e-005, 0.469554722, -0.882903397) | |
914 | w12.Part1 = p13 | |
915 | w12.C1 = CFrame.new(9.27000427, 103.009995, 10.9999933, -4.37113883e-008, -4.37113883e-008, 1, -1, 1.91068547e-015, -4.37113883e-008, 0, -1, -4.37113883e-008) | |
916 | w13 = Instance.new("Weld", p13) | |
917 | w13.Name = "Weld" | |
918 | w13.Part0 = p13 | |
919 | w13.C0 = CFrame.new(9.27000427, 103.009995, 10.9999933, -4.37113883e-008, -4.37113883e-008, 1, -1, 1.91068547e-015, -4.37113883e-008, 0, -1, -4.37113883e-008) | |
920 | m.Parent = char | |
921 | m:MakeJoints() | |
922 | ---------------------------------------------------- | |
923 | local cor = Instance.new("Part", char.Genkadda) | |
924 | cor.Name = "Thingy" | |
925 | cor.Locked = true | |
926 | cor.BottomSurface = 0 | |
927 | cor.CanCollide = false | |
928 | cor.Size = Vector3.new(1, 9, 1) | |
929 | cor.Transparency = 1 | |
930 | cor.TopSurface = 0 | |
931 | corw = Instance.new("Weld", cor) | |
932 | corw.Part0 = rarm | |
933 | corw.Part1 = cor | |
934 | corw.C0 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(90)) | |
935 | corw.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
936 | weld1 = Instance.new("Weld", char.Genkadda) | |
937 | weld1.Part0 = cor | |
938 | weld1.Part1 = p6 | |
939 | weld1.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
940 | ---------------------------------------------------- Gauntlet | |
941 | ||
942 | m=Instance.new('Model',char) | |
943 | ||
944 | ||
945 | local function weldBetween(a, b) | |
946 | local weldd = Instance.new("ManualWeld") | |
947 | weldd.Part0 = a | |
948 | weldd.Part1 = b | |
949 | weldd.C0 = CFrame.new() | |
950 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
951 | weldd.Parent = a | |
952 | return weldd | |
953 | end | |
954 | ||
955 | it=Instance.new | |
956 | ||
957 | function nooutline(part) | |
958 | part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10 | |
959 | end | |
960 | ||
961 | function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size) | |
962 | local fp=it("Part") | |
963 | fp.formFactor=formfactor | |
964 | fp.Parent=parent | |
965 | fp.Reflectance=reflectance | |
966 | fp.Transparency=transparency | |
967 | fp.CanCollide=false | |
968 | fp.Locked=true | |
969 | fp.BrickColor=BrickColor.new(tostring(brickcolor)) | |
970 | fp.Name=name | |
971 | fp.Size=size | |
972 | fp.Position=char.Torso.Position | |
973 | nooutline(fp) | |
974 | fp.Material=material | |
975 | fp:BreakJoints() | |
976 | return fp | |
977 | end | |
978 | ||
979 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
980 | local mesh=it(Mesh) | |
981 | mesh.Parent=part | |
982 | if Mesh=="SpecialMesh" then | |
983 | mesh.MeshType=meshtype | |
984 | mesh.MeshId=meshid | |
985 | end | |
986 | mesh.Offset=offset | |
987 | mesh.Scale=scale | |
988 | return mesh | |
989 | end | |
990 | ||
991 | function weld(parent,part0,part1,c0,c1) | |
992 | local weld=it("Weld") | |
993 | weld.Parent=parent | |
994 | weld.Part0=part0 | |
995 | weld.Part1=part1 | |
996 | weld.C0=c0 | |
997 | weld.C1=c1 | |
998 | return weld | |
999 | end | |
1000 | ||
1001 | MN=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Lime green","Handle",Vector3.new(1.09732866, 2.19465828, 1.09732854)) | |
1002 | MNweld=weld(m,char["Right Arm"],MN,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0323486328, -0.0509860516, -0.00120401382, -0.00500982394, 0.00520668458, 0.999973893, -0.00739898486, 0.999958873, -0.00524367485, -0.999960065, -0.00742506143, -0.0049710935)) | |
1003 | TR7=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Lime green","TR7",Vector3.new(1.09732866, 0.274332285, 1.09732854)) | |
1004 | TR7weld=weld(m,MN,TR7,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000442504883, 0.68581605, 0.000279426575, 1.00000381, 0.000690042973, -0.000169841573, 0.000690029934, -0.999999702, -0.000261242967, -0.000170052983, 0.000261111214, -1.00000393)) | |
1005 | mesh("SpecialMesh",TR7,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1.02999997, 1.02999997)) | |
1006 | MD9=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","MD9",Vector3.new(1.09732866, 0.266768783, 1.09732854)) | |
1007 | MD9weld=weld(m,MN,MD9,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.741846681, 0.199262142, 1.00000405, -6.92205504e-06, 0.000154254027, 4.65649646e-05, 0.965939224, -0.25876984, -0.000147186685, 0.258768767, 0.965943158)) | |
1008 | mesh("SpecialMesh",MD9,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1.01999998, 0.411340922, 1.01999998)) | |
1009 | MD1=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","MD1",Vector3.new(0.237408489, 0.259352177, 0.518704116)) | |
1010 | MD1weld=weld(m,MN,MD1,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.402763367, -0.974855185, 0.682875633, 0.99988991, -0.0150081124, -0.00168980728, 0.0149988253, 0.999872923, -0.00539785437, 0.00177063467, 0.00537188631, 0.999988079)) | |
1011 | mesh("SpecialMesh",MD1,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1.00999999, 1.00999999)) | |
1012 | MD10=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","MD10",Vector3.new(1.09732866, 0.274332285, 1.09732854)) | |
1013 | MD10weld=weld(m,MN,MD10,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.28881836e-05, -0.960148811, -0.000584125519, 1.00000811, -2.88709998e-08, 3.02679837e-08, -2.93366611e-08, 0.99999994, 1.36606104e-08, 3.0733645e-08, 1.3564204e-08, 1.00000799)) | |
1014 | mesh("SpecialMesh",MD10,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 1.00999999, 1.00999999)) | |
1015 | MD11=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","MD11",Vector3.new(0.266768694, 1.09732914, 0.658397138)) | |
1016 | MD11weld=weld(m,MN,MD11,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.493839264, -0.274354219, 4.24385071e-05, 1.00000811, -2.88709998e-08, 3.02679837e-08, -2.93366611e-08, 0.99999994, 1.36606104e-08, 3.0733645e-08, 1.3564204e-08, 1.00000799)) | |
1017 | mesh("SpecialMesh",MD11,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(0.415454358, 1, 1.00999999)) | |
1018 | MD12=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","MD12",Vector3.new(0.266768694, 1.09732914, 0.658397138)) | |
1019 | MD12weld=weld(m,MN,MD12,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.493812561, -0.274300575, -0.000376224518, 1.00000811, -2.88709998e-08, 3.02679837e-08, -2.93366611e-08, 0.99999994, 1.36606104e-08, 3.0733645e-08, 1.3564204e-08, 1.00000799)) | |
1020 | mesh("SpecialMesh",MD12,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(0.415454358, 1, 1.00999999)) | |
1021 | MD13=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","MD13",Vector3.new(1.09732866, 0.822996795, 1.09732854)) | |
1022 | MD13weld=weld(m,MN,MD13,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.90734863e-05, 0.68582201, 0.000464439392, 1.00000811, -2.88709998e-08, 3.02679837e-08, -2.93366611e-08, 0.99999994, 1.36606104e-08, 3.0733645e-08, 1.3564204e-08, 1.00000799)) | |
1023 | mesh("SpecialMesh",MD13,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 1.00999999, 1.00999999)) | |
1024 | MD14=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","MD14",Vector3.new(1.09732866, 0.266768783, 1.09732854)) | |
1025 | MD14weld=weld(m,MN,MD14,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.90734863e-05, 0.603547096, 0.000416755676, 1.00000811, -2.88709998e-08, 3.02679837e-08, -2.93366611e-08, 0.99999994, 1.36606104e-08, 3.0733645e-08, 1.3564204e-08, 1.00000799)) | |
1026 | mesh("SpecialMesh",MD14,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1.04999995, 0.411340922, 1.04999995)) | |
1027 | MD15=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","MD15",Vector3.new(1.09732866, 0.274332285, 1.09732854)) | |
1028 | MD15weld=weld(m,MN,MD15,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.62939453e-05, 0.137180567, -4.529953e-05, -1.0000037, -0.000862163957, 0.000179466791, -0.000862103421, 0.999999523, 0.000520790287, -0.000179945491, 0.000520619913, -1.00000381)) | |
1029 | mesh("SpecialMesh",MD15,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 1.00999999, 1.00999999)) | |
1030 | MD16=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","MD16",Vector3.new(1.09732866, 0.266768783, 1.09732854)) | |
1031 | MD16weld=weld(m,MN,MD16,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.86645508e-05, 0.932742357, 0.000658988953, 1.00000811, -2.88709998e-08, 3.02679837e-08, -2.93366611e-08, 0.99999994, 1.36606104e-08, 3.0733645e-08, 1.3564204e-08, 1.00000799)) | |
1032 | mesh("SpecialMesh",MD16,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1.04999995, 0.411340922, 1.04999995)) | |
1033 | MD19=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","MD19",Vector3.new(1.09732866, 0.274332285, 1.09732854)) | |
1034 | MD19weld=weld(m,MN,MD19,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000442504883, 0.68581605, 0.000279426575, 1.00000381, 0.000690042973, -0.000169841573, 0.000690029934, -0.999999702, -0.000261242967, -0.000170052983, 0.000261111214, -1.00000393)) | |
1035 | mesh("SpecialMesh",MD19,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.5, 1.01999998, 1.01999998)) | |
1036 | MD18=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","MD18",Vector3.new(1.09732866, 0.266768783, 1.09732854)) | |
1037 | MD18weld=weld(m,MN,MD18,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.52587891e-05, -0.246893644, -0.00013256073, 1.00000811, -2.88709998e-08, 3.02679837e-08, -2.93366611e-08, 0.99999994, 1.36606104e-08, 3.0733645e-08, 1.3564204e-08, 1.00000799)) | |
1038 | mesh("SpecialMesh",MD18,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1.01999998, 0.411340922, 1.01999998)) | |
1039 | MD2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","MD2",Vector3.new(0.2574085, 0.259352177, 0.518704116)) | |
1040 | MD2weld=weld(m,MN,MD2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.392555237, -0.573539257, 1.09872949, 0.999886394, -0.0152528733, -0.00162532134, 0.0119883548, 0.710953057, 0.70314008, -0.00956933573, -0.703074038, 0.71105516)) | |
1041 | mesh("SpecialMesh",MD2,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1.00999999, 1.00999999)) | |
1042 | MD3=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","MD3",Vector3.new(0.247408509, 0.259352177, 0.518704116)) | |
1043 | MD3weld=weld(m,MN,MD3,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.397964478, -0.817667723, 0.487944126, 0.999890864, -0.0149886403, -0.00193861127, 0.0139457425, 0.964460015, -0.263861924, 0.00582473399, 0.26380372, 0.964563668)) | |
1044 | mesh("SpecialMesh",MD3,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1.00999999, 1.00999999)) | |
1045 | MD4=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","MD4",Vector3.new(0.247408509, 0.259352177, 0.518704116)) | |
1046 | MD4weld=weld(m,MN,MD4,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.422103882, -0.82026124, 0.507567406, 0.999890864, -0.0149886403, -0.00193861127, 0.0139457425, 0.964460015, -0.263861924, 0.00582473399, 0.26380372, 0.964563668)) | |
1047 | mesh("SpecialMesh",MD4,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1.00999999, 1.00999999)) | |
1048 | MD5=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","MD5",Vector3.new(0.2574085, 0.259352177, 0.518704116)) | |
1049 | MD5weld=weld(m,MN,MD5,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.427509308, -0.557831764, 1.11046171, 0.999886394, -0.0152528733, -0.00162532134, 0.0119883548, 0.710953057, 0.70314008, -0.00956933573, -0.703074038, 0.71105516)) | |
1050 | mesh("SpecialMesh",MD5,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1.00999999, 1.00999999)) | |
1051 | MD6=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","MD6",Vector3.new(0.237408489, 0.259352177, 0.518704116)) | |
1052 | MD6weld=weld(m,MN,MD6,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.417263031, -0.972257376, 0.702233315, 0.99988991, -0.0150081124, -0.00168980728, 0.0149988253, 0.999872923, -0.00539785437, 0.00177063467, 0.00537188631, 0.999988079)) | |
1053 | mesh("SpecialMesh",MD6,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1.00999999, 1.00999999)) | |
1054 | MD7=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","MD7",Vector3.new(1.09732866, 0.274332285, 1.09732854)) | |
1055 | MD7weld=weld(m,MN,MD7,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000442504883, 0.68581605, 0.000279426575, 1.00000381, 0.000690042973, -0.000169841573, 0.000690029934, -0.999999702, -0.000261242967, -0.000170052983, 0.000261111214, -1.00000393)) | |
1056 | mesh("SpecialMesh",MD7,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 1.00999999, 1.00999999)) | |
1057 | MD8=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","MD8",Vector3.new(1.09732866, 0.274332285, 1.09732854)) | |
1058 | MD8weld=weld(m,MN,MD8,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.28881836e-05, -0.960148811, -0.000584125519, 1.00000811, -2.88709998e-08, 3.02679837e-08, -2.93366611e-08, 0.99999994, 1.36606104e-08, 3.0733645e-08, 1.3564204e-08, 1.00000799)) | |
1059 | mesh("SpecialMesh",MD8,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(0.5, 1.01999998, 1.01999998)) | |
1060 | TR1=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Lime green","TR1",Vector3.new(0.266768694, 0.54866457, 0.548664272)) | |
1061 | TR1weld=weld(m,MN,TR1,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.548826218, 0.30154109, 4.57763672e-05, -0.000205519143, -0.0001726388, -1, -4.31765802e-05, 1, -0.00017263052, 1, 4.314119e-05, -0.000205526594)) | |
1062 | mesh("SpecialMesh",TR1,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(0.415454358, 0.700000048, 0.700000048)) | |
1063 | - | local player = game.Players.LocalPlayer |
1063 | + | |
1064 | TR2weld=weld(m,MN,TR2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.28881836e-05, 0.741921067, 0.198978901, 1.00000405, -2.92747281e-05, -1.7457176e-05, 2.37242784e-05, 0.965939343, -0.258769363, 2.44602561e-05, 0.25876832, 0.965943277)) | |
1065 | - | local mouse = player:GetMouse() |
1065 | + | |
1066 | TR3=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Lime green","TR3",Vector3.new(1.09732866, 0.266768783, 1.09732854)) | |
1067 | TR3weld=weld(m,MN,TR3,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.81469727e-05, 0.603546381, 0.000186920166, 1.00000787, -8.63452442e-05, -2.6775524e-07, 8.62879679e-05, 1, -2.05411197e-07, 2.68686563e-07, 2.3024586e-07, 1.00000775)) | |
1068 | mesh("SpecialMesh",TR3,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1.05999994, 0.0822681859, 1.05999994)) | |
1069 | TR4=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Lime green","TR4",Vector3.new(1.09732866, 0.266768783, 1.09732854)) | |
1070 | TR4weld=weld(m,MN,TR4,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000106811523, 0.93274045, 0.000304222107, 1.00000787, -8.63452442e-05, -2.6775524e-07, 8.62879679e-05, 1, -2.05411197e-07, 2.68686563e-07, 2.3024586e-07, 1.00000775)) | |
1071 | mesh("SpecialMesh",TR4,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1.05999994, 0.0822681859, 1.05999994)) | |
1072 | TR5=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Lime green","TR5",Vector3.new(1.09732866, 0.274332285, 1.09732854)) | |
1073 | TR5weld=weld(m,MN,TR5,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.28881836e-05, -0.960148811, -0.000584125519, 1.00000811, -2.88709998e-08, 3.02679837e-08, -2.93366611e-08, 0.99999994, 1.36606104e-08, 3.0733645e-08, 1.3564204e-08, 1.00000799)) | |
1074 | mesh("SpecialMesh",TR5,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1.02999997, 1.02999997)) | |
1075 | TR6=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Lime green","TR6",Vector3.new(1.09732866, 0.266768783, 1.09732854)) | |
1076 | TR6weld=weld(m,MN,TR6,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.52587891e-05, -0.246893644, -0.00013256073, 1.00000811, -2.88709998e-08, 3.02679837e-08, -2.93366611e-08, 0.99999994, 1.36606104e-08, 3.0733645e-08, 1.3564204e-08, 1.00000799)) | |
1077 | mesh("SpecialMesh",TR6,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1.02999997, 0.0822681859, 1.02999997)) | |
1078 | MD21=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","MD21",Vector3.new(0.266768694, 0.54866457, 0.548664272)) | |
1079 | MD21weld=weld(m,MN,MD21,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.548921585, 0.301375628, 0.000118255615, -0.000262488145, -9.39509191e-05, -1.00000393, -0.000154611655, 1, -9.38984886e-05, 1.00000393, 0.000154557638, -0.000262471847)) | |
1080 | mesh("SpecialMesh",MD21,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(0.411340952, 0.900000036, 0.900000036)) | |
1081 | ||
1082 | --[[TG1=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Lime green","Handle",Vector3.new(0.231713057, 0.953130603, 0.953130603)) | |
1083 | TG1weld=weld(m,char["HumanoidRootPart"],TG1,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.042350769, 2.25753069, -2.74072218, -0.0144443018, -0.00148237997, 0.999894559, 0.138804898, -0.99031961, 0.000536966661, 0.990214407, 0.138798028, 0.0145102367)) | |
1084 | mesh("SpecialMesh",TG1,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(0.415454358, 0.5, 0.5))]] | |
1085 | ||
1086 | ||
1087 | local edit = function(name,mat,col) | |
1088 | name.Material = mat | |
1089 | name.BrickColor = BrickColor.new(col) | |
1090 | end | |
1091 | ||
1092 | local dark = function() | |
1093 | edit(TR1,"Neon","Lime green") | |
1094 | edit(TR2,"Neon","Lime green") | |
1095 | edit(TR3,"Neon","Lime green") | |
1096 | edit(TR4,"Neon","Lime green") | |
1097 | edit(TR5,"Neon","Lime green") | |
1098 | edit(TR6,"Neon","Lime green") | |
1099 | edit(TR7,"Neon","Lime green") | |
1100 | edit(MN,"Neon","Lime green") | |
1101 | -- | |
1102 | ||
1103 | ||
1104 | end | |
1105 | local light = function() | |
1106 | edit(TR1,"Neon","Lime green") | |
1107 | edit(TR2,"Neon","Lime green") | |
1108 | edit(TR3,"Neon","Lime green") | |
1109 | edit(TR4,"Neon","Lime green") | |
1110 | edit(TR5,"Neon","Lime green") | |
1111 | edit(TR6,"Neon","Lime green") | |
1112 | edit(TR7,"Neon","Lime green") | |
1113 | edit(MN,"Neon","Lime green") | |
1114 | -- | |
1115 | ||
1116 | end | |
1117 | ||
1118 | ||
1119 | dark() | |
1120 | ||
1121 | --Messy | |
1122 | ||
1123 | ---------------------------------------------------- | |
1124 | function Vanish() | |
1125 | for i = 1, 10 do wait() | |
1126 | for i,v in pairs(char.Genkadda:GetChildren()) do | |
1127 | if v:IsA("Part") or v:IsA("WedgePart") then | |
1128 | if v.Name ~= "HitBox" or v.Name ~= "Thingy" then | |
1129 | v.Transparency = v.Transparency + 0.1 | |
1130 | end | |
1131 | end | |
1132 | end | |
1133 | end | |
1134 | end | |
1135 | ---------------------------------------------------- | |
1136 | function Appear() | |
1137 | for i = 1, 10 do wait() | |
1138 | for i,v in pairs(char.Genkadda:GetChildren()) do | |
1139 | if v:IsA("Part") or v:IsA("WedgePart") then | |
1140 | if v.Name ~= "HitBox" or v.Name ~= "Thingy" then | |
1141 | v.Transparency = v.Transparency - 0.1 | |
1142 | end | |
1143 | end | |
1144 | end | |
1145 | end | |
1146 | end | |
1147 | ---------------------------------------------------- | |
1148 | local player = owner | |
1149 | local pchar = player.Character | |
1150 | local cam = workspace.CurrentCamera | |
1151 | ||
1152 | local rad = math.rad | |
1153 | ||
1154 | local keysDown = {} | |
1155 | local flySpeed = 0 | |
1156 | local MAX_FLY_SPEED = 150 | |
1157 | ||
1158 | local canFly = false | |
1159 | local flyToggled = false | |
1160 | ||
1161 | local forward, side = 0, 0 | |
1162 | local lastForward, lastSide = 0, 0 | |
1163 | ||
1164 | local floatBP = Instance.new("BodyPosition") | |
1165 | floatBP.maxForce = Vector3.new(0, math.huge, 0) | |
1166 | local flyBV = Instance.new("BodyVelocity") | |
1167 | flyBV.maxForce = Vector3.new(9e9, 9e9, 9e9) | |
1168 | local turnBG = Instance.new("BodyGyro") | |
1169 | turnBG.maxTorque = Vector3.new(math.huge, math.huge, math.huge) | |
1170 | ||
1171 | mouse.KeyDown:connect(function(key) | |
1172 | keysDown[key] = true | |
1173 | ||
1174 | if key == "f" then | |
1175 | flyToggled = not flyToggled | |
1176 | ||
1177 | if not flyToggled then | |
1178 | stanceToggle = "Normal" | |
1179 | floatBP.Parent = nil | |
1180 | flyBV.Parent = nil | |
1181 | turnBG.Parent = nil | |
1182 | root.Velocity = Vector3.new() | |
1183 | pchar.Humanoid.PlatformStand = false | |
1184 | end | |
1185 | end | |
1186 | ||
1187 | end) | |
1188 | mouse.KeyUp:connect(function(key) | |
1189 | keysDown[key] = nil | |
1190 | end) | |
1191 | ||
1192 | local function updateFly() | |
1193 | ||
1194 | if not flyToggled then return end | |
1195 | ||
1196 | lastForward = forward | |
1197 | lastSide = side | |
1198 | ||
1199 | forward = 0 | |
1200 | side = 0 | |
1201 | ||
1202 | if keysDown.w then | |
1203 | forward = forward + 1 | |
1204 | end | |
1205 | if keysDown.s then | |
1206 | forward = forward - 1 | |
1207 | end | |
1208 | if keysDown.a then | |
1209 | side = side - 1 | |
1210 | end | |
1211 | if keysDown.d then | |
1212 | side = side + 1 | |
1213 | end | |
1214 | ||
1215 | ||
1216 | canFly = (forward ~= 0 or side ~= 0) | |
1217 | ||
1218 | if canFly then | |
1219 | stanceToggle = "Floating" | |
1220 | turnBG.Parent = root | |
1221 | floatBP.Parent = nil | |
1222 | flyBV.Parent = root | |
1223 | ||
1224 | flySpeed = flySpeed + 1 + (flySpeed / MAX_FLY_SPEED) | |
1225 | if flySpeed > MAX_FLY_SPEED then flySpeed = MAX_FLY_SPEED end | |
1226 | else | |
1227 | floatBP.position = root.Position | |
1228 | floatBP.Parent = root | |
1229 | ||
1230 | flySpeed = flySpeed - 1 | |
1231 | if flySpeed < 0 then flySpeed = 0 end | |
1232 | end | |
1233 | ||
1234 | local camCF = cam.CoordinateFrame | |
1235 | local in_forward = canFly and forward or lastForward | |
1236 | local in_side = canFly and side or lastSide | |
1237 | ||
1238 | flyBV.velocity = ((camCF.lookVector * in_forward) + (camCF * CFrame.new(in_side, | |
1239 | in_forward * 0.2, 0).p) - camCF.p) * flySpeed | |
1240 | ||
1241 | turnBG.cframe = camCF * CFrame.Angles(-rad(forward * (flySpeed / MAX_FLY_SPEED)), 0, | |
1242 | 0) | |
1243 | end | |
1244 | ||
1245 | game:service'RunService'.RenderStepped:connect(function() | |
1246 | if flyToggled then | |
1247 | pchar.Humanoid.PlatformStand = true | |
1248 | end | |
1249 | updateFly() | |
1250 | end) | |
1251 | ---------------------------------------------------- | |
1252 | p13.Touched:connect(function(ht) | |
1253 | hit = ht.Parent | |
1254 | if ht and hit:IsA("Model") then | |
1255 | if hit:FindFirstChild("Humanoid") then | |
1256 | if hit.Name ~= p.Name then | |
1257 | if Debounces.Slashing == true and Debounces.Slashed == false then | |
1258 | Debounces.Slashed = true | |
1259 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(20,25)) | |
1260 | wait(.3) | |
1261 | Debounces.Slashed = false | |
1262 | end | |
1263 | end | |
1264 | end | |
1265 | elseif ht and hit:IsA("Hat") then | |
1266 | if hit.Parent.Name ~= p.Name then | |
1267 | if hit.Parent:FindFirstChild("Humanoid") then | |
1268 | if Debounces.Slashing == true and Debounces.Slashed == false then | |
1269 | Debounces.Slashed = true | |
1270 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(20,25)) | |
1271 | wait(.3) | |
1272 | Debounces.Slashed = false | |
1273 | end | |
1274 | end | |
1275 | end | |
1276 | end | |
1277 | end) | |
1278 | ---------------------------------------------------- | |
1279 | local ptz = {0.7, 0.8, 0.9, 1} | |
1280 | ptz2 = {1.5, 1.6, 1.7, 1.8, 1.9, 2} | |
1281 | idz = {"161006212", "161006195"} | |
1282 | mouse.KeyDown:connect(function(key) | |
1283 | if key == "q" then | |
1284 | if Debounces.CanAttack == true then | |
1285 | Debounces.CanAttack = false | |
1286 | Debounces.NoIdl = true | |
1287 | Debounces.on = true | |
1288 | ||
1289 | if holy == true then | |
1290 | for i = 1, 8 do | |
1291 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad (60),math.rad(70),math.rad(70)), 0.2) | |
1292 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0) *CFrame.Angles(math.rad(-20),math.rad(0),math.rad (-40)), 0.2) | |
1293 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(-50), math.rad(0)), 0.2) | |
1294 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(-.4, -1, 0) * CFrame.Angles(math.rad(0), math.rad(70), math.rad(0)), 0.2) | |
1295 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(-10), 0, math.rad(-10)), 0.2) | |
1296 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(10), 0, math.rad(10)), 0.2) | |
1297 | if Debounces.on == false then break end | |
1298 | rs:wait(2) | |
1299 | end | |
1300 | else | |
1301 | for i = 1, 20 do | |
1302 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad (60),math.rad(70),math.rad(70)), 0.2) | |
1303 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0) *CFrame.Angles(math.rad(-20),math.rad(0),math.rad (-40)), 0.2) | |
1304 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(-50), math.rad(0)), 0.2) | |
1305 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(-.4, -1, 0) * CFrame.Angles(math.rad(0), math.rad(70), math.rad(0)), 0.2) | |
1306 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(-10), 0, math.rad(-10)), 0.2) | |
1307 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(10), 0, math.rad(10)), 0.2) | |
1308 | if Debounces.on == false then break end | |
1309 | rs:wait(2) | |
1310 | end | |
1311 | end | |
1312 | ||
1313 | z = Instance.new("Sound", hed) | |
1314 | z.SoundId = "rbxassetid://"..idz[math.random(1,#idz)] | |
1315 | z.Pitch = ptz[math.random(1,#ptz)] | |
1316 | z.Volume = 1 | |
1317 | wait(.01) | |
1318 | z:Play() | |
1319 | ||
1320 | if holy == true then | |
1321 | --so("http://roblox.com/asset/?id=231917788",hed,1,1.7) | |
1322 | so("http://roblox.com/asset/?id=200633077",hed,1,ptz2[math.random(1,#ptz2)]) | |
1323 | else | |
1324 | so("http://roblox.com/asset/?id=200633029",hed,1,ptz2[math.random(1,#ptz2)]) | |
1325 | end | |
1326 | ||
1327 | Debounces.Slashing = true | |
1328 | ||
1329 | if holy == true then | |
1330 | ||
1331 | for i = 1, 5 do | |
1332 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.65, 0) * CFrame.Angles(math.rad(-40),math.rad(-20),math.rad(40)), 0.3) | |
1333 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2, 0.65, -.3) * CFrame.Angles(math.rad(65),math.rad(-20),math.rad(30)), 0.3) | |
1334 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-9),math.rad(35), math.rad(0)), 0.3) | |
1335 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 1) * CFrame.Angles(math.rad(0), math.rad(-65), math.rad(0)), 0.3) | |
1336 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), 0, math.rad(-10)), 0.3) | |
1337 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(10)), 0.3) | |
1338 | if Debounces.on == false then break end | |
1339 | rs:wait(2) | |
1340 | end | |
1341 | ||
1342 | else | |
1343 | ||
1344 | for i = 1, 20 do | |
1345 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.65, 0) * CFrame.Angles(math.rad(-40),math.rad(-20),math.rad(40)), 0.3) | |
1346 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2, 0.65, -.3) * CFrame.Angles(math.rad(65),math.rad(-20),math.rad(30)), 0.3) | |
1347 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-9),math.rad(35), math.rad(0)), 0.3) | |
1348 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 1) * CFrame.Angles(math.rad(0), math.rad(-65), math.rad(0)), 0.3) | |
1349 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), 0, math.rad(-10)), 0.3) | |
1350 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(10)), 0.3) | |
1351 | if Debounces.on == false then break end | |
1352 | rs:wait(2) | |
1353 | end | |
1354 | ||
1355 | end | |
1356 | z1 = Instance.new("Sound", hed) | |
1357 | z1.SoundId = "rbxassetid://"..idz[math.random(1,#idz)] | |
1358 | z1.Pitch = ptz[math.random(1,#ptz)] | |
1359 | z1.Volume = 1 | |
1360 | wait(.01) | |
1361 | z1:Play() | |
1362 | ||
1363 | if holy == true then | |
1364 | --so("http://roblox.com/asset/?id=231917788",hed,1,1.7) | |
1365 | so("http://roblox.com/asset/?id=200633077",hed,1,ptz2[math.random(1,#ptz2)]) | |
1366 | else | |
1367 | so("http://roblox.com/asset/?id=200633029",hed,1,ptz2[math.random(1,#ptz2)]) | |
1368 | end | |
1369 | ||
1370 | ||
1371 | ||
1372 | ||
1373 | Debounces.Slashing = true | |
1374 | for i = 1, 26 do | |
1375 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad (90),math.rad(-40),math.rad(80)), 0.35) | |
1376 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad (- 70)), 0.35) | |
1377 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(-90), math.rad(0)), 0.35) | |
1378 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -1) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.35) | |
1379 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(-10), 0, math.rad(-10)), 0.35) | |
1380 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(10), 0, math.rad(10)), 0.35) | |
1381 | cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles (math.rad(0), math.rad(-30), math.rad(0)), 0.35) | |
1382 | if Debounces.on == false then break end | |
1383 | rs:wait(2) | |
1384 | end | |
1385 | ||
1386 | Debounces.Slashing = false | |
1387 | z:Destroy() | |
1388 | z1:Destroy() | |
1389 | cor.Weld.C1 = CFrame.Angles(0,0,0) | |
1390 | if Debounces.CanAttack == false then | |
1391 | Debounces.CanAttack = true | |
1392 | Debounces.NoIdl = false | |
1393 | Debounces.on = false | |
1394 | end | |
1395 | end | |
1396 | end | |
1397 | end) | |
1398 | ------------------------------- | |
1399 | pts = {4, 4.2, 4.4, 4.6, 4.8, 5, 5.2, 5.4} | |
1400 | mouse.KeyDown:connect(function(key) | |
1401 | if key == "e" then | |
1402 | if Debounces.CanAttack == true then | |
1403 | Debounces.CanAttack = false | |
1404 | Debounces.NoIdl = true | |
1405 | Debounces.on = true | |
1406 | Debounces.ks = true | |
1407 | larm.Touched:connect(function(ht) | |
1408 | hit = ht.Parent | |
1409 | if ht and hit:IsA("Model") then | |
1410 | if hit:FindFirstChild("Humanoid") then | |
1411 | if hit.Name ~= p.Name then | |
1412 | if Debounces.Slapping == true and Debounces.Slapped == false then | |
1413 | Debounces.Slapped = true | |
1414 | if Debounces.ks==true then | |
1415 | z = Instance.new("Sound",hed) | |
1416 | z.SoundId = "rbxassetid://169380525" | |
1417 | z.Volume = 1 | |
1418 | z:Play() | |
1419 | z1 = Instance.new("Sound",char) | |
1420 | z1.SoundId = "rbxassetid://261010715" | |
1421 | z1.Pitch = pts[math.random(1,#pts)] | |
1422 | z1.Volume = 1 | |
1423 | z2 = Instance.new("Sound",char) | |
1424 | z2.SoundId = "rbxassetid://261010715" | |
1425 | z2.Pitch = z1.Pitch | |
1426 | z2.Volume = 1 | |
1427 | z3 = Instance.new("Sound",char) | |
1428 | z3.SoundId = "rbxassetid://261010715" | |
1429 | z3.Pitch = z1.Pitch | |
1430 | z3.Volume = 1 | |
1431 | z1:Play() | |
1432 | z2:Play() | |
1433 | z3:Play() | |
1434 | Debounces.ks=false | |
1435 | end | |
1436 | hit:FindFirstChild("Humanoid"):TakeDamage(10) | |
1437 | hit:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 90 | |
1438 | wait(.5) | |
1439 | Debounces.Slapped = false | |
1440 | z:Destroy() | |
1441 | z1:Destroy() | |
1442 | z2:Destroy() | |
1443 | z3:Destroy() | |
1444 | end | |
1445 | end | |
1446 | end | |
1447 | elseif ht and hit:IsA("Hat") then | |
1448 | if hit.Parent.Name ~= p.Name then | |
1449 | if hit.Parent:FindFirstChild("Humanoid") then | |
1450 | if Debounces.Slapping == true and Debounces.Slapped == false then | |
1451 | Debounces.Slapped = true | |
1452 | if Debounces.ks==true then | |
1453 | z = Instance.new("Sound",hed) | |
1454 | z.SoundId = "rbxassetid://169380525" | |
1455 | z.Volume = 1 | |
1456 | z:Play() | |
1457 | z1 = Instance.new("Sound",char) | |
1458 | z1.SoundId = "rbxassetid://261010715" | |
1459 | z1.Pitch = pts[math.random(1,#pts)] | |
1460 | z1.Volume = 1 | |
1461 | z2 = Instance.new("Sound",char) | |
1462 | z2.SoundId = "rbxassetid://261010715" | |
1463 | z2.Pitch = z1.Pitch | |
1464 | z2.Volume = 1 | |
1465 | z3 = Instance.new("Sound",char) | |
1466 | z3.SoundId = "rbxassetid://261010715" | |
1467 | z3.Pitch = z1.Pitch | |
1468 | z3.Volume = 1 | |
1469 | z1:Play() | |
1470 | z2:Play() | |
1471 | z3:Play() | |
1472 | Debounces.ks=false | |
1473 | end | |
1474 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(10) | |
1475 | wait(.5) | |
1476 | Debounces.Slapped = false | |
1477 | z:Destroy() | |
1478 | z1:Destroy() | |
1479 | z2:Destroy() | |
1480 | z3:Destroy() | |
1481 | end | |
1482 | end | |
1483 | end | |
1484 | end | |
1485 | end) | |
1486 | for i = 1, 14 do | |
1487 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3, 0.5, -.3) * CFrame.Angles(math.rad(50), 0, math.rad(40)), 0.5) | |
1488 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(40)), 0.5) | |
1489 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.5) | |
1490 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.5) | |
1491 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.5) | |
1492 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.5) | |
1493 | if Debounces.on==false then break end | |
1494 | rs:wait(2) | |
1495 | end | |
1496 | Debounces.Slapping = true | |
1497 | for i = 1, 20 do | |
1498 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3, 0.7, .3) * CFrame.Angles(math.rad(50), 0, math.rad(-110)), 0.6) | |
1499 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(40)), 0.6) | |
1500 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-70), math.rad(0)), 0.6) | |
1501 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(70), math.rad(0)), 0.6) | |
1502 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.6) | |
1503 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.6) | |
1504 | if Debounces.on==false then break end | |
1505 | rs:wait(2) | |
1506 | end | |
1507 | Debounces.Slapping = false | |
1508 | if Debounces.CanAttack == false then | |
1509 | Debounces.CanAttack = true | |
1510 | Debounces.NoIdl = false | |
1511 | Debounces.on = false | |
1512 | end | |
1513 | end | |
1514 | end | |
1515 | end) | |
1516 | ------------------------------- | |
1517 | ptz2 = {1.5, 1.6, 1.7, 1.8, 1.9, 2} | |
1518 | mouse.KeyDown:connect(function(key) | |
1519 | if key == "r" then | |
1520 | if Debounces.CanAttack == true then | |
1521 | Debounces.CanAttack = false | |
1522 | Debounces.NoIdl = true | |
1523 | Debounces.on = true | |
1524 | if holy ~= true then | |
1525 | for i = 1, 20 do | |
1526 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.1, 0.6, -.4) * CFrame.Angles(math.rad(130), 0, math.rad(40)), 0.3) | |
1527 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.1, 0.6, -.4) * CFrame.Angles(math.rad(130), 0, math.rad(-40)), 0.3) | |
1528 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), 0, 0), 0.3) | |
1529 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(50), 0, 0), 0.3) | |
1530 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, 0), 0.3) | |
1531 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -.2, -.5) * CFrame.Angles(math.rad(-10), 0, 0), 0.3) | |
1532 | cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, -.2, 0) * CFrame.Angles (math.rad(40), math.rad(0), math.rad(0)), 0.35) | |
1533 | if Debounces.on==false then break end | |
1534 | rs:wait(2) | |
1535 | end | |
1536 | else | |
1537 | for i = 1, 10 do | |
1538 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.1, 0.6, -.4) * CFrame.Angles(math.rad(130), 0, math.rad(40)), 0.3) | |
1539 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.1, 0.6, -.4) * CFrame.Angles(math.rad(130), 0, math.rad(-40)), 0.3) | |
1540 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), 0, 0), 0.3) | |
1541 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(50), 0, 0), 0.3) | |
1542 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, 0), 0.3) | |
1543 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -.2, -.5) * CFrame.Angles(math.rad(-10), 0, 0), 0.3) | |
1544 | cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, -.2, 0) * CFrame.Angles (math.rad(40), math.rad(0), math.rad(0)), 0.35) | |
1545 | if Debounces.on==false then break end | |
1546 | rs:wait(2) | |
1547 | end | |
1548 | end | |
1549 | Debounces.Slashing = true | |
1550 | ||
1551 | ||
1552 | ||
1553 | z = Instance.new("Sound",hed) | |
1554 | z.SoundId = "rbxassetid://206083107" | |
1555 | z.Pitch = .75 | |
1556 | z.Volume = .65 | |
1557 | wait(0.1) | |
1558 | z:Play() | |
1559 | z1 = Instance.new("Sound", hed) | |
1560 | z1.SoundId = "rbxassetid://"..idz[math.random(1,#idz)] | |
1561 | z1.Pitch = ptz[math.random(1,#ptz)] | |
1562 | z1.Volume = 1 | |
1563 | wait(.01) | |
1564 | z1:Play() | |
1565 | ||
1566 | if holy == true then | |
1567 | so("http://roblox.com/asset/?id=200633077",hed,1,ptz2[math.random(1,#ptz2)]) | |
1568 | else | |
1569 | so("http://roblox.com/asset/?id=200633029",hed,1,ptz2[math.random(1,#ptz2)]) | |
1570 | end | |
1571 | ||
1572 | if holy ~= true then | |
1573 | for i = 1, 20 do | |
1574 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.1, 0.6, -.4) * CFrame.Angles(math.rad(50), 0, math.rad(40)), 0.3) | |
1575 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.1, 0.6, -.4) * CFrame.Angles(math.rad(50), 0, math.rad(-40)), 0.3) | |
1576 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-30), 0, 0), 0.3) | |
1577 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(10), 0, 0), 0.3) | |
1578 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -.7) * CFrame.Angles(math.rad(20), 0, 0), 0.3) | |
1579 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -.1) * CFrame.Angles(math.rad(-40), 0, 0), 0.3) | |
1580 | cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, -.2, 0) * CFrame.Angles (math.rad(40), math.rad(-20), math.rad(20)), 0.35) | |
1581 | if Debounces.on==false then break end | |
1582 | rs:wait(2) | |
1583 | end | |
1584 | else | |
1585 | for i = 1, 10 do | |
1586 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.1, 0.6, -.4) * CFrame.Angles(math.rad(50), 0, math.rad(40)), 0.3) | |
1587 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.1, 0.6, -.4) * CFrame.Angles(math.rad(50), 0, math.rad(-40)), 0.3) | |
1588 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-30), 0, 0), 0.3) | |
1589 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(10), 0, 0), 0.3) | |
1590 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -.7) * CFrame.Angles(math.rad(20), 0, 0), 0.3) | |
1591 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -.1) * CFrame.Angles(math.rad(-40), 0, 0), 0.3) | |
1592 | cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, -.2, 0) * CFrame.Angles (math.rad(40), math.rad(-20), math.rad(20)), 0.35) | |
1593 | if Debounces.on==false then break end | |
1594 | rs:wait(2) | |
1595 | end | |
1596 | end | |
1597 | Debounces.Slashing = false | |
1598 | cor.Weld.C1 = CFrame.Angles(0,0,0) | |
1599 | if Debounces.CanAttack == false then | |
1600 | Debounces.CanAttack = true | |
1601 | Debounces.NoIdl = false | |
1602 | Debounces.on = false | |
1603 | end | |
1604 | end | |
1605 | end | |
1606 | end) | |
1607 | ------------------------------- | |
1608 | mouse.KeyDown:connect(function(key) | |
1609 | if key == "t" then | |
1610 | if Debounces.CanAttack == true then | |
1611 | Debounces.CanAttack = false | |
1612 | Debounces.on = true | |
1613 | Debounces.NoIdl = true | |
1614 | for i = 1,20 do | |
1615 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(0)), 0.2) | |
1616 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(0)), 0.2) | |
1617 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(20),math.rad(0),0), 0.2) | |
1618 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, .4) * CFrame.Angles(math.rad(-20), math.rad(0), 0), 0.2) | |
1619 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(-10)), 0.2) | |
1620 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(10)), 0.2) | |
1621 | if Debounces.on==false then break end | |
1622 | rs:wait(2) | |
1623 | end | |
1624 | for i = 1,20 do | |
1625 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(0)), 0.2) | |
1626 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(0)), 0.2) | |
1627 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-20),math.rad(0),0), 0.2) | |
1628 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -.4) * CFrame.Angles(math.rad(20), math.rad(0), 0), 0.2) | |
1629 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(-10)), 0.2) | |
1630 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(10)), 0.2) | |
1631 | if Debounces.on==false then break end | |
1632 | rs:wait(2) | |
1633 | end | |
1634 | if Debounces.CanAttack == false then | |
1635 | Debounces.CanAttack = true | |
1636 | Debounces.on = false | |
1637 | Debounces.NoIdl = false | |
1638 | end | |
1639 | end | |
1640 | end | |
1641 | end) | |
1642 | ------------------------------- | |
1643 | local ptz3 = {0.5, 0.6, 0.7} | |
1644 | mouse.KeyDown:connect(function(key) | |
1645 | if key == "g" then | |
1646 | if Debounces.CanAttack == true then | |
1647 | Debounces.CanAttack = false | |
1648 | Debounces.NoIdl = true | |
1649 | Debounces.on = true | |
1650 | Debounces.Slashing = true | |
1651 | ||
1652 | z = Instance.new("Sound", hed) | |
1653 | z.SoundId = "rbxassetid://"..idz[math.random(1,#idz)] | |
1654 | z.Pitch = ptz[math.random(1,#ptz)] | |
1655 | z.Volume = 1 | |
1656 | ||
1657 | ||
1658 | if holy == true then | |
1659 | eColors = {"Lime green"} | |
1660 | ||
1661 | ||
1662 | for i,v in pairs(char.Genkadda:GetChildren()) do | |
1663 | if v:IsA("Part") or v:IsA("WedgePart") then | |
1664 | if v.Name ~= "HitBox" or v.Name ~= "Thingy" then | |
1665 | v.BrickColor = BrickColor.new("Lime green") | |
1666 | v.Material = "Neon" | |
1667 | end | |
1668 | end | |
1669 | end | |
1670 | ||
1671 | ||
1672 | char.Humanoid.WalkSpeed = 50 | |
1673 | ||
1674 | GroundWave() | |
1675 | so("http://roblox.com/asset/?id=200633077",hed,1,ptz3[math.random(1,#ptz3)]) | |
1676 | so("http://www.roblox.com/asset/?id=241816017",hed,1,0.5) | |
1677 | so("http://www.roblox.com/asset/?id=241816017",hed,1,1) | |
1678 | ||
1679 | ||
1680 | else | |
1681 | so("http://roblox.com/asset/?id=200633029",hed,1,0.9) | |
1682 | end | |
1683 | ||
1684 | ||
1685 | for i = 1, 8 do | |
1686 | z:play() | |
1687 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-90)), 0.8) | |
1688 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(90)), 0.8) | |
1689 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, 0, 0), 0.8) | |
1690 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(0, 0, 0), 0.8) | |
1691 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.8) | |
1692 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.8) | |
1693 | if Debounces.on==false then break end | |
1694 | rs:wait(2) | |
1695 | end | |
1696 | for i = 1, 2880, 48 do | |
1697 | torso.Weld.C1 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(i), math.rad(0)) | |
1698 | rs:wait(4) | |
1699 | end | |
1700 | ||
1701 | ||
1702 | ||
1703 | ||
1704 | ||
1705 | ||
1706 | ||
1707 | torso.Weld.C1 = CFrame.new(0, -1, 0) | |
1708 | Debounces.Slashing = false | |
1709 | ||
1710 | if Debounces.CanAttack == false then | |
1711 | Debounces.CanAttack = true | |
1712 | Debounces.NoIdl = false | |
1713 | Debounces.on = false | |
1714 | ||
1715 | ||
1716 | ||
1717 | ||
1718 | char.Humanoid.WalkSpeed = 10 | |
1719 | ||
1720 | ||
1721 | end | |
1722 | ||
1723 | ||
1724 | ||
1725 | end | |
1726 | ||
1727 | ||
1728 | ||
1729 | end | |
1730 | ||
1731 | ||
1732 | end) | |
1733 | ---------------------------------------------------- | |
1734 | pt = {6.6, 6.8, 7, 7.2, 7.4} | |
1735 | mouse.KeyDown:connect(function(key) | |
1736 | if key == "l" then | |
1737 | if Debounces.CanJoke == true then | |
1738 | Debounces.CanJoke = false | |
1739 | u = Instance.new("Sound",char) | |
1740 | u.SoundId = "http://www.roblox.com/asset/?id=261303790" | |
1741 | u.Pitch = pt[math.random(1,#pt)] | |
1742 | u.Volume = 1 | |
1743 | u2 = Instance.new("Sound",char) | |
1744 | u2.SoundId = "http://www.roblox.com/asset/?id=261303790" | |
1745 | u2.Pitch = u.Pitch | |
1746 | u2.Volume = 1 | |
1747 | u3 = Instance.new("Sound",char) | |
1748 | u3.SoundId = "http://www.roblox.com/asset/?id=261303790" | |
1749 | u3.Pitch = u.Pitch | |
1750 | u3.Volume = 1 | |
1751 | wait(.01) | |
1752 | u:Play() | |
1753 | u2:Play() | |
1754 | u3:Play() | |
1755 | wait(1.5) | |
1756 | u:Destroy() | |
1757 | u2:Destroy() | |
1758 | u3:Destroy() | |
1759 | if Debounces.CanJoke == false then | |
1760 | Debounces.CanJoke = true | |
1761 | end | |
1762 | end | |
1763 | end | |
1764 | end) | |
1765 | ||
1766 | ------------------------------- BEGIN GRABPUNCH | |
1767 | mouse.KeyDown:connect(function(key) | |
1768 | if key == "x" then | |
1769 | Debounces.on = true | |
1770 | Debounces.NoIdl = true | |
1771 | Debounces.ks = true | |
1772 | if Grab == false then | |
1773 | gp = nil | |
1774 | ||
1775 | if Melee == false then | |
1776 | Melee = true | |
1777 | Vanish() | |
1778 | stanceToggle = "Melee" | |
1779 | elseif Melee == true then | |
1780 | Melee = false | |
1781 | Appear() | |
1782 | stanceToggle = "Normal" | |
1783 | end | |
1784 | ||
1785 | for i = 1, 20 do | |
1786 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.2) | |
1787 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.2) | |
1788 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(0),0), 0.2) | |
1789 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2) | |
1790 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(30), math.rad(-20)), 0.2) | |
1791 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-15), math.rad(20)), 0.2) | |
1792 | if Debounces.on == false then break end | |
1793 | rs:wait() | |
1794 | end | |
1795 | con1=larm.Touched:connect(function(hit) -- this is grab | |
1796 | ht = hit.Parent | |
1797 | hum1=ht:FindFirstChild('Humanoid') | |
1798 | if hum1 ~= nil then | |
1799 | if Debounces.ks==true then | |
1800 | z = Instance.new("Sound",hed) | |
1801 | z.SoundId = "rbxassetid://169380525" | |
1802 | z.Volume = 1 | |
1803 | z:Play() | |
1804 | Debounces.ks=false | |
1805 | end | |
1806 | hum1.PlatformStand=true | |
1807 | gp = ht | |
1808 | Grab = true | |
1809 | asd=weld5(root,ht:FindFirstChild("Torso"),CFrame.new(0,0,-2.4),CFrame.new(0,0,0)) | |
1810 | asd.Parent = larm | |
1811 | asd.Name = "asd" | |
1812 | asd.C0=asd.C0*CFrame.Angles(math.rad(0),math.rad(180),0) | |
1813 | --[[elseif hum1 == nil then | |
1814 | con1:disconnect() | |
1815 | wait() return]]-- | |
1816 | end | |
1817 | end) | |
1818 | for i = 1, 20 do | |
1819 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.3,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.2) | |
1820 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.2) | |
1821 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(0),0), 0.2) | |
1822 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2) | |
1823 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.2) | |
1824 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.2) | |
1825 | if Debounces.on == false then break end | |
1826 | rs:wait() | |
1827 | end | |
1828 | if hum1 == nil then | |
1829 | Debounces.on = false | |
1830 | Debounces.NoIdl = false | |
1831 | end | |
1832 | con1:disconnect() | |
1833 | elseif Grab == true then | |
1834 | Grab = false | |
1835 | Punch() | |
1836 | z = Instance.new("Sound",hed) | |
1837 | z.SoundId = "rbxassetid://169380525" | |
1838 | z.Pitch = ptz[math.random(1,#ptz)] | |
1839 | z.Volume = 1 | |
1840 | z:Play() | |
1841 | for i = 1, 10 do | |
1842 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7) | |
1843 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7) | |
1844 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) | |
1845 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) | |
1846 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
1847 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
1848 | if Debounces.on == false then break end | |
1849 | rs:wait() | |
1850 | end | |
1851 | Punch() | |
1852 | z = Instance.new("Sound",hed) | |
1853 | z.SoundId = "rbxassetid://169380525" | |
1854 | z.Pitch = ptz[math.random(1,#ptz)] | |
1855 | z.Volume = 1 | |
1856 | z:Play() | |
1857 | for i = 1, 10 do | |
1858 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6) | |
1859 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7) | |
1860 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) | |
1861 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) | |
1862 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
1863 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
1864 | if Debounces.on == false then break end | |
1865 | rs:wait() | |
1866 | end | |
1867 | Punch() | |
1868 | z = Instance.new("Sound",hed) | |
1869 | z.SoundId = "rbxassetid://169380525" | |
1870 | z.Pitch = ptz[math.random(1,#ptz)] | |
1871 | z.Volume = 1 | |
1872 | z:Play() | |
1873 | for i = 1, 10 do | |
1874 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7) | |
1875 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7) | |
1876 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) | |
1877 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) | |
1878 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
1879 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
1880 | if Debounces.on == false then break end | |
1881 | rs:wait() | |
1882 | end | |
1883 | Punch() | |
1884 | z = Instance.new("Sound",hed) | |
1885 | z.SoundId = "rbxassetid://169380525" | |
1886 | z.Pitch = ptz[math.random(1,#ptz)] | |
1887 | z.Volume = 1 | |
1888 | z:Play() | |
1889 | for i = 1, 10 do | |
1890 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6) | |
1891 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7) | |
1892 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) | |
1893 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) | |
1894 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
1895 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
1896 | if Debounces.on == false then break end | |
1897 | rs:wait() | |
1898 | end | |
1899 | Punch() | |
1900 | z = Instance.new("Sound",hed) | |
1901 | z.SoundId = "rbxassetid://169380525" | |
1902 | z.Pitch = ptz[math.random(1,#ptz)] | |
1903 | z.Volume = 1 | |
1904 | z:Play() | |
1905 | for i = 1, 10 do | |
1906 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7) | |
1907 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7) | |
1908 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) | |
1909 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) | |
1910 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
1911 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
1912 | if Debounces.on == false then break end | |
1913 | rs:wait() | |
1914 | end | |
1915 | Punch() | |
1916 | z = Instance.new("Sound",hed) | |
1917 | z.SoundId = "rbxassetid://169380525" | |
1918 | z.Pitch = ptz[math.random(1,#ptz)] | |
1919 | z.Volume = 1 | |
1920 | z:Play() | |
1921 | for i = 1, 10 do | |
1922 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6) | |
1923 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7) | |
1924 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) | |
1925 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) | |
1926 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
1927 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
1928 | if Debounces.on == false then break end | |
1929 | rs:wait() | |
1930 | end | |
1931 | Punch() | |
1932 | z = Instance.new("Sound",hed) | |
1933 | z.SoundId = "rbxassetid://169380525" | |
1934 | z.Pitch = ptz[math.random(1,#ptz)] | |
1935 | z.Volume = 1 | |
1936 | z:Play() | |
1937 | for i = 1, 10 do | |
1938 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7) | |
1939 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7) | |
1940 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) | |
1941 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) | |
1942 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
1943 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
1944 | if Debounces.on == false then break end | |
1945 | rs:wait() | |
1946 | end | |
1947 | Punch() | |
1948 | z = Instance.new("Sound",hed) | |
1949 | z.SoundId = "rbxassetid://169380525" | |
1950 | z.Pitch = ptz[math.random(1,#ptz)] | |
1951 | z.Volume = 1 | |
1952 | z:Play() | |
1953 | for i = 1, 10 do | |
1954 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6) | |
1955 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7) | |
1956 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) | |
1957 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) | |
1958 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
1959 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
1960 | if Debounces.on == false then break end | |
1961 | rs:wait() | |
1962 | end | |
1963 | Punch() | |
1964 | z = Instance.new("Sound",hed) | |
1965 | z.SoundId = "rbxassetid://169380525" | |
1966 | z.Pitch = ptz[math.random(1,#ptz)] | |
1967 | z.Volume = 1 | |
1968 | z:Play() | |
1969 | for i = 1, 10 do | |
1970 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7) | |
1971 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7) | |
1972 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) | |
1973 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) | |
1974 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
1975 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
1976 | if Debounces.on == false then break end | |
1977 | rs:wait() | |
1978 | end | |
1979 | Punch() | |
1980 | z = Instance.new("Sound",hed) | |
1981 | z.SoundId = "rbxassetid://169380525" | |
1982 | z.Pitch = ptz[math.random(1,#ptz)] | |
1983 | z.Volume = 1 | |
1984 | z:Play() | |
1985 | for i = 1, 10 do | |
1986 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6) | |
1987 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7) | |
1988 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) | |
1989 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) | |
1990 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
1991 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
1992 | if Debounces.on == false then break end | |
1993 | rs:wait() | |
1994 | end | |
1995 | Punch() | |
1996 | z = Instance.new("Sound",hed) | |
1997 | z.SoundId = "rbxassetid://169380525" | |
1998 | z.Pitch = ptz[math.random(1,#ptz)] | |
1999 | z.Volume = 1 | |
2000 | z:Play() | |
2001 | for i = 1, 10 do | |
2002 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7) | |
2003 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7) | |
2004 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) | |
2005 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) | |
2006 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
2007 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
2008 | if Debounces.on == false then break end | |
2009 | rs:wait() | |
2010 | end | |
2011 | Punch() | |
2012 | z = Instance.new("Sound",hed) | |
2013 | z.SoundId = "rbxassetid://169380525" | |
2014 | z.Pitch = ptz[math.random(1,#ptz)] | |
2015 | z.Volume = 1 | |
2016 | z:Play() | |
2017 | for i = 1, 10 do | |
2018 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6) | |
2019 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7) | |
2020 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) | |
2021 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) | |
2022 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
2023 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
2024 | if Debounces.on == false then break end | |
2025 | rs:wait() | |
2026 | end | |
2027 | con1:disconnect() | |
2028 | Debounces.on = false | |
2029 | Debounces.NoIdl = false | |
2030 | if gp ~= nil then | |
2031 | gp:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 140 | |
2032 | for i,v in pairs(larm:GetChildren()) do | |
2033 | if v.Name == "asd" and v:IsA("Weld") then | |
2034 | v:Remove() | |
2035 | end | |
2036 | end | |
2037 | --[[bv = Instance.new("BodyVelocity",gp:FindFirstChild("Torso")) | |
2038 | bv.maxForce = Vector3.new(400000, 400000, 400000) | |
2039 | bv.P = 125000 | |
2040 | bv.velocity = char.Head.CFrame.lookVector * 200]]-- | |
2041 | hum1=nil | |
2042 | ht=nil | |
2043 | Debounces.on = false | |
2044 | Debounces.NoIdl = false | |
2045 | elseif ht == nil then wait() | |
2046 | Grab = false | |
2047 | Debounces.on = false | |
2048 | Debounces.NoIdl = false | |
2049 | end | |
2050 | end | |
2051 | end | |
2052 | end) | |
2053 | ||
2054 | ||
2055 | ------------------------------------------------- | |
2056 | ||
2057 | ||
2058 | ||
2059 | ||
2060 | ----------------------------------------------------Cero | |
2061 | mouse.KeyDown:connect(function(key) | |
2062 | if key == "c" then | |
2063 | if Debounces.CanAttack == true then | |
2064 | Debounces.CanAttack = false | |
2065 | Debounces.NoIdl = true | |
2066 | Debounces.on = true | |
2067 | char.Humanoid.WalkSpeed = .01 | |
2068 | Debounces.on = true | |
2069 | Vanish() | |
2070 | ||
2071 | xx = Instance.new("Sound") | |
2072 | xx.SoundId = "http://www.roblox.com/asset/?id=199145659" | |
2073 | xx.Parent = char.Head | |
2074 | xx.Looped = false | |
2075 | xx.Pitch = .88 | |
2076 | xx.Volume = 1 | |
2077 | wait(.1) | |
2078 | xx:Play() | |
2079 | ||
2080 | if holy == true then | |
2081 | so("http://roblox.com/asset/?id=231917788",hed,1,1) | |
2082 | else | |
2083 | end | |
2084 | ||
2085 | ||
2086 | if holy ~= true then | |
2087 | for i = 1, 20 do | |
2088 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-18), 0, math.rad(-20)), 0.3) | |
2089 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(65), 0, math.rad(-40)), 0.3) | |
2090 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(-10)), 0.3) | |
2091 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(8), 0, math.rad(10)), 0.3) | |
2092 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-10), math.rad(-70), 0), 0.6) | |
2093 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(84), 0), 0.4) | |
2094 | if Debounces.on==false then break end | |
2095 | wait() | |
2096 | end | |
2097 | wait(1) | |
2098 | else | |
2099 | for i = 1, 5 do | |
2100 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-18), 0, math.rad(-20)), 0.3) | |
2101 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(65), 0, math.rad(-40)), 0.3) | |
2102 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(-10)), 0.3) | |
2103 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(8), 0, math.rad(10)), 0.3) | |
2104 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-10), math.rad(-70), 0), 0.6) | |
2105 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(84), 0), 0.4) | |
2106 | if Debounces.on==false then break end | |
2107 | wait() | |
2108 | end | |
2109 | wait(1) | |
2110 | end | |
2111 | ||
2112 | x = Instance.new("Sound") | |
2113 | x.SoundId = "http://www.roblox.com/asset/?id=142070127" | |
2114 | x2 = Instance.new("Sound") | |
2115 | x2.SoundId = "http://www.roblox.com/asset/?id=183763506" | |
2116 | x.Parent = char.Head | |
2117 | x2.Parent = char.Head | |
2118 | x.Looped = false | |
2119 | x2.Looped = false | |
2120 | x.Pitch = .88 | |
2121 | x.Volume = 1 | |
2122 | x2.Pitch = .88 | |
2123 | x2.Volume = 1 | |
2124 | wait(.1) | |
2125 | x:Play() | |
2126 | x2:Play() | |
2127 | Debounces.on = false | |
2128 | Debounces.Here = false | |
2129 | ||
2130 | for i = 1, 6 do | |
2131 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-12), 0, math.rad(-12)), 0.4) | |
2132 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90), 0, math.rad(101)), 0.4) | |
2133 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-6)), 0.4) | |
2134 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(6)), 0.4) | |
2135 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-8), math.rad(-84), 0), 0.4) | |
2136 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.4) | |
2137 | wait() | |
2138 | end | |
2139 | local rng = Instance.new("Part", char) | |
2140 | rng.Anchored = true | |
2141 | ||
2142 | if holy ~= true then | |
2143 | rng.BrickColor = BrickColor.new("Really black") | |
2144 | else | |
2145 | rng.BrickColor = BrickColor.new("Lime green") | |
2146 | end | |
2147 | ||
2148 | rng.CanCollide = false | |
2149 | rng.FormFactor = 3 | |
2150 | rng.Name = "Ring" | |
2151 | rng.Size = Vector3.new(1, 1, 1) | |
2152 | rng.Transparency = 0.35 | |
2153 | rng.TopSurface = 0 | |
2154 | rng.BottomSurface = 0 | |
2155 | rng.Material = "Neon" | |
2156 | local rngm = Instance.new("SpecialMesh", rng) | |
2157 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
2158 | rngm.Scale = Vector3.new(10, 10, 1) | |
2159 | local bem = Instance.new("Part", char) | |
2160 | bem.Anchored = true | |
2161 | ||
2162 | if holy ~= true then | |
2163 | bem.BrickColor = BrickColor.new("Really black") | |
2164 | else | |
2165 | bem.BrickColor = BrickColor.new("Lime green") | |
2166 | end | |
2167 | ||
2168 | bem.Material = "Neon" | |
2169 | bem.CanCollide = false | |
2170 | bem.FormFactor = 3 | |
2171 | bem.Name = "Beam" .. shot | |
2172 | bem.Size = Vector3.new(1, 1, 1) | |
2173 | bem.Transparency = 0.35 | |
2174 | bem.TopSurface = 0 | |
2175 | bem.BottomSurface = 0 | |
2176 | local bemm = Instance.new("SpecialMesh", bem) | |
2177 | bemm.MeshType = 4 | |
2178 | bemm.Scale = Vector3.new(1, 4, 4) | |
2179 | local out = Instance.new("Part", char) | |
2180 | out.Anchored = true | |
2181 | ||
2182 | if holy ~= true then | |
2183 | out.BrickColor = BrickColor.new("Really black") | |
2184 | else | |
2185 | out.BrickColor = BrickColor.new("Lime green") | |
2186 | end | |
2187 | ||
2188 | out.Material = "Neon" | |
2189 | out.CanCollide = false | |
2190 | out.FormFactor = 3 | |
2191 | out.Name = "Out" | |
2192 | out.Size = Vector3.new(1, 1, 1) | |
2193 | out.Transparency = 0.35 | |
2194 | out.TopSurface = 0 | |
2195 | out.BottomSurface = 0 | |
2196 | local outm = Instance.new("SpecialMesh", out) | |
2197 | outm.MeshId = "http://www.roblox.com/asset/?id=1033714" | |
2198 | outm.Scale = Vector3.new(2, 2, 2) | |
2199 | local bnd = Instance.new("Part", char) | |
2200 | bnd.Anchored = true | |
2201 | ||
2202 | if holy ~= true then | |
2203 | bnd.BrickColor = BrickColor.new("Really black") | |
2204 | else | |
2205 | bnd.BrickColor = BrickColor.new("Lime green") | |
2206 | end | |
2207 | ||
2208 | bnd.Material = "Neon" | |
2209 | bnd.CanCollide = false | |
2210 | bnd.FormFactor = 3 | |
2211 | bnd.Name = "BEnd" | |
2212 | bnd.Size = Vector3.new(1, 1, 1) | |
2213 | bnd.Transparency = 0.35 | |
2214 | bnd.TopSurface = 0 | |
2215 | bnd.BottomSurface = 0 | |
2216 | local bndm = Instance.new("SpecialMesh", bnd) | |
2217 | bndm.MeshType = 3 | |
2218 | bndm.Scale = Vector3.new(4, 4, 4) | |
2219 | out.CFrame = rarm.CFrame * CFrame.new(0, -1.75, 0) | |
2220 | bem.CFrame = out.CFrame * CFrame.new(0, -2.5, 0) * CFrame.Angles(0, 0, math.rad(90)) | |
2221 | bnd.CFrame = bem.CFrame * CFrame.new(0, 0, 0) | |
2222 | rng.CFrame = out.CFrame * CFrame.Angles(math.rad(90), 0, 0) | |
2223 | Debounces.Shewt = true | |
2224 | coroutine.wrap(function() | |
2225 | for i = 1, 20, 0.2 do | |
2226 | rngm.Scale = Vector3.new(10 + i*2, 10 + i*2, 1) | |
2227 | rng.Transparency = i/20 | |
2228 | wait() | |
2229 | end | |
2230 | wait() | |
2231 | rng:Destroy() | |
2232 | end)() | |
2233 | if Debounces.Shewt == true then | |
2234 | char:WaitForChild("Beam" .. shot).Touched:connect(function(ht) --Here | |
2235 | print("Hit") | |
2236 | hit = ht.Parent | |
2237 | if hit:IsA("Model") and hit:findFirstChild("Humanoid") then | |
2238 | print("Yes") | |
2239 | if HasntTouched(hit.Name) == true and deb == false then | |
2240 | deb = true | |
2241 | coroutine.wrap(function() | |
2242 | hit:FindFirstChild("Humanoid").PlatformStand = true | |
2243 | hit:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 140 | |
2244 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(18,63)) | |
2245 | wait(1) | |
2246 | hit:FindFirstChild("Humanoid").PlatformStand = false | |
2247 | end)() | |
2248 | table.insert(Touche, hit.Name) | |
2249 | deb = false | |
2250 | end | |
2251 | elseif hit:IsA("Hat") and hit.Parent:findFirstChild("Humanoid") then | |
2252 | print("Yes") | |
2253 | if HasntTouched(hit.Parent.Name) == true and deb == false then | |
2254 | deb = true | |
2255 | coroutine.wrap(function() | |
2256 | hit.Parent:FindFirstChild("Humanoid").PlatformStand = true | |
2257 | hit.Parent:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 140 | |
2258 | wait(1) | |
2259 | hit.Parent:FindFirstChild("Humanoid").PlatformStand = false | |
2260 | end)() | |
2261 | table.insert(Touche, hit.Parent.Name) | |
2262 | deb = false | |
2263 | for i, v in pairs(Touche) do | |
2264 | print(v) | |
2265 | end | |
2266 | end | |
2267 | end | |
2268 | end) | |
2269 | end | |
2270 | for i = 0, 200, 7 do | |
2271 | bem.Size = Vector3.new(i, 1, 1) | |
2272 | bem.CFrame = rarm.CFrame * CFrame.new(0, -2.5 -(i/2), 0) * CFrame.Angles(0, 0, math.rad(90)) | |
2273 | bnd.CFrame = bem.CFrame * CFrame.new(-i/2, 0, 0) | |
2274 | wait() | |
2275 | end | |
2276 | wait() | |
2277 | Debounces.Shewt = false | |
2278 | bem:Destroy() | |
2279 | out:Destroy() | |
2280 | bnd:Destroy() | |
2281 | char.Humanoid.WalkSpeed = 10 | |
2282 | Debounces.Ready = false | |
2283 | for i, v in pairs(Touche) do | |
2284 | table.remove(Touche, i) | |
2285 | end | |
2286 | wait() | |
2287 | table.insert(Touche, char.Name) | |
2288 | Debounces.NoIdl = false | |
2289 | if Debounces.CanAttack == false then | |
2290 | Debounces.CanAttack = true | |
2291 | cor.Weld.C1 = CFrame.Angles(0,0,0) | |
2292 | ||
2293 | ||
2294 | Debounces.on = false | |
2295 | Appear() | |
2296 | end | |
2297 | end | |
2298 | end | |
2299 | end) | |
2300 | ------------------------------- | |
2301 | ||
2302 | ----------------------------------------------------EDIT END | |
2303 | Grab = false | |
2304 | mouse.KeyDown:connect(function(key) | |
2305 | if key == "z" then | |
2306 | Debounces.on = true | |
2307 | Debounces.NoIdl = true | |
2308 | Debounces.ks = true | |
2309 | if Grab == false then | |
2310 | gp = nil | |
2311 | for i = 1, 20 do | |
2312 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.2) | |
2313 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-80)), 0.2) | |
2314 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-70),0), 0.2) | |
2315 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), 0), 0.2) | |
2316 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(30), math.rad(-20)), 0.2) | |
2317 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-15), math.rad(20)), 0.2) | |
2318 | if Debounces.on == false then break end | |
2319 | rs:wait(2) | |
2320 | end | |
2321 | con1=larm.Touched:connect(function(hit) -- this is grab | |
2322 | ht = hit.Parent | |
2323 | hum1=ht:FindFirstChild('Humanoid') | |
2324 | if hum1 ~= nil then | |
2325 | if Debounces.ks==true then | |
2326 | z = Instance.new("Sound",hed) | |
2327 | z.SoundId = "rbxassetid://169380525" | |
2328 | z.Volume = 1 | |
2329 | z:Play() | |
2330 | Debounces.ks=false | |
2331 | end | |
2332 | hum1.PlatformStand=true | |
2333 | gp = ht | |
2334 | Grab = true | |
2335 | asd=weld5(larm,ht:FindFirstChild("Torso"),CFrame.new(0,-1,1.5),CFrame.new(0,0,0)) | |
2336 | asd.Parent = larm | |
2337 | asd.Name = "asd" | |
2338 | asd.C0=asd.C0*CFrame.Angles(math.rad(-90),math.rad(180),0) | |
2339 | stanceToggle = "Grabbed" | |
2340 | --[[elseif hum1 == nil then | |
2341 | con1:disconnect() | |
2342 | wait() return]]-- | |
2343 | end | |
2344 | end) | |
2345 | for i = 1, 20 do | |
2346 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.2) | |
2347 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(20)), 0.2) | |
2348 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(30),0), 0.2) | |
2349 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-30), 0), 0.2) | |
2350 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.2) | |
2351 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.2) | |
2352 | if Debounces.on == false then break end | |
2353 | rs:wait(2) | |
2354 | end | |
2355 | con1:disconnect() | |
2356 | Debounces.on = false | |
2357 | Debounces.NoIdl = false | |
2358 | elseif Grab == true then | |
2359 | Grab = false | |
2360 | --[[for i = 1, 16 do | |
2361 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(0),math.rad(50),math.rad(60)), 0.3) | |
2362 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,-.5)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(-60)), 0.3) | |
2363 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14),math.rad(70),0), 0.3) | |
2364 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3) | |
2365 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.3) | |
2366 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3) | |
2367 | cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(40), 0), 0.3) | |
2368 | if Debounces.on == false then end | |
2369 | rs:wait() | |
2370 | end]]-- | |
2371 | for i = 1, 16 do | |
2372 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.3) | |
2373 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(140),math.rad(0),math.rad(-50)), 0.3) | |
2374 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(20),math.rad(-60),0), 0.3) | |
2375 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.3) | |
2376 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(-20)), 0.3) | |
2377 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3) | |
2378 | if Debounces.on == false then end | |
2379 | rs:wait() | |
2380 | end | |
2381 | Slam() | |
2382 | if gp ~= nil then | |
2383 | for i,v in pairs(larm:GetChildren()) do | |
2384 | if v.Name == "asd" and v:IsA("Weld") then | |
2385 | v:Remove() | |
2386 | end | |
2387 | end | |
2388 | for i = 1, 16 do | |
2389 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.3) | |
2390 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,-.4)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(20)), 0.3) | |
2391 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(20),0), 0.3) | |
2392 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-60), math.rad(-30), 0), 0.3) | |
2393 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(80), math.rad(30), math.rad(-20)), 0.3) | |
2394 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(70), math.rad(-15), math.rad(20)), 0.3) | |
2395 | if Debounces.on == false then end | |
2396 | rs:wait() | |
2397 | end | |
2398 | stanceToggle = "Normal" | |
2399 | --[[bv = Instance.new("BodyVelocity",gp:FindFirstChild("Torso")) | |
2400 | bv.maxForce = Vector3.new(400000, 400000, 400000) | |
2401 | bv.P = 125000 | |
2402 | bv.velocity = char.Head.CFrame.lookVector * 200]]-- | |
2403 | ht=nil | |
2404 | Debounces.on = false | |
2405 | Debounces.NoIdl = false | |
2406 | elseif ht == nil then wait() | |
2407 | Grab = false | |
2408 | Debounces.on = false | |
2409 | Debounces.NoIdl = false | |
2410 | end | |
2411 | end | |
2412 | end | |
2413 | end) | |
2414 | ---------------------------------------------------- | |
2415 | Charging = false | |
2416 | chargewait = false | |
2417 | mouse.KeyDown:connect(function(key) | |
2418 | if key == "h" then | |
2419 | if Charging == false and chargewait == false then | |
2420 | Charging = true | |
2421 | chargewait = true | |
2422 | if Debounces.CanAttack == true then | |
2423 | Debounces.CanAttack = false | |
2424 | Debounces.NoIdl = true | |
2425 | Debounces.on = true | |
2426 | ||
2427 | ||
2428 | if holy ~= true then | |
2429 | holy = true | |
2430 | else holy = false | |
2431 | end | |
2432 | ||
2433 | ||
2434 | for i = 1,20 do | |
2435 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.65,-.4)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(-40)), 0.2) | |
2436 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.65,-.4)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(40)), 0.2) | |
2437 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(0),0), 0.2) | |
2438 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2) | |
2439 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, .4, -0.8) * CFrame.Angles(math.rad(-6), math.rad(0), math.rad(0)), 0.2) | |
2440 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, .4, -0.8) * CFrame.Angles(math.rad(-6), math.rad(0), math.rad(0)), 0.2) | |
2441 | if Debounces.on == false then break end | |
2442 | rs:wait() | |
2443 | end | |
2444 | pt=Instance.new('Part',torso) | |
2445 | pt.Anchored=true | |
2446 | pt.CanCollide=false | |
2447 | pt.Locked = true | |
2448 | pt.Material = "Neon" | |
2449 | pt.FormFactor='Custom' | |
2450 | pt.Size=Vector3.new(1,1,1) | |
2451 | pt.CFrame=root.CFrame*CFrame.new(0,-1,0) | |
2452 | pt.Transparency=.6 | |
2453 | ||
2454 | if holy == true then | |
2455 | pt.BrickColor=BrickColor.new('Lime green') | |
2456 | else | |
2457 | pt.BrickColor = BrickColor.new("Really black") | |
2458 | end | |
2459 | ||
2460 | msh=Instance.new('SpecialMesh',pt) | |
2461 | msh.MeshId='http://www.roblox.com/asset/?id=20329976' | |
2462 | msh.Scale=Vector3.new(8,4,8) | |
2463 | pt2=pt:clone() | |
2464 | pt2.Parent = torso | |
2465 | pt2.CFrame=root.CFrame*CFrame.new(0,-1,0) | |
2466 | ||
2467 | if holy == true then | |
2468 | pt2.BrickColor=BrickColor.new('Lime green') | |
2469 | else | |
2470 | pt2.BrickColor = BrickColor.new("Lime green") | |
2471 | end | |
2472 | ||
2473 | ||
2474 | msh2=msh:clone() | |
2475 | msh2.Parent=pt2 | |
2476 | msh2.Scale=Vector3.new(10,5,10) | |
2477 | ||
2478 | custommath={25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,-25,-26,-27,-28,-29,-30,-31,-32,-33,-34,-35,-36,-37,-38,-39,-40,-41,-42,-43,-44,-45,-46,-47,-48,-49,-50,-51,-52,-53,-54,-55,-56,-57,-58,-59,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-81,-82,-83,-84,-85,-86,-87,-88,-89,-90,-91,-92,-93,-94,-95,-96,-97,-98,-99,-100} | |
2479 | ||
2480 | bl = Instance.new("Part", char) | |
2481 | bl.Locked = true | |
2482 | bl.Name = "Shell" | |
2483 | ||
2484 | if holy == true then | |
2485 | bl.BrickColor = BrickColor.new("Lime green") | |
2486 | else | |
2487 | bl.BrickColor = BrickColor.new("Really black") | |
2488 | end | |
2489 | ||
2490 | bl.Anchored = true | |
2491 | bl.Material = "Neon" | |
2492 | bl.CanCollide = false | |
2493 | bl.Transparency = 0 | |
2494 | bl.Reflectance = 0 | |
2495 | bl.BottomSurface = 0 | |
2496 | bl.TopSurface = 0 | |
2497 | bl.Shape = 0 | |
2498 | blm = Instance.new("SpecialMesh",bl) | |
2499 | blm.MeshType = "Sphere" | |
2500 | blm.Scale = Vector3.new(1,1,1) | |
2501 | ||
2502 | so("http://www.roblox.com/asset/?id=340722848",hed,2,1.2) | |
2503 | so("http://www.roblox.com/asset/?id=340722848",torso,0.5,0.8) | |
2504 | so("http://roblox.com/asset/?id=168586621",torso,1,0.5) | |
2505 | ||
2506 | ||
2507 | ||
2508 | ||
2509 | if holy == true then | |
2510 | light() | |
2511 | ds:stop() | |
2512 | hs:play() | |
2513 | eColors = {"Lime green"} | |
2514 | for i,v in pairs(char.Genkadda:GetChildren()) do | |
2515 | if v:IsA("Part") or v:IsA("WedgePart") then | |
2516 | if v.Name ~= "HitBox" or v.Name ~= "Thingy" then | |
2517 | v.BrickColor = BrickColor.new("Lime green") | |
2518 | v.Material = "Neon" | |
2519 | end | |
2520 | end | |
2521 | end | |
2522 | ||
2523 | ||
2524 | else | |
2525 | dark() | |
2526 | hs:stop() | |
2527 | ds:play() | |
2528 | eColors = {"Lime green", "Really black"} | |
2529 | for i,v in pairs(char.Genkadda:GetChildren()) do | |
2530 | if v:IsA("Part") or v:IsA("WedgePart") then | |
2531 | if v.Name ~= "HitBox" or v.Name ~= "Thingy" then | |
2532 | v.BrickColor = BrickColor.new("Really black") | |
2533 | v.Material = "Metal" | |
2534 | end | |
2535 | end | |
2536 | end | |
2537 | ||
2538 | end | |
2539 | ||
2540 | coroutine.resume(coroutine.create(function() | |
2541 | for i=1, math.huge, 4 do | |
2542 | if Charging == true then | |
2543 | rs:wait() | |
2544 | bl.CFrame = root.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-i/10), math.rad(-i/10), math.rad(i/10)) | |
2545 | blm.Scale = blm.Scale + Vector3.new(0.5, 0.5, 0.5) | |
2546 | bl.Transparency = bl.Transparency + 0.05 | |
2547 | pt.CFrame = root.CFrame*CFrame.new(0,-1,0) * CFrame.Angles(0,math.rad(i*2),0) | |
2548 | pt2.CFrame = root.CFrame*CFrame.new(0,-1,0) * CFrame.Angles(0,math.rad(-i*2),0) | |
2549 | msh.Scale = msh.Scale + Vector3.new(0.05,0,0.05) | |
2550 | msh2.Scale = msh2.Scale + Vector3.new(0.05,0,0.05) | |
2551 | elseif Charging == false then break | |
2552 | end | |
2553 | end | |
2554 | end)) | |
2555 | ||
2556 | ||
2557 | repeat | |
2558 | local p = Instance.new('Part',torso) | |
2559 | p.formFactor = 'Custom' | |
2560 | p.Size = Vector3.new(1,1,1) | |
2561 | ||
2562 | if holy == true then | |
2563 | p.BrickColor = BrickColor.new("Lime green") | |
2564 | else | |
2565 | p.BrickColor = BrickColor.new("Really black") | |
2566 | end | |
2567 | ||
2568 | p.CanCollide = false | |
2569 | p.Transparency = 0 | |
2570 | p.Anchored = true | |
2571 | p.Locked=true | |
2572 | p.Material = "Neon" | |
2573 | s = math.random(1,40)/10 | |
2574 | local m = Instance.new("BlockMesh",p) | |
2575 | m.Scale = Vector3.new(s,s,s) | |
2576 | p.CFrame = torso.CFrame*CFrame.new(custommath[math.random(1,#custommath)]/10,-math.random(5,7),custommath[math.random(1,#custommath)]/10)*CFrame.Angles(math.random(),math.random(),math.random()) | |
2577 | --[[coroutine.wrap(function() | |
2578 | wait(2) | |
2579 | while Charging == true do | |
2580 | wait(2) | |
2581 | GroundWave1() | |
2582 | wait(2) | |
2583 | end | |
2584 | end)()]]-- | |
2585 | Spawn(function() | |
2586 | while rs:wait() do | |
2587 | if Charging == true then | |
2588 | rarm.Weld.C0 = CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(math.random(-36,-20)),math.rad(math.random(-30,-20)),math.rad(math.random(30,50))) | |
2589 | larm.Weld.C0 = CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(math.random(-36,-20)),math.rad(math.random(20,30)),math.rad(math.random(-50,-30))) | |
2590 | hed.Weld.C0 = CFrame.new(0,1.5,.1)*CFrame.Angles(math.rad(math.random(26,34)),math.rad(math.random(-5,5)),math.rad(0)) | |
2591 | torso.Weld.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), math.rad(math.random(-4,4)), math.rad(0)) | |
2592 | lleg.Weld.C0 = CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(math.random(-10,-6)), math.rad(math.random(10,20)), math.rad(math.random(-20,-10))) | |
2593 | rleg.Weld.C0 = CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(math.random(-10,-6)), math.rad(math.random(-20,-10)), math.rad(math.random(10,20))) | |
2594 | elseif Charging == false then break | |
2595 | end | |
2596 | end | |
2597 | end) | |
2598 | Spawn(function() | |
2599 | while rs:wait() do | |
2600 | if p.Transparency >= 1 then p:Destroy() break end | |
2601 | p.CFrame = p.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))+Vector3.new(0,0.2,0) | |
2602 | p.Transparency = p.Transparency+0.01 | |
2603 | end | |
2604 | end) | |
2605 | wait(.3) | |
2606 | ||
2607 | ||
2608 | until Charging == false | |
2609 | end | |
2610 | end | |
2611 | end | |
2612 | end) | |
2613 | ||
2614 | ---------------------------------------------------- | |
2615 | mouse.KeyUp:connect(function(key) | |
2616 | if key == "h" then | |
2617 | if Charging == true and chargewait == true then | |
2618 | chargewait = false | |
2619 | wait(1) | |
2620 | Charging = false | |
2621 | ||
2622 | --[[for i,v in pairs (torso:GetChildren()) do | |
2623 | if v:IsA("Sound") then | |
2624 | v:Destroy() | |
2625 | end | |
2626 | end]] | |
2627 | ||
2628 | ||
2629 | --so("http://roblox.com/asset/?id=160867463",torso,1,0.7) | |
2630 | ||
2631 | pt:Destroy() | |
2632 | pt2:Destroy() | |
2633 | bl:Destroy() | |
2634 | if Debounces.CanAttack == false then | |
2635 | Debounces.CanAttack = true | |
2636 | Debounces.NoIdl = false | |
2637 | Debounces.on = false | |
2638 | Debounces.grab = false | |
2639 | ||
2640 | end | |
2641 | end | |
2642 | end | |
2643 | end) | |
2644 | ---------------------------------------------------- | |
2645 | Sit = false | |
2646 | mouse.KeyDown:connect(function(key) | |
2647 | if key == "b" then | |
2648 | if Sit == false then | |
2649 | Sit = true | |
2650 | hum.WalkSpeed = 0.1 | |
2651 | stanceToggle = "Sitting" | |
2652 | elseif Sit == true then | |
2653 | Sit = false | |
2654 | hum.WalkSpeed = 7 | |
2655 | stanceToggle = "Normal" | |
2656 | end | |
2657 | end | |
2658 | end) | |
2659 | ------------------------------- | |
2660 | Melee = false | |
2661 | mouse.KeyDown:connect(function(key) | |
2662 | if key == "m" then | |
2663 | if Melee == false then | |
2664 | Melee = true | |
2665 | Vanish() | |
2666 | stanceToggle = "Melee" | |
2667 | elseif Melee == true then | |
2668 | Melee = false | |
2669 | Appear() | |
2670 | stanceToggle = "Normal" | |
2671 | end | |
2672 | end | |
2673 | end) | |
2674 | ------------------------------- | |
2675 | mouse.KeyDown:connect(function(key) | |
2676 | if string.byte(key) == 50 then | |
2677 | if Debounces.CanAttack == true then | |
2678 | if stanceToggle ~= "Floating" then | |
2679 | char.Humanoid.WalkSpeed = 60 | |
2680 | Burst() | |
2681 | elseif Debounces.CanAttack == false then | |
2682 | elseif stanceToggle == "Floating" then | |
2683 | wait() | |
2684 | end | |
2685 | end | |
2686 | end | |
2687 | end) | |
2688 | mouse.KeyUp:connect(function(key) | |
2689 | if string.byte(key) == 50 then | |
2690 | char.Humanoid.WalkSpeed = 9 | |
2691 | end | |
2692 | end) | |
2693 | ------------------------------- | |
2694 | mouse.KeyDown:connect(function(key) | |
2695 | if key == "p" then | |
2696 | if CanAttack == true then | |
2697 | CanAttack = false | |
2698 | Debounces.NoIdl = true | |
2699 | Debounces.on = true | |
2700 | for i = 1, 20 do | |
2701 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.2, -2.75) * CFrame.Angles(math.rad(90), math.rad(40), math.rad(0)), 0.6) | |
2702 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1, 1, -.5) * CFrame.Angles(math.rad(130), math.rad(0), math.rad(40)), 0.3) | |
2703 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1, 1, -.5) * CFrame.Angles(math.rad(130), math.rad(0), math.rad(-40)), 0.3) | |
2704 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-20), 0, math.rad(-10)), 0.6) | |
2705 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-20), 0, math.rad(10)), 0.6) | |
2706 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(20), math.rad(0), 0), 0.6) | |
2707 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 12, 0) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), 0.2) | |
2708 | if Debounces.on == false then | |
2709 | break | |
2710 | end | |
2711 | wait() | |
2712 | end | |
2713 | wait() | |
2714 | z = Instance.new("Sound") | |
2715 | z.SoundId = "http://www.roblox.com/asset/?id=159218913" | |
2716 | z.Parent = char.Head | |
2717 | z.Looped = false | |
2718 | z.Pitch = 1 | |
2719 | z.Volume = 1 | |
2720 | wait(.01) | |
2721 | z:Play() | |
2722 | Debounces.Slashing = true | |
2723 | for i = 1, 20 do | |
2724 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.2, -2.75) * CFrame.Angles(math.rad(90), math.rad(40), math.rad(0)), 0.6) | |
2725 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1, .5, -.5) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(40)), 0.6) | |
2726 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1, .5, -.5) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-40)), 0.6) | |
2727 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1.5, -.5) * CFrame.Angles(math.rad(-90), 0, math.rad(0)), 0.6) | |
2728 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -.5, -1) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.6) | |
2729 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-20), math.rad(0), 0), 0.6) | |
2730 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.6) | |
2731 | wait() | |
2732 | if Debounces.on == false then | |
2733 | break | |
2734 | end | |
2735 | wait() | |
2736 | end | |
2737 | Debounces.Slashing = false | |
2738 | Debounces.NoIdl = false | |
2739 | wait() | |
2740 | if CanAttack == false then | |
2741 | CanAttack = true | |
2742 | end | |
2743 | end | |
2744 | end | |
2745 | end) | |
2746 | -------------------------------- | |
2747 | ---------------------------------------------------- | |
2748 | mouse.KeyDown:connect(function(key) | |
2749 | if key == "v" then | |
2750 | if Debounces.CanAttack == true then | |
2751 | Debounces.CanAttack = false | |
2752 | Debounces.on = true | |
2753 | Debounces.NoIdl = true | |
2754 | for i = 1, 15 do | |
2755 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,.6,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(30)), 0.2) | |
2756 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,.6,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-90)), 0.6) | |
2757 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.2) | |
2758 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.4) | |
2759 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2) | |
2760 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2) | |
2761 | if Debounces.on == false then break end | |
2762 | rs:wait(2.7) | |
2763 | end | |
2764 | so("http://roblox.com/asset/?id=231917788",hed,1,0.7) | |
2765 | x = Instance.new("Sound",char.Head) | |
2766 | x.SoundId = "rbxassetid://183763515" | |
2767 | x.Pitch = 0.7 | |
2768 | x.Volume = .8 | |
2769 | x3 = Instance.new("Sound",char.Head) | |
2770 | x3.SoundId = "rbxassetid://183763487" | |
2771 | x3.Pitch = 1 | |
2772 | x3.Volume = .8 | |
2773 | wait(.1) | |
2774 | x:Play() | |
2775 | x3:Play() | |
2776 | ||
2777 | if holy == true then | |
2778 | so("http://roblox.com/asset/?id=233091161",hed,1,0.6) | |
2779 | so("http://roblox.com/asset/?id=2233091183",hed,1,1) | |
2780 | else | |
2781 | end | |
2782 | ||
2783 | Debounces.on = false | |
2784 | Debounces.Here = false | |
2785 | shot = shot + 1 | |
2786 | local rng = Instance.new("Part", larm) | |
2787 | rng.Anchored = true | |
2788 | ||
2789 | if holy ~= true then | |
2790 | rng.BrickColor = BrickColor.new("Lime green") | |
2791 | else | |
2792 | rng.BrickColor = BrickColor.new("Lime green") | |
2793 | end | |
2794 | ||
2795 | rng.Material = "Neon" | |
2796 | rng.CanCollide = false | |
2797 | rng.FormFactor = 3 | |
2798 | rng.Name = "Ring" | |
2799 | rng.Size = Vector3.new(1, 1, 1) | |
2800 | rng.Transparency = 0.35 | |
2801 | rng.TopSurface = 0 | |
2802 | rng.BottomSurface = 0 | |
2803 | rng2 = rng:clone() | |
2804 | rng3 = rng2:clone() | |
2805 | rng4 = rng2:clone() | |
2806 | local rngm = Instance.new("SpecialMesh", rng) | |
2807 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
2808 | rngm.Scale = Vector3.new(10, 10, 1) | |
2809 | rngm2 = rngm:clone() | |
2810 | rngm2.Scale = Vector3.new(5, 5, 3) | |
2811 | rngm3=rngm2:clone() | |
2812 | rngm3.Parent = rng3 | |
2813 | rngm3.Scale = Vector3.new(8, 8, 1) | |
2814 | rngm4 = rngm2:clone() | |
2815 | rngm4.Parent = rng4 | |
2816 | rngm4.Scale = Vector3.new(6, 6, 1) | |
2817 | local bem = Instance.new("Part", larm) | |
2818 | bem.Anchored = true | |
2819 | ||
2820 | if holy == false then | |
2821 | bem.BrickColor = BrickColor.new("Really black") | |
2822 | else | |
2823 | bem.BrickColor = BrickColor.new("Lime green") | |
2824 | end | |
2825 | ||
2826 | bem.CanCollide = false | |
2827 | bem.Material = "Neon" | |
2828 | bem.FormFactor = 3 | |
2829 | bem.Name = "Beam" .. shot | |
2830 | bem.Size = Vector3.new(1, 1, 1) | |
2831 | bem.Transparency = 0.35 | |
2832 | bem.TopSurface = 0 | |
2833 | bem.BottomSurface = 0 | |
2834 | local bemm = Instance.new("SpecialMesh", bem) | |
2835 | bemm.MeshType = 4 | |
2836 | bemm.Scale = Vector3.new(1, 4, 4) | |
2837 | local out = Instance.new("Part", larm) | |
2838 | out.Anchored = true | |
2839 | out.Material = "Neon" | |
2840 | ||
2841 | if holy == false then | |
2842 | out.BrickColor = BrickColor.new("Really black") | |
2843 | else | |
2844 | out.BrickColor = BrickColor.new("Lime green") | |
2845 | end | |
2846 | ||
2847 | out.CanCollide = false | |
2848 | out.FormFactor = 3 | |
2849 | out.Name = "Out" | |
2850 | out.Size = Vector3.new(4, 4, 4) | |
2851 | out.Transparency = 0.35 | |
2852 | out.TopSurface = 0 | |
2853 | out.BottomSurface = 0 | |
2854 | local outm = Instance.new("SpecialMesh", out) | |
2855 | outm.MeshId = "http://www.roblox.com/asset/?id=1033714" | |
2856 | outm.Scale = Vector3.new(6, 4, 6) | |
2857 | local bnd = Instance.new("Part", larm) | |
2858 | bnd.Anchored = true | |
2859 | bnd.BrickColor = BrickColor.new("Really red") | |
2860 | bnd.CanCollide = false | |
2861 | bnd.FormFactor = 3 | |
2862 | bnd.Name = "Bend" | |
2863 | bnd.Size = Vector3.new(1, 1, 1) | |
2864 | bnd.Transparency = 1 | |
2865 | bnd.TopSurface = 0 | |
2866 | bnd.BottomSurface = 0 | |
2867 | local bndm = Instance.new("SpecialMesh", bnd) | |
2868 | bndm.MeshType = 3 | |
2869 | bndm.Scale = Vector3.new(8, 8, 8) | |
2870 | out.CFrame = larm.CFrame * CFrame.new(0, -2.7, 0) | |
2871 | bem.CFrame = out.CFrame * CFrame.new(0, -2.5, 0) * CFrame.Angles(0, 0, math.rad(90)) | |
2872 | bnd.CFrame = bem.CFrame * CFrame.new(0, 0, 0) | |
2873 | rng.CFrame = out.CFrame * CFrame.Angles(math.rad(90), 0, 0) | |
2874 | rng3.CFrame = rng.CFrame * CFrame.new(0, -.5, 0) | |
2875 | rng4.CFrame = rng.CFrame * CFrame.new(0, -1, 0) | |
2876 | Debounces.Shewt = true | |
2877 | coroutine.wrap(function() | |
2878 | for i = 1, 20, 0.2 do | |
2879 | rngm.Scale = Vector3.new(10 + i*2, 10 + i*2, 1) | |
2880 | rngm3.Scale = Vector3.new(8 + i*3, 8 + i*3, 1) | |
2881 | rngm4.Scale = Vector3.new(6 + i*4, 6 + i*4, 1) | |
2882 | rng.Transparency = i/20 | |
2883 | rng3.Transparency = 1/24 | |
2884 | rng4.Transparency = i/26 | |
2885 | wait() | |
2886 | end | |
2887 | wait() | |
2888 | rng:Destroy() | |
2889 | end)() | |
2890 | if Debounces.Shewt == true then | |
2891 | larm:WaitForChild("Beam" .. shot).Touched:connect(function(ht) | |
2892 | hit = ht.Parent | |
2893 | if hit:IsA("Model") and hit:findFirstChild("Humanoid") then | |
2894 | if HasntTouched(hit.Name) == true and deb == false then | |
2895 | deb = true | |
2896 | coroutine.wrap(function() | |
2897 | hit:FindFirstChild("Humanoid").PlatformStand = true | |
2898 | hit:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 180 | |
2899 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(24,73)) | |
2900 | end)() | |
2901 | table.insert(Touche, hit.Name) | |
2902 | deb = false | |
2903 | end | |
2904 | elseif hit:IsA("Hat") and hit.Parent:findFirstChild("Humanoid") then | |
2905 | if HasntTouched(hit.Parent.Name) == true and deb == false then | |
2906 | deb = true | |
2907 | coroutine.wrap(function() | |
2908 | hit.Parent:FindFirstChild("Humanoid").PlatformStand = true | |
2909 | hit.Parent:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 180 | |
2910 | wait(1) | |
2911 | hit.Parent:FindFirstChild("Humanoid").PlatformStand = false | |
2912 | end)() | |
2913 | table.insert(Touche, hit.Parent.Name) | |
2914 | deb = false | |
2915 | for i, v in pairs(Touche) do | |
2916 | print(v) | |
2917 | end | |
2918 | end | |
2919 | end | |
2920 | end) | |
2921 | end | |
2922 | for i = 0, 260, 8 do | |
2923 | bem.Size = Vector3.new(i, 3, 3) | |
2924 | out.CFrame = larm.CFrame * CFrame.new(0, -2.7, 0) | |
2925 | bem.CFrame = larm.CFrame * CFrame.new(0, -4.2 -(i/2), 0) * CFrame.Angles(0, 0, math.rad(90)) | |
2926 | bnd.CFrame = bem.CFrame * CFrame.new(-i/2, 0, 1.2) | |
2927 | bnd.Size = Vector3.new(1,1,1) | |
2928 | bndm.Scale = Vector3.new(8,8,8) | |
2929 | if i % 10 == 0 then | |
2930 | local newRng = rng2:Clone() | |
2931 | newRng.Parent = larm | |
2932 | newRng.CFrame = larm.CFrame * CFrame.new(0, -4.2-i, 0) * CFrame.Angles(math.rad(90), 0, 0) | |
2933 | local newRngm = rngm2:clone() | |
2934 | newRngm.Parent=newRng | |
2935 | coroutine.wrap(function() | |
2936 | for i = 1, 10, 0.2 do | |
2937 | newRngm.Scale = Vector3.new(8 + i*2, 8 + i*2, 3) | |
2938 | newRng.Transparency = i/10 | |
2939 | wait() | |
2940 | end | |
2941 | wait() | |
2942 | newRng:Destroy() | |
2943 | end)() | |
2944 | end | |
2945 | wait() | |
2946 | end | |
2947 | wait() | |
2948 | Debounces.Shewt = false | |
2949 | bem:Destroy() | |
2950 | out:Destroy() | |
2951 | bnd:Destroy() | |
2952 | Debounces.Ready = false | |
2953 | for i, v in pairs(Touche) do | |
2954 | table.remove(Touche, i) | |
2955 | end | |
2956 | wait() | |
2957 | table.insert(Touche, char.Name) | |
2958 | Debounces.NoIdl = false | |
2959 | if Debounces.CanAttack == false then | |
2960 | Debounces.CanAttack = true | |
2961 | end | |
2962 | end | |
2963 | end | |
2964 | end) | |
2965 | ---------------------------------------------------- | |
2966 | ---------------------------------------------------- | |
2967 | mouse.KeyDown:connect(function(key) | |
2968 | if key == "y" then | |
2969 | if CanAttack == true then | |
2970 | CanAttack = false | |
2971 | Debounces.NoIdl = true | |
2972 | Debounces.on = true | |
2973 | for i = 1, 20 do | |
2974 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(75), 0, math.rad(30)), 0.2) | |
2975 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(75), 0, math.rad(-30)), 0.2) | |
2976 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, 0.5, -1) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2) | |
2977 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, 0.5, -1) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2) | |
2978 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-26), math.rad(0), 0), 0.2) | |
2979 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 2, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2) | |
2980 | if Debounces.on == false then | |
2981 | break | |
2982 | end | |
2983 | wait() | |
2984 | end | |
2985 | wait() | |
2986 | if Daytime == true then | |
2987 | Daytime = false | |
2988 | l.TimeOfDay = 24 | |
2989 | else | |
2990 | Daytime = true | |
2991 | l.TimeOfDay = 12 | |
2992 | l.OutdoorAmbient = Color3.new(0.498039, 0.498039, 0.498039) | |
2993 | end | |
2994 | char.Humanoid.MaxHealth = math.huge | |
2995 | c = Instance.new("Sound") | |
2996 | c.SoundId = "http://www.roblox.com/asset/?id=152758283" | |
2997 | c.Parent = m | |
2998 | c.Looped = false | |
2999 | if Daytime == true then | |
3000 | c.Pitch = -1 | |
3001 | elseif Daytime == false then | |
3002 | c.Pitch = 1.12 | |
3003 | end | |
3004 | c.Volume = 1 | |
3005 | wait(.01) | |
3006 | c:Play() | |
3007 | local Shockwave = function() | |
3008 | local Wave = Instance.new("Part", game.Workspace--[[?]]) | |
3009 | Wave.Name = "Shockwave" | |
3010 | Wave.BrickColor = BrickColor.new("Really black") | |
3011 | Wave.Size = Vector3.new(1, 1, 1) | |
3012 | Wave.Shape = "Ball" | |
3013 | Wave.CanCollide = false | |
3014 | Wave.Anchored = true | |
3015 | Wave.TopSurface = 0 | |
3016 | Wave.BottomSurface = 0 | |
3017 | Wave.Touched:connect(function(hit) | |
3018 | print(hit.Name) | |
3019 | if hit.Parent:findFirstChild("Humanoid") and hit.Parent:findFirstChild("Torso") then | |
3020 | if hit.Parent.Name ~= char.Name then | |
3021 | print("Damaged " .. hit.Parent.Name) | |
3022 | hit.Parent:findFirstChild("Humanoid").Health = hit.Parent:findFirstChild("Humanoid").Health - 1 | |
3023 | hit.Parent:findFirstChild("Torso").Velocity = hit.Parent:findFirstChild("Torso").CFrame.lookVector * -120 | |
3024 | end | |
3025 | end | |
3026 | end) | |
3027 | ||
3028 | Instance.new("SpecialMesh", Wave).MeshType = "Sphere" | |
3029 | ||
3030 | Delay(0, function() | |
3031 | -- | |
3032 | -- Okay. | |
3033 | if Daytime == false then | |
3034 | for i = 1, 38, 1 do | |
3035 | Wave.Size = Vector3.new(1 + i, 1 + i, 1 + i) | |
3036 | Wave.CFrame = char.Torso.CFrame | |
3037 | local t = i / 38 | |
3038 | Wave.Transparency = t | |
3039 | wait() | |
3040 | end | |
3041 | else | |
3042 | for i = 38, 1, -1 do | |
3043 | Wave.Size = Vector3.new(1 + i, 1 + i, 1 + i) | |
3044 | Wave.CFrame = char.Torso.CFrame | |
3045 | local t = i / 38 | |
3046 | Wave.Transparency = t | |
3047 | wait() | |
3048 | end | |
3049 | end | |
3050 | Wave:Destroy() | |
3051 | end) | |
3052 | Delay(0, function() | |
3053 | while wait() do | |
3054 | if Wave ~= nil then | |
3055 | Wave.CFrame = char.Torso.CFrame | |
3056 | else | |
3057 | break | |
3058 | end | |
3059 | end | |
3060 | end) | |
3061 | end | |
3062 | ||
3063 | Shockwave() | |
3064 | ||
3065 | for i = 1, 20 do | |
3066 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, .5, 0) * CFrame.Angles(math.rad(120), 0, math.rad(-100)), 0.6) | |
3067 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, .5, 0) * CFrame.Angles(math.rad(120), 0, math.rad(100)), 0.6) | |
3068 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(-20)), 0.6) | |
3069 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(20)), 0.6) | |
3070 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(35), math.rad(0), 0), 0.6) | |
3071 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 2, 0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.6) | |
3072 | wait() | |
3073 | if Debounces.on == false then | |
3074 | break | |
3075 | end | |
3076 | wait() | |
3077 | end | |
3078 | wait(2) | |
3079 | Debounces.NoIdl = false | |
3080 | if CanAttack == false then | |
3081 | CanAttack = true | |
3082 | wait() | |
3083 | end | |
3084 | end -- for the canattack thing | |
3085 | end | |
3086 | end) | |
3087 | ------------------------------- | |
3088 | local animpose = "Idle" | |
3089 | local lastanimpose = "Idle" | |
3090 | local grab = false | |
3091 | local sine = 0 | |
3092 | local change = 1 | |
3093 | local val = 0 | |
3094 | local ffing = false | |
3095 | local jump = false | |
3096 | ------------------------------- | |
3097 | --[[if stanceToggle == "Sitting" then | |
3098 | if wait(math.random(1,2)) == 1 then | |
3099 | stanceToggle = "Sitting2" | |
3100 | wait(8) | |
3101 | stanceToggle = "Sitting" | |
3102 | end | |
3103 | end]]-- | |
3104 | ------------------------------- | |
3105 | game:GetService("RunService").RenderStepped:connect(function() | |
3106 | if char.Humanoid.Jump == true then | |
3107 | jump = true | |
3108 | else | |
3109 | jump = false | |
3110 | end | |
3111 | char.Humanoid.FreeFalling:connect(function(f) | |
3112 | if f then | |
3113 | ffing = true | |
3114 | else | |
3115 | ffing = false | |
3116 | end | |
3117 | end) | |
3118 | sine = sine + change | |
3119 | if jump == true then | |
3120 | animpose = "Jumping" | |
3121 | elseif ffing == true then | |
3122 | animpose = "Freefalling" | |
3123 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then | |
3124 | animpose = "Idle" | |
3125 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then | |
3126 | animpose = "Walking" | |
3127 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then | |
3128 | animpose = "Running" | |
3129 | end | |
3130 | if animpose ~= lastanimpose then | |
3131 | sine = 0 | |
3132 | if Debounces.NoIdl == false then | |
3133 | if stanceToggle == "Normal" and holy ~= true then | |
3134 | for i = 1, 2 do | |
3135 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(40)), 0.2) | |
3136 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(-20)), 0.2) | |
3137 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.2) | |
3138 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.2) | |
3139 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.2) | |
3140 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-15), math.rad(20)), 0.2) | |
3141 | cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
3142 | end | |
3143 | elseif stanceToggle == "Sitting" then | |
3144 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/30),0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(20+2*math.cos(sine/30))), 0.2) | |
3145 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2, 0.5, -.54) * CFrame.Angles(math.rad(88), 0, math.rad(48)), 0.6) | |
3146 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-10), 0, 0), 0.3) | |
3147 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-20), math.sin(sine/60)/3, 0), 0.3) | |
3148 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -1) * CFrame.Angles(math.rad(-6), 0, 0), 0.3) | |
3149 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -.1) * CFrame.Angles(math.rad(-56), 0, 0), 0.3) | |
3150 | elseif stanceToggle == "Floating" then | |
3151 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.4) | |
3152 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.4) | |
3153 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(0),0), 0.2) | |
3154 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1-0.4*math.cos(sine/14), 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.05) | |
3155 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8-2*math.cos(sine/14))), 0.4) | |
3156 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8+2*math.cos(sine/14))), 0.4) | |
3157 | wait() | |
3158 | end | |
3159 | else | |
3160 | end | |
3161 | end | |
3162 | lastanimpose = animpose | |
3163 | if Debounces.NoIdl == false then | |
3164 | if animpose == "Idle" then | |
3165 | if stanceToggle == "Normal" and holy ~= true then | |
3166 | change = 0.5 | |
3167 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(40+2*math.cos(sine/14))), 0.2) | |
3168 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(-20-2*math.cos(sine/14))), 0.2) | |
3169 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(50),0), 0.2) | |
3170 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.2) | |
3171 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.2) | |
3172 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-15), math.rad(20)), 0.2) | |
3173 | elseif stanceToggle == "Normal" and holy == true then | |
3174 | change = 0.8 | |
3175 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.4) | |
3176 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.4) | |
3177 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(0),0), 0.2) | |
3178 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/14), 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.05) | |
3179 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8-2*math.cos(sine/14))), 0.4) | |
3180 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8+2*math.cos(sine/14))), 0.4) | |
3181 | elseif stanceToggle == "Melee" and holy ~= true then | |
3182 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(20+2*math.cos(sine/14))), 0.2) | |
3183 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20-2*math.cos(sine/14))), 0.2) | |
3184 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-20+1*math.cos(sine/14)),math.rad(0),0), 0.2) | |
3185 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2) | |
3186 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
3187 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
3188 | elseif stanceToggle == "Melee" and holy == true then | |
3189 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.4) | |
3190 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.4) | |
3191 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(0),0), 0.2) | |
3192 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/14), 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.05) | |
3193 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8-2*math.cos(sine/14))), 0.4) | |
3194 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8+2*math.cos(sine/14))), 0.4) | |
3195 | elseif stanceToggle == "Sitting" then | |
3196 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(20)), 0.2) | |
3197 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2, 0.5, -.54) * CFrame.Angles(math.rad(88), 0, math.rad(48)), 0.6) | |
3198 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-10), 0, 0), 0.3) | |
3199 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5-0.06*math.cos(sine/25), -.2) * CFrame.Angles(math.rad(0-20*math.cos(sine/25)/2), math.sin(sine/50)/2.4, 0), 0.3) | |
3200 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -1) * CFrame.Angles(math.rad(-6), 0, 0), 0.3) | |
3201 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -.1) * CFrame.Angles(math.rad(-56), 0, 0), 0.3) | |
3202 | elseif stanceToggle == "Floating" then | |
3203 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.4) | |
3204 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.4) | |
3205 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(0),0), 0.2) | |
3206 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1-0.4*math.cos(sine/14), 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.05) | |
3207 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8-2*math.cos(sine/14))), 0.4) | |
3208 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8+2*math.cos(sine/14))), 0.4) | |
3209 | elseif stanceToggle == "Grabbed" and holy ~= true then | |
3210 | grab = true | |
3211 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(40+2*math.cos(sine/14))), 0.2) | |
3212 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/14),-.5)*CFrame.Angles(math.rad(130+4*math.cos(sine/14)),math.rad(0),math.rad(-60+4*math.cos(sine/14))), 0.3) | |
3213 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14+2*math.cos(sine/14)),math.rad(70-4*math.cos(sine/14)),0), 0.3) | |
3214 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3) | |
3215 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.3) | |
3216 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3) | |
3217 | elseif stanceToggle == "Grabbed" and holy == true then | |
3218 | grab = true | |
3219 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(40+2*math.cos(sine/14))), 0.2) | |
3220 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/14),-.5)*CFrame.Angles(math.rad(130+4*math.cos(sine/14)),math.rad(0),math.rad(-60+4*math.cos(sine/14))), 0.3) | |
3221 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14+2*math.cos(sine/14)),math.rad(70-4*math.cos(sine/14)),0), 0.3) | |
3222 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/14), 0) * CFrame.Angles(math.rad(-10),0, math.rad(0)), 0.05) | |
3223 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(-8)), 0.4) | |
3224 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(8)), 0.4) | |
3225 | end | |
3226 | elseif animpose == "Walking" then | |
3227 | if stanceToggle == "Normal" and holy ~= true then | |
3228 | change = 1 | |
3229 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5, 0)*CFrame.Angles(math.rad(-20), math.rad(-20),math.rad(40)), 0.2) | |
3230 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6, -math.sin(sine/8)/2.8)*CFrame.Angles(math.sin(sine/8)/4, -math.sin(sine/8)/2, math.rad(-10)), 0.2) | |
3231 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-8+2*math.cos(sine/4)), math.rad(0), math.rad(0)),0.2) | |
3232 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.1*math.cos(sine/4), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/4)), 0, math.rad(0)), 0.2) | |
3233 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1-0.14*math.cos(sine/8)/2.8, -0.05 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + -math.sin(sine/8)/2.3, 0, 0), .4) | |
3234 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1+0.14*math.cos(sine/8)/2.8, -0.05 + -math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + math.sin(sine/8)/2.3, 0, 0), .4) | |
3235 | elseif stanceToggle == "Normal" and holy == true then | |
3236 | for i = 1, 2 do | |
3237 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.2) | |
3238 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.2) | |
3239 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-14),0,0), 0.4) | |
3240 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/14), 0) * CFrame.Angles(math.rad(-10),0, math.rad(0)), 0.05) | |
3241 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(-8)), 0.4) | |
3242 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(8)), 0.4) | |
3243 | end | |
3244 | elseif stanceToggle == "Melee" and holy ~= true then | |
3245 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5-.05*math.cos(sine/4), math.sin(sine/8)/4) * CFrame.Angles(-math.sin(sine/8)/2.8, -math.sin(sine/8)/3, math.rad(10+2*math.cos(sine/4))), 0.2) | |
3246 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5+.05*math.cos(sine/4), -math.sin(sine/8)/4)*CFrame.Angles(math.sin(sine/8)/2.8, -math.sin(sine/8)/3, math.rad(-10-2*math.cos(sine/4))), 0.2) | |
3247 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-8+2*math.cos(sine/4)), math.rad(0), math.rad(0)),0.2) | |
3248 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.07*math.cos(sine/4), 0) * CFrame.Angles(math.rad(-4+1*math.cos(sine/4)), 0, math.rad(0)), 0.2) | |
3249 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1-0.14*math.cos(sine/8)/2.8, -0.05 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + -math.sin(sine/8)/2.3, 0, 0), .4) | |
3250 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1+0.14*math.cos(sine/8)/2.8, -0.05 + -math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + math.sin(sine/8)/2.3, 0, 0), .4) | |
3251 | elseif stanceToggle == "Melee" and holy == true then | |
3252 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.2) | |
3253 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.2) | |
3254 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-14),0,0), 0.4) | |
3255 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/14), 0) * CFrame.Angles(math.rad(-10),0, math.rad(0)), 0.05) | |
3256 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(-8)), 0.4) | |
3257 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(8)), 0.4) | |
3258 | elseif stanceToggle == "Floating" then | |
3259 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.2) | |
3260 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.2) | |
3261 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-14-4*math.cos(sine/14)),0,0), 0.4) | |
3262 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0-8*math.cos(sine/14)), 0, math.rad(-8)), 0.4) | |
3263 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(1-9*math.cos(sine/13)), 0, math.rad(8)), 0.4) | |
3264 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1-0.2*math.cos(sine/14), 0) * CFrame.Angles(math.rad(-10),0, math.rad(0)), 0.05) | |
3265 | elseif stanceToggle == "Grabbed" and holy ~= true then | |
3266 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5, 0)*CFrame.Angles(math.rad(-20), math.rad(-20),math.rad(40)), 0.2) | |
3267 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(120),math.rad(0),math.rad(-30)), 0.3) | |
3268 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-8+2*math.cos(sine/4)), math.rad(0), math.rad(0)),0.2) | |
3269 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.1*math.cos(sine/4), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/4)), 0, math.rad(0)), 0.2) | |
3270 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1-0.14*math.cos(sine/8)/2.8, -0.05 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + -math.sin(sine/8)/2.3, 0, 0), .4) | |
3271 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1+0.14*math.cos(sine/8)/2.8, -0.05 + -math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + math.sin(sine/8)/2.3, 0, 0), .4) | |
3272 | elseif stanceToggle == "Grabbed" and holy == true then | |
3273 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5, 0)*CFrame.Angles(math.rad(-20), math.rad(-20),math.rad(40)), 0.2) | |
3274 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(120),math.rad(0),math.rad(-30)), 0.3) | |
3275 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-14-4*math.cos(sine/14)),0,0), 0.4) | |
3276 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0-8*math.cos(sine/14)), 0, math.rad(-8)), 0.4) | |
3277 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(1-9*math.cos(sine/13)), 0, math.rad(8)), 0.4) | |
3278 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/14), 0) * CFrame.Angles(math.rad(-10),0, math.rad(0)), 0.05) | |
3279 | end | |
3280 | elseif animpose == "Running" then | |
3281 | if stanceToggle == "Normal" and holy ~= true then | |
3282 | change = 1 | |
3283 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles (math.rad(44), math.rad (0), math.rad(0)), 0.15) | |
3284 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 1-0.1*math.cos(sine/14), -1) * CFrame.Angles(math.rad(- 80), math.rad(0), 0), 0.15) | |
3285 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad (0), math.rad(50), math.rad(-40)), 0.15) | |
3286 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(40)), 0.15) | |
3287 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(8), math.rad(0), math.rad(- 10)), .15) | |
3288 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(8), math.rad(0), math.rad(10)), .15) | |
3289 | elseif stanceToggle == "Normal" and holy == true then | |
3290 | change = 1 | |
3291 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.35,.4)*CFrame.Angles(math.rad(250),math.rad(350),math.rad(-30+2*math.cos(sine/14))), 0.2)--cfawm | |
3292 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.55,-.4)*CFrame.Angles(math.rad(110),math.rad(0),math.rad(40-2*math.cos(sine/14))), 0.2) | |
3293 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, .2) * CFrame.Angles(math.rad(20),math.rad(10),0), 0.4) | |
3294 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/14), 0) * CFrame.Angles(math.rad(-40),math.rad(-10), math.rad(0)), 0.2) | |
3295 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -1.2) * CFrame.Angles(math.rad(-20), math.rad(10), math.rad(0)), 0.4) | |
3296 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(10), math.rad(0)), 0.4) | |
3297 | elseif stanceToggle == "Floating" then | |
3298 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.2) | |
3299 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.2) | |
3300 | hed.Weld.C0 = CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-14-4*math.cos(sine/14)),0,0) | |
3301 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10-12*math.cos(sine/16)), 0, math.rad(-8)), 0.4) | |
3302 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10-12*math.cos(sine/16)), 0, math.rad(8)), 0.4) | |
3303 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1-0.4*math.cos(sine/14), -.2) * CFrame.Angles(math.rad(-15),0, math.rad(0)), 0.05) | |
3304 | end | |
3305 | end | |
3306 | end | |
3307 | end) | |
3308 | ||
3309 | Spawn(function() | |
3310 | while wait() do | |
3311 | updateFly() | |
3312 | end | |
3313 | end) | |
3314 | ||
3315 | Spawn(function() | |
3316 | while wait(.1) do | |
3317 | Magik() | |
3318 | end | |
3319 | end) | |
3320 | ||
3321 | Spawn(function() | |
3322 | while wait(.1) do | |
3323 | Magik2() | |
3324 | end | |
3325 | end) | |
3326 | ||
3327 | Spawn(function() | |
3328 | while wait(4) do | |
3329 | GroundWave() | |
3330 | end | |
3331 | end) | |
3332 | ||
3333 | ||
3334 | ||
3335 | ||
3336 | ||
3337 | function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans) -- Lightning module | |
3338 | --[[Part0 = Vector3 (Start pos) | |
3339 | Part1 = Vector3 (End pos) | |
3340 | Times = number (Amount of lightning parts) | |
3341 | Offset = number (Offset) | |
3342 | Color = color (brickcolor value) | |
3343 | Thickness = number (thickness) | |
3344 | Trans = number (transparency) | |
3345 | ]]-- | |
3346 | local magz = (Part0 - Part1).magnitude | |
3347 | local curpos = Part0 | |
3348 | local trz = {-Offset,Offset} | |
3349 | for i=1,Times do | |
3350 | local li = Instance.new("Part", torso) | |
3351 | li.Name = "Lightning" | |
3352 | li.TopSurface =0 | |
3353 | li.Material = "Neon" | |
3354 | li.BottomSurface = 0 | |
3355 | li.Anchored = true | |
3356 | li.Locked = true | |
3357 | li.Transparency = Trans or 0.4 | |
3358 | li.BrickColor = BrickColor.new(Color) | |
3359 | li.formFactor = "Custom" | |
3360 | li.CanCollide = false | |
3361 | li.Size = Vector3.new(Thickness,Thickness,magz/Times) | |
3362 | local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)]) | |
3363 | local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet | |
3364 | if Times == i then | |
3365 | local magz2 = (curpos - Part1).magnitude | |
3366 | li.Size = Vector3.new(Thickness,Thickness,magz2) | |
3367 | li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2) | |
3368 | else | |
3369 | li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2) | |
3370 | end | |
3371 | curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p | |
3372 | game.Debris:AddItem(li,.1) | |
3373 | end | |
3374 | end | |
3375 | ||
3376 | BodyParts = {} -- Parts to emit lightning effects from | |
3377 | for _, v in pairs(char.Genkadda:GetChildren()) do | |
3378 | if v:IsA("Part") and v.Name ~= "HitBox" and v.Name ~= "Thingy" then | |
3379 | table.insert(BodyParts, v) | |
3380 | end | |
3381 | end | |
3382 | ||
3383 | Bounding = {} -- Calculate the bounding boxes | |
3384 | for _, v in pairs(BodyParts) do | |
3385 | local temp = {X=nil, Y=nil, Z=nil} | |
3386 | temp.X = v.Size.X/2 * 10 | |
3387 | temp.Y = v.Size.Y/2 * 10 | |
3388 | temp.Z = v.Size.Z/2 * 10 | |
3389 | Bounding[v.Name] = temp | |
3390 | --table.insert(Bounding, v.Name, temp) | |
3391 | end | |
3392 | ||
3393 | ||
3394 | ||
3395 | while wait(lightspeed) do -- Emit the Lightning effects randomly, original was (1,10)/10 | |
3396 | ||
3397 | if Melee ~= true then --[[Make sure we only see the lightning when holding our sword]] | |
3398 | ||
3399 | if holy == true then | |
3400 | lightspeed = math.random(0.1,0.2) | |
3401 | else | |
3402 | lightspeed = math.random(0.5,1) | |
3403 | end | |
3404 | ||
3405 | local Body1 = BodyParts[math.random(#BodyParts)] | |
3406 | local Body2 = BodyParts[math.random(#BodyParts)] | |
3407 | local Pos1 = Vector3.new( | |
3408 | math.random(-Bounding[Body1.Name].X, Bounding[Body1.Name].X)/10, | |
3409 | math.random(-Bounding[Body1.Name].Y, Bounding[Body1.Name].Y)/10, | |
3410 | math.random(-Bounding[Body1.Name].Z, Bounding[Body1.Name].Z)/10 | |
3411 | ) | |
3412 | local Pos2 = Vector3.new( | |
3413 | math.random(-Bounding[Body2.Name].X, Bounding[Body2.Name].X)/10, | |
3414 | math.random(-Bounding[Body2.Name].Y, Bounding[Body2.Name].Y)/10, | |
3415 | math.random(-Bounding[Body2.Name].Z, Bounding[Body2.Name].Z)/10 | |
3416 | ) | |
3417 | local SPos1 = Body1.Position + Pos1 | |
3418 | local SPos2 = Body2.Position + Pos2 | |
3419 | ||
3420 | ||
3421 | ||
3422 | Lightning(SPos1, SPos2, 4, 3, eColors[math.random(1,#eColors)], .2, .56) | |
3423 | ||
3424 | ||
3425 | end | |
3426 | end |