SHOW:
|
|
- or go back to the newest paste.
1 | ||
2 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
3 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
4 | local RealPlayer = Player | |
5 | do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end | |
6 | ||
7 | local p = game.Players.LocalPlayer | |
8 | local char = p.Character | |
9 | local mouse = p:GetMouse() | |
10 | local larm = char["Left Arm"] | |
11 | local rarm = char["Right Arm"] | |
12 | local lleg = char["Left Leg"] | |
13 | local rleg = char["Right Leg"] | |
14 | local hed = char.Head | |
15 | local torso = char.Torso | |
16 | local cam = game.Workspace.CurrentCamera | |
17 | local root = char.HumanoidRootPart | |
18 | local deb = false | |
19 | local shot = 0 | |
20 | local l = game.Lighting | |
21 | local stanceToggle = "Assertive" | |
22 | local CanAttack = true | |
23 | local Daytime = true | |
24 | local animpose = "Idle" | |
25 | local lastanimpose = "Idle" | |
26 | local nosword=false | |
27 | RootPart=char.HumanoidRootPart | |
28 | local Effects={} | |
29 | local attack=false | |
30 | idle=0 | |
31 | Anim='Idle' | |
32 | equipped=true | |
33 | char.Humanoid.WalkSpeed=40 | |
34 | colorscheme=BrickColor.new('Black') | |
35 | it=Instance.new | |
36 | attacktype=1 | |
37 | vt=Vector3.new | |
38 | cf=CFrame.new | |
39 | euler=CFrame.fromEulerAnglesXYZ | |
40 | angles=CFrame.Angles | |
41 | m=Instance.new('Model',char) | |
42 | stance='god' | |
43 | --game:service'Lighting'.TimeOfDay=24 | |
44 | z = Instance.new("Sound") | |
45 | z.SoundId = "http://www.roblox.com/asset/?id=142360845"--..SIDs[math.random(1,#SIDs)]--159496201 | |
46 | --248000653 | |
47 | z.Parent = char | |
48 | z.Looped = true | |
49 | z.Pitch = 1 | |
50 | z.Volume = 1 | |
51 | wait(.01) | |
52 | --z:Play() | |
53 | Debounces = { | |
54 | on = false; | |
55 | ks = false; | |
56 | CanAttack = true; | |
57 | CanJoke = true; | |
58 | NoIdl = false; | |
59 | Slashing = false; | |
60 | Slashed = false; | |
61 | Grabbing = | |
62 | false; | |
63 | Grabbed = false; | |
64 | } | |
65 | local RbxUtility = LoadLibrary("RbxUtility") | |
66 | local Create = RbxUtility.Create | |
67 | wm=Create("Model"){ | |
68 | Parent=char, | |
69 | Name="Weapon", | |
70 | } | |
71 | it=Instance.new | |
72 | vt=Vector3.new | |
73 | cf=CFrame.new | |
74 | euler=CFrame.fromEulerAnglesXYZ | |
75 | angles=CFrame.Angles | |
76 | ||
77 | ||
78 | function swait(num) | |
79 | if num==0 or num==nil then | |
80 | game:service'RunService'.Stepped:wait(0) | |
81 | else | |
82 | for i=0,num do | |
83 | game:service'RunService'.Stepped:wait(0) | |
84 | end | |
85 | end | |
86 | end | |
87 | --vvvvv WOW HAVEN'T SEEN THIS ONE BEFORE! | |
88 | function clerp(a,b,t) | |
89 | local qa = {QuaternionFromCFrame(a)} | |
90 | local qb = {QuaternionFromCFrame(b)} | |
91 | local ax, ay, az = a.x, a.y, a.z | |
92 | local bx, by, bz = b.x, b.y, b.z | |
93 | local _t = 1-t | |
94 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
95 | end | |
96 | ||
97 | function QuaternionFromCFrame(cf) | |
98 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
99 | local trace = m00 + m11 + m22 | |
100 | if trace > 0 then | |
101 | local s = math.sqrt(1 + trace) | |
102 | local recip = 0.5/s | |
103 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
104 | else | |
105 | local i = 0 | |
106 | if m11 > m00 then | |
107 | i = 1 | |
108 | end | |
109 | if m22 > (i == 0 and m00 or m11) then | |
110 | i = 2 | |
111 | end | |
112 | if i == 0 then | |
113 | local s = math.sqrt(m00-m11-m22+1) | |
114 | local recip = 0.5/s | |
115 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
116 | elseif i == 1 then | |
117 | local s = math.sqrt(m11-m22-m00+1) | |
118 | local recip = 0.5/s | |
119 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
120 | elseif i == 2 then | |
121 | local s = math.sqrt(m22-m00-m11+1) | |
122 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
123 | end | |
124 | end | |
125 | end | |
126 | ||
127 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
128 | local xs, ys, zs = x + x, y + y, z + z | |
129 | local wx, wy, wz = w*xs, w*ys, w*zs | |
130 | local xx = x*xs | |
131 | local xy = x*ys | |
132 | local xz = x*zs | |
133 | local yy = y*ys | |
134 | local yz = y*zs | |
135 | local zz = z*zs | |
136 | return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) | |
137 | end | |
138 | ||
139 | function QuaternionSlerp(a, b, t) | |
140 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
141 | local startInterp, finishInterp; | |
142 | if cosTheta >= 0.0001 then | |
143 | if (1 - cosTheta) > 0.0001 then | |
144 | local theta = math.acos(cosTheta) | |
145 | local invSinTheta = 1/math.sin(theta) | |
146 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
147 | finishInterp = math.sin(t*theta)*invSinTheta | |
148 | else | |
149 | startInterp = 1-t | |
150 | finishInterp = t | |
151 | end | |
152 | else | |
153 | if (1+cosTheta) > 0.0001 then | |
154 | local theta = math.acos(-cosTheta) | |
155 | local invSinTheta = 1/math.sin(theta) | |
156 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
157 | finishInterp = math.sin(t*theta)*invSinTheta | |
158 | else | |
159 | startInterp = t-1 | |
160 | finishInterp = t | |
161 | end | |
162 | end | |
163 | return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp | |
164 | end | |
165 | ----------- | |
166 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
167 | local wld = Instance.new("Weld", wp1) | |
168 | wld.Part0 = wp0 | |
169 | wld.Part1 = wp1 | |
170 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
171 | return wld | |
172 | end | |
173 | ||
174 | larm.Size = larm.Size * 2 | |
175 | rarm.Size = rarm.Size * 2 | |
176 | lleg.Size = lleg.Size * 2 | |
177 | rleg.Size = rleg.Size * 2 | |
178 | torso.Size = torso.Size * 2 | |
179 | hed.Size = hed.Size * 2 | |
180 | root.Size = root.Size * 2 | |
181 | ---------------------------------------------------- | |
182 | newWeld(torso, larm, -3, 0.5, 0) | |
183 | larm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
184 | newWeld(torso, rarm, 3, 0.5, 0) | |
185 | rarm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
186 | newWeld(torso, hed, 0, 1.5, 0) | |
187 | hed.Weld.C1 = CFrame.new(0, -1.5, 0) | |
188 | newWeld(torso, lleg, -0.5, -1, 0) | |
189 | lleg.Weld.C1 = CFrame.new(.5, 3, 0) | |
190 | newWeld(torso, rleg, 0.5, -1, 0) | |
191 | rleg.Weld.C1 = CFrame.new(-.5, 3, 0) | |
192 | newWeld(root, torso, 0, -1, 0) | |
193 | torso.Weld.C1 = CFrame.new(0, -1, 0) | |
194 | ||
195 | Player=game:GetService('Players').LocalPlayer | |
196 | Character=Player.Character | |
197 | Mouse=Player:GetMouse() | |
198 | m=Instance.new('Model',Character) | |
199 | ||
200 | local function weldBetween(a, b) | |
201 | local weldd = Instance.new("ManualWeld") | |
202 | weldd.Part0 = a | |
203 | weldd.Part1 = b | |
204 | weldd.C0 = CFrame.new() | |
205 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
206 | weldd.Parent = a | |
207 | return weldd | |
208 | end | |
209 | ||
210 | it=Instance.new | |
211 | ||
212 | function nooutline(part) | |
213 | part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10 | |
214 | end | |
215 | ||
216 | function paart(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
217 | local fp=it("Part") | |
218 | fp.formFactor=formfactor | |
219 | fp.Parent=parent | |
220 | fp.Reflectance=reflectance | |
221 | fp.Transparency=transparency | |
222 | fp.CanCollide=false | |
223 | fp.Locked=true | |
224 | fp.BrickColor=brickcolor | |
225 | fp.Name=name | |
226 | fp.Size=size | |
227 | fp.Position=torso.Position | |
228 | nooutline(fp) | |
229 | fp.Material="SmoothPlastic" | |
230 | fp:BreakJoints() | |
231 | return fp | |
232 | end | |
233 | ||
234 | ||
235 | function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size) | |
236 | local fp=it("Part") | |
237 | fp.formFactor=formfactor | |
238 | fp.Parent=parent | |
239 | fp.Reflectance=reflectance | |
240 | fp.Transparency=transparency | |
241 | fp.CanCollide=false | |
242 | fp.Locked=true | |
243 | fp.BrickColor=BrickColor.new(tostring(brickcolor)) | |
244 | fp.Name=name | |
245 | fp.Size=size | |
246 | fp.Position=Character.Torso.Position | |
247 | nooutline(fp) | |
248 | fp.Material=material | |
249 | fp:BreakJoints() | |
250 | return fp | |
251 | end | |
252 | ||
253 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
254 | local mesh=it(Mesh) | |
255 | mesh.Parent=part | |
256 | if Mesh=="SpecialMesh" then | |
257 | mesh.MeshType=meshtype | |
258 | mesh.MeshId=meshid | |
259 | end | |
260 | mesh.Offset=offset | |
261 | mesh.Scale=scale | |
262 | return mesh | |
263 | end | |
264 | ||
265 | function weld(parent,part0,part1,c0,c1) | |
266 | local weld=it("Weld") | |
267 | weld.Parent=parent | |
268 | weld.Part0=part0 | |
269 | weld.Part1=part1 | |
270 | weld.C0=c0 | |
271 | weld.C1=c1 | |
272 | return weld | |
273 | end | |
274 | ||
275 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
276 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
277 | end | |
278 | ||
279 | so = function(id,par,vol,pit) | |
280 | coroutine.resume(coroutine.create(function() | |
281 | local sou = Instance.new("Sound",par or workspace) | |
282 | sou.Volume=vol | |
283 | sou.Pitch=pit or 1 | |
284 | sou.SoundId=id | |
285 | swait() | |
286 | sou:play() | |
287 | game:GetService("Debris"):AddItem(sou,6) | |
288 | end)) | |
289 | end | |
290 | ||
291 | Face=hed.face | |
292 | ||
293 | function Cloak() | |
294 | so("http://roblox.com/asset/?id=2767090",torso,1,1.1) | |
295 | Face.Parent=nil | |
296 | cloaked=true | |
297 | for _,v in pairs(torso.Parent:children()) do | |
298 | if v.className=="Part" and v.Name~="HumanoidRootPart" then | |
299 | coroutine.resume(coroutine.create(function() | |
300 | for i=0,1,0.2 do | |
301 | wait() | |
302 | v.Transparency=i | |
303 | end | |
304 | v.Transparency=1 | |
305 | end)) | |
306 | end | |
307 | if v.className=="Hat" then | |
308 | hatp=v.Handle | |
309 | coroutine.resume(coroutine.create(function(derp) | |
310 | for i=0,1,0.2 do | |
311 | wait() | |
312 | derp.Transparency=i | |
313 | end | |
314 | derp.Transparency=1 | |
315 | end),hatp) | |
316 | end | |
317 | end | |
318 | for _,v in pairs(m:children()) do | |
319 | if v.className=="Part" then | |
320 | coroutine.resume(coroutine.create(function() | |
321 | for i=0,1,0.2 do | |
322 | wait() | |
323 | v.Transparency=i | |
324 | end | |
325 | v.Transparency=1 | |
326 | end)) | |
327 | end | |
328 | end | |
329 | end | |
330 | magix=true | |
331 | function UnCloak() | |
332 | so("http://roblox.com/asset/?id=2767090",torso,1,1.1) | |
333 | Face.Parent=hed | |
334 | cloaked=false | |
335 | for _,v in pairs(torso.Parent:children()) do | |
336 | if v.className=="Part" and v.Name~="HumanoidRootPart" then | |
337 | coroutine.resume(coroutine.create(function() | |
338 | for i=0,1,0.1 do | |
339 | wait() | |
340 | v.Transparency=v.Transparency-0.1 | |
341 | end | |
342 | v.Transparency=0 | |
343 | end)) | |
344 | end | |
345 | --[[if v.className~="Hat" then | |
346 | hatp=v.Handle | |
347 | coroutine.resume(coroutine.create(function(derp) | |
348 | for i=0,1,0.1 do | |
349 | wait() | |
350 | derp.Transparency=derp.Transparency-0.1 | |
351 | end | |
352 | derp.Transparency=0 | |
353 | end),hatp) | |
354 | end]] | |
355 | end | |
356 | if magix==false then | |
357 | for _,v in pairs(m:children()) do | |
358 | if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' and v.Name~='hat' then | |
359 | coroutine.resume(coroutine.create(function() | |
360 | for i=0,1,0.1 do | |
361 | wait() | |
362 | v.Transparency=v.Transparency-0.1 | |
363 | end | |
364 | v.Transparency=0 | |
365 | end)) | |
366 | v.Transparency=0 | |
367 | end | |
368 | end | |
369 | else | |
370 | for _,v in pairs(m:children()) do | |
371 | if v.className=="Part" and v.ClassName~='Weld' and v.Name~="hitbox" and v.Name~='tip' and v.Name~='hat'then | |
372 | coroutine.resume(coroutine.create(function() | |
373 | for i=0,1,0.1 do | |
374 | wait() | |
375 | v.Transparency=v.Transparency-0.1 | |
376 | end | |
377 | v.Transparency=0 | |
378 | end)) | |
379 | v.Transparency=0 | |
380 | end | |
381 | end | |
382 | end | |
383 | end | |
384 | ||
385 | ||
386 | Damagefuncy=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) | |
387 | if hit.Parent==nil then | |
388 | return | |
389 | end | |
390 | local h=hit.Parent:FindFirstChild("Humanoid") | |
391 | for _,v in pairs(hit.Parent:children()) do | |
392 | if v:IsA("Humanoid") then | |
393 | h=v | |
394 | end | |
395 | end | |
396 | if hit.Parent.Parent:FindFirstChild("Torso")~=nil then | |
397 | h=hit.Parent.Parent:FindFirstChild("Humanoid") | |
398 | end | |
399 | if hit.Parent.className=="Hat" then | |
400 | hit=hit.Parent.Parent:findFirstChild("Head") | |
401 | end | |
402 | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then | |
403 | if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end | |
404 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
405 | return | |
406 | end]] | |
407 | -- hs(hit,1.2) | |
408 | local Damage=math.random(minim,maxim) | |
409 | -- h:TakeDamage(Damage) | |
410 | local blocked=false | |
411 | local block=hit.Parent:findFirstChild("Block") | |
412 | if block~=nil then | |
413 | print(block.className) | |
414 | if block.className=="NumberValue" then | |
415 | if block.Value>0 then | |
416 | blocked=true | |
417 | if decreaseblock==nil then | |
418 | block.Value=block.Value-1 | |
419 | end | |
420 | end | |
421 | end | |
422 | if block.className=="IntValue" then | |
423 | if block.Value>0 then | |
424 | blocked=true | |
425 | if decreaseblock~=nil then | |
426 | block.Value=block.Value-1 | |
427 | end | |
428 | end | |
429 | end | |
430 | end | |
431 | if blocked==false then | |
432 | -- h:TakeDamage(Damage) | |
433 | h.Health=h.Health-Damage | |
434 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color) | |
435 | else | |
436 | h.Health=h.Health-(Damage/2) | |
437 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Bright blue").Color) | |
438 | end | |
439 | if Type=="Knockdown" then | |
440 | local hum=hit.Parent.Humanoid | |
441 | hum.PlatformStand=true | |
442 | coroutine.resume(coroutine.create(function(HHumanoid) | |
443 | swait(1) | |
444 | HHumanoid.PlatformStand=false | |
445 | end),hum) | |
446 | local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit | |
447 | --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
448 | local bodvol=Instance.new("BodyVelocity") | |
449 | bodvol.velocity=angle*knockback | |
450 | bodvol.P=5000 | |
451 | bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
452 | bodvol.Parent=hit | |
453 | local rl=Instance.new("BodyAngularVelocity") | |
454 | rl.P=3000 | |
455 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
456 | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
457 | rl.Parent=hit | |
458 | game:GetService("Debris"):AddItem(bodvol,.5) | |
459 | game:GetService("Debris"):AddItem(rl,.5) | |
460 | elseif Type=="Normal" then | |
461 | local vp=Instance.new("BodyVelocity") | |
462 | vp.P=500 | |
463 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
464 | -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback | |
465 | if KnockbackType==1 then | |
466 | vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05 | |
467 | elseif KnockbackType==2 then | |
468 | vp.velocity=Property.CFrame.lookVector*knockback | |
469 | end | |
470 | if knockback>0 then | |
471 | vp.Parent=hit.Parent.Torso | |
472 | end | |
473 | game:GetService("Debris"):AddItem(vp,.5) | |
474 | elseif Type=="Up" then | |
475 | local bodyVelocity=Instance.new("BodyVelocity") | |
476 | bodyVelocity.velocity=vt(0,60,0) | |
477 | bodyVelocity.P=5000 | |
478 | bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
479 | bodyVelocity.Parent=hit | |
480 | game:GetService("Debris"):AddItem(bodyVelocity,1) | |
481 | local rl=Instance.new("BodyAngularVelocity") | |
482 | rl.P=3000 | |
483 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
484 | rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30)) | |
485 | rl.Parent=hit | |
486 | game:GetService("Debris"):AddItem(rl,.5) | |
487 | elseif Type=="Snare" then | |
488 | local bp=Instance.new("BodyPosition") | |
489 | bp.P=2000 | |
490 | bp.D=100 | |
491 | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
492 | bp.position=hit.Parent.Torso.Position | |
493 | bp.Parent=hit.Parent.Torso | |
494 | game:GetService("Debris"):AddItem(bp,1) | |
495 | elseif Type=="Target" then | |
496 | local Targetting = false | |
497 | if Targetting==false then | |
498 | ZTarget=hit.Parent.Torso | |
499 | coroutine.resume(coroutine.create(function(Part) | |
500 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) | |
501 | swait(5) | |
502 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) | |
503 | end),ZTarget) | |
504 | local TargHum=ZTarget.Parent:findFirstChild("Humanoid") | |
505 | local targetgui=Instance.new("BillboardGui") | |
506 | targetgui.Parent=ZTarget | |
507 | targetgui.Size=UDim2.new(10,100,10,100) | |
508 | local targ=Instance.new("ImageLabel") | |
509 | targ.Parent=targetgui | |
510 | targ.BackgroundTransparency=1 | |
511 | targ.Image="rbxassetid://4834067" | |
512 | targ.Size=UDim2.new(1,0,1,0) | |
513 | cam.CameraType="Scriptable" | |
514 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
515 | local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
516 | workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
517 | Targetting=true | |
518 | RocketTarget=ZTarget | |
519 | for i=1,Property do | |
520 | --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do | |
521 | if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then | |
522 | swait() | |
523 | end | |
524 | --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100) | |
525 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
526 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
527 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0) | |
528 | end | |
529 | Targetting=false | |
530 | RocketTarget=nil | |
531 | targetgui.Parent=nil | |
532 | cam.CameraType="Custom" | |
533 | end | |
534 | end | |
535 | local debounce=Instance.new("BoolValue") | |
536 | debounce.Name="DebounceHit" | |
537 | debounce.Parent=hit.Parent | |
538 | debounce.Value=true | |
539 | game:GetService("Debris"):AddItem(debounce,Delay) | |
540 | end | |
541 | end | |
542 | ||
543 | ||
544 | function ShowDamage(Pos, Text, Time, Color) | |
545 | local Rate = (1 / 30) | |
546 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
547 | local Text = (Text or "") | |
548 | local Time = (Time or 2) | |
549 | local Color = (Color or Color3.new(1, 0, 0)) | |
550 | local EffectPart = part("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new(Color),"Effect",vt(0,0,0)) | |
551 | EffectPart.Anchored = true | |
552 | local BillboardGui = Instance.new("BillboardGui") | |
553 | BillboardGui.Size = UDim2.new(3, 0, 3, 0) | |
554 | BillboardGui.Adornee = EffectPart | |
555 | local TextLabel = Instance.new("TextLabel") | |
556 | TextLabel.BackgroundTransparency = 1 | |
557 | TextLabel.Size = UDim2.new(1, 0, 1, 0) | |
558 | TextLabel.Text = Text | |
559 | TextLabel.TextColor3 = Color | |
560 | TextLabel.TextScaled = true | |
561 | TextLabel.Font = Enum.Font.ArialBold | |
562 | TextLabel.Parent = BillboardGui | |
563 | BillboardGui.Parent = EffectPart | |
564 | game.Debris:AddItem(EffectPart, (Time + 0.1)) | |
565 | EffectPart.Parent = game:GetService("Workspace") | |
566 | Delay(0, function() | |
567 | local Frames = (Time / Rate) | |
568 | for Frame = 1, Frames do | |
569 | wait(Rate) | |
570 | local Percent = (Frame / Frames) | |
571 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
572 | TextLabel.TextTransparency = Percent | |
573 | end | |
574 | if EffectPart and EffectPart.Parent then | |
575 | EffectPart:Destroy() | |
576 | end | |
577 | end) | |
578 | end | |
579 | ||
580 | handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Deep orange","Handle",Vector3.new(0.599999905, 4, 0.400000036)) | |
581 | handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.01841354, -0.0695610046, 0.049372673, -6.61965621e-012, -0.999999523, -1.12313298e-010, 0.00563658308, 1.10681131e-010, -0.999983788, 0.999983311, -8.65419195e-012, 0.00563658029)) | |
582 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.200000003, 0.799999833, 0.400000036)) | |
583 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.30133295, -4.59958267, 8.10623169e-006, 0.999997258, -4.70680717e-011, -3.91951055e-012, 5.03742811e-011, 1, -1.05605516e-011, 6.73187634e-012, 1.17550084e-011, 0.999997258)) | |
584 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.599999905, 4.4000001, 0.200000003)) | |
585 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.30089998, -5.9995594, -1.09672546e-005, 0.999996305, -3.48216178e-011, -1.62637629e-011, 3.83456322e-011, 1, -4.63629656e-012, 1.90928835e-011, 5.8306901e-012, 0.999996305)) | |
586 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.400000036, 0.200000003, 0.200000003)) | |
587 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.19480896e-005, -5.09960365, 1.30145025, 1.05312156e-005, 8.7171511e-006, -0.99998951, 1.7453418e-005, 1.00000608, 8.67240487e-006, 0.999999523, -1.97484223e-005, 1.04995552e-005)) | |
588 | --mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
589 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.200000003, 1.20000005, 0.200000003)) | |
590 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.70081615, -7.59955597, -3.81469727e-006, 0.999984145, -2.66020192e-011, -1.43523457e-011, 3.47976994e-011, 0.999999881, -4.03995587e-012, 2.00987699e-011, 6.42852438e-012, 0.999984264)) | |
591 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
592 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.71661377e-005, 3.69953728, 1.5010314, -8.34466391e-006, -8.76185368e-006, 0.99998939, -3.13209239e-005, -1.00000584, -8.67240215e-006, 0.999999523, -3.36160047e-005, 8.31290799e-006)) | |
593 | --mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
594 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.200000003, 0.600000381, 0.200000003)) | |
595 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.30089188, -3.49957085, -2.86102295e-006, 0.999989867, -3.57171584e-011, -1.50535487e-011, 4.31028546e-011, 1, -4.03874503e-012, 2.07377258e-011, 6.42744365e-012, 0.999989867)) | |
596 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
597 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.09908223, -3.49954987, -9.01222229e-005, 0.999987006, -1.91744329e-011, -1.37810397e-011, 3.06906514e-011, 1, -4.03930535e-012, 1.97828975e-011, 6.42799182e-012, 0.999987006)) | |
598 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(1, 0.599999726, 0.400000036)) | |
599 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.70132542, -8.4995842, 5.24520874e-006, 0.999993086, -4.43888051e-011, -2.43437388e-012, 4.98436153e-011, 1, -9.96337388e-012, 6.69102967e-012, 1.1754959e-011, 0.999993086)) | |
600 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(1.39999998, 0.399999917, 0.600000024)) | |
601 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.100895882, -2.19955063, 9.53674316e-007, 0.999992609, -3.44739653e-011, -1.49579567e-011, 4.15219734e-011, 1, -4.03871207e-012, 2.06161754e-011, 6.42749222e-012, 0.999992609)) | |
602 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.599999905, 0.599999905, 0.400000036)) | |
603 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0997242928, -1.50003433, 4.76837158e-007, 0.999986172, 2.41444642e-011, 2.85323978e-012, -1.32283698e-011, 1, -1.71489559e-013, 5.65950715e-012, 3.75693227e-012, 0.999986172)) | |
604 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.599999905, 0.200000003, 0.400000036)) | |
605 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0999045372, -1.90000916, 9.53674316e-007, 0.999992609, -1.09000656e-011, -1.43775027e-011, 1.79482471e-011, 1, -1.47436403e-012, 2.00357196e-011, 3.8631251e-012, 0.999992609)) | |
606 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.400000036, 0.600000024, 0.799999952)) | |
607 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(5.7220459e-005, 7.89964485, 1.80142498, -8.7530334e-006, -8.68735151e-006, 0.999989688, -5.80388769e-006, -1.00000608, -8.74690795e-006, 0.999999523, -8.09880021e-006, 8.72149394e-006)) | |
608 | --mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
609 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.600000024, 0.600000024, 0.200000003)) | |
610 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.04904175e-005, -2.89971924, 1.70256662, 6.8837162e-006, 8.72622059e-006, -0.999989986, -6.28802127e-006, 1.00000644, 8.69458381e-006, 0.999999523, 3.99320834e-006, 6.85229907e-006)) | |
611 | --mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
612 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.599999905, 0.200000003, 0.400000036)) | |
613 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0997610092, -1.10003662, 4.76837158e-007, 0.999986172, 2.3436475e-011, 3.80554746e-012, -1.25203806e-011, 1, -6.22770932e-013, 4.70720034e-012, 4.20822058e-012, 0.999986172)) | |
614 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
615 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.09909248, -3.89955139, -8.39233398e-005, 0.999991059, -2.07311043e-011, -1.39008249e-011, 2.9134084e-011, 1, -4.03928453e-012, 1.96632485e-011, 6.42804039e-012, 0.999991059)) | |
616 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.600000024, 0.600000024, 0.200000003)) | |
617 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.43051147e-005, -2.89971542, 1.4974215, -6.88429463e-006, 8.7262697e-006, 0.999989986, 6.28824864e-006, 1.00000644, -8.6946302e-006, -0.999999404, 3.99342571e-006, -6.80979338e-006)) | |
618 | --mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
619 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.400000036, 0.200000003, 0.200000003)) | |
620 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.38690186e-005, -6.49961472, 1.30147791, 1.05312156e-005, 8.7171511e-006, -0.99998951, 1.7453418e-005, 1.00000608, 8.67240487e-006, 0.999999523, -1.97484223e-005, 1.04995552e-005)) | |
621 | --mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
622 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.400000036, 0.400000036, 1.60000002)) | |
623 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.91549683e-005, -9.39964676, 0.401554585, 1.08461672e-005, 8.73205954e-006, -0.99998945, 1.98187317e-005, 1.00000608, 8.67240396e-006, 0.999999523, -2.21137525e-005, 1.08144795e-005)) | |
624 | --mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
625 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.200000003, 0.799999833, 0.400000036)) | |
626 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.30132532, -5.99957848, 8.10623169e-006, 0.999991179, -4.51590224e-011, -2.4936303e-012, 5.22830321e-011, 1, -9.96334352e-012, 8.15769154e-012, 1.23521532e-011, 0.999991179)) | |
627 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.400000036, 0.600000024, 0.200000003)) | |
628 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.7179718e-005, 2.89961815, 0.698666811, 8.67242125e-006, 5.76516186e-006, -0.99998945, 4.75738125e-006, -1.00000608, -5.82467419e-006, -0.999999285, -2.46256491e-006, -8.73203044e-006)) | |
629 | --mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
630 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.400000036, 0.400000036, 0.99999994)) | |
631 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.48498535e-005, -8.99962234, 1.70155716, 1.08461672e-005, 8.73205954e-006, -0.99998945, 1.98187317e-005, 1.00000608, 8.67240396e-006, 0.999999523, -2.21137525e-005, 1.08144795e-005)) | |
632 | --mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
633 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.400000036, 0.200000003, 0.200000003)) | |
634 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.95910645e-005, 6.89964104, 1.30140543, -8.7530334e-006, -8.68735151e-006, 0.999989688, -5.80388769e-006, -1.00000608, -8.74690795e-006, 0.999999523, -8.09880021e-006, 8.72149394e-006)) | |
635 | --mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
636 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.600000024, 0.600000024, 0.200000003)) | |
637 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.28746033e-005, 2.29969978, 1.49744749, 4.58953173e-006, -8.76190825e-006, -0.999989688, 3.95497409e-006, -1.00000656, 8.64263984e-006, -0.999999523, -6.24984796e-006, -4.64914001e-006)) | |
638 | --mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
639 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.599999964, 0.599999905, 0.600000024)) | |
640 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.101387024, 2.29981613, 9.53674316e-007, 0.999986172, -2.03466965e-011, -3.78346451e-011, 3.12565737e-011, 1, 9.68086201e-012, 4.63478943e-011, -6.09796068e-012, 0.999986172)) | |
641 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.399999917, 0.200000003, 0.200000003)) | |
642 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.01292133, 2.36062241, -0.199992657, 0.965919137, -0.258819193, 9.68770486e-009, 0.258817405, 0.965925813, -7.3579848e-008, 9.69177893e-009, 7.35824557e-008, 0.999993086)) | |
643 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.400000036, 0.200000003, 0.200000003)) | |
644 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.86238098e-005, 5.4995842, 1.30153465, -8.34466391e-006, -8.76185368e-006, 0.99998939, -3.13209239e-005, -1.00000584, -8.67240215e-006, 0.999999523, -3.36160047e-005, 8.31290799e-006)) | |
645 | --mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
646 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.600000024, 0.600000024, 0.200000003)) | |
647 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.00135803e-005, 2.29969788, 1.70259237, -4.63829838e-006, -8.76185914e-006, 0.999989808, -3.95520055e-006, -1.00000656, -8.64259528e-006, 0.999999523, -6.25006533e-006, 4.60681576e-006)) | |
648 | --mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
649 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.599999905, 0.799999893, 0.400000036)) | |
650 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0998063087, -0.600069046, 4.76837158e-007, 0.999986172, 2.84053614e-011, 8.71606606e-012, -1.74948181e-011, 1, 8.56011442e-013, -2.0281346e-013, 2.72700959e-012, 0.999986172)) | |
651 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.599999905, 0.200000003, 0.400000036)) | |
652 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.100811958, 1.89962769, -9.53674316e-007, 0.999986172, 2.43582932e-013, -2.16690259e-011, 1.06665718e-011, 1, 8.84393427e-012, 3.01822768e-011, -5.26102599e-012, 0.999986172)) | |
653 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.200000003, 1.19999981, 0.400000036)) | |
654 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.30133152, -7.59958649, 4.29153442e-006, 0.999991536, -4.51809631e-011, -2.49531992e-012, 5.22611329e-011, 1, -9.96334352e-012, 8.15601059e-012, 1.23521523e-011, 0.999991536)) | |
655 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.400000036, 0.600000024, 0.400000006)) | |
656 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.71661377e-005, 2.89961624, 1.00137615, -8.7530334e-006, -8.68735151e-006, 0.999989688, -5.80388769e-006, -1.00000608, -8.74690795e-006, 0.999999523, -8.09880021e-006, 8.72149394e-006)) | |
657 | --mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
658 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.399999976, 6, 0.400000036)) | |
659 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.00134325, -6.19958878, -6.67572021e-006, 0.999990463, -4.44280446e-011, -2.43740444e-012, 5.16362716e-011, 1, -9.96334352e-012, 8.1079362e-012, 1.23521419e-011, 0.999990463)) | |
660 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.599999905, 0.400000036, 0.400000036)) | |
661 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0998740196, -6.10351563e-005, 4.76837158e-007, 0.999986172, 3.25150462e-011, 1.47778543e-011, -2.16044196e-011, 1, 1.79467205e-012, -6.26460082e-012, 1.78833684e-012, 0.999986172)) | |
662 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.599999905, 0.599999905, 0.400000036)) | |
663 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.100226402, -1.49966812, -4.76837158e-007, -0.999986172, -5.96395537e-008, -9.93794487e-008, 5.96278227e-008, -1, 3.80804792e-008, -9.93709364e-008, 3.8084579e-008, 0.999986172)) | |
664 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.399999917, 0.200000003, 0.200000003)) | |
665 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.01291943, 2.36062241, -0.200006008, -0.965919256, 0.258818418, 5.95878689e-008, 0.25881663, 0.965926111, -5.57539693e-007, -1.63906265e-007, -5.51367407e-007, -0.999992788)) | |
666 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.599999905, 0.200000003, 0.400000036)) | |
667 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.10008812, 1.09988785, 0, 0.999986172, 3.17495474e-011, 2.19618039e-011, -2.08440973e-011, 1, 1.6464434e-012, -1.34490544e-011, 1.93546047e-012, 0.999986172)) | |
668 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.599999905, 0.799999893, 0.400000036)) | |
669 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0999064445, -0.599903107, 4.76837158e-007, -0.999986172, -5.964894e-008, -9.93747662e-008, 5.96372018e-008, -1, 3.80745568e-008, -9.93662539e-008, 3.80786567e-008, 0.999986172)) | |
670 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.399999917, 0.200000003, 0.200000003)) | |
671 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.19833279, 2.3109436, -0.200005054, -0.965918899, -0.258819193, -1.34113861e-007, -0.258817405, 0.965925813, 7.44806314e-008, -5.95990883e-008, 7.35335561e-008, -0.999992788)) | |
672 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.399999917, 0.200000003, 0.200000003)) | |
673 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.19833183, 2.3109417, -0.19999361, 0.965919197, 0.258818418, -1.63907302e-007, -0.25881657, 0.965926111, 5.66216784e-007, 1.63906265e-007, -5.51318522e-007, 0.99999249)) | |
674 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
675 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.14440918e-005, -3.29951477, 1.50105858, 9.89090768e-006, 8.76185186e-006, -0.999989271, 4.36100818e-005, 1.0000056, 8.61280023e-006, 0.999999523, -4.59052462e-005, 9.8590308e-006)) | |
676 | --mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
677 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(1, 0.400000006, 0.200000003)) | |
678 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.9038372, -1.75626755, -0.199999332, 0.866019428, 0.5, 2.20907594e-008, -0.499996543, 0.866025388, 6.89347033e-008, 1.53416728e-008, -7.07429137e-008, 0.999993086)) | |
679 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000033)) | |
680 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.76837158e-005, 6.89955902, 1.70114231, -8.34466391e-006, -8.76185368e-006, 0.99998939, -3.13209239e-005, -1.00000584, -8.67240215e-006, 0.999999523, -3.36160047e-005, 8.31290799e-006)) | |
681 | --mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
682 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.200000003, 0.600000024, 0.400000036)) | |
683 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(5.38825989e-005, 7.89956093, 2.00117016, -8.34466391e-006, -8.76185368e-006, 0.99998939, -3.13209239e-005, -1.00000584, -8.67240215e-006, 0.999999523, -3.36160047e-005, 8.31290799e-006)) | |
684 | --mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
685 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.400000036, 0.200000003, 0.200000003)) | |
686 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.67028809e-005, 4.09958076, 1.30148745, -8.34466391e-006, -8.76185368e-006, 0.99998939, -3.13209239e-005, -1.00000584, -8.67240215e-006, 0.999999523, -3.36160047e-005, 8.31290799e-006)) | |
687 | --mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
688 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(1, 0.400000006, 0.200000003)) | |
689 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.12790108, 1.62690544, 0.20000124, -0.866019249, 0.499999821, -1.69992358e-008, -0.499996364, -0.866025209, -2.86735276e-008, -2.9053e-008, -1.6330004e-008, 0.999993086)) | |
690 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
691 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.09910226, -5.09955788, -8.01086426e-005, 0.999987483, -2.38258649e-011, -1.41388229e-011, 3.50124374e-011, 1, -4.03923769e-012, 2.01153399e-011, 6.42793284e-012, 0.999987483)) | |
692 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.400000006, 1.19999897, 0.200000003)) | |
693 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-9.04989433, -5.45730114, -0.000123023987, 0.707099319, 0.707106709, -8.23653536e-008, -0.707099319, 0.70710665, -2.31702231e-007, -1.05590843e-007, 2.22084282e-007, 0.99998951)) | |
694 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.400000006, 1.19999897, 0.200000003)) | |
695 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-8.48420525, -4.89161015, -0.00012254715, 0.707099319, 0.707106709, -8.23653536e-008, -0.707099319, 0.70710665, -2.31702231e-007, -1.05590843e-007, 2.22084282e-007, 0.99998951)) | |
696 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000033)) | |
697 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(6.19888306e-005, 5.09964371, -1.49892831, -8.34466391e-006, -8.76185368e-006, 0.99998939, -3.13209239e-005, -1.00000584, -8.67240215e-006, 0.999999523, -3.36160047e-005, 8.31290799e-006)) | |
698 | --mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
699 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.400000036, 0.600000024, 0.599999905)) | |
700 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(9.87052917e-005, -8.89964485, 1.89849019, -5.72201225e-006, -9.39299207e-006, 0.999992847, 1.73207645e-005, 1, 9.39303209e-006, -0.999992847, 1.73209264e-005, -5.72201634e-006)) | |
701 | --mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
702 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.400000036, 2, 0.599999905)) | |
703 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.91549683e-005, 6.39963531, 1.89852977, 5.86456508e-006, 9.387707e-006, -0.999992728, -1.7509652e-005, -0.99999994, -9.41744565e-006, -0.999992847, 1.75098194e-005, -5.86456827e-006)) | |
704 | --mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
705 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.200000003, 1.79999936, 0.200000003)) | |
706 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.499084, -6.09956169, -9.48905945e-005, 0.999993086, 1.35347566e-011, -1.1265381e-011, -6.65070082e-012, 1, -4.03978587e-012, 1.69109015e-011, 6.42856775e-012, 0.999993086)) | |
707 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.200000003, 0.400000036, 0.200000003)) | |
708 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.23977661e-005, -10.9995041, -2.09947681, 3.68056726e-006, 3.36381646e-007, -0.999992192, -3.51401286e-005, 0.999999642, 3.36363996e-007, 0.999992669, 3.51403614e-005, 3.30804482e-006)) | |
709 | --mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
710 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.400000036, 1.59999931, 0.200000003)) | |
711 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.79906392, -6.19955444, -9.96589661e-005, 0.999991298, 2.46519472e-011, -1.04103436e-011, -1.63584216e-011, 1, -4.03994893e-012, 1.61643164e-011, 6.42870653e-012, 0.999991298)) | |
712 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.200000003, 0.400000036, 0.400000036)) | |
713 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.00135803e-005, -10.9994926, 2.39945531, -3.53155679e-006, 2.44306165e-007, 0.999992251, -3.32144991e-005, 0.999999642, -2.44311622e-007, -0.999992728, -3.3214721e-005, -3.35274808e-006)) | |
714 | --mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
715 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.200000003, 0.400000036, 0.200000003)) | |
716 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.09912157, -4.79956436, -0.000121116638, 0.999993086, 1.26183786e-010, -2.60250935e-012, -1.1929896e-010, 1, -4.04142345e-012, 8.24803073e-012, 6.43021227e-012, 0.999993086)) | |
717 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.200000003, 0.600000024, 0.600000024)) | |
718 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-9.53674316e-006, -10.4996262, -1.6987474, 3.60606191e-006, 2.44256199e-007, -0.99999249, 3.3214732e-005, 0.999999642, 2.44265465e-007, 0.999992967, -3.32149393e-005, 3.47195646e-006)) | |
719 | --mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
720 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.200000003, 0.400000006, 0.200000003)) | |
721 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(5.96046448e-005, 4.7996521, -1.89894223, -8.34466391e-006, -8.76185368e-006, 0.99998939, -3.13209239e-005, -1.00000584, -8.67240215e-006, 0.999999523, -3.36160047e-005, 8.31290799e-006)) | |
722 | --mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
723 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.400000006, 1.19999897, 0.200000003)) | |
724 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.91851616, -4.32592297, -0.00012254715, 0.707099319, 0.707106709, -8.23653536e-008, -0.707099319, 0.70710665, -2.31702231e-007, -1.05590843e-007, 2.22084282e-007, 0.99998951)) | |
725 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.399999946, 1.19999993, 0.600000024)) | |
726 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.4025631, -2.59968758, 9.53674316e-007, 0.999993086, -9.9128844e-011, -1.20540383e-012, 1.06011581e-010, 1, -1.68229337e-011, 6.85092521e-012, 1.9211811e-011, 0.999993086)) | |
727 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(1, 0.400000006, 0.200000003)) | |
728 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.9038372, -1.75626755, 0.200001717, 0.866019428, 0.5, 2.20907594e-008, -0.499996543, 0.866025388, 6.89347033e-008, 1.53416728e-008, -7.07429137e-008, 0.999993086)) | |
729 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.399999946, 1.19999993, 0.600000024)) | |
730 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.1974349, -2.59968758, 4.29153442e-006, 0.999993086, -9.9128844e-011, -1.20540383e-012, 1.06011581e-010, 1, -1.68229337e-011, 6.85092521e-012, 1.9211811e-011, 0.999993086)) | |
731 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(1.39999998, 6.80000019, 0.400000036)) | |
732 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.101338387, -5.79958153, 9.53674316e-007, 0.999993086, -4.38584238e-011, -2.39358793e-012, 5.07595632e-011, 1, -9.96334352e-012, 8.04051704e-012, 1.23521731e-011, 0.999993086)) | |
733 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(1, 0.400000006, 0.200000003)) | |
734 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.12790108, 1.62690544, -0.199999809, -0.866019249, 0.499999821, -1.69992358e-008, -0.499996364, -0.866025209, -2.86735276e-008, -2.9053e-008, -1.6330004e-008, 0.999993086)) | |
735 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.600000024, 0.200000003, 0.200000003)) | |
736 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.29908991, -5.29955864, -9.48905945e-005, 0.999992967, -1.50723739e-011, -1.34655958e-011, 2.20103449e-011, 1, -4.03936953e-012, 1.91153447e-011, 6.42815662e-012, 0.999992967)) | |
737 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.600000024, 2.19999957, 0.200000003)) | |
738 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.69905233, -8.09956741, -0.000144004822, 0.999984145, 7.53328372e-011, -6.51274347e-012, -6.14701554e-011, 1, -4.04064282e-012, 1.26948833e-011, 6.42926684e-012, 0.999984145)) | |
739 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.600000024, 0.400000006, 0.200000003)) | |
740 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.89917946, -5.19956207, -0.000117778778, 0.999993086, 7.67240438e-011, -6.40572491e-012, -6.98395716e-011, 1, -4.0407018e-012, 1.20512472e-011, 6.42949062e-012, 0.999993086)) | |
741 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
742 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.09908175, -4.69955444, -8.48770142e-005, 0.99998343, -2.22875329e-011, -1.40204497e-011, 3.65506583e-011, 1, -4.03926025e-012, 2.02335718e-011, 6.42788253e-012, 0.99998343)) | |
743 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.200000003, 5.99999952, 0.400000036)) | |
744 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.698655128, -6.19958878, 9.53674316e-007, 0.999992967, -4.52522048e-011, -2.50079731e-012, 5.21899399e-011, 1, -9.96334352e-012, 8.15054448e-012, 1.23521748e-011, 0.999992967)) | |
745 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.800000012, 1.9999994, 0.400000036)) | |
746 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.19864798, -6.39957619, -2.86102295e-006, 0.999991298, -4.45745801e-011, -2.44867581e-012, 5.28674882e-011, 1, -9.96334439e-012, 8.20264776e-012, 1.23521532e-011, 0.999991298)) | |
747 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.400000006, 0.400000036, 1.20000005)) | |
748 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.96318054e-005, -9.39966965, 0.998550892, -1.08777776e-005, -7.21227707e-006, 0.999989271, 9.29348153e-006, 1.00000608, 7.15253782e-006, -0.999999166, 1.15884122e-005, -1.07585738e-005)) | |
749 | --mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
750 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.599999964, 1.19999933, 0.200000003)) | |
751 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.0990684, -7.9995575, -7.05718994e-005, 0.999991298, -2.50895554e-011, -1.42360785e-011, 3.33826369e-011, 1, -4.03921861e-012, 1.99900495e-011, 6.42797447e-012, 0.999991298)) | |
752 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.400000006, 0.200000003, 0.800000072)) | |
753 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.33650208e-005, 5.29961014, 1.19855571, 1.23440404e-005, 2.14574197e-006, -0.999993086, -1.86938523e-005, -1, -2.1457347e-006, -0.999993086, 1.86940015e-005, -1.2344005e-005)) | |
754 | --mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
755 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.200000003, 0.400000006, 0.400000036)) | |
756 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.09672546e-005, 5.19964027, 2.39893103, 3.17393119e-006, -1.63585497e-007, -0.999993086, -3.0609368e-005, -1, 1.6348109e-007, -0.999993086, 3.06095644e-005, -3.17393528e-006)) | |
757 | --mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
758 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.600000024, 0.999999404, 0.200000003)) | |
759 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.69905472, -9.69956017, -0.000102043152, 0.999984622, 2.09521081e-011, -1.06948044e-011, -7.5663989e-012, 1, -4.03988301e-012, 1.68403312e-011, 6.42852958e-012, 0.999984622)) | |
760 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.800000012, 0.599999428, 0.400000036)) | |
761 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.19864798, -8.89958382, -6.67572021e-006, 0.999991298, -3.65172059e-011, -1.82889121e-012, 4.48101695e-011, 1, -9.96338515e-012, 7.58286576e-012, 1.23521896e-011, 0.999991298)) | |
762 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(0.400000006, 0.200000003, 0.800000072)) | |
763 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(6.38961792e-005, -7.49964714, 1.19857502, -1.08777776e-005, -7.21227707e-006, 0.999989271, 9.29348153e-006, 1.00000608, 7.15253782e-006, -0.999999166, 1.15884122e-005, -1.07585738e-005)) | |
764 | --mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
765 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.600000024, 5.39999914, 0.200000003)) | |
766 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.29888916, -8.09955788, -0.000128746033, 0.999993086, 6.4361072e-011, -7.35652685e-012, -5.74766831e-011, 1, -4.04054221e-012, 1.30020491e-011, 6.42933103e-012, 0.999993086)) | |
767 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
768 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.09908271, -4.29955292, -8.4400177e-005, 0.99998343, -2.23058447e-011, -1.40218583e-011, 3.65323466e-011, 1, -4.03926025e-012, 2.02321632e-011, 6.42788253e-012, 0.99998343)) | |
769 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.200000003, 2.19999933, 0.200000003)) | |
770 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.899097919, -4.29956627, -7.58171082e-005, 0.999991298, -2.52726728e-011, -1.42501609e-011, 3.35657405e-011, 1, -4.03921688e-012, 2.00041355e-011, 6.42797794e-012, 0.999991298)) | |
771 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Deep orange","Part",Vector3.new(0.400000006, 1.19999897, 0.200000003)) | |
772 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.35282898, -3.76023579, -0.00012254715, 0.707099319, 0.707106709, -8.23653536e-008, -0.707099319, 0.70710665, -2.31702231e-007, -1.05590843e-007, 2.22084282e-007, 0.99998951)) | |
773 | --Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Medium stone grey","Part",Vector3.new(1.39999998, 6.80000019, 0.400000036)) | |
774 | --Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.101338387, -5.79958153, 9.53674316e-007, 0.999993086, -4.38584238e-011, -2.39358793e-012, 5.07595632e-011, 1, -9.96334352e-012, 8.04051704e-012, 1.23521731e-011, 0.999993086)) | |
775 | Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,1,0,"Institutional white","Hitbox",Vector3.new(5.4000001, 9.20000076, 0.400000036)) | |
776 | Hitboxweld=weld(m,handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.298654079, -6.99958229, 9.53674316e-007, 0.999993086, -4.38584238e-011, -2.39358793e-012, 5.07595632e-011, 1, -9.96334352e-012, 8.04051704e-012, 1.23521731e-011, 0.999993086)) | |
777 | mesh("SpecialMesh",Hitbox,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=83509558",Vector3.new(0, -2, 0),Vector3.new(2,2,2)) | |
778 | ||
779 | HatHandle=part(Enum.FormFactor.Custom,wm,Enum.Material.SmoothPlastic,0,1,"Really black","HatHandle",Vector3.new(0.800000012, 1.39999998, 2.4000001)) | |
780 | HatHandleweld=weld(wm,Character["Head"],HatHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.81469727e-006, -0.0999984741, -1.90734863e-005, 0.999991894, 5.70663635e-024, 5.40628298e-006, -5.7065484e-024, 1, 3.31866973e-026, -5.40628298e-006, -3.33613591e-026, 0.999991894)) | |
781 | mesh("SpecialMesh",HatHandle,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=44520670",Vector3.new(0, 0, 0),Vector3.new(2.0999999, 2.0999999, 2.0999999)) | |
782 | HatHandle2=part(Enum.FormFactor.Custom,wm,Enum.Material.SmoothPlastic,0,1,"Deep orange","HatHandle2",Vector3.new(0.800000012, 1.39999998, 2.4000001)) | |
783 | HatHandle2weld=weld(wm,HatHandle,HatHandle2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.81469727e-006, 5.7220459e-006, 0, 0.999983788, 1.34285766e-028, -0, 1.34285766e-028, 1, -1.44078049e-028, 0, -1.44078049e-028, 0.999983788)) | |
784 | mesh("SpecialMesh",HatHandle2,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=83509558",Vector3.new(0, 0, 0),Vector3.new(2.07999992, 1.8599999, 2.03999996)) | |
785 | ||
786 | hitsounds={"154965901","154965973","225698273","225698281","225698315"} | |
787 | ||
788 | function MagniDamage(Part,dis,mind,maxd,force,knock) | |
789 | for _,c in pairs(workspace:children()) do | |
790 | local hum=c:findFirstChild("Humanoid") | |
791 | if hum~=nil then | |
792 | local head=c:findFirstChild("Torso") | |
793 | if head~=nil then | |
794 | local targ=head.Position-Part.Position | |
795 | local mag=targ.magnitude | |
796 | if mag<=dis and c.Name~=Character.Name then | |
797 | Damagefuncy(Part,hum.Parent.Torso,mind,maxd,force,knock,RootPart,.2,1) | |
798 | end | |
799 | end | |
800 | end | |
801 | end | |
802 | end | |
803 | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | |
804 | mouse.KeyDown:connect(function(key) | |
805 | if key == "v" then | |
806 | attack=true | |
807 | char.Humanoid.WalkSpeed = 40 | |
808 | if Debounces.CanAttack == true then | |
809 | Debounces.CanAttack = false | |
810 | Debounces.NoIdl = true | |
811 | ||
812 | Debounces.on = true | |
813 | for i = 1,20 do | |
814 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, 1, 0) * CFrame.Angles(math.rad(75), 0, math.rad(-30)), 0.1) | |
815 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, 1, 0) * CFrame.Angles(math.rad(75), 0, math.rad(30)), 0.1) | |
816 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-20), math.rad(0), 0), 0.1) | |
817 | ||
818 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1.1, 0) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.1) | |
819 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles (math.rad(30), 0, math.rad(-5)), 0.1) | |
820 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles (math.rad(30), 0, math.rad(5)), 0.1) | |
821 | handleweld.C0 = clerp(handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.9) | |
822 | if Debounces.on == false then break | |
823 | end | |
824 | wait() | |
825 | end | |
826 | wait(1) | |
827 | local v = Instance.new("Sound") | |
828 | v.SoundId = "rbxassetid://181384451" | |
829 | v.Parent = char | |
830 | v.Looped = false | |
831 | v.Pitch = 1.04 | |
832 | v.Volume = 1 | |
833 | wait(.01) | |
834 | v:Play() | |
835 | ||
836 | if Daytime == true then | |
837 | Daytime = false | |
838 | ||
839 | l.TimeOfDay = 24 | |
840 | else | |
841 | Daytime = true | |
842 | l.TimeOfDay = 12 | |
843 | ||
844 | l.OutdoorAmbient = Color3.new(0.498039, 0.498039, 0.498039) | |
845 | end | |
846 | ||
847 | local Shockwave = function() | |
848 | local rng1 = Instance.new("Part", char) | |
849 | rng1.Anchored = true | |
850 | ||
851 | rng1.BrickColor = BrickColor.new("Really black") | |
852 | rng1.CanCollide = false | |
853 | ||
854 | rng1.FormFactor = 3 | |
855 | rng1.Name = "Ring" | |
856 | rng1.Size = Vector3.new(1, 1, 1) | |
857 | ||
858 | rng1.Transparency = 0.35 | |
859 | rng1.TopSurface = 0 | |
860 | rng1.BottomSurface = 0 | |
861 | ||
862 | local rngm1 = Instance.new("SpecialMesh", rng) | |
863 | rngm1.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
864 | rngm1.Scale = Vector3.new(10, 10, 1) | |
865 | ||
866 | rng1.CFrame = CFrame.new(0, -2, 0) * CFrame.Angles(0, 0, 0) | |
867 | local Wave = Instance.new("Part", game.Workspace--[[?]]) | |
868 | Wave.Name = "Shockwave" | |
869 | Wave.BrickColor = BrickColor.new("Really black") | |
870 | Wave.Size = Vector3.new(1, 1, 1) | |
871 | Wave.Shape = "Ball" | |
872 | ||
873 | Wave.CanCollide = false | |
874 | Wave.Anchored = true | |
875 | Wave.TopSurface = 0 | |
876 | ||
877 | Wave.BottomSurface = 0 | |
878 | Wave.Touched:connect(function(hit) | |
879 | if hit.Parent:findFirstChild("Humanoid") and hit.Parent:findFirstChild("Torso") then | |
880 | local Occlude = true | |
881 | local NotOccludes = { | |
882 | char.Name; | |
883 | "Wings"; | |
884 | "Scythe"; | |
885 | "Thingy"; | |
886 | "Thingy2"; -- put all of the names in a table pls | |
887 | } | |
888 | ||
889 | for i,v in pairs(NotOccludes) do | |
890 | if hit.Parent.Name == v then | |
891 | ||
892 | Occlude = false | |
893 | end | |
894 | end | |
895 | --if hit.Parent.Name ~= char.Name and hit.Name ~= "Wings" and hit.Name ~= "Scythe" and hit.Name ~= "Thingy" and hit.Name ~= "Thingy2" and hit.Parent.Name ~= "Wings" and hit.Parent.Name ~= "Scythe" and hit.Parent.Name ~= "Thingy" and hit.Parent.Name ~= "Thingy2" then | |
896 | if Occlude then | |
897 | ||
898 | hit.Parent:findFirstChild("Humanoid").Health = hit.Parent:findFirstChild("Humanoid").Health - 1 | |
899 | ||
900 | hit.Parent:findFirstChild("Torso").Velocity = hit.Parent:findFirstChild("Torso").CFrame.lookVector * -120 | |
901 | end | |
902 | end | |
903 | end) | |
904 | ||
905 | ||
906 | Instance.new("SpecialMesh", Wave).MeshType = "Sphere" | |
907 | ||
908 | ||
909 | coroutine.wrap(function() | |
910 | for i = 1, 20, 0.2 do | |
911 | rngm1.Scale = Vector3.new(10 + i*2, 10 + i*2, 1) | |
912 | rng1.Transparency = i/20 | |
913 | wait() | |
914 | ||
915 | end | |
916 | wait() | |
917 | rng1:Destroy() | |
918 | end)() | |
919 | ||
920 | ||
921 | Delay(0, function() | |
922 | ||
923 | if Daytime == false then | |
924 | ||
925 | for i = 1, 50, 1 do | |
926 | Wave.Size = Vector3.new(1 + i, 1 + i, 1 + i) | |
927 | ||
928 | Wave.CFrame = char.Torso.CFrame | |
929 | local t = i / 50 | |
930 | ||
931 | Wave.Transparency = t | |
932 | wait() | |
933 | end | |
934 | else | |
935 | ||
936 | for i = 1, 50, 1 do | |
937 | Wave.Size = Vector3.new(1 + i, 1 + i, 1 + i) | |
938 | ||
939 | Wave.CFrame = char.Torso.CFrame | |
940 | local t = i / 50 | |
941 | ||
942 | Wave.Transparency = t | |
943 | wait() | |
944 | end | |
945 | ||
946 | end | |
947 | Wave:Destroy() | |
948 | end) | |
949 | Delay(0, function() | |
950 | ||
951 | while wait() do | |
952 | if Wave ~= nil then | |
953 | Wave.CFrame = char.Torso.CFrame | |
954 | else | |
955 | break | |
956 | end | |
957 | ||
958 | end | |
959 | end) | |
960 | end | |
961 | Shockwave() | |
962 | for i = 1, 15 do | |
963 | ||
964 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3.2, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-130)), 0.2) | |
965 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3.2, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(70)), 0.2) | |
966 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(45), math.rad(30), 0), 0.1) | |
967 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1.1, 0) * CFrame.Angles(math.rad(30), math.rad(20), math.rad(0)), 0.2) | |
968 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(-40)), 0.1) | |
969 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.1) | |
970 | handleweld.C0 = clerp(handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.9) | |
971 | if Debounces.on == false then break end | |
972 | wait() | |
973 | end | |
974 | for i = 1, 15 do | |
975 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-70)), 0.2) | |
976 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(130)), 0.2) | |
977 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(45), math.rad(-30), 0), 0.1) | |
978 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1.1, 0) * CFrame.Angles(math.rad(30), math.rad(-20), math.rad(0)), 0.2) | |
979 | handleweld.C0 = clerp(handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.9) | |
980 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.1) | |
981 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(40)), 0.1) | |
982 | if Debounces.on == false then break end | |
983 | wait() | |
984 | end | |
985 | ||
986 | for i = 1, 15 do | |
987 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3.2, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-130)), 0.2) | |
988 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3.2, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(70)), 0.2) | |
989 | handleweld.C0 = clerp(handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.9) | |
990 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(45), math.rad(30), 0), 0.1) | |
991 | ||
992 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1.1, 0) * CFrame.Angles(math.rad(30), math.rad(20), math.rad(0)), 0.2) | |
993 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(-40)), 0.1) | |
994 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.1) | |
995 | if Debounces.on == false then break end | |
996 | ||
997 | wait() | |
998 | end | |
999 | for i = 1, 15 do | |
1000 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-70)), 0.2) | |
1001 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(130)), 0.2) | |
1002 | handleweld.C0 = clerp(handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.9) | |
1003 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(45), math.rad(-30), 0), 0.1) | |
1004 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1.1, 0) * CFrame.Angles(math.rad(30), math.rad(-20), math.rad(0)), 0.2) | |
1005 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.1) | |
1006 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(40)), 0.1) | |
1007 | if Debounces.on == false then break end | |
1008 | wait() | |
1009 | end | |
1010 | for i = 1, 15 do | |
1011 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3.2, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-130)), 0.2) | |
1012 | handleweld.C0 = clerp(handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.9) | |
1013 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3.2, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(70)), 0.2) | |
1014 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(45), math.rad(30), 0), 0.1) | |
1015 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1.1, 0) * CFrame.Angles(math.rad(30), math.rad(20), math.rad(0)), 0.2) | |
1016 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(-40)), 0.1) | |
1017 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.1) | |
1018 | if | |
1019 | Debounces.on == false then break end | |
1020 | wait() | |
1021 | end | |
1022 | for i = 1, 15 do | |
1023 | ||
1024 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-70)), 0.2) | |
1025 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, .9, 0) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(130)), 0.2) | |
1026 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(45), math.rad(-30), 0), 0.1) | |
1027 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1.1, 0) * CFrame.Angles(math.rad(30), math.rad(-20), math.rad(0)), 0.2) | |
1028 | handleweld.C0 = clerp(handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.9) | |
1029 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.1) | |
1030 | ||
1031 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(40)), 0.1) | |
1032 | if Debounces.on == false then break end | |
1033 | wait() | |
1034 | end | |
1035 | ||
1036 | wait(1.4) | |
1037 | Debounces.NoIdl = false | |
1038 | char.Humanoid.WalkSpeed = 40 | |
1039 | Debounces.on = false | |
1040 | wait() | |
1041 | ||
1042 | if Debounces.CanAttack == false then | |
1043 | Debounces.CanAttack = true | |
1044 | v:Destroy() | |
1045 | ||
1046 | end | |
1047 | attack=false | |
1048 | end | |
1049 | end | |
1050 | end) | |
1051 | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | |
1052 | mod5 = Instance.new("Model",char) | |
1053 | function Landing() | |
1054 | local part=Instance.new('Part',mod5) | |
1055 | part.Anchored=true | |
1056 | ||
1057 | part.CanCollide=false | |
1058 | part.FormFactor='Custom' | |
1059 | part.Size=Vector3.new(.2,.2,.2) | |
1060 | ||
1061 | part.CFrame=root.CFrame*CFrame.new(0,-2,0) | |
1062 | part.Transparency=.7 | |
1063 | part.BrickColor=BrickColor.new('Really black') | |
1064 | local mesh=Instance.new('SpecialMesh',part) | |
1065 | mesh.MeshId='http://www.roblox.com/asset/?id=20329976' | |
1066 | ||
1067 | mesh.Scale=Vector3.new(10,5,10) | |
1068 | ||
1069 | for i,v in pairs(FindNearestTorso(torso.CFrame.p,40))do | |
1070 | if | |
1071 | v:FindFirstChild('Humanoid') then | |
1072 | v.Humanoid:TakeDamage(math.random(50,70)) | |
1073 | ||
1074 | v.Humanoid.PlatformStand = true | |
1075 | v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100 | |
1076 | ||
1077 | end | |
1078 | end | |
1079 | ||
1080 | coroutine.resume(coroutine.create(function() | |
1081 | for i=0,3.8,0.05 do | |
1082 | wait() | |
1083 | ||
1084 | part.CFrame=part.CFrame | |
1085 | part.Transparency=i | |
1086 | mesh.Scale=mesh.Scale+Vector3.new(1,0.2,1) | |
1087 | end | |
1088 | part.Parent = nil | |
1089 | end)) | |
1090 | end | |
1091 | ||
1092 | ||
1093 | function newRay(start,face,range,wat) | |
1094 | local rey=Ray.new(start.p,(face.p-start.p).Unit*range) | |
1095 | ||
1096 | hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat) | |
1097 | return rey,hit,pos | |
1098 | end | |
1099 | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | |
1100 | mouse.KeyDown:connect(function | |
1101 | (key) | |
1102 | if key == "c" then | |
1103 | attack=true | |
1104 | char.Humanoid.WalkSpeed = 40 | |
1105 | if Debounces.CanAttack == true then | |
1106 | ||
1107 | Debounces.CanAttack = false | |
1108 | Debounces.on = true | |
1109 | Debounces.NoIdl = true | |
1110 | --[[x = | |
1111 | Instance.new("Sound",char) | |
1112 | x.SoundId = "http://www.roblox.com/asset/?id=169445572" | |
1113 | ||
1114 | x.Looped = false | |
1115 | x.Pitch = 1.1 | |
1116 | x.Volume = 1 | |
1117 | x:Play() | |
1118 | x2 = Instance.new("Sound",char) | |
1119 | x2.SoundId = "http://www.roblox.com/asset/?id=169380495" | |
1120 | ||
1121 | x2.Looped = false | |
1122 | x2.Pitch = .7 | |
1123 | x2.Volume = 1 | |
1124 | wait(.1) | |
1125 | x:Play() | |
1126 | ||
1127 | x2:Play() | |
1128 | for i = 1, 20 do | |
1129 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,0.6,-.2) *CFrame.Angles (math.rad (45),math.rad(0),math.rad(32)), 0.2) | |
1130 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-3,1,0)*CFrame.Angles(math.rad (0),math.rad(0),math.rad(-20)), 0.2) | |
1131 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,3,-.4)*CFrame.Angles(math.rad (- 8),math.rad(-40), math.rad(-8)),0.2) | |
1132 | ||
1133 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -3.2, 0) * CFrame.Angles (math.rad (-50), math.rad(40), math.rad(0)), 0.2) | |
1134 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.8, .4, -1.6) * CFrame.Angles (math.rad (30), 0, math.rad(20)), 0.2) | |
1135 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1.6, -2, 0) * CFrame.Angles (math.rad(- 10), math.rad(-40), math.rad(0)), 0.2) | |
1136 | ||
1137 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.3, -1.1) * CFrame.Angles(math.rad(-60), math.rad(-90), math.rad(0)), 0.4) | |
1138 | if Debounces.on == false then break end | |
1139 | wait() | |
1140 | ||
1141 | x:Destroy() | |
1142 | x2:Destroy() | |
1143 | end | |
1144 | wait(1)]]-- | |
1145 | local rng = Instance.new("Part", char) | |
1146 | rng.Anchored = true | |
1147 | rng.BrickColor = BrickColor.new("Really black") | |
1148 | ||
1149 | rng.CanCollide = false | |
1150 | rng.FormFactor = 3 | |
1151 | rng.Name = "Ring" | |
1152 | rng.Size = Vector3.new(1, 1, 1) | |
1153 | rng.Transparency = 0.35 | |
1154 | rng.TopSurface = 0 | |
1155 | rng.BottomSurface = 0 | |
1156 | rng.Position = torso.Position - Vector3.new(0,2,0) | |
1157 | rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
1158 | local rngm = Instance.new("SpecialMesh", rng) | |
1159 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
1160 | rngm.Scale = Vector3.new(1, 1, 2) | |
1161 | x = Instance.new("Sound",char) | |
1162 | x.SoundId = "http://www.roblox.com/asset/?id=169445602" | |
1163 | x.Looped = false | |
1164 | x.Pitch = .7 | |
1165 | x.Volume = 1 | |
1166 | x:Play() | |
1167 | ||
1168 | coroutine.wrap(function() | |
1169 | for i = 1, 60, 2 do | |
1170 | rngm.Scale = Vector3.new(2 + i*2, 2 + i*2, 1) | |
1171 | rng.Transparency = i/60 | |
1172 | wait() | |
1173 | end | |
1174 | ||
1175 | wait() | |
1176 | rng:Destroy() | |
1177 | end)() | |
1178 | char.Humanoid.WalkSpeed = 40 | |
1179 | local BV = Instance.new("BodyVelocity", torso) | |
1180 | BV.maxForce = Vector3.new(0,100000,0) | |
1181 | BV.P = 100000 | |
1182 | ||
1183 | BV.velocity = Vector3.new(0,800,0) | |
1184 | for i = 1, 20 do | |
1185 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(20),math.rad(0), math.rad(0)),0.7) | |
1186 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(-16), math.rad(0), math.rad(0)), 0.7) | |
1187 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, 1, 0) * CFrame.Angles(math.rad(40), 0, math.rad(-20)), 0.7) | |
1188 | ||
1189 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, 1, 0) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(20)), 0.7) | |
1190 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5,-1,0) * CFrame.Angles(math.rad(-10), 0, 0), 0.7) | |
1191 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5,-1,0) * CFrame.Angles(math.rad(0), 0, 0), 0.7) | |
1192 | handleweld.C0 = clerp(handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.9) | |
1193 | if Debounces.on == false then break end | |
1194 | wait() | |
1195 | end | |
1196 | x:Destroy() | |
1197 | BV:Destroy() | |
1198 | --[[for i = 1, 30 do | |
1199 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(-14),math.rad(0), math.rad(0)),0.3) | |
1200 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-16), math.rad (0), math.rad(0)), 0.3) | |
1201 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3) | |
1202 | ||
1203 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.3) | |
1204 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -.4, -1) * CFrame.Angles(math.rad(20), 0, 0), 0.3) | |
1205 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -.8, -.6) * CFrame.Angles(math.rad(-30), 0, 0), 0.3) | |
1206 | if Debounces.on == false then break end | |
1207 | wait() | |
1208 | end]]-- | |
1209 | if (torso.Velocity*Vector3.new(1, 1, 1)).magnitude > 1 then | |
1210 | for i = 1, 30 do | |
1211 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(-14),math.rad(0), math.rad(0)),0.3) | |
1212 | ||
1213 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1.6, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1214 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, 1.4, 0) * CFrame.Angles(math.rad(-15), math.rad(-20), math.rad(-40)), 0.3) | |
1215 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, 1.4, 0) * CFrame.Angles(math.rad(-15), math.rad(-20), math.rad(40)), 0.3) | |
1216 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5,-1,0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), 0.2) | |
1217 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5,-.45,-.5) * CFrame.Angles(math.rad(-13), math.rad(0), math.rad(0)), 0.2) | |
1218 | handleweld.C0 = clerp(handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.9) | |
1219 | if Debounces.on == false then break end | |
1220 | wait() | |
1221 | end | |
1222 | end | |
1223 | Debounces.on = false | |
1224 | Debounces.NoIdl = false | |
1225 | local ry,ht,ps=nil,nil,nil | |
1226 | while ht==nil do | |
1227 | ry,ht,ps=newRay(root.CFrame*CFrame.new(0,-2,0),root.CFrame*CFrame.new(0,-3,0),4.1,{char}) | |
1228 | wait() | |
1229 | end | |
1230 | z = Instance.new("Sound",char) | |
1231 | z.SoundId = "rbxassetid://142070127" | |
1232 | z.Volume = 1 | |
1233 | wait(.1) | |
1234 | z:Play() | |
1235 | Landing() | |
1236 | char.Humanoid.WalkSpeed = 40 | |
1237 | if | |
1238 | Debounces.CanAttack == false then | |
1239 | Debounces.CanAttack = true | |
1240 | end | |
1241 | attack=false | |
1242 | end | |
1243 | end | |
1244 | end) | |
1245 | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | |
1246 | mod4 = Instance.new("Model",char) | |
1247 | ptez = {0.7, 0.8, 0.9, 1} | |
1248 | function GroundPound() | |
1249 | local part=Instance.new('Part',mod4) | |
1250 | part.Anchored=true | |
1251 | part.CanCollide=false | |
1252 | ||
1253 | part.FormFactor='Custom' | |
1254 | part.Size=Vector3.new(.2,.2,.2) | |
1255 | part.CFrame=root.CFrame*CFrame.new(0,-5.8,-2.4)*CFrame.Angles(math.rad(90),0,0) | |
1256 | part.Transparency=.7 | |
1257 | part.BrickColor=BrickColor.new('Really black') | |
1258 | ||
1259 | local mesh=Instance.new('SpecialMesh',part) | |
1260 | mesh.MeshId='http://www.roblox.com/asset/?id=3270017' | |
1261 | ||
1262 | mesh.Scale=Vector3.new(3,3,3) | |
1263 | part2=Instance.new('Part',mod4) | |
1264 | part2.Anchored=true | |
1265 | ||
1266 | part2.CanCollide=false | |
1267 | part2.FormFactor='Custom' | |
1268 | part2.Size=Vector3.new(.2,.2,.2) | |
1269 | ||
1270 | part2.CFrame=root.CFrame*CFrame.new(0,-5,-2.6) | |
1271 | part2.Transparency=.7 | |
1272 | part2.BrickColor=BrickColor.new('Lime green') | |
1273 | mesh2=Instance.new('SpecialMesh',part2) | |
1274 | mesh2.MeshId='http://www.roblox.com/asset/?id=20329976' | |
1275 | mesh2.Scale=Vector3.new(3,1.5,3) | |
1276 | x = Instance.new("Sound",char) | |
1277 | x.SoundId = "http://www.roblox.com/asset/?id=142070127" | |
1278 | x.Pitch = ptez[math.random(1,#ptez)] | |
1279 | x.Volume = 1 | |
1280 | wait(.1) | |
1281 | x:Play() | |
1282 | for i,v in pairs(FindNearestTorso(torso.CFrame.p,12))do | |
1283 | if v:FindFirstChild('Humanoid') then | |
1284 | v.Humanoid:TakeDamage(math.random(50,75)) | |
1285 | end | |
1286 | end | |
1287 | coroutine.resume(coroutine.create(function() | |
1288 | for i=0,0.62,0.13 do | |
1289 | wait() | |
1290 | part.CFrame=part.CFrame | |
1291 | ||
1292 | part.Transparency=i | |
1293 | mesh.Scale=mesh.Scale+Vector3.new(0.4,0.4,0.4) | |
1294 | ||
1295 | part2.CFrame=part2.CFrame | |
1296 | part2.Transparency=i | |
1297 | mesh2.Scale=mesh2.Scale+Vector3.new(0.4,0.2,0.4) | |
1298 | end | |
1299 | part.Parent=nil | |
1300 | part2.Parent=nil | |
1301 | x:Destroy() | |
1302 | end)) | |
1303 | end | |
1304 | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | |
1305 | local acos = math.acos | |
1306 | local sqrt = math.sqrt | |
1307 | local Vec3 = Vector3.new | |
1308 | local fromAxisAngle = CFrame.fromAxisAngle | |
1309 | local function toAxisAngle(CFr) | |
1310 | local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components() | |
1311 | local Angle = math.acos((R00+R11+R22-1)/2) | |
1312 | ||
1313 | local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
1314 | A = A == 0 and 0.00001 or A | |
1315 | local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
1316 | B = B == 0 and 0.00001 or B | |
1317 | local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
1318 | C = C == 0 and 0.00001 or C | |
1319 | local x = (R21-R12)/sqrt(A) | |
1320 | local y = (R02-R20)/sqrt(B) | |
1321 | local z = (R10-R01)/sqrt(C) | |
1322 | return Vec3(x,y,z),Angle | |
1323 | end | |
1324 | function LerpCFrame(CFrame1,CFrame2,Num) | |
1325 | local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2) | |
1326 | return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num | |
1327 | end | |
1328 | function ApplyTrig | |
1329 | (Num,Func) | |
1330 | local Min,Max = Func(0),Func(1) | |
1331 | local i = Func(Num) | |
1332 | return (i-Min)/(Max-Min) | |
1333 | ||
1334 | --[[if Func == "sin" then | |
1335 | return (math.sin((1-Num)*math.pi)+1)/2 | |
1336 | elseif Func == | |
1337 | "cos" then | |
1338 | return (math.cos((1-Num)*math.pi)+1)/2 | |
1339 | end]] | |
1340 | end | |
1341 | ||
1342 | function Crater(Torso,Radius) | |
1343 | Spawn(function() | |
1344 | local Ray = Ray.new(Torso.Position,Vector3.new(0,-1,0)*10) | |
1345 | local Ignore = {} | |
1346 | ||
1347 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do | |
1348 | if v.Character ~= nil then | |
1349 | ||
1350 | Ignore[#Ignore+1] = v.Character | |
1351 | end | |
1352 | end | |
1353 | local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(Ray,Ignore) | |
1354 | if Hit == nil then return end | |
1355 | local Parts = {} | |
1356 | for i = 1,360,10 do | |
1357 | local P = Instance.new("Part",game.Workspace) | |
1358 | P.Name="Effect" | |
1359 | P.Anchored = true | |
1360 | P.FormFactor = "Custom" | |
1361 | P.BrickColor = Hit.BrickColor | |
1362 | ||
1363 | P.Material = Hit.Material | |
1364 | P.TopSurface = "Smooth" | |
1365 | P.BottomSurface = "Smooth" | |
1366 | P.Size = Vector3.new(5,10,10)*(math.random(80,100)/100) | |
1367 | P.CFrame = | |
1368 | ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,7,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50))) | |
1369 | Parts | |
1370 | [#Parts+1] = {P,P.CFrame,((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,1,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius)*CFrame.Angles(math.rad(math.random(-50,-20)),math.rad(math.random(-15,15)),math.rad(math.random(-15,15))),P.Size} | |
1371 | if math.random(0,5) == 0 then -- rubble | |
1372 | local P = Instance.new("Part",game.Workspace) | |
1373 | P.Name="Effect" | |
1374 | P.Anchored = true | |
1375 | P.FormFactor = "Custom" | |
1376 | P.BrickColor = Hit.BrickColor | |
1377 | P.Material = Hit.Material | |
1378 | P.TopSurface = "Smooth" | |
1379 | ||
1380 | P.BottomSurface = "Smooth" | |
1381 | P.Size = Vector3.new(2,2,2)*(math.random(80,100)/100) | |
1382 | P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,2.5,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50))) | |
1383 | Parts[#Parts+1] = {P,P.CFrame,(CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius-8)*CFrame.Angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90))),P.Size} | |
1384 | end | |
1385 | end | |
1386 | for i = 0,1,0.05 do | |
1387 | for i2,v in pairs(Parts) do | |
1388 | v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos)) | |
1389 | end | |
1390 | ||
1391 | wait(0.02) | |
1392 | end | |
1393 | for i,v in pairs(Parts) do | |
1394 | if v[1].Size.X > 2.1 then | |
1395 | v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0) | |
1396 | end | |
1397 | v[1].Anchored = false | |
1398 | end | |
1399 | for i = 0,1,0.05 do | |
1400 | for i2,v in pairs(Parts) do | |
1401 | ||
1402 | v[1].Transparency = i | |
1403 | if i == 1 then | |
1404 | v[1]:Destroy() | |
1405 | elseif i >= 0.25 then | |
1406 | v[1].CanCollide = false | |
1407 | end | |
1408 | end | |
1409 | wait(0.02) | |
1410 | end | |
1411 | Parts = nil | |
1412 | ||
1413 | end) | |
1414 | end | |
1415 | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | |
1416 | mouse.KeyDown:connect(function(key) | |
1417 | ||
1418 | if key == "x" then | |
1419 | attack=true | |
1420 | if Debounces.CanAttack == true then | |
1421 | Debounces.CanAttack = false | |
1422 | ||
1423 | Debounces.NoIdl = true | |
1424 | Debounces.on = true | |
1425 | local SIDZ = {"231917744", "231917742"} | |
1426 | ||
1427 | local PTZ = {0.7, 0.8, 0.9, 1} | |
1428 | for i = 1, 20 do | |
1429 | wait() | |
1430 | for i,v in pairs(m:children()) do | |
1431 | if v:IsA("Part") or v:IsA("WedgePart") then | |
1432 | ||
1433 | v.Transparency = v.Transparency + 0.05 | |
1434 | end | |
1435 | end | |
1436 | ||
1437 | end | |
1438 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
1439 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
1440 | ||
1441 | local List = {} | |
1442 | for i,v in pairs(workspace:GetChildren())do | |
1443 | ||
1444 | if v:IsA("Model")then | |
1445 | if v:findFirstChild("Torso")then | |
1446 | ||
1447 | if v ~= char then | |
1448 | if(v.Torso.Position -Position).magnitude <= | |
1449 | Distance then | |
1450 | table.insert(List,v) | |
1451 | ||
1452 | end | |
1453 | end | |
1454 | end | |
1455 | ||
1456 | end | |
1457 | end | |
1458 | return List | |
1459 | end | |
1460 | ||
1461 | GroundPound() | |
1462 | for i = 1, 5 do | |
1463 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.7) | |
1464 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.7) | |
1465 | ||
1466 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.6) | |
1467 | ||
1468 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.6) | |
1469 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.6) | |
1470 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6) | |
1471 | ||
1472 | if Debounces.on == false then break end | |
1473 | wait() | |
1474 | end | |
1475 | ||
1476 | GroundPound() | |
1477 | for i = 1, 5 do | |
1478 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.7) | |
1479 | ||
1480 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.7) | |
1481 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-14),math.rad(-20),0), 0.6) | |
1482 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(20), 0), 0.6) | |
1483 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6) | |
1484 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(80), 0, math.rad(30)), 0.6) | |
1485 | ||
1486 | if Debounces.on == false then break end | |
1487 | wait() | |
1488 | ||
1489 | end | |
1490 | GroundPound() | |
1491 | for i = 1, 5 do | |
1492 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.7) | |
1493 | ||
1494 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.7) | |
1495 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.6) | |
1496 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.6) | |
1497 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.6) | |
1498 | ||
1499 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6) | |
1500 | if Debounces.on == false then break end | |
1501 | ||
1502 | wait() | |
1503 | end | |
1504 | GroundPound() | |
1505 | for i = 1, 5 do | |
1506 | ||
1507 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.7) | |
1508 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.7) | |
1509 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-14),math.rad(-20),0), 0.6) | |
1510 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(20), 0), 0.6) | |
1511 | ||
1512 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6) | |
1513 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(80), 0, math.rad(30)), 0.6) | |
1514 | if Debounces.on == false | |
1515 | then break end | |
1516 | wait() | |
1517 | end | |
1518 | GroundPound() | |
1519 | for i = 1, 5 do | |
1520 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.7) | |
1521 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.7) | |
1522 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-14),math.rad(20),0), 0.6) | |
1523 | ||
1524 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(-20), 0), 0.6) | |
1525 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(80), 0, math.rad(-30)), 0.6) | |
1526 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6) | |
1527 | ||
1528 | if Debounces.on == false then break end | |
1529 | wait() | |
1530 | end | |
1531 | ||
1532 | GroundPound() | |
1533 | for i = 1, 5 do | |
1534 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(2.2,.9,-2.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.7) | |
1535 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3,.9,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.7) | |
1536 | ||
1537 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-14),math.rad(-20),0), 0.6) | |
1538 | ||
1539 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-80), math.rad(20), 0), 0.6) | |
1540 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(80), 0, math.rad(10)), 0.6) | |
1541 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(80), 0, math.rad(30)), 0.6) | |
1542 | ||
1543 | if Debounces.on == false then break end | |
1544 | wait() | |
1545 | end | |
1546 | ||
1547 | for i = 1, 18 do | |
1548 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(2.4, 2.4, 0)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(-10)), 0.4) | |
1549 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-2.4, 2.4, 0)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(10)), 0.4) | |
1550 | ||
1551 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(16),math.rad(0),0), 0.4) | |
1552 | ||
1553 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, 2, 0) * CFrame.Angles(math.rad(20), math.rad(0), 0), 0.4) | |
1554 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.4) | |
1555 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.4) | |
1556 | ||
1557 | if Debounces.on == false then break end | |
1558 | wait() | |
1559 | ||
1560 | end | |
1561 | for i,v in pairs(FindNearestTorso(torso.CFrame.p,25))do | |
1562 | if v:FindFirstChild('Humanoid') then | |
1563 | v.Humanoid:TakeDamage(math.random(50,120)) | |
1564 | ||
1565 | v.Humanoid.PlatformStand = true | |
1566 | v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100 | |
1567 | end | |
1568 | end | |
1569 | x = Instance.new("Sound",char) | |
1570 | x.SoundId = "rbxassetid://"..SIDZ[math.random(1,#SIDZ)] | |
1571 | x.Pitch = | |
1572 | PTZ[math.random(1,#PTZ)] | |
1573 | x.Volume = 1 | |
1574 | wait(0.1) | |
1575 | x:Play() | |
1576 | ||
1577 | Crater(hed,20) | |
1578 | for i = 1, 14 do | |
1579 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(2.4, 3.2, -.5)*CFrame.Angles(math.rad(160),math.rad(0),math.rad(-10)), 0.6) | |
1580 | ||
1581 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-2.4, 3.2, -.5)*CFrame.Angles(math.rad(160),math.rad(0),math.rad(10)), 0.6) | |
1582 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(16),math.rad(0),0), 0.6) | |
1583 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -5, 0) * CFrame.Angles(math.rad(-90), math.rad(0), 0), 0.6) | |
1584 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.6) | |
1585 | ||
1586 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.6) | |
1587 | if Debounces.on == false then break end | |
1588 | ||
1589 | wait() | |
1590 | end | |
1591 | if Debounces.CanAttack == false then | |
1592 | ||
1593 | Debounces.CanAttack = true | |
1594 | Debounces.on = false | |
1595 | Debounces.NoIdl = false | |
1596 | ||
1597 | for i = 1, 20 do | |
1598 | wait() | |
1599 | for i,v in pairs(m:children()) do | |
1600 | if v:IsA("Part") or v:IsA("WedgePart") then | |
1601 | ||
1602 | v.Transparency = v.Transparency - 0.05 | |
1603 | end | |
1604 | end | |
1605 | ||
1606 | end | |
1607 | end | |
1608 | attack=false | |
1609 | end | |
1610 | end | |
1611 | end) | |
1612 | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | |
1613 | mod=Instance.new('Model',char) | |
1614 | function charge() | |
1615 | ||
1616 | hed.Velocity=hed.CFrame.lookVector*200 | |
1617 | local part=Instance.new('Part',mod) | |
1618 | part.Anchored=true | |
1619 | ||
1620 | part.CanCollide=false | |
1621 | part.FormFactor='Custom' | |
1622 | part.Size=Vector3.new(.2,.2,.2) | |
1623 | ||
1624 | part.CFrame=hed.CFrame*CFrame.Angles(math.rad(90),0,0) | |
1625 | part.Transparency=.7 | |
1626 | ||
1627 | part.BrickColor=BrickColor.new('Black') | |
1628 | local mesh=Instance.new('SpecialMesh',part) | |
1629 | ||
1630 | mesh.MeshId='http://www.roblox.com/asset/?id=20329976' | |
1631 | mesh.Scale=Vector3.new(10,5,10) | |
1632 | part2=part:clone() | |
1633 | part2.Parent=mod | |
1634 | part2.BrickColor=BrickColor.new('Lime green') | |
1635 | mesh2=mesh:clone() | |
1636 | ||
1637 | mesh2.Parent=part2 | |
1638 | mesh2.Scale=Vector3.new(20,10,20) | |
1639 | part3=part2:clone() | |
1640 | part3.Parent = mod | |
1641 | ||
1642 | part3.BrickColor=BrickColor.new('Really black') | |
1643 | mesh3=mesh2:clone() | |
1644 | mesh2.Parent=part3 | |
1645 | ||
1646 | mesh3.Scale=Vector3.new(30,15,30) | |
1647 | coroutine.resume(coroutine.create(function() | |
1648 | for i=0,1,0.1 do | |
1649 | ||
1650 | wait() | |
1651 | part.CFrame=part.CFrame | |
1652 | part.Transparency=i | |
1653 | ||
1654 | mesh.Scale=mesh.Scale+Vector3.new(1,1,1) | |
1655 | part2.CFrame=part2.CFrame | |
1656 | part2.Transparency=i | |
1657 | ||
1658 | mesh2.Scale=mesh2.Scale+Vector3.new(1,1,1) | |
1659 | part3.CFrame=part3.CFrame | |
1660 | ||
1661 | part3.Transparency=i | |
1662 | mesh3.Scale=mesh3.Scale+Vector3.new(1,1,1) | |
1663 | end | |
1664 | ||
1665 | part.Parent=nil | |
1666 | part2.Parent=nil | |
1667 | part3.Parent = nil | |
1668 | end)) | |
1669 | end | |
1670 | ------------------------------------------------------------------------------------------------------------------------------------------ | |
1671 | mouse.KeyDown:connect(function(key) | |
1672 | if key == "g" then | |
1673 | attack=true | |
1674 | if | |
1675 | Debounces.CanAttack == true then | |
1676 | Debounces.CanAttack = false | |
1677 | Debounces.on = true | |
1678 | ||
1679 | Debounces.NoIdl = true | |
1680 | local chrg = lleg.Touched:connect(function(ht) | |
1681 | hit = ht.Parent | |
1682 | if ht and hit:IsA("Model") then | |
1683 | if hit:FindFirstChild("Humanoid") then | |
1684 | if hit.Name ~= p.Name then | |
1685 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
1686 | Debounces.Slashed = true]]-- | |
1687 | ||
1688 | hit:FindFirstChild("Humanoid"):TakeDamage(50) | |
1689 | hit:FindFirstChild("Humanoid").PlatformStand = true | |
1690 | hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -70 | |
1691 | --Debounces.Slashed = false | |
1692 | --end | |
1693 | end | |
1694 | end | |
1695 | elseif ht and hit:IsA("Hat") then | |
1696 | if hit.Parent.Name ~= p.Name then | |
1697 | if hit.Parent:FindFirstChild("Humanoid") then | |
1698 | --[[ if Debounces.Slashing == true and Debounces.Slashed == false then | |
1699 | Debounces.Slashed = true]]-- | |
1700 | ||
1701 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(50) | |
1702 | ||
1703 | hit:FindFirstChild("Humanoid").PlatformStand = true | |
1704 | hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -70 | |
1705 | -- | |
1706 | Debounces.Slashed = false | |
1707 | end | |
1708 | end | |
1709 | end | |
1710 | end) | |
1711 | for i = 1, 14 do | |
1712 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, .9, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(30)), 0.5) | |
1713 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-2.6, .9, -.4)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.5) | |
1714 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)), 0.5) | |
1715 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.5) | |
1716 | ||
1717 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(15)), 0.5) | |
1718 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(15)), 0.5) | |
1719 | handleweld.C0 = clerp(handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.9) | |
1720 | if Debounces.on == false then | |
1721 | break end | |
1722 | wait() | |
1723 | end | |
1724 | charge() | |
1725 | z = Instance.new("Sound",char) | |
1726 | z.SoundId = "rbxassetid://200632875" | |
1727 | z.Volume = 1 | |
1728 | z.Pitch = .8 | |
1729 | z1 = Instance.new("Sound",char) | |
1730 | ||
1731 | z1.SoundId = "rbxassetid://200632875" | |
1732 | z1.Volume = 1 | |
1733 | z1.Pitch = .9 | |
1734 | z:Play() | |
1735 | ||
1736 | z1:Play() | |
1737 | wait(1) | |
1738 | z:Destroy() | |
1739 | z1:Destroy() | |
1740 | chrg:disconnect() | |
1741 | if Debounces.CanAttack == false then | |
1742 | Debounces.CanAttack = true | |
1743 | Debounces.on = false | |
1744 | ||
1745 | Debounces.NoIdl = false | |
1746 | end | |
1747 | attack=false | |
1748 | end | |
1749 | end | |
1750 | end) | |
1751 | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | |
1752 | pt = {0.7, 0.8, 0.9} | |
1753 | mouse.KeyDown:connect(function(key) | |
1754 | ||
1755 | if key == "h" then | |
1756 | if Debounces.CanJoke == true then | |
1757 | Debounces.CanJoke = false | |
1758 | u = Instance.new("Sound") | |
1759 | u.SoundId = "http://www.roblox.com/asset/?id=138199573" | |
1760 | u.Parent = char | |
1761 | u.Looped = false | |
1762 | u.Pitch = pt[math.random(1,#pt)] | |
1763 | u.Volume = 1 | |
1764 | ||
1765 | u2 = Instance.new("Sound") | |
1766 | u2.SoundId = "http://www.roblox.com/asset/?id=138199573" | |
1767 | ||
1768 | u2.Parent = char | |
1769 | u2.Looped = false | |
1770 | u2.Pitch = u.Pitch | |
1771 | u2.Volume = 1 | |
1772 | ||
1773 | wait(.01) | |
1774 | u:Play() | |
1775 | u2:Play() | |
1776 | wait(6) | |
1777 | u:Destroy() | |
1778 | ||
1779 | u2:Destroy() | |
1780 | if Debounces.CanJoke == false then | |
1781 | Debounces.CanJoke = true | |
1782 | ||
1783 | end | |
1784 | end | |
1785 | end | |
1786 | end) | |
1787 | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | |
1788 | mouse.KeyDown:connect(function | |
1789 | (key) | |
1790 | if key == "j" then | |
1791 | if Debounces.CanJoke == true then | |
1792 | ||
1793 | Debounces.CanJoke = false | |
1794 | z = Instance.new("Sound",char) | |
1795 | z.SoundId = | |
1796 | "rbxassetid://135017755" | |
1797 | z.Pitch = .76 | |
1798 | z.Volume = 1 | |
1799 | ||
1800 | wait() | |
1801 | z:Play() | |
1802 | wait(6) | |
1803 | ||
1804 | z:Destroy() | |
1805 | if Debounces.CanJoke == false then | |
1806 | ||
1807 | Debounces.CanJoke = true | |
1808 | end | |
1809 | end | |
1810 | end | |
1811 | end) | |
1812 | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | |
1813 | mouse.KeyDown:connect(function(key) | |
1814 | if key == "k" then | |
1815 | ||
1816 | if Debounces.CanJoke == true then | |
1817 | Debounces.CanJoke = false | |
1818 | ||
1819 | z = Instance.new("Sound",char) | |
1820 | z.SoundId = "rbxassetid://135017578" | |
1821 | ||
1822 | z.Pitch = .76 | |
1823 | z.Volume = 1 | |
1824 | wait() | |
1825 | ||
1826 | z:Play() | |
1827 | wait(4) | |
1828 | z:Destroy() | |
1829 | if | |
1830 | Debounces.CanJoke == false then | |
1831 | Debounces.CanJoke = true | |
1832 | end | |
1833 | ||
1834 | end | |
1835 | end | |
1836 | end) | |
1837 | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | |
1838 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
1839 | ||
1840 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
1841 | local | |
1842 | List = {} | |
1843 | for i,v in pairs(workspace:GetChildren())do | |
1844 | if v:IsA("Model")then | |
1845 | ||
1846 | if v:findFirstChild("Torso")then | |
1847 | if v ~= char then | |
1848 | if | |
1849 | (v.Torso.Position -Position).magnitude <= Distance then | |
1850 | table.insert(List,v) | |
1851 | ||
1852 | end | |
1853 | end | |
1854 | end | |
1855 | end | |
1856 | end | |
1857 | return List | |
1858 | end | |
1859 | ||
1860 | mod3 = Instance.new("Model",rleg) | |
1861 | function Pound() | |
1862 | local part=Instance.new('Part',mod3) | |
1863 | part.Anchored=true | |
1864 | ||
1865 | part.CanCollide=false | |
1866 | part.FormFactor='Custom' | |
1867 | part.Size=Vector3.new(.2,.2,.2) | |
1868 | ||
1869 | part.CFrame=rleg.CFrame*CFrame.new(0,-2.4,0)*CFrame.Angles(math.rad(90),0,0) | |
1870 | part.Transparency=.7 | |
1871 | ||
1872 | part.BrickColor=BrickColor.new('Bright green') | |
1873 | local mesh=Instance.new('SpecialMesh',part) | |
1874 | ||
1875 | mesh.MeshId='http://www.roblox.com/asset/?id=3270017' | |
1876 | mesh.Scale=Vector3.new(25,25,25) | |
1877 | part2=part:clone() | |
1878 | part2.Parent=mod3 | |
1879 | part2.BrickColor=BrickColor.new('Bright green') | |
1880 | mesh2=mesh:clone() | |
1881 | ||
1882 | mesh2.Parent=part2 | |
1883 | mesh2.Scale=Vector3.new(15,15,15) | |
1884 | part3=part:clone() | |
1885 | part3.Parent=mod3 | |
1886 | ||
1887 | part3.TopSurface=0 | |
1888 | part3.BottomSurface=0 | |
1889 | part3.CFrame=rleg.CFrame*CFrame.new(0,-3,0) | |
1890 | ||
1891 | mesh3=Instance.new('SpecialMesh',part3) | |
1892 | mesh3.MeshType = 3 | |
1893 | mesh3.Scale=Vector3.new(12,12,12) | |
1894 | for i,v | |
1895 | in pairs(FindNearestTorso(torso.CFrame.p,50))do | |
1896 | if v:FindFirstChild('Humanoid') then | |
1897 | ||
1898 | v.Humanoid:TakeDamage(math.random(50,120)) | |
1899 | v.Humanoid.PlatformStand = true | |
1900 | ||
1901 | v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100 | |
1902 | end | |
1903 | end | |
1904 | coroutine.resume(coroutine.create(function() | |
1905 | for i=0,3.8,0.05 do | |
1906 | wait() | |
1907 | part.CFrame=part.CFrame | |
1908 | ||
1909 | part.Transparency=i | |
1910 | mesh.Scale=mesh.Scale+Vector3.new(2.8,2.8,2.8) | |
1911 | ||
1912 | part2.CFrame=part2.CFrame | |
1913 | part2.Transparency=i | |
1914 | mesh2.Scale=mesh2.Scale+Vector3.new(1,1,1) | |
1915 | part3.CFrame=part3.CFrame | |
1916 | part3.Transparency=i | |
1917 | ||
1918 | mesh3.Scale=mesh3.Scale+Vector3.new(1.5,1.5,1.5) | |
1919 | end | |
1920 | end)) | |
1921 | end | |
1922 | ||
1923 | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | |
1924 | sidz = {"231917888", "231917845", "231917806"} | |
1925 | ptz = {0.65, 0.7, 0.75, 0.8, 0.95, 1} | |
1926 | mouse.KeyDown:connect(function(key) | |
1927 | if key == "f" then | |
1928 | attack=true | |
1929 | char.Humanoid.WalkSpeed=40 | |
1930 | if Debounces.CanAttack == true then | |
1931 | Debounces.CanAttack = false | |
1932 | Debounces.on = true | |
1933 | Debounces.NoIdl = true | |
1934 | for i = 1, 10 do | |
1935 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(2.4, 2.4, 0)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(-34)), 0.4) | |
1936 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-2.4, 2.4, 0)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(34)), 0.4) | |
1937 | ||
1938 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(16),math.rad(0),0), 0.4) | |
1939 | ||
1940 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(20), math.rad(0), 0), 0.4) | |
1941 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.4) | |
1942 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, -1.4) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.4) | |
1943 | handleweld.C0=clerp(handleweld.C0,cf(-1,-1.5,-1.5)*angles(math.rad(-20),math.rad(-20),math.rad(50)),.2) | |
1944 | if Debounces.on == false then end | |
1945 | wait() | |
1946 | ||
1947 | end | |
1948 | z = Instance.new("Sound",char) | |
1949 | z.SoundId = "rbxassetid://"..sidz[math.random(1,#sidz)] | |
1950 | z.Pitch = ptz[math.random(1,#ptz)] | |
1951 | z.Volume = 1 | |
1952 | ||
1953 | z1 = Instance.new("Sound",char) | |
1954 | z1.SoundId = z.SoundId | |
1955 | z1.Pitch = z.Pitch | |
1956 | ||
1957 | z1.Volume = 1 | |
1958 | wait(1) | |
1959 | z:Play() | |
1960 | z1:Play() | |
1961 | ||
1962 | Pound() | |
1963 | for i = 1, 20 do | |
1964 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, 0.9, .4)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(28)), 0.6) | |
1965 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, 0.9, .4)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(-28)), 0.6) | |
1966 | ||
1967 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(-26),math.rad(0),0), 0.6) | |
1968 | ||
1969 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1.2, -.6) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.6) | |
1970 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(10), 0, math.rad(0)), 0.4) | |
1971 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(40), 0, math.rad(0)), 0.4) | |
1972 | ||
1973 | if Debounces.on == false then end | |
1974 | wait() | |
1975 | end | |
1976 | if | |
1977 | Debounces.CanAttack == false then | |
1978 | Debounces.CanAttack = true | |
1979 | Debounces.on = false | |
1980 | ||
1981 | Debounces.NoIdl = false | |
1982 | end | |
1983 | char.Humanoid.WalkSpeed=40 | |
1984 | attack=false | |
1985 | end | |
1986 | end | |
1987 | end) | |
1988 | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | |
1989 | mouse.KeyDown:connect(function(key) | |
1990 | ||
1991 | if key == "q" then | |
1992 | attack=true | |
1993 | if Debounces.CanAttack == true then | |
1994 | Debounces.CanAttack = false | |
1995 | ||
1996 | Debounces.NoIdl = true | |
1997 | Debounces.on = true | |
1998 | Debounces.ks = true | |
1999 | for i = 1, 10 do | |
2000 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.6) | |
2001 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-2.7,.9,-.5)*CFrame.Angles(math.rad(40),math.rad(0),math.rad(20)), 0.6) | |
2002 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-26),math.rad(0),0), 0.6) | |
2003 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.6) | |
2004 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.6) | |
2005 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-70), math.rad(0), math.rad(0)), 0.6) | |
2006 | if Debounces.on == false then break end | |
2007 | ||
2008 | wait() | |
2009 | end | |
2010 | z = Instance.new("Sound",hed) | |
2011 | z.SoundId = "rbxassetid://169445092" | |
2012 | ||
2013 | z.Volume = 1 | |
2014 | wait(0.1) | |
2015 | z:Play() | |
2016 | kik = rleg.Touched:connect(function(ht) | |
2017 | hit = ht.Parent | |
2018 | if ht and hit:IsA("Model") then | |
2019 | if hit:FindFirstChild("Humanoid") then | |
2020 | ||
2021 | if hit.Name ~= p.Name then | |
2022 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
2023 | Debounces.Slashed = true]]-- | |
2024 | ||
2025 | if Debounces.ks==true then | |
2026 | z = Instance.new("Sound",hed) | |
2027 | z.SoundId = "rbxassetid://169380525" | |
2028 | ||
2029 | z.Volume = 1 | |
2030 | z:Play() | |
2031 | ||
2032 | Debounces.ks=false | |
2033 | end | |
2034 | ||
2035 | hit:FindFirstChild("Humanoid"):TakeDamage(5) | |
2036 | hit:FindFirstChild("Humanoid").PlatformStand = true | |
2037 | hit:FindFirstChild("Torso").Velocity = | |
2038 | hit:FindFirstChild("Torso").CFrame.lookVector * -70 | |
2039 | --Debounces.Slashed = false | |
2040 | ||
2041 | --end | |
2042 | end | |
2043 | end | |
2044 | elseif ht and hit:IsA("Hat") | |
2045 | then | |
2046 | if hit.Parent.Name ~= p.Name then | |
2047 | if hit.Parent:FindFirstChild("Humanoid") then | |
2048 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
2049 | Debounces.Slashed = true]]-- | |
2050 | ||
2051 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(5) | |
2052 | hit:FindFirstChild("Humanoid").PlatformStand = true | |
2053 | hit:FindFirstChild("Torso").Velocity = | |
2054 | hit:FindFirstChild("Torso").CFrame.lookVector * -70 | |
2055 | --Debounces.Slashed = false | |
2056 | ||
2057 | --end | |
2058 | end | |
2059 | end | |
2060 | end | |
2061 | end) | |
2062 | for i = 1, 8 do | |
2063 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.7) | |
2064 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3,.9,0)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(-20)), 0.7) | |
2065 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(8),math.rad(0),0), 0.7) | |
2066 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(16), math.rad(0), 0), 0.7) | |
2067 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-16), math.rad(0), math.rad(0)), 0.7) | |
2068 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(60), math.rad(0), math.rad(0)), 0.7) | |
2069 | if Debounces.on == false then break end | |
2070 | ||
2071 | wait() | |
2072 | end | |
2073 | kik:disconnect() | |
2074 | if Debounces.CanAttack == false then | |
2075 | ||
2076 | Debounces.CanAttack = true | |
2077 | Debounces.on = false | |
2078 | Debounces.NoIdl = false | |
2079 | end | |
2080 | attack=false | |
2081 | end | |
2082 | end | |
2083 | end) | |
2084 | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | |
2085 | mouse.KeyDown:connect(function(key) | |
2086 | if key == "t" then | |
2087 | char.Humanoid.WalkSpeed=40 | |
2088 | attack=true | |
2089 | if Debounces.CanAttack == true then | |
2090 | ||
2091 | Debounces.CanAttack = false | |
2092 | Debounces.on = true | |
2093 | Debounces.NoIdl = true | |
2094 | for i = 1, 20 do | |
2095 | ||
2096 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(2.3,1.1,-1) * CFrame.Angles(math.rad(115), math.rad(0), math.rad(-55)), 0.4) | |
2097 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-2.3,1.1,-1) * CFrame.Angles(math.rad(115), math.rad(0), math.rad(55)), 0.4) | |
2098 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0,1.5,0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)),0.4) | |
2099 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), math.rad(0), 0), 0.4) | |
2100 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(0)), 0.4) | |
2101 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.4) | |
2102 | handleweld.C0=clerp(handleweld.C0,cf(-1,-1.5,-1.5)*angles(math.rad(-20),math.rad(-20),math.rad(50)),.2) | |
2103 | if Debounces.on == false then break end | |
2104 | wait() | |
2105 | end | |
2106 | ||
2107 | Spawn(function() | |
2108 | local Parts = {} | |
2109 | for Y = -5,5 do | |
2110 | local P = Instance.new("Part",char) | |
2111 | P.Anchored = true | |
2112 | P.FormFactor = "Custom" | |
2113 | ||
2114 | P.CanCollide = false | |
2115 | P.Size = Vector3.new(1,2,1) | |
2116 | P.TopSurface = "SmoothNoOutlines" | |
2117 | P.BottomSurface = "SmoothNoOutlines" | |
2118 | P.BrickColor = BrickColor.new("Really black") | |
2119 | P.Name = tostring(Y) | |
2120 | local i = (Y+5)/(10) | |
2121 | ||
2122 | i = 1-math.cos(math.pi*i-(math.pi/2)) | |
2123 | P.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,Y,-15+(i*1.5))*CFrame.Angles(math.rad(Y*5),0,0) | |
2124 | -- | |
2125 | P.Touched:connect(function(ht) | |
2126 | local hit = ht.Parent | |
2127 | if hit:FindFirstChild("Humanoid") then | |
2128 | hit.Humanoid:TakeDamage(math.random(50,75)) | |
2129 | ||
2130 | end | |
2131 | end)-- | |
2132 | s = Instance.new("Sound",P) | |
2133 | s.SoundId = "rbxassetid://228343271" | |
2134 | s.Volume = .7 | |
2135 | s.Pitch = 0.9 | |
2136 | s:Play() | |
2137 | P.Touched:connect(function | |
2138 | (ht) | |
2139 | hit = ht.Parent | |
2140 | if ht and hit:IsA("Model") then | |
2141 | if hit:FindFirstChild("Humanoid") then | |
2142 | if hit.Name ~= p.Name then | |
2143 | --[[if | |
2144 | Debounces.Slashing == true and Debounces.Slashed == false then | |
2145 | ||
2146 | Debounces.Slashed = true]]-- | |
2147 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(50,75)) | |
2148 | hit:FindFirstChild("Humanoid").PlatformStand = true | |
2149 | ||
2150 | wait(1) | |
2151 | --Debounces.Slashed = false | |
2152 | ||
2153 | --end | |
2154 | end | |
2155 | end | |
2156 | elseif ht and hit:IsA("Hat") then | |
2157 | if hit.Parent.Name ~= p.Name then | |
2158 | if hit.Parent:FindFirstChild("Humanoid") then | |
2159 | ||
2160 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
2161 | ||
2162 | Debounces.Slashed = true]]-- | |
2163 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random (50,75)) | |
2164 | hit:FindFirstChild("Humanoid").PlatformStand = true | |
2165 | ||
2166 | wait(1) | |
2167 | --Debounces.Slashed = false | |
2168 | --end | |
2169 | ||
2170 | end | |
2171 | end | |
2172 | end | |
2173 | end) | |
2174 | Parts[#Parts+1] = P | |
2175 | end | |
2176 | local BREAKIT = false | |
2177 | ||
2178 | local CParts = {} | |
2179 | local Rocks = {} | |
2180 | local LastPos = nil | |
2181 | for i = 1,70 do | |
2182 | for i2,v in pairs(Parts) do | |
2183 | v.CFrame = v.CFrame*CFrame.new(0,0,-4) | |
2184 | ||
2185 | local cf = v.CFrame | |
2186 | v.Size = v.Size+Vector3.new(0.4,0.35,0) | |
2187 | ||
2188 | v.CFrame = cf | |
2189 | v.Transparency = v.Transparency+0.02 | |
2190 | if v.Transparency >= 0.975 then BREAKIT = true end | |
2191 | if v.Name == "0" then | |
2192 | local Ignore = {} | |
2193 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do | |
2194 | ||
2195 | if v.Character ~= nil then | |
2196 | Ignore[#Ignore+1] = v.Character | |
2197 | ||
2198 | end | |
2199 | end | |
2200 | local ray = Ray.new(v.Position+Vector3.new(0,20,0),Vector3.new(0,-200,0)) | |
2201 | local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(ray,Ignore) | |
2202 | if Hit ~= nil then | |
2203 | ||
2204 | if #Rocks == 0 then | |
2205 | for i = 1,5 do | |
2206 | ||
2207 | local P = Instance.new("Part",char) | |
2208 | Rocks[#Rocks+1] = P | |
2209 | ||
2210 | P.Anchored = true | |
2211 | P.FormFactor = "Custom" | |
2212 | ||
2213 | P.BrickColor = Hit.BrickColor | |
2214 | P.Material = Hit.Material | |
2215 | ||
2216 | P.TopSurface = "Smooth" | |
2217 | P.BottomSurface = "Smooth" | |
2218 | P.Size = Vector3.new(1,1,1)*(math.random(500,900)/100) | |
2219 | ||
2220 | end | |
2221 | end | |
2222 | for i,P in pairs(Rocks) do | |
2223 | ||
2224 | P.CFrame = ((CFrame.new(Pos)*(v.CFrame-v.Position))*CFrame.new(math.random(-math.ceil(v.Size.X/2),math.ceil(v.Size.X/2)),0,-math.random(5,8))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(20,50))) | |
2225 | ||
2226 | end | |
2227 | local P = Instance.new("Part",char) | |
2228 | CParts[#CParts+1] = {P,tick()} | |
2229 | P.Anchored = true | |
2230 | P.FormFactor = "Custom" | |
2231 | P.BrickColor = Hit.BrickColor | |
2232 | P.Material = Hit.Material | |
2233 | P.TopSurface = "Smooth" | |
2234 | P.BottomSurface = "Smooth" | |
2235 | P.Size = Vector3.new(1,1,1)*(math.random(100,300)/100) | |
2236 | ||
2237 | Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(v.Size.X/2,0,0) | |
2238 | Pos = Pos.p | |
2239 | P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(20,50))) | |
2240 | local P = P:Clone() | |
2241 | CParts[#CParts+1] = {P,tick()} | |
2242 | P.Parent = char | |
2243 | Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(-v.Size.X,0,0) | |
2244 | Pos = Pos.p | |
2245 | ||
2246 | P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,-20))) | |
2247 | if LastPos ~= nil then | |
2248 | local P = P:Clone() | |
2249 | ||
2250 | CParts[#CParts+1] = {P,tick()} | |
2251 | P.Parent = char | |
2252 | ||
2253 | P.BrickColor = BrickColor.new("Really black") | |
2254 | Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(v.Size.X/2,0,0) | |
2255 | Pos = Pos.p | |
2256 | ||
2257 | local CFr = (CFrame.new(Pos)*(v.CFrame-v.Position))-Vector3.new(0,0.4,0) | |
2258 | ||
2259 | P.Size = Vector3.new(v.Size.X-0.25,1,(CFr.p-LastPos.p).Magnitude+0.25) | |
2260 | ||
2261 | --P.Velocity = Vector3.new(0,-1000,0) | |
2262 | P.CFrame = CFrame.new(CFr.p,LastPos.p)*CFrame.new(0,0,-((CFr.p-LastPos.p).Magnitude+0.25)/2) | |
2263 | end | |
2264 | ||
2265 | LastPos = (CFrame.new(Pos)*(v.CFrame-v.Position))-Vector3.new(0,0.4,0) | |
2266 | ||
2267 | end | |
2268 | end | |
2269 | end | |
2270 | if BREAKIT then break end | |
2271 | wait(0.002) | |
2272 | end | |
2273 | for i,v in pairs(Rocks) do | |
2274 | CParts[#CParts+1] = {v,tick()} | |
2275 | ||
2276 | end | |
2277 | for i,v in pairs(Parts) do | |
2278 | v:Destroy() | |
2279 | end | |
2280 | Parts = nil | |
2281 | while true do | |
2282 | local t = tick() | |
2283 | local p = nil | |
2284 | for | |
2285 | i,v in pairs(CParts) do | |
2286 | if t-v[2] > 4 then | |
2287 | v[1].Transparency = v[1].Transparency+0.05 | |
2288 | if v[1].Transparency >= 1 then | |
2289 | v[1]:Destroy() | |
2290 | CParts[i] = nil | |
2291 | end | |
2292 | end | |
2293 | ||
2294 | p = v | |
2295 | end | |
2296 | if p == nil then break end | |
2297 | wait(0.002) | |
2298 | ||
2299 | end | |
2300 | for i,v in pairs(CParts) do | |
2301 | v:Destroy() | |
2302 | end | |
2303 | ||
2304 | CParts = {} | |
2305 | end) | |
2306 | for i = 1, 20 do | |
2307 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(2.3,.8,-1) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(-55)), 0.4) | |
2308 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-2.3,.8,-1) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(55)), 0.4) | |
2309 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0,1.5,0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)),0.4) | |
2310 | ||
2311 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -2.6, 0) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.4) | |
2312 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(40), 0, math.rad(0)), 0.4) | |
2313 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(10), 0, math.rad(0)), 0.4) | |
2314 | handleweld.C0=clerp(handleweld.C0,cf(-1,-1.5,-1.5)*angles(math.rad(-20),math.rad(-20),math.rad(50)),.2) | |
2315 | if Debounces.on == false then break end | |
2316 | ||
2317 | wait() | |
2318 | end | |
2319 | if Debounces.CanAttack == false then | |
2320 | Debounces.CanAttack = true | |
2321 | ||
2322 | Debounces.on = false | |
2323 | Debounces.NoIdl = false | |
2324 | end | |
2325 | attack=false | |
2326 | char.Humanoid.WalkSpeed=40 | |
2327 | end | |
2328 | end | |
2329 | end) | |
2330 | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
2331 | Grab = false | |
2332 | mouse.KeyDown:connect(function(key) | |
2333 | if key == "z" then | |
2334 | attack=true | |
2335 | Debounces.on = true | |
2336 | Debounces.NoIdl = true | |
2337 | if Grab == false then | |
2338 | gp = nil | |
2339 | con1=larm.Touched:connect(function(hit) -- this is grab | |
2340 | ht = hit.Parent | |
2341 | local hum1=ht:FindFirstChild('Humanoid') | |
2342 | if hum1 ~= nil then | |
2343 | hum1.PlatformStand=true | |
2344 | gp = ht | |
2345 | Grab = true | |
2346 | asd=weld5(larm,ht:FindFirstChild("Torso"),CFrame.new(0,-1.7,0),CFrame.new(0,0,0)) | |
2347 | asd.Parent = larm | |
2348 | asd.Name = "asd" | |
2349 | asd.C0=asd.C0*CFrame.Angles(math.rad(-90),0,0) | |
2350 | elseif hum1 == nil then | |
2351 | con1:disconnect() | |
2352 | wait() return | |
2353 | end | |
2354 | end) | |
2355 | for i = 1, 18 do | |
2356 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(36)), 0.2) | |
2357 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-2.65,.9,-.5)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(20)), 0.2) | |
2358 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.2) | |
2359 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1.8, 0) * CFrame.Angles(math.rad(-60), math.rad(0), 0), 0.2) | |
2360 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(60), math.rad(0), math.rad(0)), 0.2) | |
2361 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(60), math.rad(0), math.rad(0)), 0.2) | |
2362 | if Debounces.on == false then break end | |
2363 | wait() | |
2364 | end | |
2365 | con1:disconnect() | |
2366 | Debounces.on = false | |
2367 | Debounces.NoIdl = false | |
2368 | attack=false | |
2369 | ||
2370 | elseif Grab == true then | |
2371 | ||
2372 | Grab = false | |
2373 | for i = 1, 20 do | |
2374 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3,.9,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-20)), 0.2) | |
2375 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-2.6, .9, -.4)*CFrame.Angles(math.rad(170),math.rad(0),math.rad(-20)), 0.1) | |
2376 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.2) | |
2377 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2) | |
2378 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2) | |
2379 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2) | |
2380 | if Debounces.on == false then end | |
2381 | wait() | |
2382 | end | |
2383 | if gp ~= nil then | |
2384 | for i,v in pairs(larm:GetChildren()) do | |
2385 | if v.Name == "asd" and v:IsA("Weld") then | |
2386 | v:Remove() | |
2387 | ||
2388 | end | |
2389 | end | |
2390 | bv = Instance.new("BodyVelocity",gp:FindFirstChild("Torso")) | |
2391 | bv.maxForce = Vector3.new(400000, 400000, 400000) | |
2392 | bv.P = 125000 | |
2393 | bv.velocity = char.Head.CFrame.lookVector * 200 | |
2394 | for i = 1, 12 do | |
2395 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-2.6, .9, -.75)*CFrame.Angles(math.rad(30),math.rad(0),math.rad(20)), 0.5) | |
2396 | if Debounces.on == false then end | |
2397 | ||
2398 | wait() | |
2399 | end | |
2400 | ht=nil | |
2401 | Spawn(function() | |
2402 | wait(0.5) | |
2403 | bv:Destroy() | |
2404 | end) | |
2405 | Debounces.on = false | |
2406 | Debounces.NoIdl = false | |
2407 | attack=false | |
2408 | elseif ht == nil then wait() | |
2409 | ||
2410 | Grab = false | |
2411 | Debounces.on = false | |
2412 | Debounces.NoIdl = false | |
2413 | attack=false | |
2414 | end | |
2415 | end | |
2416 | end | |
2417 | end) | |
2418 | ----------------------------------------------------------------------------------------------------------------------------------------------------- | |
2419 | function attackone() | |
2420 | attack = true | |
2421 | local bounce=false | |
2422 | local con=Hitbox.Touched:connect(function(hit) Damagefuncy(Hitbox,hit,50,75,math.random(50,75),"Knockdown",RootPart,.2,1) end) | |
2423 | local fx=Hitbox.Touched:connect(function(part) | |
2424 | local human=part.Parent:findFirstChild("Humanoid") | |
2425 | if human~=nil and bounce==false then | |
2426 | local rndm=math.random(1,#hitsounds) | |
2427 | local r=rndm | |
2428 | so("http://www.roblox.com/asset/?id="..hitsounds[r],part,1,1.1) | |
2429 | bounce=true | |
2430 | end | |
2431 | end) | |
2432 | for i = 0,1,0.05 do | |
2433 | swait() | |
2434 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.2) | |
2435 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.2) | |
2436 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, 1, -1)*CFrame.Angles(math.rad(0),math.rad(-120),math.rad(-120)), 0.2) | |
2437 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, 0.5, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-30)), 0.2) | |
2438 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, -.5) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(0)), 0.2) | |
2439 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.2) | |
2440 | handleweld.C0=clerp(handleweld.C0,cf(0,0,.8)*angles(math.rad(80),math.rad(0),math.rad(0)),.2) | |
2441 | end | |
2442 | so("http://www.roblox.com/asset/?id=92597369",Hitbox,1,0.4) | |
2443 | so("http://www.roblox.com/asset/?id=234365549",Hitbox,1,0.6) | |
2444 | for i = 0,1,0.05 do | |
2445 | swait() | |
2446 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-20), math.rad(90), math.rad(0)), 0.2) | |
2447 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(20), math.rad(-80), math.rad(20)), 0.2) | |
2448 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, -0.5)*CFrame.Angles(math.rad(0),math.rad(-20),math.rad(-70)), 0.2) | |
2449 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, 0.5, 0)*CFrame.Angles(math.rad(-30),math.rad(0),math.rad(-40)), 0.2) | |
2450 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)), 0.2) | |
2451 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -.2, 0) * CFrame.Angles(math.rad(20), math.rad(-40), math.rad(0)), 0.2) | |
2452 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-30),math.rad(0),math.rad(0)),.2) | |
2453 | torso.Velocity=hed.CFrame.lookVector*50 | |
2454 | end | |
2455 | bounce = false | |
2456 | attack = false | |
2457 | con:disconnect() | |
2458 | fx:disconnect() | |
2459 | end | |
2460 | ||
2461 | function attacktwo() | |
2462 | attack = true | |
2463 | local bounce=false | |
2464 | local con=Hitbox.Touched:connect(function(hit) Damagefuncy(Hitbox,hit,40,50,math.random(40,50),"Knockdown",RootPart,.2,1) end) | |
2465 | local fx=Hitbox.Touched:connect(function(part) | |
2466 | local human=part.Parent:findFirstChild("Humanoid") | |
2467 | if human~=nil and bounce==false then | |
2468 | local rndm=math.random(1,#hitsounds) | |
2469 | local r=rndm | |
2470 | so("http://www.roblox.com/asset/?id="..hitsounds[r],part,1,1.1) | |
2471 | bounce=true | |
2472 | end | |
2473 | end) | |
2474 | for i = 0,1,0.05 do | |
2475 | swait() | |
2476 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.2) | |
2477 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(70), math.rad(0)), 0.2) | |
2478 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, 2, -0.5)*CFrame.Angles(math.rad(150),math.rad(0),math.rad(10)), 0.2) | |
2479 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, 0.5, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-50)), 0.2) | |
2480 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, -.5) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(-5)), 0.2) | |
2481 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(0)), 0.2) | |
2482 | handleweld.C0=clerp(handleweld.C0,cf(0,0,.8)*angles(math.rad(80),math.rad(0),math.rad(0)),.2) | |
2483 | end | |
2484 | so("http://www.roblox.com/asset/?id=92597369",Hitbox,1,0.7) | |
2485 | so("http://www.roblox.com/asset/?id=234365573",Hitbox,1,0.7) | |
2486 | for i = 0,1,0.05 do | |
2487 | swait() | |
2488 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(0)), 0.2) | |
2489 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-20), math.rad(-60), math.rad(0)), 0.2) | |
2490 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, 0, 0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(-10)), 0.2) | |
2491 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, 0.5, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-30)), 0.2) | |
2492 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, -.5) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(-5)), 0.2) | |
2493 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.2) | |
2494 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-30),math.rad(0),math.rad(0)),.2) | |
2495 | end | |
2496 | bounce = false | |
2497 | attack = false | |
2498 | con:disconnect() | |
2499 | fx:disconnect() | |
2500 | end | |
2501 | ||
2502 | function attackthree() | |
2503 | attack = true | |
2504 | local bounce=false | |
2505 | local con=Hitbox.Touched:connect(function(hit) Damagefuncy(Hitbox,hit,50,90,math.random(50,90),"Knockdown",RootPart,.2,1) end) | |
2506 | local fx=Hitbox.Touched:connect(function(part) | |
2507 | local human=part.Parent:findFirstChild("Humanoid") | |
2508 | if human~=nil and bounce==false then | |
2509 | local rndm=math.random(1,#hitsounds) | |
2510 | local r=rndm | |
2511 | so("http://www.roblox.com/asset/?id="..hitsounds[r],part,1,1.1) | |
2512 | bounce=true | |
2513 | end | |
2514 | end) | |
2515 | for i = 0,1,0.05 do | |
2516 | swait() | |
2517 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(60), math.rad(0)), 0.2) | |
2518 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.2) | |
2519 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, .5, 0)*CFrame.Angles(math.rad(0),math.rad(110),math.rad(50)), 0.2) | |
2520 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-2, 0.5, -.5)*CFrame.Angles(math.rad(0),math.rad(-120),math.rad(-50)), 0.2) | |
2521 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(-10)), 0.2) | |
2522 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(10)), 0.2) | |
2523 | handleweld.C0=clerp(handleweld.C0,cf(0,0,-1)*angles(math.rad(-50),math.rad(0),math.rad(0)),.2) | |
2524 | end | |
2525 | so("http://roblox.com/asset/?id=92597369",Hitbox,1,.6) | |
2526 | so("http://roblox.com/asset/?id=92597296",Hitbox,1,.8) | |
2527 | for i = 0,1,0.07 do | |
2528 | swait() | |
2529 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.2) | |
2530 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(0)), 0.2) | |
2531 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, 1, 0)*CFrame.Angles(math.rad(0),math.rad(20),math.rad(120)), 0.2) | |
2532 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, 0.5, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-50)), 0.2) | |
2533 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(-10)), 0.2) | |
2534 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(10)), 0.2) | |
2535 | handleweld.C0=clerp(handleweld.C0,cf(0,0,-1)*angles(math.rad(-50),math.rad(0),math.rad(0)),.2) | |
2536 | end | |
2537 | bounce = false | |
2538 | attack = false | |
2539 | con:disconnect() | |
2540 | fx:disconnect() | |
2541 | end | |
2542 | ||
2543 | function WaveEffect2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
2544 | local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2545 | prt.Anchored=true | |
2546 | prt.CFrame=cframe | |
2547 | msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://20329976",vt(0,0,0),vt(x1,y1,z1)) | |
2548 | game:GetService("Debris"):AddItem(prt,2) | |
2549 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2550 | for i=0,1,delay do | |
2551 | swait() | |
2552 | Part.CFrame=Part.CFrame | |
2553 | Part.Transparency=i | |
2554 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2555 | end | |
2556 | Part.Parent=nil | |
2557 | end),prt,msh) | |
2558 | end | |
2559 | --example: WaveEffect2(BrickColor.new(""),ExamplePart.CFrame,0,0,0,0,0,0,0.02) | |
2560 | ||
2561 | function Stomp() | |
2562 | attack = true | |
2563 | char.Humanoid.WalkSpeed = 40 | |
2564 | local con=lleg.Touched:connect(function(hit) Damagefuncy(Hitbox,hit,50,90,math.random(50,100),"Normal",RootPart,.2,1) end) | |
2565 | for i = 0,1,0.02 do | |
2566 | swait() | |
2567 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) | |
2568 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) | |
2569 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, 1, -0.5)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(30)), 0.2) | |
2570 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, 0.5, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-20)), 0.2) | |
2571 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, .5, -2) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) | |
2572 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.2) | |
2573 | handleweld.C0=clerp(handleweld.C0,cf(0,0,.8)*angles(math.rad(80),math.rad(0),math.rad(0)),.2) | |
2574 | end | |
2575 | so("http://roblox.com/asset/?id=200632875",lleg,1,.8) | |
2576 | MagniDamage(lleg,30,30,50,math.random(50,100),"Knockdown") | |
2577 | WaveEffect2(BrickColor.new("Really black"),lleg.CFrame*CFrame.Angles(math.rad(20),math.rad(0),math.rad(0))*CFrame.new(0,-2,0),.5,.5,.5,2,2,2,0.05) | |
2578 | for i = 0,1,0.02 do | |
2579 | swait() | |
2580 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) | |
2581 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)), 0.2) | |
2582 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, 1, -0.5)*CFrame.Angles(math.rad(100),math.rad(0),math.rad(30)), 0.2) | |
2583 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, 0.8, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-40)), 0.2) | |
2584 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, -1) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
2585 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.2) | |
2586 | handleweld.C0=clerp(handleweld.C0,cf(0,0,.8)*angles(math.rad(80),math.rad(0),math.rad(0)),.2) | |
2587 | end | |
2588 | char.Humanoid.WalkSpeed = 40 | |
2589 | attack = false | |
2590 | con:disconnect() | |
2591 | end | |
2592 | ||
2593 | function BlockEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
2594 | local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt()) | |
2595 | prt.Anchored=true | |
2596 | prt.CFrame=cframe | |
2597 | local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
2598 | game:GetService("Debris"):AddItem(prt,5) | |
2599 | table.insert(Effects,{prt,"Block1",delay,x3,y3,z3}) --part, type, delay | |
2600 | end | |
2601 | ||
2602 | function WaveEffect(Part,cframe1,cframe2,Damage,Size) | |
2603 | coroutine.resume(coroutine.create(function() | |
2604 | local wave=part(1,workspace,"SmoothPlastic",0,0,BrickColor.new("Lime green"),"Effect",vt(3,3,10)) | |
2605 | wave.Anchored=true | |
2606 | wave.CFrame=Part.CFrame*cframe1 | |
2607 | so("http://www.roblox.com/asset/?id=278596476",wave,1,1.3) | |
2608 | MagniDamage(wave,20,30,50,10,"Knockdown") | |
2609 | local Msh = Create("SpecialMesh"){ | |
2610 | Parent = wave, | |
2611 | MeshType = "Sphere" | |
2612 | } | |
2613 | BlockEffect(BrickColor.new("Lime green"),wave.CFrame,1,1,1,3,3,3,0.05) | |
2614 | so("http://roblox.com/asset/?id=200632875",wave,1,1.3) | |
2615 | for i=0,1,0.2 do | |
2616 | wait() | |
2617 | local dir = wave.CFrame.lookVector*-1 | |
2618 | local pos = rayCast(wave.Position,dir,5,Character) | |
2619 | wave.CFrame=wave.CFrame*cframe2 | |
2620 | Effects[#Effects+1]={wave,"Cylinder",0.01,.03,.03,.03} | |
2621 | end | |
2622 | end)) | |
2623 | end | |
2624 | ||
2625 | function Wave() | |
2626 | attack = true | |
2627 | char.Humanoid.WalkSpeed = 40 | |
2628 | for i = 0,1,0.02 do | |
2629 | swait() | |
2630 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(5), math.rad(0), math.rad(0)), 0.2) | |
2631 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), 0.2) | |
2632 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(2, 2, -2)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(-50)), 0.2) | |
2633 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-2, 2, -2)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(50)), 0.2) | |
2634 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2)), 0.2) | |
2635 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2)), 0.2) | |
2636 | handleweld.C0=clerp(handleweld.C0,cf(-1,-1.5,-1.5)*angles(math.rad(-20),math.rad(-20),math.rad(50)),.2) | |
2637 | end | |
2638 | so("http://roblox.com/asset/?id=234365573",Hitbox,1,.8) | |
2639 | local inc=-10 | |
2640 | for i=1,5 do | |
2641 | WaveEffect(torso,CFrame.new(0,-10,inc)*CFrame.fromEulerAnglesXYZ(-2,0,1.57),CFrame.new(0,0,0.8),10,5) | |
2642 | inc=inc-7 | |
2643 | end | |
2644 | for i = 0,1,0.02 do | |
2645 | swait() | |
2646 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)), 0.2) | |
2647 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.2) | |
2648 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(2, .5, -1)*CFrame.Angles(math.rad(50),math.rad(0),math.rad(-50)), 0.4) | |
2649 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-2, .5, -1)*CFrame.Angles(math.rad(50),math.rad(0),math.rad(50)), 0.4) | |
2650 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(35), math.rad(0), math.rad(0)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2)), 0.2) | |
2651 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2)), 0.2) | |
2652 | handleweld.C0=clerp(handleweld.C0,cf(-1,-1.5,-1.5)*angles(math.rad(-20),math.rad(-20),math.rad(50)),.2) | |
2653 | end | |
2654 | attack = false | |
2655 | char.Humanoid.WalkSpeed = 40 | |
2656 | end | |
2657 | ||
2658 | function Cloak() | |
2659 | ||
2660 | end | |
2661 | ||
2662 | mouse.Button1Down:connect(function() | |
2663 | if attack==false then | |
2664 | if attacktype==1 then | |
2665 | attacktype = 2 | |
2666 | attackone() | |
2667 | elseif attacktype==2 then | |
2668 | attacktype = 3 | |
2669 | attacktwo() | |
2670 | elseif attacktype==3 then | |
2671 | attacktype = 1 | |
2672 | attackthree() | |
2673 | end | |
2674 | end | |
2675 | end) | |
2676 | ||
2677 | mouse.KeyDown:connect(function(k) | |
2678 | k=k:lower() | |
2679 | if k=='e' and attack==false then | |
2680 | Stomp() | |
2681 | end | |
2682 | if k=='r' and attack==false then | |
2683 | Wave() | |
2684 | end | |
2685 | end) | |
2686 | ||
2687 | - | bc=char['Body Colors'] |
2687 | + | |
2688 | - | coloras=BrickColor.new('Institutional white') |
2688 | + | |
2689 | - | bc.LeftLegColor,bc.LeftArmColor,bc.TorsoColor,bc.HeadColor,bc.RightArmColor,bc.RightLegColor=coloras,coloras,coloras,coloras,coloras,coloras |
2689 | + | |
2690 | Character.Sound:remove() | |
2691 | Character.Head.face.Texture = "http://www.roblox.com/asset/?id=0" | |
2692 | Character.Torso.roblox.Texture = "http://www.roblox.com/asset/?id=0" | |
2693 | char.Humanoid.MaxHealth = 1000000 | |
2694 | char.Humanoid.Health = 1000000 | |
2695 | - | Character.Head.face.Texture = "http://www.roblox.com/asset/?id=145787037" |
2695 | + | |
2696 | - | Character.Torso.roblox.Texture = "http://www.roblox.com/asset/?id=145787037" |
2696 | + | |
2697 | --game:service'InsertService':LoadAsset(181238309):children()[1].Parent = Character | |
2698 | --game:service'InsertService':LoadAsset(181241666):children()[1].Parent = Character | |
2699 | ||
2700 | local prevState = "None" | |
2701 | local fallSpeed = 0 | |
2702 | ||
2703 | local sRunning = Instance.new("Sound",torso) sRunning.SoundId = "http://roblox.com/asset/?id=135062807" | |
2704 | local sLanding = Instance.new("Sound",torso) sLanding.SoundId = "http://roblox.com/asset/?id=180683823" | |
2705 | ||
2706 | function onRunning(speed) | |
2707 | if (prevState == "FreeFall" and fallSpeed > 0.1) then | |
2708 | local vol = math.min(1.0, math.max(0.0, (fallSpeed - 50) / 110)) | |
2709 | sLanding.Volume = vol | |
2710 | sLanding:Play() | |
2711 | fallSpeed = 0 | |
2712 | end | |
2713 | if speed>0.5 then | |
2714 | sRunning:Play() | |
2715 | sRunning.Looped = true | |
2716 | sRunning.Pitch = 1 | |
2717 | else | |
2718 | sRunning:Stop() | |
2719 | end | |
2720 | prevState = "Run" | |
2721 | end | |
2722 | ||
2723 | Character.Humanoid.Running:connect(onRunning) | |
2724 | ||
2725 | local sine = 0 | |
2726 | local change = 1 | |
2727 | local val = 0 | |
2728 | ||
2729 | while true do | |
2730 | swait() | |
2731 | sine = sine + change | |
2732 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
2733 | local velderp=RootPart.Velocity.y | |
2734 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,10,0))).lookVector,10,char) | |
2735 | if equipped==true or equipped==false or stanceToggle=="Normal" then | |
2736 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
2737 | Anim="Jump" | |
2738 | if attack==false then | |
2739 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) | |
2740 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), 0.2) | |
2741 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, 1, -0.5)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(30)), 0.2) | |
2742 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-30)), 0.2) | |
2743 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -.5, -.5) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) | |
2744 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), 0.2) | |
2745 | handleweld.C0=clerp(handleweld.C0,cf(0,0,.8)*angles(math.rad(80),math.rad(0),math.rad(0)),.2) | |
2746 | end | |
2747 | elseif RootPart.Velocity.y < -1 and hitfloor==nil then | |
2748 | Anim="Fall" | |
2749 | if attack==false then | |
2750 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) | |
2751 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) | |
2752 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, 1, -0.5)*CFrame.Angles(math.rad(120),math.rad(0),math.rad(20)), 0.2) | |
2753 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-50)), 0.2) | |
2754 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), 0.2) | |
2755 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) | |
2756 | end | |
2757 | elseif torvel<1 and hitfloor~=nil then | |
2758 | Anim="Idle" | |
2759 | if attack==false then | |
2760 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.2) | |
2761 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(50), math.rad(0)), 0.2) | |
2762 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, 1, -0.5)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(30)), 0.2) | |
2763 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, 0.5, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-20)), 0.2) | |
2764 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, -.5) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(-5)), 0.2) | |
2765 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.2) | |
2766 | handleweld.C0=clerp(handleweld.C0,cf(0,0,.8)*angles(math.rad(80),math.rad(0),math.rad(0)),.2) | |
2767 | end | |
2768 | elseif torvel>2 and hitfloor~=nil then | |
2769 | Anim="Walk" | |
2770 | if attack==false then | |
2771 | torso.Weld.C0 = clerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) | |
2772 | hed.Weld.C0 = clerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.2) | |
2773 | rarm.Weld.C0 = clerp(rarm.Weld.C0, CFrame.new(3, 1, -0.5)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(30)), 0.2) | |
2774 | larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-3, 0.5, 0)*CFrame.Angles(math.rad(-30*math.cos(sine/8)),math.rad(0),math.rad(-20)), 0.2) | |
2775 | lleg.Weld.C0 = clerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(50*math.cos(sine/6)), math.rad(0), math.rad(0)), 0.2) | |
2776 | rleg.Weld.C0 = clerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-50*math.cos(sine/6)), math.rad(0), math.rad(0)), 0.2) | |
2777 | handleweld.C0=clerp(handleweld.C0,cf(0,0,.8)*angles(math.rad(80),math.rad(0),math.rad(0)),.2) | |
2778 | end | |
2779 | end | |
2780 | end | |
2781 | if #Effects>0 then | |
2782 | for e=1,#Effects do | |
2783 | if Effects[e]~=nil then | |
2784 | local Thing=Effects[e] | |
2785 | if Thing~=nil then | |
2786 | local Part=Thing[1] | |
2787 | local Mode=Thing[2] | |
2788 | local Delay=Thing[3] | |
2789 | local IncX=Thing[4] | |
2790 | local IncY=Thing[5] | |
2791 | local IncZ=Thing[6] | |
2792 | if Thing[1].Transparency<=1 then | |
2793 | if Thing[2]=="Block1" then | |
2794 | Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
2795 | Mesh=Thing[1].Mesh | |
2796 | Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6]) | |
2797 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
2798 | elseif Thing[2]=="Cylinder" then | |
2799 | Mesh=Thing[1].Mesh | |
2800 | Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6]) | |
2801 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
2802 | elseif Thing[2]=="Blood" then | |
2803 | Mesh=Thing[7] | |
2804 | Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0) | |
2805 | Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6]) | |
2806 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
2807 | elseif Thing[2]=="Elec" then | |
2808 | Mesh=Thing[1].Mesh | |
2809 | Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9]) | |
2810 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
2811 | elseif Thing[2]=="Disappear" then | |
2812 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
2813 | end | |
2814 | else | |
2815 | Part.Parent=nil | |
2816 | table.remove(Effects,e) | |
2817 | end | |
2818 | end | |
2819 | end | |
2820 | end | |
2821 | end | |
2822 | end |