SHOW:
|
|
- or go back to the newest paste.
1 | - | Player = game.Players.LocalPlayer --------------- create by michael202do |
1 | + | --https://github.com/Mokiros/roblox-FE-compatibility |
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,game,owner = owner,game | |
4 | local RealPlayer = Player | |
5 | do print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end Player = game.Players.LocalPlayer --------------- create by michael202do | |
6 | Character = Player.Character | |
7 | PlayerGui = Player.PlayerGui | |
8 | Backpack = Player.Backpack | |
9 | Torso = Character.Torso | |
10 | Head = Character.Head | |
11 | Humanoid = Character.Humanoid | |
12 | LeftArm = Character["Left Arm"] | |
13 | LeftLeg = Character["Left Leg"] | |
14 | RightArm = Character["Right Arm"] | |
15 | RightLeg = Character["Right Leg"] | |
16 | Character = Player.Character | |
17 | PlayerGui = Player.PlayerGui | |
18 | Backpack = Player.Backpack | |
19 | Torso = Character.Torso | |
20 | Head = Character.Head | |
21 | Humanoid = Character.Humanoid | |
22 | LeftArm = Character["Left Arm"] | |
23 | LeftLeg = Character["Left Leg"] | |
24 | RightArm = Character["Right Arm"] | |
25 | RightLeg = Character["Right Leg"] | |
26 | LS = Torso["Left Shoulder"] | |
27 | LH = Torso["Left Hip"] | |
28 | RS = Torso["Right Shoulder"] | |
29 | RH = Torso["Right Hip"] | |
30 | Humanoid.MaxHealth = 50000 | |
31 | wait() | |
32 | Humanoid.Health = 50000 | |
33 | Neck = Torso.Neck | |
34 | attacktype = 1 | |
35 | vt = Vector3.new | |
36 | cf = CFrame.new | |
37 | euler = CFrame.fromEulerAnglesXYZ | |
38 | angles = CFrame.Angles | |
39 | necko = cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
40 | necko2 = cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
41 | LHC0 = cf(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
42 | LHC1 = cf(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
43 | RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
44 | RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
45 | RootPart = Character.HumanoidRootPart | |
46 | RootJoint = RootPart.RootJoint | |
47 | RootCF = euler(-1.57, 0, 3.14) | |
48 | attack = false | |
49 | equipped = true | |
50 | local Anim = "Idle" | |
51 | local Effects = {} | |
52 | cam = workspace.CurrentCamera | |
53 | ZTarget = nil | |
54 | RocketTarget = nil | |
55 | local RbxUtility = LoadLibrary("RbxUtility") | |
56 | local Create = RbxUtility.Create | |
57 | local m = Create("Model"){ | |
58 | Parent = Character, | |
59 | Name = "WeaponModel", | |
60 | } | |
61 | mouse = Player:GetMouse() | |
62 | RSH, LSH = nil, nil | |
63 | LH = Torso["Left Hip"] | |
64 | RH = Torso["Right Hip"] | |
65 | RSH = Torso["Right Shoulder"] | |
66 | LSH = Torso["Left Shoulder"] | |
67 | ||
68 | ||
69 | RSH.Parent = nil | |
70 | LSH.Parent = nil | |
71 | ||
72 | RW = Create("Weld"){ | |
73 | Name = "Right Shoulder", | |
74 | Part0 = Torso , | |
75 | C0 = cf(1.5, 0.5, 0), | |
76 | C1 = cf(0, 0.5, 0), | |
77 | Part1 = RightArm , | |
78 | Parent = Torso , | |
79 | } | |
80 | ||
81 | LW = Create("Weld"){ | |
82 | Name = "Left Shoulder", | |
83 | Part0 = Torso , | |
84 | C0 = cf(-1.5, 0.5, 0), | |
85 | C1 = cf(0, 0.5, 0) , | |
86 | Part1 = LeftArm , | |
87 | Parent = Torso , | |
88 | } | |
89 | ||
90 | function NoOutline(Part) | |
91 | Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10 | |
92 | end | |
93 | function swait(num) | |
94 | if num == 0 or num == nil then | |
95 | game:service'RunService'.Heartbeat:wait(0) | |
96 | else | |
97 | for i = 0, num do | |
98 | game:service'RunService'.Heartbeat:wait(0) | |
99 | end | |
100 | end | |
101 | end | |
102 | ||
103 | function nooutline(part) | |
104 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
105 | end | |
106 | ||
107 | function part(formfactor, parent, material, reflectance, transparency, brickcolor, name, size) | |
108 | local fp = Create("Part"){ | |
109 | formFactor = formfactor, | |
110 | Parent = parent, | |
111 | Reflectance = reflectance, | |
112 | Transparency = transparency, | |
113 | CanCollide = false, | |
114 | Locked = true, | |
115 | BrickColor = BrickColor.new(tostring(brickcolor)), | |
116 | Name = name, | |
117 | Size = size, | |
118 | Position = Character.Torso.Position, | |
119 | Material = material, | |
120 | } | |
121 | nooutline(fp) | |
122 | return fp | |
123 | end | |
124 | ||
125 | function mesh(Mesh, part, meshtype, meshid, offset, scale) | |
126 | local Msh = Create(Mesh){ | |
127 | Parent = part, | |
128 | Offset = offset, | |
129 | Scale = scale, | |
130 | } | |
131 | if Mesh == "SpecialMesh" then | |
132 | Msh.MeshType = meshtype | |
133 | Msh.MeshId = meshid | |
134 | end | |
135 | return Msh | |
136 | end | |
137 | ||
138 | function weld(parent, part0, part1, c0, c1) | |
139 | local Weld = Create("Weld"){ | |
140 | Parent = parent, | |
141 | Part0 = part0, | |
142 | Part1 = part1, | |
143 | C0 = c0, | |
144 | C1 = c1, | |
145 | } | |
146 | return Weld | |
147 | end | |
148 | ||
149 | ||
150 | local function CFrameFromTopBack(at, top, back) | |
151 | local right = top:Cross(back) | |
152 | return CFrame.new(at.x, at.y, at.z, | |
153 | right.x, top.x, back.x, | |
154 | right.y, top.y, back.y, | |
155 | right.z, top.z, back.z) | |
156 | end | |
157 | ||
158 | function Triangle(a, b, c) | |
159 | local edg1 = (c - a):Dot((b - a).unit) | |
160 | local edg2 = (a - b):Dot((c - b).unit) | |
161 | local edg3 = (b - c):Dot((a - c).unit) | |
162 | if edg1 <= (b - a).magnitude and edg1 >= 0 then | |
163 | a, b, c = a, b, c | |
164 | elseif edg2 <= (c - b).magnitude and edg2 >= 0 then | |
165 | a, b, c = b, c, a | |
166 | elseif edg3 <= (a - c).magnitude and edg3 >= 0 then | |
167 | a, b, c = c, a, b | |
168 | else | |
169 | assert(false, "unreachable") | |
170 | end | |
171 | ||
172 | local len1 = (c - a):Dot((b - a).unit) | |
173 | local len2 = (b - a).magnitude - len1 | |
174 | local width = (a + (b - a).unit * len1 - c).magnitude | |
175 | ||
176 | local maincf = CFrameFromTopBack(a, (b - a):Cross(c - b).unit, -(b - a).unit) | |
177 | ||
178 | local list = {} | |
179 | ||
180 | local Color = BrickColor.new("Really black") | |
181 | ||
182 | if len1 > 0.01 then | |
183 | local w1 = Create('WedgePart', m){ | |
184 | Material = "Marble", | |
185 | FormFactor = 'Custom', | |
186 | BrickColor = Color, | |
187 | Transparency = 0, | |
188 | Reflectance = 0, | |
189 | Material = "Marble", | |
190 | CanCollide = false, | |
191 | Anchored = true, | |
192 | Parent = workspace, | |
193 | Transparency = 0.3, | |
194 | } | |
195 | game:GetService("Debris"):AddItem(w1, 5) | |
196 | NoOutline(w1) | |
197 | local sz = Vector3.new(0.2, width, len1) | |
198 | w1.Size = sz | |
199 | local sp = Create("SpecialMesh"){ | |
200 | Parent = w1, | |
201 | MeshType = "Wedge", | |
202 | Scale = Vector3.new(0, 1, 1) * sz / w1.Size, | |
203 | } | |
204 | w1:BreakJoints() | |
205 | table.insert(Effects, { | |
206 | w1, | |
207 | "Disappear", | |
208 | .03 | |
209 | }) | |
210 | w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2) | |
211 | table.insert(list, w1) | |
212 | end | |
213 | if len2 > 0.01 then | |
214 | local w2 = Create('WedgePart', m){ | |
215 | Material = "Marble", | |
216 | FormFactor = 'Custom', | |
217 | BrickColor = Color, | |
218 | Transparency = 0, | |
219 | Reflectance = 0, | |
220 | Material = "Marble", | |
221 | CanCollide = false, | |
222 | Anchored = true, | |
223 | Parent = workspace, | |
224 | Transparency = 0.3, | |
225 | } | |
226 | game:GetService("Debris"):AddItem(w2, 5) | |
227 | NoOutline(w2) | |
228 | local sz = Vector3.new(0.2, width, len2) | |
229 | w2.Size = sz | |
230 | local sp = Create("SpecialMesh"){ | |
231 | Parent = w2, | |
232 | MeshType = "Wedge", | |
233 | Scale = Vector3.new(0, 1, 1) * sz / w2.Size, | |
234 | } | |
235 | w2:BreakJoints() | |
236 | table.insert(Effects, { | |
237 | w2, | |
238 | "Disappear", | |
239 | .03 | |
240 | }) | |
241 | w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2) | |
242 | table.insert(list, w2) | |
243 | end | |
244 | return unpack(list) | |
245 | end | |
246 | ||
247 | function so(id, par, vol, pit) | |
248 | coroutine.resume(coroutine.create(function() | |
249 | local sou = Instance.new("Sound", par or workspace) | |
250 | sou.Volume = vol | |
251 | sou.Pitch = pit or 1 | |
252 | sou.SoundId = Sounds[id].Id | |
253 | swait() | |
254 | sou:play() | |
255 | swait(6) | |
256 | sou:Remove() | |
257 | end)) | |
258 | end | |
259 | ||
260 | function clerp(a, b, t) | |
261 | local qa = { | |
262 | QuaternionFromCFrame(a) | |
263 | } | |
264 | local qb = { | |
265 | QuaternionFromCFrame(b) | |
266 | } | |
267 | local ax, ay, az = a.x, a.y, a.z | |
268 | local bx, by, bz = b.x, b.y, b.z | |
269 | local _t = 1 - t | |
270 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
271 | end | |
272 | ||
273 | function QuaternionFromCFrame(cf) | |
274 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
275 | local trace = m00 + m11 + m22 | |
276 | if trace > 0 then | |
277 | local s = math.sqrt(1 + trace) | |
278 | local recip = 0.5 / s | |
279 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
280 | else | |
281 | local i = 0 | |
282 | if m11 > m00 then | |
283 | i = 1 | |
284 | end | |
285 | if m22 > (i == 0 and m00 or m11) then | |
286 | i = 2 | |
287 | end | |
288 | if i == 0 then | |
289 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
290 | local recip = 0.5 / s | |
291 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
292 | elseif i == 1 then | |
293 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
294 | local recip = 0.5 / s | |
295 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
296 | elseif i == 2 then | |
297 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
298 | local recip = 0.5 / s | |
299 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
300 | end | |
301 | end | |
302 | end | |
303 | ||
304 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
305 | local xs, ys, zs = x + x, y + y, z + z | |
306 | local wx, wy, wz = w * xs, w * ys, w * zs | |
307 | local xx = x * xs | |
308 | local xy = x * ys | |
309 | local xz = x * zs | |
310 | local yy = y * ys | |
311 | local yz = y * zs | |
312 | local zz = z * zs | |
313 | 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)) | |
314 | end | |
315 | ||
316 | function QuaternionSlerp(a, b, t) | |
317 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
318 | local startInterp, finishInterp; | |
319 | if cosTheta >= 0.0001 then | |
320 | if (1 - cosTheta) > 0.0001 then | |
321 | local theta = math.acos(cosTheta) | |
322 | local invSinTheta = 1 / math.sin(theta) | |
323 | startInterp = math.sin((1 - t) * theta) * invSinTheta | |
324 | finishInterp = math.sin(t * theta) * invSinTheta | |
325 | else | |
326 | startInterp = 1 - t | |
327 | finishInterp = t | |
328 | end | |
329 | else | |
330 | if (1 + cosTheta) > 0.0001 then | |
331 | local theta = math.acos(-cosTheta) | |
332 | local invSinTheta = 1 / math.sin(theta) | |
333 | startInterp = math.sin((t - 1) * theta) * invSinTheta | |
334 | finishInterp = math.sin(t * theta) * invSinTheta | |
335 | else | |
336 | startInterp = t - 1 | |
337 | finishInterp = t | |
338 | end | |
339 | end | |
340 | 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 | |
341 | end | |
342 | ||
343 | function rayCast(Pos, Dir, Max, Ignore) | |
344 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
345 | end | |
346 | ||
347 | Asset = "http://www.roblox.com/asset/?id=" | |
348 | ||
349 | Sounds = { | |
350 | Hit1 = { | |
351 | Id = Asset..(169380525) | |
352 | }, | |
353 | Hit2 = { | |
354 | Id = Asset..(169380538) | |
355 | }, | |
356 | Hit3 = { | |
357 | Id = Asset..(169380528) | |
358 | }, | |
359 | Punch1 = { | |
360 | Id = Asset..(200632136) | |
361 | }, | |
362 | Punch2 = { | |
363 | Id = Asset..(200632136) | |
364 | }, | |
365 | Punch3 = { | |
366 | Id = Asset..(200632211) | |
367 | }, | |
368 | Fire = { | |
369 | Id = Asset..(168413145) | |
370 | }, | |
371 | Grab = { | |
372 | Id = Asset..(200632821) | |
373 | }, | |
374 | } | |
375 | ||
376 | ContentProvider = game:GetService("ContentProvider") | |
377 | for _, v in pairs(Sounds) do | |
378 | ContentProvider:Preload(v.Id) | |
379 | end | |
380 | ||
381 | ||
382 | ||
383 | Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
384 | if hit.Parent == nil then | |
385 | return | |
386 | end | |
387 | local h = hit.Parent:FindFirstChild("Humanoid") | |
388 | for _, v in pairs(hit.Parent:children()) do | |
389 | if v:IsA("Humanoid") then | |
390 | h = v | |
391 | end | |
392 | end | |
393 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
394 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then | |
395 | if hit.Parent.DebounceHit.Value == true then | |
396 | return | |
397 | end | |
398 | end | |
399 | if h.MaxHealth >= math.huge then | |
400 | hit:BreakJoints() | |
401 | end | |
402 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
403 | return | |
404 | end]] | |
405 | -- hs(hit,1.2) | |
406 | local c = Create("ObjectValue"){ | |
407 | Name = "creator", | |
408 | Value = game:service("Players").LocalPlayer, | |
409 | Parent = h, | |
410 | } | |
411 | game:GetService("Debris"):AddItem(c, .5) | |
412 | if HitSound ~= nil and HitPitch ~= nil then | |
413 | so(HitSound, hit, 1, HitPitch) | |
414 | end | |
415 | local Damage = math.random(minim, maxim) | |
416 | -- h:TakeDamage(Damage) | |
417 | local blocked = false | |
418 | local block = hit.Parent:findFirstChild("Block") | |
419 | if block ~= nil then | |
420 | if block.className == "IntValue" then | |
421 | if block.Value > 0 then | |
422 | blocked = true | |
423 | block.Value = block.Value - 1 | |
424 | print(block.Value) | |
425 | end | |
426 | end | |
427 | end | |
428 | if blocked == false then | |
429 | -- h:TakeDamage(Damage) | |
430 | h.Health = h.Health - Damage | |
431 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color) | |
432 | else | |
433 | h.Health = h.Health - (Damage / 2) | |
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 | end | |
436 | if Type == "Knockdown" then | |
437 | local hum = hit.Parent.Humanoid | |
438 | hum.PlatformStand = true | |
439 | coroutine.resume(coroutine.create(function(HHumanoid) | |
440 | swait(1) | |
441 | HHumanoid.PlatformStand = false | |
442 | end), hum) | |
443 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
444 | local bodvol = Create("BodyVelocity"){ | |
445 | velocity = angle * knockback, | |
446 | P = 5000, | |
447 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
448 | Parent = hit, | |
449 | } | |
450 | local rl = Create("BodyAngularVelocity"){ | |
451 | P = 3000, | |
452 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
453 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
454 | Parent = hit, | |
455 | } | |
456 | game:GetService("Debris"):AddItem(bodvol, .5) | |
457 | game:GetService("Debris"):AddItem(rl, .5) | |
458 | elseif Type == "Normal" then | |
459 | local vp = Create("BodyVelocity"){ | |
460 | P = 500, | |
461 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
462 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
463 | } | |
464 | if knockback > 0 then | |
465 | vp.Parent = hit.Parent.Torso | |
466 | end | |
467 | game:GetService("Debris"):AddItem(vp, .5) | |
468 | elseif Type == "Up" then | |
469 | local bodyVelocity = Create("BodyVelocity"){ | |
470 | velocity = vt(0, 20, 0), | |
471 | P = 5000, | |
472 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
473 | Parent = hit, | |
474 | } | |
475 | game:GetService("Debris"):AddItem(bodyVelocity, .5) | |
476 | elseif Type == "Snare" then | |
477 | local bp = Create("BodyPosition"){ | |
478 | P = 2000, | |
479 | D = 100, | |
480 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
481 | position = hit.Parent.Torso.Position, | |
482 | Parent = hit.Parent.Torso, | |
483 | } | |
484 | game:GetService("Debris"):AddItem(bp, 1) | |
485 | elseif Type == "Freeze" then | |
486 | local BodPos = Create("BodyPosition"){ | |
487 | P = 50000, | |
488 | D = 1000, | |
489 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
490 | position = hit.Parent.Torso.Position, | |
491 | Parent = hit.Parent.Torso, | |
492 | } | |
493 | local BodGy = Create("BodyGyro") { | |
494 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
495 | P = 20e+003, | |
496 | Parent = hit.Parent.Torso, | |
497 | cframe = hit.Parent.Torso.CFrame, | |
498 | } | |
499 | hit.Parent.Torso.Anchored = true | |
500 | coroutine.resume(coroutine.create(function(Part) | |
501 | swait(1.5) | |
502 | Part.Anchored = false | |
503 | end), hit.Parent.Torso) | |
504 | game:GetService("Debris"):AddItem(BodPos, 3) | |
505 | game:GetService("Debris"):AddItem(BodGy, 3) | |
506 | end | |
507 | local debounce = Create("BoolValue"){ | |
508 | Name = "DebounceHit", | |
509 | Parent = hit.Parent, | |
510 | Value = true, | |
511 | } | |
512 | game:GetService("Debris"):AddItem(debounce, Delay) | |
513 | c = Instance.new("ObjectValue") | |
514 | c.Name = "creator" | |
515 | c.Value = Player | |
516 | c.Parent = h | |
517 | game:GetService("Debris"):AddItem(c, .5) | |
518 | end | |
519 | end | |
520 | ||
521 | function ShowDamage(Pos, Text, Time, Color) | |
522 | local Rate = (1 / 30) | |
523 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
524 | local Text = (Text or "") | |
525 | local Time = (Time or 2) | |
526 | local Color = (Color or Color3.new(1, 0, 0)) | |
527 | local EffectPart = part("Custom", workspace, "Marble", 0, 1, BrickColor.new(Color), "Effect", vt(0, 0, 0)) | |
528 | EffectPart.Anchored = true | |
529 | local BillboardGui = Create("BillboardGui"){ | |
530 | Size = UDim2.new(3, 0, 3, 0), | |
531 | Adornee = EffectPart, | |
532 | Parent = EffectPart, | |
533 | } | |
534 | local TextLabel = Create("TextLabel"){ | |
535 | BackgroundTransparency = 1, | |
536 | Size = UDim2.new(1, 0, 1, 0), | |
537 | Text = Text, | |
538 | TextColor3 = Color, | |
539 | TextScaled = true, | |
540 | Font = Enum.Font.ArialBold, | |
541 | Parent = BillboardGui, | |
542 | } | |
543 | game.Debris:AddItem(EffectPart, (Time + 0.1)) | |
544 | EffectPart.Parent = game:GetService("Workspace") | |
545 | delay(0, function() | |
546 | local Frames = (Time / Rate) | |
547 | for Frame = 1, Frames do | |
548 | wait(Rate) | |
549 | local Percent = (Frame / Frames) | |
550 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
551 | TextLabel.TextTransparency = Percent | |
552 | end | |
553 | if EffectPart and EffectPart.Parent then | |
554 | EffectPart:Destroy() | |
555 | end | |
556 | end) | |
557 | end | |
558 | ||
559 | HandleA = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 1, "Really black", "HandleA", Vector3.new(1.01999998, 0.410000026, 1.01999998)) | |
560 | HandleAweld = weld(m, Character["Right Arm"], HandleA, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(6.86645508e-005, 0.00578308105, 0.000793457031, 1, 1.57159663e-009, 1.84536508e-009, -1.51411894e-009, 1.00000477, 9.46223736e-005, -1.81580617e-009, -9.4622359e-005, 1.00000489)) | |
561 | FConnectorA1 = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 1, "Really black", "FConnectorA1", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
562 | FConnectorA1weld = weld(m, HandleA, FConnectorA1, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.410087585, -1.11513186, -0.410018921, -1, 9.74741943e-006, -1.35193727e-006, -9.74743125e-006, -1.00000489, 2.3929897e-007, -1.35189885e-006, 2.39313522e-007, 1.00000489)) | |
563 | FConnectorA2 = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 1, "Really black", "FConnectorA2", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
564 | FConnectorA2weld = weld(m, HandleA, FConnectorA2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.410102844, -1.10513186, -0.129695892, -1, 9.74805607e-006, -1.35614573e-006, -9.74806699e-006, -1.00000489, 5.55955921e-007, -1.35610435e-006, 5.55970473e-007, 1.00000489)) | |
565 | FConnectorA3 = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 1, "Really black", "FConnectorA3", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
566 | FConnectorA3weld = weld(m, HandleA, FConnectorA3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.410087585, -1.11496186, 0.140254974, -1, 9.74844261e-006, -1.35647815e-006, -9.74845443e-006, -1.00000489, 5.93368895e-007, -1.35643631e-006, 5.93383447e-007, 1.00000489)) | |
567 | FConnectorA4 = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 1, "Really black", "FConnectorA4", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
568 | FConnectorA4weld = weld(m, HandleA, FConnectorA4, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.410064697, -1.11497116, 0.41003418, -1, 9.74773866e-006, -1.35528308e-006, -9.7477523e-006, -1.00000489, 5.13136911e-007, -1.35524226e-006, 5.13151463e-007, 1.00000489)) | |
569 | FConnectorA5 = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 1, "Really black", "FConnectorA5", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
570 | FConnectorA5weld = weld(m, HandleA, FConnectorA5, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.409896851, -1.11500096, 0.410381317, -1, 9.74811064e-006, -1.35720666e-006, -9.7481261e-006, -1.00000489, 6.21264917e-007, -1.35716482e-006, 6.21286745e-007, 1.00000489)) | |
571 | HitboxA = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 1, "Institutional white", "HitboxA", Vector3.new(1.22000003, 1.00999999, 1.01999998)) | |
572 | HitboxAweld = weld(m, HandleA, HitboxA, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.10004425, 0.899994373, -7.2479248e-005, 1, 2.3913432e-011, 1.214151e-011, 3.87364897e-011, 1.00000501, 3.17668309e-008, 1.75869319e-011, -3.16504156e-008, 1.00000501)) | |
573 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
574 | Partweld = weld(m, HandleA, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.704981804, 0.600097656, -0.400291443, 1.07934993e-005, 1.00000513, 0.000307456852, -1, 1.07920496e-005, 4.67940163e-006, 4.67608925e-006, -0.000307456678, 1.00000513)) | |
575 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) | |
576 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.399999917, 0.210000008)) | |
577 | Partweld = weld(m, HandleA, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.409942627, -0.0047621727, 0.404830933, 1, -3.37975814e-010, -8.95103991e-010, 4.05866091e-010, 1.00000513, 0.000272899517, 9.25026722e-010, -0.000272899284, 1.00000513)) | |
578 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.210000008)) | |
579 | Partweld = weld(m, HandleA, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.409942627, -0.704754353, 0.404701233, 1, -6.41774189e-010, -1.14527055e-009, 7.09687087e-010, 1.00000513, 0.000235188927, 1.17513577e-009, -0.000235188694, 1.00000513)) | |
580 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.600000024, 0.200000003)) | |
581 | Partweld = weld(m, HandleA, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000686645508, 0.694943428, 0.600120544, -4.16014518e-005, 9.45778302e-005, 1.00000513, -9.60050784e-007, 1.00000513, -9.45776337e-005, -1, -9.64058017e-007, -4.16016046e-005)) | |
582 | mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(0.646000028, 0.638000011, 1.35599995)) | |
583 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
584 | Partweld = weld(m, HandleA, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.704681396, 0.600074768, 0.399703979, 1.07932492e-005, 1.00000513, 0.000307390932, -1, 1.07918013e-005, 4.67938798e-006, 4.67607651e-006, -0.000307390757, 1.00000513)) | |
585 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) | |
586 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Institutional white", "Part", Vector3.new(0.620000005, 0.200000003, 0.819999993)) | |
587 | Partweld = weld(m, HandleA, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-3.05175781e-005, 0.92485714, 0.000484466553, 1, 3.87098353e-009, 7.2322619e-009, -3.79667275e-009, 1.00000513, -5.19547029e-007, -7.20235427e-009, 5.19794412e-007, 1.00000513)) | |
588 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) | |
589 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Really black", "Part", Vector3.new(0.810000002, 0.399999917, 0.210000008)) | |
590 | Partweld = weld(m, HandleA, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0950546265, -0.00472640991, 0.404769897, 1, -4.16721185e-010, -1.16062449e-009, 4.84667861e-010, 1.00000513, 0.000259734254, 1.19053056e-009, -0.000259734021, 1.00000513)) | |
591 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.400000006)) | |
592 | Partweld = weld(m, HandleA, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.214511871, 0.602371216, -0.525278091, 6.89506674e-009, 0.707192183, -0.707028747, -1, -4.38913787e-007, -4.48729907e-007, -6.27587383e-007, 0.707028747, 0.707192183)) | |
593 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) | |
594 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.400000006)) | |
595 | Partweld = weld(m, HandleA, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.215366364, 0.602371216, -0.0753059387, 2.71407362e-006, 0.706899583, 0.707335591, -1, 2.16833246e-006, 1.66987672e-006, -3.53366175e-007, -0.707335591, 0.706899583)) | |
596 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) | |
597 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.620000005)) | |
598 | Partweld = weld(m, HandleA, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.409934998, -0.704768658, -0.000305175781, 1, -3.60254271e-010, -1.12575438e-009, 4.28148017e-010, 1.00000513, 0.000221444701, 1.15569176e-009, -0.000221444468, 1.00000513)) | |
599 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
600 | Partweld = weld(m, HandleA, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0953993797, 0.600135803, 0.399356842, 1.07937676e-005, 1.00000513, 0.000307317649, -1, 1.0792317e-005, 4.68049075e-006, 4.67718064e-006, -0.000307317474, 1.00000513)) | |
601 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) | |
602 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
603 | Partweld = weld(m, HandleA, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0950679779, 0.600120544, -0.400672913, 1.07931874e-005, 1.00000513, 0.000307162001, -1, 1.07917376e-005, 4.68020016e-006, 4.67689188e-006, -0.000307161827, 1.00000513)) | |
604 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) | |
605 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.399999917, 0.620000005)) | |
606 | Partweld = weld(m, HandleA, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.409927368, -0.00472259521, -0.000297546387, 1, -3.09861775e-010, -1.16061794e-009, 3.77793824e-010, 1.00000513, 0.00024700354, 1.19055654e-009, -0.000247003307, 1.00000513)) | |
607 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Really black", "Part", Vector3.new(0.810000002, 0.399999917, 0.210000008)) | |
608 | Partweld = weld(m, HandleA, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0950546265, 0.00469684601, 0.405296326, 1, -3.89069055e-010, -1.42533318e-009, -4.57056809e-010, -1.00000513, -0.000240535184, -1.45525392e-009, 0.000240534951, -1.00000513)) | |
609 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.400000036)) | |
610 | Partweld = weld(m, HandleA, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.214559555, 0.602371216, 0.0747890472, 6.91723301e-009, 0.707163751, -0.707071483, -1, -4.3898072e-007, -4.48717827e-007, -6.27488987e-007, 0.707071483, 0.707163751)) | |
611 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) | |
612 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.620000005)) | |
613 | Partweld = weld(m, HandleA, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.602371216, -0.215126038, 0.214544296, 1, -2.6962903e-008, 2.48683811e-008, 1.60773062e-009, 0.706893623, 0.707334518, -3.67035575e-008, -0.707334518, 0.706893623)) | |
614 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Institutional white", "Part", Vector3.new(0.600000024, 0.200000003, 1)) | |
615 | Partweld = weld(m, HandleA, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.695029736, 0.600158691, -0.000602722168, 1.07924507e-005, 1.00000513, 0.000307222479, -1, 1.07909991e-005, 4.68184771e-006, 4.67853852e-006, -0.000307222246, 1.00000513)) | |
616 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) | |
617 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.400000036)) | |
618 | Partweld = weld(m, HandleA, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.215208054, 0.602371216, 0.524686813, 2.71457156e-006, 0.706890941, 0.707335711, -0.999997497, 2.1679848e-006, 1.67096596e-006, -3.5231912e-007, -0.707337737, 0.706888914)) | |
619 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) | |
620 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.399999917, 0.210000008)) | |
621 | Partweld = weld(m, HandleA, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.409942627, 0.00470399857, 0.405349731, 1, -3.90714155e-010, -1.42410639e-009, -4.58702243e-010, -1.00000513, -0.000240880356, -1.45402668e-009, 0.000240880123, -1.00000513)) | |
622 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Really black", "Part", Vector3.new(1.01999998, 0.610000014, 1.01999998)) | |
623 | Partweld = weld(m, HandleA, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.57763672e-005, 0.699993134, -8.39233398e-005, 1, 2.65332929e-011, 1.19964039e-011, 4.16229898e-011, 1.00000513, 3.18541424e-008, 1.80098159e-011, -3.16213118e-008, 1.00000513)) | |
624 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.600000024, 0.200000003)) | |
625 | Partweld = weld(m, HandleA, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.400688171, 0.694943428, 0.600135803, -4.16014518e-005, 9.45778302e-005, 1.00000513, -9.60050784e-007, 1.00000513, -9.45776337e-005, -1, -9.64058017e-007, -4.16016046e-005)) | |
626 | mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(0.19600004, 0.219999999, 1.35599995)) | |
627 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Really black", "Part", Vector3.new(1.01999998, 0.200000003, 0.819999993)) | |
628 | Partweld = weld(m, HandleA, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.57763672e-005, 0.914970875, 0.000156402588, 1, 3.83146959e-010, 1.04947406e-009, -3.0014724e-010, 1.00000513, -6.28933776e-008, -1.0198371e-009, 6.3162588e-008, 1.00000513)) | |
629 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) | |
630 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.620000005)) | |
631 | Partweld = weld(m, HandleA, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.602371216, -0.214633942, -0.215305328, 1, -2.69070721e-008, 2.46837875e-008, 3.65531747e-008, 0.707143307, -0.707091987, 1.77105497e-009, 0.707091987, 0.707143307)) | |
632 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Institutional white", "Part", Vector3.new(0.600000024, 0.200000003, 0.200000003)) | |
633 | Partweld = weld(m, HandleA, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.694721222, 0.600151062, -0.400558472, 1.0792096e-005, 1.00000513, 0.000307252514, -1, 1.07906444e-005, 4.68267717e-006, 4.67936752e-006, -0.00030725234, 1.00000513)) | |
634 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) | |
635 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Really black", "Part", Vector3.new(0.810000002, 0.200000003, 0.210000008)) | |
636 | Partweld = weld(m, HandleA, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0950546265, -0.704750061, 0.404693604, 1, -5.70188841e-010, -1.14858878e-009, 6.38102626e-010, 1.00000513, 0.000234975247, 1.1784711e-009, -0.000234975014, 1.00000513)) | |
637 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Institutional white", "Part", Vector3.new(0.600000024, 0.200000003, 0.200000003)) | |
638 | Partweld = weld(m, HandleA, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.695051193, 0.600151062, 0.399570465, 1.07923161e-005, 1.00000513, 0.000307249313, -1, 1.07908654e-005, 4.68239432e-006, 4.67908512e-006, -0.000307249138, 1.00000513)) | |
639 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) | |
640 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.210000008)) | |
641 | Partweld = weld(m, HandleA, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.409950256, 0.704789639, 0.405284882, 1, -5.29048194e-010, -1.16270571e-009, -5.96991845e-010, -1.00000513, -0.000257128122, -1.19258425e-009, 0.000257127889, -1.00000513)) | |
642 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Really black", "Part", Vector3.new(0.810000002, 0.200000003, 0.210000008)) | |
643 | Partweld = weld(m, HandleA, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0950469971, 0.70477581, 0.405281067, 1, -4.60379734e-010, -1.16449506e-009, -5.28324051e-010, -1.00000513, -0.000256976229, -1.19439125e-009, 0.000256975996, -1.00000513)) | |
644 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.99999994, 1.01999998)) | |
645 | Partweld = weld(m, HandleA, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.60005188, -0.304827213, -0.000297546387, 1, -6.62538246e-010, -1.16981935e-009, 7.30470628e-010, 1.00000513, 0.000246760814, 1.19967103e-009, -0.000246760581, 1.00000513)) | |
646 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Really black", "Part", Vector3.new(1.01999998, 0.200000003, 1.01999998)) | |
647 | Partweld = weld(m, HandleA, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-5.34057617e-005, 0.294992924, -0.000293731689, 1, -1.10349042e-010, -4.6138493e-010, 1.77988208e-010, 1.00000513, 7.43748387e-008, 4.9142046e-010, -7.41420081e-008, 1.00000513)) | |
648 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.600000024, 0.200000003)) | |
649 | Partweld = weld(m, HandleA, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.39931488, 0.694943428, 0.600097656, -4.16014518e-005, 9.45778302e-005, 1.00000513, -9.60050784e-007, 1.00000513, -9.45776337e-005, -1, -9.64058017e-007, -4.16016046e-005)) | |
650 | mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(0.202000037, 0.219999999, 1.35599995)) | |
651 | FHandleA1 = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Really black", "FHandleA1", Vector3.new(0.200000003, 0.400000006, 0.200000003)) | |
652 | FHandleA1weld = weld(m, FConnectorA1, FHandleA1, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-2.28881836e-005, -0.0899443626, 0.000160217285, 1, 9.47310674e-010, -1.83126758e-009, -9.44816669e-010, 1, 1.51900167e-007, 1.83138127e-009, -1.51900167e-007, 1)) | |
653 | FHandleA2 = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Really black", "FHandleA2", Vector3.new(0.200000003, 0.400000006, 0.200000003)) | |
654 | FHandleA2weld = weld(m, FConnectorA2, FHandleA2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -0.0899934769, 0, 1, -2.30699793e-010, 1.00612851e-010, 2.9406716e-010, 1.00000572, 1.59925548e-008, -1.28238753e-010, -2.03581294e-008, 1.00000572)) | |
655 | FHandleA3 = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Really black", "FHandleA3", Vector3.new(0.200000003, 0.400000006, 0.200000003)) | |
656 | FHandleA3weld = weld(m, FConnectorA3, FHandleA3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -0.090004921, 3.81469727e-006, 1, 4.48693027e-010, -1.09935172e-010, -4.47141213e-010, 1, -2.09038262e-008, 1.10048859e-010, 2.09038262e-008, 1)) | |
657 | FHandleA4 = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Really black", "FHandleA4", Vector3.new(0.200000003, 0.400000006, 0.200000003)) | |
658 | FHandleA4weld = weld(m, FConnectorA4, FHandleA4, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-7.62939453e-006, -0.0900015831, 2.67028809e-005, 1, 8.51593795e-010, -8.99262886e-011, -8.46407722e-010, 1, -2.47964635e-008, 9.02673492e-011, 2.47964635e-008, 1)) | |
659 | FHandleA5 = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Really black", "FHandleA5", Vector3.new(0.200000003, 0.400000006, 0.200000003)) | |
660 | FHandleA5weld = weld(m, FConnectorA5, FHandleA5, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -0.0900025368, 7.2479248e-005, 1, 1.59918379e-009, 4.29054126e-010, -1.58659819e-009, 1, -1.01346814e-007, -4.28713065e-010, 1.01324986e-007, 1)) | |
661 | ||
662 | HandleB = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 1, "Really black", "HandleB", Vector3.new(1.01999998, 0.410000026, 1.01999998)) | |
663 | HandleBweld = weld(m, Character["Left Arm"], HandleB, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-5.34057617e-005, 0.00579214096, -0.000717163086, -0.99999702, 1.30612687e-009, 2.74129752e-006, 1.1281549e-009, 1.00000882, -9.4532792e-005, -2.29434954e-006, -9.45326028e-005, -1.00000536)) | |
664 | FConnectorB1 = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 1, "Really black", "FConnectorB1", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
665 | FConnectorB1weld = weld(m, HandleB, FConnectorB1, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.410011292, -1.09512377, -0.40996933, -0.999990344, 9.75173589e-006, -4.76017885e-006, -9.75114472e-006, -1.00001204, 2.27628334e-007, -4.34698632e-006, 2.29010766e-007, 1.00000203)) | |
666 | FConnectorB2 = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 1, "Really black", "FConnectorB2", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
667 | FConnectorB2weld = weld(m, HandleB, FConnectorB2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.410003662, -1.09513116, -0.129657745, -0.999986649, 9.75185594e-006, -5.20708772e-006, -9.75106377e-006, -1.00000668, 5.36027073e-007, -3.48685307e-006, 5.38973836e-007, 0.999993324)) | |
668 | FConnectorB3 = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 1, "Really black", "FConnectorB3", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
669 | FConnectorB3weld = weld(m, HandleB, FConnectorB3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.409965515, -1.08497524, 0.140300751, -0.999993324, 9.75177409e-006, -3.97838994e-006, -9.75137755e-006, -1.00000334, 5.61856723e-007, -3.11826261e-006, 5.63341018e-007, 0.999996662)) | |
670 | FConnectorB4 = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 1, "Really black", "FConnectorB4", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
671 | FConnectorB4weld = weld(m, HandleB, FConnectorB4, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.409957886, -1.08498001, 0.410175323, -0.999991894, 9.75470903e-006, -3.12404359e-006, -9.75422699e-006, -1.00000405, 5.46198862e-007, -2.07960943e-006, 5.47988748e-007, 0.999995947)) | |
672 | FConnectorB5 = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 1, "Really black", "FConnectorB5", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
673 | FConnectorB5weld = weld(m, HandleB, FConnectorB5, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.409980774, -1.09494543, -0.409542084, -0.999974728, 9.75853163e-006, -6.0076236e-006, -9.75704006e-006, -1.00001264, 6.99823431e-007, -2.75148182e-006, 7.05331331e-007, 0.999987364)) | |
674 | HitboxB = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 1, "Institutional white", "HitboxB", Vector3.new(1.22000003, 1.00999999, 1.01999998)) | |
675 | HitboxBweld = weld(m, HandleB, HitboxB, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.100006104, 0.889988422, -8.01086426e-005, 0.999965847, -7.24100557e-010, 3.32365107e-006, -7.63507535e-010, 1.00002456, 3.05735739e-008, 3.58721138e-007, -2.40979716e-008, 0.999989808)) | |
676 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.210000008)) | |
677 | Partweld = weld(m, HandleB, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.410049438, 0.714781284, 0.405288696, 0.999982476, 1.32186387e-010, 7.77321588e-007, 5.98021299e-010, -1.00001609, -0.000257281994, -1.25018551e-006, 0.00025728374, -0.99999851)) | |
678 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Really black", "Part", Vector3.new(1.01999998, 0.200000003, 1.01999998)) | |
679 | Partweld = weld(m, HandleB, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.28881836e-005, 0.285013676, -0.000282287598, 0.999967337, -1.5549535e-009, 5.20209369e-006, 1.61488642e-010, 1.00001812, 7.64994184e-008, -1.3707679e-006, -6.97400537e-008, 0.999985218)) | |
680 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.399999917, 0.620000005)) | |
681 | Partweld = weld(m, HandleB, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.409980774, -0.0147089958, -0.000305175781, 0.999965847, -2.17003437e-009, 4.9788764e-006, 3.62124303e-010, 1.00002444, 0.000246998534, -1.29649527e-006, -0.000247000571, 0.999989808)) | |
682 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.620000005)) | |
683 | Partweld = weld(m, HandleB, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.410041809, -0.714772701, -0.000305175781, 0.999984264, 5.30370525e-010, 7.77336254e-007, -9.50127754e-010, 1.00000787, 0.00022139927, 1.25007e-006, -0.000221399358, 0.999992192)) | |
684 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.399999917, 0.210000008)) | |
685 | Partweld = weld(m, HandleB, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.410003662, 0.0146970749, 0.40537262, 0.999965847, -2.17019336e-009, 4.97882229e-006, -3.70234204e-010, -1.00002444, -0.000240876077, 1.29644116e-006, 0.00024087794, -0.999989808)) | |
686 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Really black", "Part", Vector3.new(1.01999998, 0.200000003, 0.819999993)) | |
687 | Partweld = weld(m, HandleB, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.05175781e-005, 0.904989719, 0.000244140625, 0.999978065, -7.79672504e-009, 3.02157605e-006, 6.82267665e-009, 1.00001097, -1.16917363e-007, -1.95484972e-007, 1.21617632e-007, 0.999989033)) | |
688 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) | |
689 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Institutional white", "Part", Vector3.new(0.620000005, 0.200000003, 0.819999993)) | |
690 | Partweld = weld(m, HandleB, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(4.57763672e-005, 0.914862633, 0.000553131104, 0.999978065, -2.87229418e-009, 2.06913091e-006, 1.8980213e-009, 1.00001097, -5.95959136e-007, 7.56950044e-007, 6.00666681e-007, 0.999989033)) | |
691 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) | |
692 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Institutional white", "Part", Vector3.new(0.600000024, 0.200000003, 1)) | |
693 | Partweld = weld(m, HandleB, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.685016155, 0.60004425, -0.000576019287, 1.07880278e-005, 1.0000155, 0.000307261536, -0.999969006, 1.0787875e-005, 2.61563605e-006, 6.60559135e-006, -0.000307264534, 0.999984682)) | |
694 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) | |
695 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Institutional white", "Part", Vector3.new(0.600000024, 0.200000003, 0.200000003)) | |
696 | Partweld = weld(m, HandleB, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.684755325, 0.600059509, -0.400756836, 1.0788599e-005, 1.00000787, 0.000307488954, -0.999984264, 1.07877813e-005, 3.72219597e-006, 5.74624983e-006, -0.000307490496, 0.999992192)) | |
697 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) | |
698 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Institutional white", "Part", Vector3.new(0.600000024, 0.200000003, 0.200000003)) | |
699 | Partweld = weld(m, HandleB, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.685072899, 0.600067139, 0.399261475, 1.07872711e-005, 1.0000155, 0.00030746602, -0.999969006, 1.07870783e-005, 2.73933233e-006, 6.729284e-006, -0.000307469018, 0.999984682)) | |
700 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) | |
701 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.600000024, 0.200000003)) | |
702 | Partweld = weld(m, HandleB, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.399326324, 0.684971809, 0.599990845, -4.03382401e-005, 9.44945641e-005, 0.999991834, -9.62037007e-007, 1.00000787, -9.44897838e-005, -0.999983966, -9.65175104e-007, -4.23658821e-005)) | |
703 | mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(0.202000037, 0.219999999, 1.35599995)) | |
704 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Really black", "Part", Vector3.new(0.810000002, 0.200000003, 0.210000008)) | |
705 | Partweld = weld(m, HandleB, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0949478149, -0.714713573, 0.404712677, 0.999982774, 2.57471877e-010, 7.7719352e-007, -7.87075238e-010, 1.00001347, 0.000235129759, 1.25028396e-006, -0.000235130938, 0.999996126)) | |
706 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Really black", "Part", Vector3.new(0.810000002, 0.399999917, 0.210000008)) | |
707 | Partweld = weld(m, HandleB, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0949478149, -0.0146975517, 0.4047966, 0.999982774, 6.53486099e-010, 7.77193463e-007, -1.11419485e-009, 1.00001299, 0.000259818073, 1.25028328e-006, -0.000259819906, 0.99999553)) | |
708 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.600000024, 0.200000003)) | |
709 | Partweld = weld(m, HandleB, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.400676727, 0.684971809, 0.600036621, -4.03382401e-005, 9.44945641e-005, 0.999991834, -9.62037007e-007, 1.00000787, -9.44897838e-005, -0.999983966, -9.65175104e-007, -4.23658821e-005)) | |
710 | mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(0.19600004, 0.219999999, 1.35599995)) | |
711 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.600000024, 0.200000003)) | |
712 | Partweld = weld(m, HandleB, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000675201416, 0.684971809, 0.600013733, -4.03382401e-005, 9.44945641e-005, 0.999991834, -9.62037007e-007, 1.00000787, -9.44897838e-005, -0.999983966, -9.65175104e-007, -4.23658821e-005)) | |
713 | mesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(0.646000028, 0.638000011, 1.35599995)) | |
714 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
715 | Partweld = weld(m, HandleB, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.714962482, 0.599998474, -0.400279999, 1.07917776e-005, 1.00000787, 0.000307536626, -0.999984264, 1.07909609e-005, 3.72180239e-006, 5.74585465e-006, -0.000307538168, 0.999992192)) | |
716 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) | |
717 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
718 | Partweld = weld(m, HandleB, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0853996277, 0.600074768, 0.399375916, 1.07918922e-005, 1.00001574, 0.000307276874, -0.999968529, 1.07916239e-005, 3.00816009e-006, 7.05953335e-006, -0.000307279872, 0.999984324)) | |
719 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) | |
720 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.620000005)) | |
721 | Partweld = weld(m, HandleB, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.602294922, -0.221727371, -0.222377777, 0.999968529, -2.77844325e-008, 1.5804543e-006, -1.73086164e-006, 0.707148612, -0.707064986, 1.76833453e-006, 0.707087159, 0.707126319)) | |
722 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
723 | Partweld = weld(m, HandleB, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0850524902, 0.600036621, -0.400672913, 1.07914002e-005, 1.00001574, 0.0003071838, -0.999968529, 1.07914666e-005, 1.92046173e-006, 5.97185317e-006, -0.000307186769, 0.999984324)) | |
724 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) | |
725 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.400000006)) | |
726 | Partweld = weld(m, HandleB, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.221570969, 0.602279663, -0.532333374, -9.16450119e-007, 0.707201421, -0.707024872, -0.99998188, -4.39811004e-007, -1.23922871e-006, 3.05380581e-007, 0.707037866, 0.707188487)) | |
727 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) | |
728 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.400000036)) | |
729 | Partweld = weld(m, HandleB, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.221664429, 0.602294922, 0.0677280426, -5.32410468e-007, 0.707169592, -0.707043946, -0.999968529, 4.26314045e-007, -2.87682087e-006, 1.1334331e-006, 0.707066119, 0.707147479)) | |
730 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) | |
731 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.620000005)) | |
732 | Partweld = weld(m, HandleB, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.602279663, -0.222204208, 0.221616745, 0.999968529, -2.7891728e-008, 1.5804543e-006, 1.76886238e-006, 0.706902444, 0.707310975, 1.7303239e-006, -0.707333207, 0.706880331)) | |
733 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
734 | Partweld = weld(m, HandleB, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.71464777, 0.599990845, 0.399719238, 1.07905635e-005, 1.00000787, 0.000307468435, -0.999984264, 1.07897467e-005, 3.7218565e-006, 5.74590968e-006, -0.000307469978, 0.999992192)) | |
735 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) | |
736 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.400000036)) | |
737 | Partweld = weld(m, HandleB, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.222238541, 0.602272034, 0.531747818, 3.61345883e-006, 0.706890404, 0.707323194, -0.999984264, 2.18690184e-006, 8.96424808e-007, 5.20473066e-007, -0.70733428, 0.706879318)) | |
738 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) | |
739 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.400000006)) | |
740 | Partweld = weld(m, HandleB, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.222442627, 0.602287292, -0.0682048798, 2.74106606e-006, 0.706903875, 0.707309544, -0.999968529, 1.72691671e-006, -1.90388391e-006, 3.00002284e-007, -0.707331777, 0.706881762)) | |
741 | mesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) | |
742 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Really black", "Part", Vector3.new(0.810000002, 0.399999917, 0.210000008)) | |
743 | Partweld = weld(m, HandleB, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0949707031, 0.014693737, 0.405315399, 0.999965847, -2.00778438e-009, 5.06809101e-006, -1.86809165e-010, -1.00002444, -0.000240532332, 1.38570761e-006, 0.000240534195, -0.999989808)) | |
744 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.99999994, 1.01999998)) | |
745 | Partweld = weld(m, HandleB, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.599967957, -0.314879894, -0.000305175781, 0.999968529, -1.52550794e-009, 3.47273135e-006, 2.76023454e-010, 1.00001574, 0.000246752985, 5.82059499e-007, -0.000246754033, 0.999984324)) | |
746 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Really black", "Part", Vector3.new(0.810000002, 0.200000003, 0.210000008)) | |
747 | Partweld = weld(m, HandleB, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0949478149, 0.71477747, 0.405269623, 0.999983668, 2.62990379e-010, 7.77281798e-007, 6.87050083e-010, -1.00001037, -0.00025712885, -1.25016015e-006, 0.000257130014, -0.99999398)) | |
748 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Really black", "Part", Vector3.new(1.01999998, 0.610000014, 1.01999998)) | |
749 | Partweld = weld(m, HandleB, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(4.57763672e-005, 0.690003395, 0, 0.999978065, -3.37791017e-009, 2.19185767e-006, 2.40435716e-009, 1.00001097, 5.20303729e-008, 6.34224364e-007, -4.73301043e-008, 0.999989033)) | |
750 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.200000003, 0.210000008)) | |
751 | Partweld = weld(m, HandleB, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.410049438, -0.714709282, 0.404720306, 0.999984264, 2.45380903e-011, 7.7730283e-007, -4.26871205e-010, 1.00000787, 0.000235340878, 1.25010342e-006, -0.000235341198, 0.999992192)) | |
752 | Part = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Institutional white", "Part", Vector3.new(0.200000003, 0.399999917, 0.210000008)) | |
753 | Partweld = weld(m, HandleB, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.410041809, -0.0147390366, 0.404838562, 0.999983072, 5.45701151e-010, 7.77317439e-007, -1.05576647e-009, 1.0000155, 0.000272982696, 1.25019938e-006, -0.000272984529, 0.999998391)) | |
754 | FHandleB1 = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Really black", "FHandleB1", Vector3.new(0.200000003, 0.400000006, 0.200000003)) | |
755 | FHandleB1weld = weld(m, FConnectorB1, FHandleB1, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-3.05175781e-005, -0.100004435, 3.81469727e-006, 0.999987125, 9.48046641e-010, -8.29304327e-007, -1.90026062e-009, 1.00000644, -2.25118129e-008, -8.29517148e-007, 1.97178451e-008, 0.999993563)) | |
756 | FHandleB2 = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Really black", "FHandleB2", Vector3.new(0.200000003, 0.400000006, 0.200000003)) | |
757 | FHandleB2weld = weld(m, FConnectorB2, FHandleB2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -0.0999953747, -1.90734863e-005, 0.999986887, 1.7767473e-009, -8.2923782e-007, -2.74682477e-009, 1.00000656, -3.37167876e-008, -8.60301839e-007, 3.08791641e-008, 0.999993443)) | |
758 | FHandleB3 = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Really black", "FHandleB3", Vector3.new(0.200000003, 0.400000006, 0.200000003)) | |
759 | FHandleB3weld = weld(m, FConnectorB3, FHandleB3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.52587891e-005, -0.110008478, -6.48498535e-005, 0.999993801, 1.65772562e-009, -1.46104639e-007, -2.11578732e-009, 1.0000031, -3.14466888e-008, -6.52590643e-007, 3.01006366e-008, 0.999996901)) | |
760 | FHandleB4 = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Really black", "FHandleB4", Vector3.new(0.200000003, 0.400000006, 0.200000003)) | |
761 | FHandleB4weld = weld(m, FConnectorB4, FHandleB4, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-3.05175781e-005, -0.110030413, -4.57763672e-005, 0.999992371, -3.29658301e-010, -1.30871194e-006, -2.33423003e-010, 1.00000381, -5.04951458e-009, 3.25705969e-007, 3.39059625e-009, 0.999996185)) | |
762 | FHandleB5 = part(Enum.FormFactor.Custom, m, Enum.Material.Marble, 0, 0, "Really black", "FHandleB5", Vector3.new(0.200000003, 0.400000006, 0.200000003)) | |
763 | FHandleB5weld = weld(m, FConnectorB5, FHandleB5, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(7.62939453e-006, -0.0900087357, -0.000114440918, 0.999993801, 3.53735596e-009, -1.22842721e-006, -3.99611277e-009, 1.0000031, -1.37908501e-007, 4.29716692e-007, 1.36555173e-007, 0.999996901)) | |
764 | ||
765 | function atktype(s, e) | |
766 | coroutine.resume(coroutine.create(function() | |
767 | attacktype = e | |
768 | wait(.5) | |
769 | attacktype = s | |
770 | end)) | |
771 | end | |
772 | ||
773 | function attackone() | |
774 | attack = true | |
775 | local con = HitboxA.Touched:connect(function(hit) | |
776 | Damagefunc(HitboxA, hit, 20, 30, math.random(1,5), "Normal", RootPart, .1, "Hit1", 1) | |
777 | end) | |
778 | for i = 0, 1, 0.1 do | |
779 | swait() | |
780 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(2), math.rad(0), math.rad(-70)), .3) | |
781 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(0), math.rad(70)), .3) | |
782 | RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -.5) * angles(math.rad(0), math.rad(150), math.rad(90)), 0.3) | |
783 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5, 0) * angles(math.rad(80), math.rad(0), math.rad(-70)), 0.3) | |
784 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(140), math.rad(-2)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3) | |
785 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-60), math.rad(-2)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3) | |
786 | FHandleA1weld.C0 = clerp(FHandleA1weld.C0, cf(0, -.05, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
787 | FHandleA2weld.C0 = clerp(FHandleA2weld.C0, cf(0, -.06, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
788 | FHandleA3weld.C0 = clerp(FHandleA3weld.C0, cf(0, -.07, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
789 | FHandleA4weld.C0 = clerp(FHandleA4weld.C0, cf(0, -.08, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
790 | FHandleA5weld.C0 = clerp(FHandleA5weld.C0, cf(0, -.09, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), .3) | |
791 | FHandleB1weld.C0 = clerp(FHandleB1weld.C0, cf(0, -.09, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), .3) | |
792 | FHandleB2weld.C0 = clerp(FHandleB2weld.C0, cf(0, -.08, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), .3) | |
793 | FHandleB3weld.C0 = clerp(FHandleB3weld.C0, cf(0, -.07, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), .3) | |
794 | FHandleB4weld.C0 = clerp(FHandleB4weld.C0, cf(0, -.06, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), .3) | |
795 | FHandleB5weld.C0 = clerp(FHandleB5weld.C0, cf(0, -.05, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), .3) | |
796 | end | |
797 | so("Punch1", HitboxA, 1, .8) | |
798 | for i = 0, 1, 0.1 do | |
799 | swait() | |
800 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(2), math.rad(0), math.rad(70)), .5) | |
801 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(0), math.rad(-70)), .5) | |
802 | RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, 0) * angles(math.rad(20), math.rad(20), math.rad(80)), 0.5) | |
803 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5, 0) * angles(math.rad(80), math.rad(0), math.rad(30)), 0.5) | |
804 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(60), math.rad(-2)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3) | |
805 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-140), math.rad(-2)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3) | |
806 | FHandleA1weld.C0 = clerp(FHandleA1weld.C0, cf(0, -.05, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
807 | FHandleA2weld.C0 = clerp(FHandleA2weld.C0, cf(0, -.06, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
808 | FHandleA3weld.C0 = clerp(FHandleA3weld.C0, cf(0, -.07, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
809 | FHandleA4weld.C0 = clerp(FHandleA4weld.C0, cf(0, -.08, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
810 | FHandleA5weld.C0 = clerp(FHandleA5weld.C0, cf(0, -.09, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), .3) | |
811 | FHandleB1weld.C0 = clerp(FHandleB1weld.C0, cf(0, -.09, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
812 | FHandleB2weld.C0 = clerp(FHandleB2weld.C0, cf(0, -.08, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
813 | FHandleB3weld.C0 = clerp(FHandleB3weld.C0, cf(0, -.07, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
814 | FHandleB4weld.C0 = clerp(FHandleB4weld.C0, cf(0, -.06, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
815 | FHandleB5weld.C0 = clerp(FHandleB5weld.C0, cf(0, -.05, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), .3) | |
816 | end | |
817 | attack = false | |
818 | con:disconnect() | |
819 | atktype(1, 2) | |
820 | end | |
821 | ||
822 | function attacktwo() | |
823 | attack = true | |
824 | local con = HitboxB.Touched:connect(function(hit) | |
825 | Damagefunc(HitboxB, hit, 20, 30, math.random(1,5), "Normal", RootPart, .1, "Hit2", 1) | |
826 | end) | |
827 | so("Punch2", HitboxB, 1, .9) | |
828 | for i = 0, 1, 0.1 do | |
829 | swait() | |
830 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(2), math.rad(0), math.rad(-70)), .5) | |
831 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(70)), .5) | |
832 | RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-20)), 0.5) | |
833 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.5) * angles(math.rad(90), math.rad(0), math.rad(30 * i)), 0.5) | |
834 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(140), math.rad(-2)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3) | |
835 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-60), math.rad(-2)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3) | |
836 | FHandleA1weld.C0 = clerp(FHandleA1weld.C0, cf(0, -.05, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
837 | FHandleA2weld.C0 = clerp(FHandleA2weld.C0, cf(0, -.06, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
838 | FHandleA3weld.C0 = clerp(FHandleA3weld.C0, cf(0, -.07, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
839 | FHandleA4weld.C0 = clerp(FHandleA4weld.C0, cf(0, -.08, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
840 | FHandleA5weld.C0 = clerp(FHandleA5weld.C0, cf(0, -.09, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), .3) | |
841 | FHandleB1weld.C0 = clerp(FHandleB1weld.C0, cf(0, -.09, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
842 | FHandleB2weld.C0 = clerp(FHandleB2weld.C0, cf(0, -.08, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
843 | FHandleB3weld.C0 = clerp(FHandleB3weld.C0, cf(0, -.07, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
844 | FHandleB4weld.C0 = clerp(FHandleB4weld.C0, cf(0, -.06, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
845 | FHandleB5weld.C0 = clerp(FHandleB5weld.C0, cf(0, -.05, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), .3) | |
846 | end | |
847 | attack = false | |
848 | con:disconnect() | |
849 | atktype(1, 3) | |
850 | end | |
851 | ||
852 | function attackthree() | |
853 | attack = true | |
854 | local con = RightLeg.Touched:connect(function(hit) | |
855 | Damagefunc(HitboxA, hit, 20, 30, math.random(1,5), "Normal", RootPart, .1, "Hit3", 1) | |
856 | end) | |
857 | Humanoid.WalkSpeed = 0 | |
858 | Torso.Velocity = Head.CFrame.lookVector * 75 | |
859 | so("Punch3", HitboxB, 1, .9) | |
860 | for i = 0, 1, 0.1 do | |
861 | swait() | |
862 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), .5) | |
863 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(0)), .5) | |
864 | RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(30)), 0.5) | |
865 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.5) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.5) | |
866 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(130)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3) | |
867 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(20)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3) | |
868 | FHandleA1weld.C0 = clerp(FHandleA1weld.C0, cf(0, -.05, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
869 | FHandleA2weld.C0 = clerp(FHandleA2weld.C0, cf(0, -.06, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
870 | FHandleA3weld.C0 = clerp(FHandleA3weld.C0, cf(0, -.07, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
871 | FHandleA4weld.C0 = clerp(FHandleA4weld.C0, cf(0, -.08, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
872 | FHandleA5weld.C0 = clerp(FHandleA5weld.C0, cf(0, -.09, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), .3) | |
873 | FHandleB1weld.C0 = clerp(FHandleB1weld.C0, cf(0, -.09, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
874 | FHandleB2weld.C0 = clerp(FHandleB2weld.C0, cf(0, -.08, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
875 | FHandleB3weld.C0 = clerp(FHandleB3weld.C0, cf(0, -.07, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
876 | FHandleB4weld.C0 = clerp(FHandleB4weld.C0, cf(0, -.06, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
877 | FHandleB5weld.C0 = clerp(FHandleB5weld.C0, cf(0, -.05, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), .3) | |
878 | end | |
879 | attack = false | |
880 | Humanoid.WalkSpeed = 16 | |
881 | con:disconnect() | |
882 | atktype(1, 1) | |
883 | end | |
884 | ||
885 | function BlastEffect(brickcolor, cframe, x1, y1, z1, x2, y2, z2) | |
886 | local prt = part(3, workspace, "Marble", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
887 | prt.Anchored = true | |
888 | prt.CFrame = cframe | |
889 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1)) | |
890 | coroutine.resume(coroutine.create(function() | |
891 | for i = 0, 1, 0.05 do | |
892 | wait() | |
893 | prt.Transparency = i | |
894 | msh.Scale = msh.Scale + vt(x2, y2, z2) | |
895 | end | |
896 | prt.Parent = nil | |
897 | end)) | |
898 | end | |
899 | ||
900 | function MagniDamage(Hit, Part, magni, mindam, maxdam, knock, Type) | |
901 | for _, c in pairs(workspace:children()) do | |
902 | local hum = c:findFirstChild("Humanoid") | |
903 | if hum ~= nil then | |
904 | local head = c:findFirstChild("Torso") | |
905 | if head ~= nil then | |
906 | local targ = head.Position - Part.Position | |
907 | local mag = targ.magnitude | |
908 | if mag <= magni and c.Name ~= Player.Name then | |
909 | Damagefunc(Hit, head, mindam, maxdam, knock, Type, RootPart, .2, 1, 3) | |
910 | end | |
911 | end | |
912 | end | |
913 | end | |
914 | end | |
915 | ||
916 | function MagicCircle(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
917 | local prt = part(3, workspace, "Marble", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
918 | prt.Anchored = true | |
919 | prt.CFrame = cframe | |
920 | local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
921 | game:GetService("Debris"):AddItem(prt, 2) | |
922 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
923 | for i = 0, 1, delay do | |
924 | swait() | |
925 | Part.CFrame = Part.CFrame | |
926 | Part.Transparency = i | |
927 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
928 | end | |
929 | Part.Parent = nil | |
930 | end), prt, msh) | |
931 | end | |
932 | ||
933 | function BlastJump() | |
934 | if Anim == "Idle" or Anim == "Walk" then | |
935 | attack = true | |
936 | Humanoid.WalkSpeed = 0 | |
937 | for i = 0, 1, 0.1 do | |
938 | swait() | |
939 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -.5) * angles(math.rad(20), math.rad(0), math.rad(0)), .3) | |
940 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), .3) | |
941 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(20)), 0.3) | |
942 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-20)), 0.3) | |
943 | RH.C0 = clerp(RH.C0, cf(1, -.5, -.5) * angles(math.rad(0), math.rad(90), math.rad(20)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3) | |
944 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(30)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3) | |
945 | FHandleA1weld.C0 = clerp(FHandleA1weld.C0, cf(0, -.05, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), .3) | |
946 | FHandleA2weld.C0 = clerp(FHandleA2weld.C0, cf(0, -.06, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), .3) | |
947 | FHandleA3weld.C0 = clerp(FHandleA3weld.C0, cf(0, -.07, 0) * angles(math.rad(0), math.rad(0), math.rad(40)), .3) | |
948 | FHandleA4weld.C0 = clerp(FHandleA4weld.C0, cf(0, -.08, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), .3) | |
949 | FHandleA5weld.C0 = clerp(FHandleA5weld.C0, cf(0, -.09, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)), .3) | |
950 | FHandleB1weld.C0 = clerp(FHandleB1weld.C0, cf(0, -.09, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), .3) | |
951 | FHandleB2weld.C0 = clerp(FHandleB2weld.C0, cf(0, -.08, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), .3) | |
952 | FHandleB3weld.C0 = clerp(FHandleB3weld.C0, cf(0, -.07, 0) * angles(math.rad(0), math.rad(0), math.rad(40)), .3) | |
953 | FHandleB4weld.C0 = clerp(FHandleB4weld.C0, cf(0, -.06, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), .3) | |
954 | FHandleB5weld.C0 = clerp(FHandleB5weld.C0, cf(0, -.05, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)), .3) | |
955 | end | |
956 | so("Fire", Torso, 1, .8) | |
957 | MagniDamage(HitboxA, HitboxA, 20, 20, 50, 20, "Knockdown") | |
958 | BlastEffect(BrickColor.new("Really black"), Torso.CFrame * angles(.4, 0, 0) * CFrame.new(0, -1, -1), 1, 1, 1, .7, .7, .7) | |
959 | BlastEffect(BrickColor.new("Institutional white"), Torso.CFrame * angles(.4, 0, 0) * CFrame.new(0, -1, -1), .9, .9, .9, .6, .6, .6) | |
960 | MagicCircle(BrickColor.new("Really black"), RightArm.CFrame, 0.5, 0.5, 0.5, 0.7, 0.7, 0.7, 0.05) | |
961 | MagicCircle(BrickColor.new("Institutional white"), RightArm.CFrame, 0.4, 0.4, 0.4, 0.6, 0.6, 0.6, 0.05) | |
962 | MagicCircle(BrickColor.new("Really black"), LeftArm.CFrame, 0.5, 0.5, 0.5, 0.7, 0.7, 0.7, 0.05) | |
963 | MagicCircle(BrickColor.new("Institutional white"), LeftArm.CFrame, 0.4, 0.4, 0.4, 0.6, 0.6, 0.6, 0.05) | |
964 | Humanoid.WalkSpeed = 16 | |
965 | Humanoid.Jump = true | |
966 | Torso.Velocity = vt(0, 200, 0) | |
967 | attack = false | |
968 | end | |
969 | end | |
970 | ||
971 | function DoubleJump() | |
972 | attack = true | |
973 | so("Fire", Torso, 1, .8) | |
974 | BlastEffect(BrickColor.new("Really black"), Torso.CFrame * angles(.4, 0, 0) * CFrame.new(0, -1, -1), 1, 1, 1, .7, .7, .7) | |
975 | BlastEffect(BrickColor.new("Institutional white"), Torso.CFrame * angles(.4, 0, 0) * CFrame.new(0, -1, -1), .9, .9, .9, .6, .6, .6) | |
976 | Humanoid.WalkSpeed = 16 | |
977 | Humanoid.Jump = true | |
978 | Torso.Velocity = vt(0, 200, 0) | |
979 | for i = 0, 1, 0.05 do | |
980 | swait() | |
981 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(6*i, math.rad(0), math.rad(0)), .3) | |
982 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), .3) | |
983 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(0)), 0.3) | |
984 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(0)), 0.3) | |
985 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3) | |
986 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3) | |
987 | FHandleA1weld.C0 = clerp(FHandleA1weld.C0, cf(0, -.05, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), .3) | |
988 | FHandleA2weld.C0 = clerp(FHandleA2weld.C0, cf(0, -.06, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), .3) | |
989 | FHandleA3weld.C0 = clerp(FHandleA3weld.C0, cf(0, -.07, 0) * angles(math.rad(0), math.rad(0), math.rad(40)), .3) | |
990 | FHandleA4weld.C0 = clerp(FHandleA4weld.C0, cf(0, -.08, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), .3) | |
991 | FHandleA5weld.C0 = clerp(FHandleA5weld.C0, cf(0, -.09, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)), .3) | |
992 | FHandleB1weld.C0 = clerp(FHandleB1weld.C0, cf(0, -.09, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), .3) | |
993 | FHandleB2weld.C0 = clerp(FHandleB2weld.C0, cf(0, -.08, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), .3) | |
994 | FHandleB3weld.C0 = clerp(FHandleB3weld.C0, cf(0, -.07, 0) * angles(math.rad(0), math.rad(0), math.rad(40)), .3) | |
995 | FHandleB4weld.C0 = clerp(FHandleB4weld.C0, cf(0, -.06, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), .3) | |
996 | FHandleB5weld.C0 = clerp(FHandleB5weld.C0, cf(0, -.05, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)), .3) | |
997 | end | |
998 | for i = 0, 1, 0.02 do | |
999 | swait() | |
1000 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(50), math.rad(0), math.rad(0)), .3) | |
1001 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), .3) | |
1002 | RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -.5) * angles(math.rad(150), math.rad(0), math.rad(-30)), 0.3) | |
1003 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.5) * angles(math.rad(150), math.rad(0), math.rad(30)), 0.3) | |
1004 | RH.C0 = clerp(RH.C0, cf(1, -1, -.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3) | |
1005 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-30), math.rad(-90), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3) | |
1006 | FHandleA1weld.C0 = clerp(FHandleA1weld.C0, cf(0, -.05, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1007 | FHandleA2weld.C0 = clerp(FHandleA2weld.C0, cf(0, -.06, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1008 | FHandleA3weld.C0 = clerp(FHandleA3weld.C0, cf(0, -.07, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1009 | FHandleA4weld.C0 = clerp(FHandleA4weld.C0, cf(0, -.08, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1010 | FHandleA5weld.C0 = clerp(FHandleA5weld.C0, cf(0, -.09, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), .3) | |
1011 | FHandleB1weld.C0 = clerp(FHandleB1weld.C0, cf(0, -.09, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1012 | FHandleB2weld.C0 = clerp(FHandleB2weld.C0, cf(0, -.08, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1013 | FHandleB3weld.C0 = clerp(FHandleB3weld.C0, cf(0, -.07, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1014 | FHandleB4weld.C0 = clerp(FHandleB4weld.C0, cf(0, -.06, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1015 | FHandleB5weld.C0 = clerp(FHandleB5weld.C0, cf(0, -.05, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), .3) | |
1016 | end | |
1017 | MagniDamage(HitboxA, HitboxA, 20, 20, 50, 20, "Up") | |
1018 | so("Fire", Torso, 1, .5) | |
1019 | local hit,pos=rayCast(Torso.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,100,Character) | |
1020 | if hit~=nil then | |
1021 | local ref=part(3,workspace,"Marble",0,1,BrickColor.new("Really black"),"Effect",vt()) | |
1022 | ref.Anchored=true | |
1023 | ref.CFrame=cf(pos) | |
1024 | game:GetService("Debris"):AddItem(ref,3) | |
1025 | for i=1,10 do | |
1026 | local Col=BrickColor.new("Institutional white") | |
1027 | local groundpart=part(3,Character,"Marble",0,0,Col,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100)) | |
1028 | groundpart.Anchored=true | |
1029 | groundpart.CanCollide=false | |
1030 | groundpart.CFrame=cf(pos)*cf(math.random(-500,500)/100,0,math.random(-500,500)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1031 | local Col2=BrickColor.new("Really black") | |
1032 | local groundpart2=part(3,Character,"Marble",0,0,Col2,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100)) | |
1033 | groundpart2.Anchored=true | |
1034 | groundpart2.CanCollide=false | |
1035 | groundpart2.CFrame=cf(pos)*cf(math.random(-500,500)/100,0,math.random(-500,500)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1036 | game:GetService("Debris"):AddItem(groundpart,5) | |
1037 | game:GetService("Debris"):AddItem(groundpart2,5) | |
1038 | end | |
1039 | BlastEffect(BrickColor.new("Really black"),cf(pos),1,1,1,.7,.7,.7) | |
1040 | BlastEffect(BrickColor.new("Institutional white"),cf(pos),.9,.9,.9,.6,.6,.6) | |
1041 | MagicCircle(BrickColor.new("Institutional white"),cf(pos),3,3,3,5,5,5,0.05) | |
1042 | MagicCircle(BrickColor.new("Really black"),cf(pos),4,4,4,6,6,6,0.05) | |
1043 | MagniDamage(ref,ref,10,10,20,math.random(10,20),"Knockdown") | |
1044 | end | |
1045 | for i = 0, 1, 0.1 do | |
1046 | swait() | |
1047 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -.5) * angles(math.rad(50), math.rad(0), math.rad(0)), .3) | |
1048 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), .3) | |
1049 | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.3, -.7) * angles(math.rad(50), math.rad(0), math.rad(-30)), 0.3) | |
1050 | LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, -.7) * angles(math.rad(50), math.rad(0), math.rad(30)), 0.3) | |
1051 | RH.C0 = clerp(RH.C0, cf(1, -.5, -.5) * angles(math.rad(50), math.rad(90), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3) | |
1052 | LH.C0 = clerp(LH.C0, cf(-1, -1, -.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3) | |
1053 | FHandleA1weld.C0 = clerp(FHandleA1weld.C0, cf(0, -.05, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1054 | FHandleA2weld.C0 = clerp(FHandleA2weld.C0, cf(0, -.06, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1055 | FHandleA3weld.C0 = clerp(FHandleA3weld.C0, cf(0, -.07, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1056 | FHandleA4weld.C0 = clerp(FHandleA4weld.C0, cf(0, -.08, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1057 | FHandleA5weld.C0 = clerp(FHandleA5weld.C0, cf(0, -.09, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), .3) | |
1058 | FHandleB1weld.C0 = clerp(FHandleB1weld.C0, cf(0, -.09, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1059 | FHandleB2weld.C0 = clerp(FHandleB2weld.C0, cf(0, -.08, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1060 | FHandleB3weld.C0 = clerp(FHandleB3weld.C0, cf(0, -.07, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1061 | FHandleB4weld.C0 = clerp(FHandleB4weld.C0, cf(0, -.06, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1062 | FHandleB5weld.C0 = clerp(FHandleB5weld.C0, cf(0, -.05, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), .3) | |
1063 | end | |
1064 | attack = false | |
1065 | end | |
1066 | ||
1067 | function MultiPunch() | |
1068 | attack = true | |
1069 | local con1 = HitboxA.Touched:connect(function(hit) | |
1070 | Damagefunc(HitboxA, hit, 1500, 9999, math.random(1,5), "Normal", RootPart, .1, "Hit1", 1) | |
1071 | end) | |
1072 | local con2 = HitboxB.Touched:connect(function(hit) | |
1073 | Damagefunc(HitboxB, hit, 1500, 9999, math.random(1,5), "Normal", RootPart, .1, "Hit2", 1) | |
1074 | end) | |
1075 | for i = 1,10 do | |
1076 | so("Punch1", HitboxA, 1, .8) | |
1077 | for i = 0, 1, 0.1 do | |
1078 | wait() | |
1079 | Torso.Velocity = Head.CFrame.lookVector * 50 | |
1080 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(2), math.rad(0), math.rad(70)), .5) | |
1081 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(0), math.rad(-70)), .5) | |
1082 | RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, 0) * angles(math.rad(20), math.rad(20), math.rad(80)), 0.5) | |
1083 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5, 0) * angles(math.rad(80), math.rad(0), math.rad(30)), 0.5) | |
1084 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(60), math.rad(-2)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3) | |
1085 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-140), math.rad(-2)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3) | |
1086 | FHandleA1weld.C0 = clerp(FHandleA1weld.C0, cf(0, -.05, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1087 | FHandleA2weld.C0 = clerp(FHandleA2weld.C0, cf(0, -.06, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1088 | FHandleA3weld.C0 = clerp(FHandleA3weld.C0, cf(0, -.07, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1089 | FHandleA4weld.C0 = clerp(FHandleA4weld.C0, cf(0, -.08, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1090 | FHandleA5weld.C0 = clerp(FHandleA5weld.C0, cf(0, -.09, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), .3) | |
1091 | FHandleB1weld.C0 = clerp(FHandleB1weld.C0, cf(0, -.09, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1092 | FHandleB2weld.C0 = clerp(FHandleB2weld.C0, cf(0, -.08, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1093 | FHandleB3weld.C0 = clerp(FHandleB3weld.C0, cf(0, -.07, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1094 | FHandleB4weld.C0 = clerp(FHandleB4weld.C0, cf(0, -.06, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1095 | FHandleB5weld.C0 = clerp(FHandleB5weld.C0, cf(0, -.05, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), .3) | |
1096 | end | |
1097 | so("Punch2", HitboxB, 1, .9) | |
1098 | for i = 0, 1, 0.2 do | |
1099 | wait() | |
1100 | Torso.Velocity = Head.CFrame.lookVector * 10 | |
1101 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(2), math.rad(0), math.rad(-70)), 1) | |
1102 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(0), math.rad(70)), 1) | |
1103 | RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, 0) * angles(math.rad(80), math.rad(0), math.rad(-30)), 1) | |
1104 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5, 0) * angles(math.rad(20), math.rad(-20), math.rad(-80)), 1) | |
1105 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(140), math.rad(-2)) * angles(math.rad(-3), math.rad(0), math.rad(0)), 1) | |
1106 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-60), math.rad(-2)) * angles(math.rad(-3), math.rad(0), math.rad(0)), 1) | |
1107 | FHandleA1weld.C0 = clerp(FHandleA1weld.C0, cf(0, -.05, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 1) | |
1108 | FHandleA2weld.C0 = clerp(FHandleA2weld.C0, cf(0, -.06, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 1) | |
1109 | FHandleA3weld.C0 = clerp(FHandleA3weld.C0, cf(0, -.07, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 1) | |
1110 | FHandleA4weld.C0 = clerp(FHandleA4weld.C0, cf(0, -.08, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 1) | |
1111 | FHandleA5weld.C0 = clerp(FHandleA5weld.C0, cf(0, -.09, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), 1) | |
1112 | FHandleB1weld.C0 = clerp(FHandleB1weld.C0, cf(0, -.09, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 1) | |
1113 | FHandleB2weld.C0 = clerp(FHandleB2weld.C0, cf(0, -.08, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 1) | |
1114 | FHandleB3weld.C0 = clerp(FHandleB3weld.C0, cf(0, -.07, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 1) | |
1115 | FHandleB4weld.C0 = clerp(FHandleB4weld.C0, cf(0, -.06, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 1) | |
1116 | FHandleB5weld.C0 = clerp(FHandleB5weld.C0, cf(0, -.05, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), 1) | |
1117 | end | |
1118 | end | |
1119 | attack = false | |
1120 | con1:disconnect() | |
1121 | con2:disconnect() | |
1122 | end | |
1123 | ||
1124 | local Grabbing = false | |
1125 | ||
1126 | function Grab() | |
1127 | attack = true | |
1128 | so("Punch3",HitboxA,1,0.5) | |
1129 | if Grabbing == false then | |
1130 | gp = nil | |
1131 | con1=HitboxA.Touched:connect(function(hit) -- credits to TheDarkRevenant for the grabbing | |
1132 | local ht = hit.Parent | |
1133 | local hum1=ht:FindFirstChild('Humanoid') | |
1134 | if hum1 ~= nil then | |
1135 | hum1.PlatformStand=true | |
1136 | gp = ht | |
1137 | Grabbing = true | |
1138 | so("Grab", Torso, 1, .8) | |
1139 | local asd=weld(RightArm,RightArm,ht:FindFirstChild("Torso"),CFrame.new(0,-1.7,0),CFrame.new(0,0,0)) | |
1140 | asd.Parent = RightArm | |
1141 | asd.Name = "asd" | |
1142 | asd.C0=asd.C0*CFrame.Angles(math.rad(-90),0,0) | |
1143 | so("http://roblox.com/asset/?id=200632821",Torso,1,.9) | |
1144 | elseif hum1 == nil then | |
1145 | con1:disconnect() | |
1146 | wait() return | |
1147 | end | |
1148 | end) | |
1149 | end | |
1150 | if Grabbing == false then | |
1151 | for i = 0,1,0.05 do | |
1152 | swait() | |
1153 | Torso.Velocity = Head.CFrame.lookVector * 50 | |
1154 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .3) | |
1155 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(0), math.rad(-90)), .3) | |
1156 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3) | |
1157 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-60)), 0.3) | |
1158 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(50), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3) | |
1159 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-50), math.rad(0)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3) | |
1160 | FHandleA1weld.C0 = clerp(FHandleA1weld.C0, cf(0, -.05, 0) * angles(math.rad(0), math.rad(0), math.rad(60)), .3) | |
1161 | FHandleA2weld.C0 = clerp(FHandleA2weld.C0, cf(0, -.06, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), .3) | |
1162 | FHandleA3weld.C0 = clerp(FHandleA3weld.C0, cf(0, -.07, 0) * angles(math.rad(0), math.rad(0), math.rad(40)), .3) | |
1163 | FHandleA4weld.C0 = clerp(FHandleA4weld.C0, cf(0, -.08, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), .3) | |
1164 | FHandleA5weld.C0 = clerp(FHandleA5weld.C0, cf(0, -.09, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3) | |
1165 | FHandleB1weld.C0 = clerp(FHandleB1weld.C0, cf(0, -.09, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1166 | FHandleB2weld.C0 = clerp(FHandleB2weld.C0, cf(0, -.08, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1167 | FHandleB3weld.C0 = clerp(FHandleB3weld.C0, cf(0, -.07, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1168 | FHandleB4weld.C0 = clerp(FHandleB4weld.C0, cf(0, -.06, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1169 | FHandleB5weld.C0 = clerp(FHandleB5weld.C0, cf(0, -.05, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), .3) | |
1170 | end | |
1171 | end | |
1172 | if Grabbing == true then | |
1173 | for i = 0, 1, 0.1 do | |
1174 | swait() | |
1175 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(2), math.rad(0), math.rad(0)), .5) | |
1176 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-10), math.rad(0), math.rad(0)), .5) | |
1177 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.5) * angles(math.rad(130), math.rad(0), math.rad(0)), 0.5) | |
1178 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.5) | |
1179 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(-2)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3) | |
1180 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(-2)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3) | |
1181 | FHandleA1weld.C0 = clerp(FHandleA1weld.C0, cf(0, -.05, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1182 | FHandleA2weld.C0 = clerp(FHandleA2weld.C0, cf(0, -.06, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1183 | FHandleA3weld.C0 = clerp(FHandleA3weld.C0, cf(0, -.07, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1184 | FHandleA4weld.C0 = clerp(FHandleA4weld.C0, cf(0, -.08, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1185 | FHandleA5weld.C0 = clerp(FHandleA5weld.C0, cf(0, -.09, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), .3) | |
1186 | FHandleB1weld.C0 = clerp(FHandleB1weld.C0, cf(0, -.09, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1187 | FHandleB2weld.C0 = clerp(FHandleB2weld.C0, cf(0, -.08, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1188 | FHandleB3weld.C0 = clerp(FHandleB3weld.C0, cf(0, -.07, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1189 | FHandleB4weld.C0 = clerp(FHandleB4weld.C0, cf(0, -.06, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1190 | FHandleB5weld.C0 = clerp(FHandleB5weld.C0, cf(0, -.05, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), .3) | |
1191 | end | |
1192 | so("Fire",Torso,1,.7) | |
1193 | so("Fire",Torso,1,.9) | |
1194 | MagniDamage(HitboxA,HitboxA,5,30,80,0,"Up") | |
1195 | MagicCircle(BrickColor.new("Really black"),RightArm.CFrame,3,3,3,5,5,5,0.05) | |
1196 | MagicCircle(BrickColor.new("Institutional white"),RightArm.CFrame,2,2,2,4,4,4,0.05) | |
1197 | BlastEffect(BrickColor.new("Really black"),Torso.CFrame,1,1,1,.7,.7,.7) | |
1198 | BlastEffect(BrickColor.new("Institutional white"),Torso.CFrame,.9,.9,.9,.6,.6,.6) | |
1199 | for i = 0, 1, 0.1 do | |
1200 | swait() | |
1201 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(2), math.rad(0), math.rad(0)), .5) | |
1202 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-10), math.rad(0), math.rad(0)), .5) | |
1203 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.5) * angles(math.rad(130), math.rad(0), math.rad(0)), 0.5) | |
1204 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.5) | |
1205 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(-2)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3) | |
1206 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(-2)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3) | |
1207 | FHandleA1weld.C0 = clerp(FHandleA1weld.C0, cf(0, -.05, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1208 | FHandleA2weld.C0 = clerp(FHandleA2weld.C0, cf(0, -.06, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1209 | FHandleA3weld.C0 = clerp(FHandleA3weld.C0, cf(0, -.07, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1210 | FHandleA4weld.C0 = clerp(FHandleA4weld.C0, cf(0, -.08, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1211 | FHandleA5weld.C0 = clerp(FHandleA5weld.C0, cf(0, -.09, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), .3) | |
1212 | FHandleB1weld.C0 = clerp(FHandleB1weld.C0, cf(0, -.09, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1213 | FHandleB2weld.C0 = clerp(FHandleB2weld.C0, cf(0, -.08, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1214 | FHandleB3weld.C0 = clerp(FHandleB3weld.C0, cf(0, -.07, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1215 | FHandleB4weld.C0 = clerp(FHandleB4weld.C0, cf(0, -.06, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1216 | FHandleB5weld.C0 = clerp(FHandleB5weld.C0, cf(0, -.05, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), .3) | |
1217 | end | |
1218 | end | |
1219 | for i,v in pairs(RightArm:GetChildren()) do | |
1220 | if v.Name == "asd" and v:IsA("Weld") then | |
1221 | v:Remove() | |
1222 | ||
1223 | end | |
1224 | end | |
1225 | con1:disconnect() | |
1226 | Grabbing = false | |
1227 | attack = false | |
1228 | end | |
1229 | ||
1230 | function Flip() | |
1231 | attack = true | |
1232 | for i = 0,1,0.1 do | |
1233 | swait() | |
1234 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(2), math.rad(0), math.rad(0)), .3) | |
1235 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-10), math.rad(0), math.rad(0)), .3) | |
1236 | RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -.5) * angles(math.rad(0), math.rad(-90), math.rad(-170)), 0.3) | |
1237 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.5) * angles(math.rad(0), math.rad(90), math.rad(170)), 0.3) | |
1238 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(-2)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3) | |
1239 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(-2)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3) | |
1240 | FHandleA1weld.C0 = clerp(FHandleA1weld.C0, cf(0, -.05, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1241 | FHandleA2weld.C0 = clerp(FHandleA2weld.C0, cf(0, -.06, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1242 | FHandleA3weld.C0 = clerp(FHandleA3weld.C0, cf(0, -.07, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1243 | FHandleA4weld.C0 = clerp(FHandleA4weld.C0, cf(0, -.08, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1244 | FHandleA5weld.C0 = clerp(FHandleA5weld.C0, cf(0, -.09, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), .3) | |
1245 | FHandleB1weld.C0 = clerp(FHandleB1weld.C0, cf(0, -.09, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1246 | FHandleB2weld.C0 = clerp(FHandleB2weld.C0, cf(0, -.08, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1247 | FHandleB3weld.C0 = clerp(FHandleB3weld.C0, cf(0, -.07, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1248 | FHandleB4weld.C0 = clerp(FHandleB4weld.C0, cf(0, -.06, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1249 | FHandleB5weld.C0 = clerp(FHandleB5weld.C0, cf(0, -.05, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), .3) | |
1250 | end | |
1251 | for i = 0,1,0.01 do | |
1252 | swait() | |
1253 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(2), math.rad(0), math.rad(0)), .3) | |
1254 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-10), math.rad(0), math.rad(0)), .3) | |
1255 | RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -.5) * angles(math.rad(0), math.rad(-90), math.rad(-150)), 0.3) | |
1256 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.5) * angles(math.rad(0), math.rad(90), math.rad(150)), 0.3) | |
1257 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(-2)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3) | |
1258 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(-2)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3) | |
1259 | FHandleA1weld.C0 = clerp(FHandleA1weld.C0, cf(0, -.05, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1260 | FHandleA2weld.C0 = clerp(FHandleA2weld.C0, cf(0, -.06, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1261 | FHandleA3weld.C0 = clerp(FHandleA3weld.C0, cf(0, -.07, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
1262 | FHandleA4weld.C0 = clerp(FHandleA4weld.C0, cf(0, -.08, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1263 | FHandleA5weld.C0 = clerp(FHandleA5weld.C0, cf(0, -.09, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), .3) | |
1264 | FHandleB1weld.C0 = clerp(FHandleB1weld.C0, cf(0, -.09, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1265 | FHandleB2weld.C0 = clerp(FHandleB2weld.C0, cf(0, -.08, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
1266 | FHandleB3weld.C0 = clerp(FHandleB3weld.C0, cf(0, -.07, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1267 | FHandleB4weld.C0 = clerp(FHandleB4weld.C0, cf(0, -.06, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1268 | FHandleB5weld.C0 = clerp(FHandleB5weld.C0, cf(0, -.05, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), .3) | |
1269 | end | |
1270 | attack = false | |
1271 | end | |
1272 | ||
1273 | mouse.Button1Down:connect(function() | |
1274 | if attack == false and attacktype == 1 then | |
1275 | attacktype = 2 | |
1276 | attackone() | |
1277 | elseif attack == false and attacktype == 2 then | |
1278 | attacktype = 1 | |
1279 | attacktwo() | |
1280 | elseif attack == false and attacktype == 3 then | |
1281 | attacktype = 1 | |
1282 | attackthree() | |
1283 | end | |
1284 | end) | |
1285 | ||
1286 | mouse.KeyDown:connect(function(k) | |
1287 | k = k:lower() | |
1288 | if attack == false and k == 'q' then | |
1289 | BlastJump() | |
1290 | elseif attack == false and k == ' ' and Anim == 'Jump' then | |
1291 | DoubleJump() | |
1292 | elseif attack == false and k == 'e' then | |
1293 | MultiPunch() | |
1294 | elseif attack == false and k == 'r' then | |
1295 | Grab() | |
1296 | elseif attack == false and k == 'f' then | |
1297 | Flip() | |
1298 | end | |
1299 | end) | |
1300 | ||
1301 | local sine = 0 | |
1302 | local change = 1 | |
1303 | local val = 0 | |
1304 | local idle = 0 | |
1305 | local donum = 0 | |
1306 | ||
1307 | while true do | |
1308 | swait() | |
1309 | sine = sine + change | |
1310 | local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
1311 | local velderp = RootPart.Velocity.y | |
1312 | hitfloor, posfloor = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character) | |
1313 | if equipped == true or equipped == false then | |
1314 | if attack == false then | |
1315 | idle = idle + 1 | |
1316 | else | |
1317 | idle = 0 | |
1318 | end | |
1319 | if idle >= 500 then | |
1320 | if attack == false then | |
1321 | end | |
1322 | end | |
1323 | if donum >= .5 then | |
1324 | handidle = true | |
1325 | elseif donum <= 0 then | |
1326 | handidle = false | |
1327 | end | |
1328 | if handidle == false then | |
1329 | donum = donum + 0.003 | |
1330 | else | |
1331 | donum = donum - 0.003 | |
1332 | end | |
1333 | if RootPart.Velocity.y > 1 and hitfloor == nil then | |
1334 | Anim = "Jump" | |
1335 | if attack == false then | |
1336 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 2) * angles(math.rad(30), math.rad(0), math.rad(0)), .3) | |
1337 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(0)), .3) | |
1338 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(70)), 0.3) | |
1339 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-20), math.rad(-70)), 0.3) | |
1340 | RH.C0 = clerp(RH.C0, cf(1, -.5, -.5) * angles(math.rad(0), math.rad(90), math.rad(-30)), .3) | |
1341 | LH.C0 = clerp(LH.C0, cf(-1, -.8, -.5) * angles(math.rad(0), math.rad(-90), math.rad(20)), .3) | |
1342 | FHandleA1weld.C0 = clerp(FHandleA1weld.C0, cf(0, -.05, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), .3) | |
1343 | FHandleA2weld.C0 = clerp(FHandleA2weld.C0, cf(0, -.06, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), .3) | |
1344 | FHandleA3weld.C0 = clerp(FHandleA3weld.C0, cf(0, -.07, 0) * angles(math.rad(0), math.rad(0), math.rad(40)), .3) | |
1345 | FHandleA4weld.C0 = clerp(FHandleA4weld.C0, cf(0, -.08, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), .3) | |
1346 | FHandleA5weld.C0 = clerp(FHandleA5weld.C0, cf(0, -.09, 0) * angles(math.rad(0), math.rad(0), math.rad(60)), .3) | |
1347 | FHandleB1weld.C0 = clerp(FHandleB1weld.C0, cf(0, -.09, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), .3) | |
1348 | FHandleB2weld.C0 = clerp(FHandleB2weld.C0, cf(0, -.08, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), .3) | |
1349 | FHandleB3weld.C0 = clerp(FHandleB3weld.C0, cf(0, -.07, 0) * angles(math.rad(0), math.rad(0), math.rad(40)), .3) | |
1350 | FHandleB4weld.C0 = clerp(FHandleB4weld.C0, cf(0, -.06, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), .3) | |
1351 | FHandleB5weld.C0 = clerp(FHandleB5weld.C0, cf(0, -.05, 0) * angles(math.rad(0), math.rad(0), math.rad(60)), .3) | |
1352 | end | |
1353 | elseif RootPart.Velocity.y < -1 and hitfloor == nil then | |
1354 | Anim = "Fall" | |
1355 | if attack == false then | |
1356 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
1357 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(30), math.rad(0), math.rad(0)), .3) | |
1358 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.7, 0) * angles(math.rad(0), math.rad(0), math.rad(130)), 0.3) | |
1359 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.7, 0) * angles(math.rad(0), math.rad(0), math.rad(-130)), 0.3) | |
1360 | RH.C0 = clerp(RH.C0, cf(1, -.7, -.5) * angles(math.rad(0), math.rad(90), math.rad(-20)), .3) | |
1361 | LH.C0 = clerp(LH.C0, cf(-1, -1, -.5) * angles(math.rad(0), math.rad(-90), math.rad(10)), .3) | |
1362 | FHandleA1weld.C0 = clerp(FHandleA1weld.C0, cf(0, -.05, 0) * angles(math.rad(0), math.rad(0), math.rad(60)), .3) | |
1363 | FHandleA2weld.C0 = clerp(FHandleA2weld.C0, cf(0, -.06, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), .3) | |
1364 | FHandleA3weld.C0 = clerp(FHandleA3weld.C0, cf(0, -.07, 0) * angles(math.rad(0), math.rad(0), math.rad(40)), .3) | |
1365 | FHandleA4weld.C0 = clerp(FHandleA4weld.C0, cf(0, -.08, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), .3) | |
1366 | FHandleA5weld.C0 = clerp(FHandleA5weld.C0, cf(0, -.09, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3) | |
1367 | FHandleB1weld.C0 = clerp(FHandleB1weld.C0, cf(0, -.09, 0) * angles(math.rad(0), math.rad(0), math.rad(60)), .3) | |
1368 | FHandleB2weld.C0 = clerp(FHandleB2weld.C0, cf(0, -.08, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), .3) | |
1369 | FHandleB3weld.C0 = clerp(FHandleB3weld.C0, cf(0, -.07, 0) * angles(math.rad(0), math.rad(0), math.rad(40)), .3) | |
1370 | FHandleB4weld.C0 = clerp(FHandleB4weld.C0, cf(0, -.06, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), .3) | |
1371 | FHandleB5weld.C0 = clerp(FHandleB5weld.C0, cf(0, -.05, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3) | |
1372 | end | |
1373 | elseif torvel < 1 and hitfloor ~= nil then | |
1374 | Anim = "Idle" | |
1375 | if attack == false then | |
1376 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(2), math.rad(0), math.rad(-30)), .3) | |
1377 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(0), math.rad(30)), .3) | |
1378 | RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -.5) * angles(math.rad(90) + donum / 2, math.rad(30) + donum / 2, math.rad(-40)), 0.3) | |
1379 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5, 0) * angles(math.rad(80) + donum / 2, math.rad(-30) - donum / 2, math.rad(-20)), 0.3) | |
1380 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(-2)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3) | |
1381 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-70), math.rad(-2)) * angles(math.rad(-3), math.rad(0), math.rad(0)), .3) | |
1382 | FHandleA1weld.C0 = clerp(FHandleA1weld.C0, cf(0, -.05, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1383 | FHandleA2weld.C0 = clerp(FHandleA2weld.C0, cf(0, -.06, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1384 | FHandleA3weld.C0 = clerp(FHandleA3weld.C0, cf(0, -.07, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1385 | FHandleA4weld.C0 = clerp(FHandleA4weld.C0, cf(0, -.08, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1386 | FHandleA5weld.C0 = clerp(FHandleA5weld.C0, cf(0, -.09, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), .3) | |
1387 | FHandleB1weld.C0 = clerp(FHandleB1weld.C0, cf(0, -.09, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1388 | FHandleB2weld.C0 = clerp(FHandleB2weld.C0, cf(0, -.08, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1389 | FHandleB3weld.C0 = clerp(FHandleB3weld.C0, cf(0, -.07, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1390 | FHandleB4weld.C0 = clerp(FHandleB4weld.C0, cf(0, -.06, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
1391 | FHandleB5weld.C0 = clerp(FHandleB5weld.C0, cf(0, -.05, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), .3) | |
1392 | end | |
1393 | elseif torvel > 2 and hitfloor ~= nil then | |
1394 | Anim = "Walk" | |
1395 | if attack == false then | |
1396 | change = 3 | |
1397 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), .3) | |
1398 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-10), math.rad(0), math.rad(0)), .3) | |
1399 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(15)), 0.3) | |
1400 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-15)), 0.3) | |
1401 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), .3) | |
1402 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), .3) | |
1403 | FHandleA1weld.C0 = clerp(FHandleA1weld.C0, cf(0, -.05, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3) | |
1404 | FHandleA2weld.C0 = clerp(FHandleA2weld.C0, cf(0, -.06, 0) * angles(math.rad(0), math.rad(0), math.rad(-21)), .3) | |
1405 | FHandleA3weld.C0 = clerp(FHandleA3weld.C0, cf(0, -.07, 0) * angles(math.rad(0), math.rad(0), math.rad(-22)), .3) | |
1406 | FHandleA4weld.C0 = clerp(FHandleA4weld.C0, cf(0, -.08, 0) * angles(math.rad(0), math.rad(0), math.rad(-23)), .3) | |
1407 | FHandleA5weld.C0 = clerp(FHandleA5weld.C0, cf(0, -.09, 0) * angles(math.rad(0), math.rad(0), math.rad(24)), .3) | |
1408 | FHandleB1weld.C0 = clerp(FHandleB1weld.C0, cf(0, -.09, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3) | |
1409 | FHandleB2weld.C0 = clerp(FHandleB2weld.C0, cf(0, -.08, 0) * angles(math.rad(0), math.rad(0), math.rad(-21)), .3) | |
1410 | FHandleB3weld.C0 = clerp(FHandleB3weld.C0, cf(0, -.07, 0) * angles(math.rad(0), math.rad(0), math.rad(-22)), .3) | |
1411 | FHandleB4weld.C0 = clerp(FHandleB4weld.C0, cf(0, -.06, 0) * angles(math.rad(0), math.rad(0), math.rad(-23)), .3) | |
1412 | FHandleB5weld.C0 = clerp(FHandleB5weld.C0, cf(0, -.05, 0) * angles(math.rad(0), math.rad(0), math.rad(24)), .3) | |
1413 | end | |
1414 | end | |
1415 | end | |
1416 | if #Effects > 0 then | |
1417 | for e = 1, #Effects do | |
1418 | if Effects[e] ~= nil then | |
1419 | local Thing = Effects[e] | |
1420 | if Thing ~= nil then | |
1421 | local Part = Thing[1] | |
1422 | local Mode = Thing[2] | |
1423 | local Delay = Thing[3] | |
1424 | local IncX = Thing[4] | |
1425 | local IncY = Thing[5] | |
1426 | local IncZ = Thing[6] | |
1427 | if Thing[1].Transparency <= 1 then | |
1428 | if Thing[2] == "Block1" then | |
1429 | Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1430 | Mesh = Thing[1].Mesh | |
1431 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
1432 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1433 | elseif Thing[2] == "Cylinder" then | |
1434 | Mesh = Thing[1].Mesh | |
1435 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
1436 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1437 | elseif Thing[2] == "Blood" then | |
1438 | Mesh = Thing[7] | |
1439 | Thing[1].CFrame = Thing[1].CFrame * cf(0, .5, 0) | |
1440 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
1441 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1442 | elseif Thing[2] == "Elec" then | |
1443 | Mesh = Thing[1].Mesh | |
1444 | Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9]) | |
1445 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1446 | elseif Thing[2] == "Disappear" then | |
1447 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1448 | end | |
1449 | else | |
1450 | Part.Parent = nil | |
1451 | table.remove(Effects, e) | |
1452 | end | |
1453 | end | |
1454 | end | |
1455 | end | |
1456 | end | |
1457 | end |