SHOW:
|
|
- or go back to the newest paste.
1 | plr = game:GetService("Players").LocalPlayer | |
2 | char = plr.Character | |
3 | hum = char.Humanoid | |
4 | local cam = game.Workspace.CurrentCamera | |
5 | local Controller = plr.PlayerScripts:WaitForChild("ControlScript") | |
6 | Camera = cam | |
7 | local CamInterrupt = false | |
8 | local TwoD = false | |
9 | local TargetInfo = {nil, nil} | |
10 | cam.CameraType = "Custom" | |
11 | t = char.Torso | |
12 | h = char.Head | |
13 | ra = char["Right Arm"] | |
14 | la = char["Left Arm"] | |
15 | rl = char["Right Leg"] | |
16 | ll = char["Left Leg"] | |
17 | tors = char.Torso | |
18 | lleg = char["Left Leg"] | |
19 | root = char.HumanoidRootPart | |
20 | hed = char.Head | |
21 | rleg = char["Right Leg"] | |
22 | rarm = char["Right Arm"] | |
23 | larm = char["Left Arm"] | |
24 | radian = math.rad | |
25 | random = math.random | |
26 | Vec3 = Vector3.new | |
27 | Inst = Instance.new | |
28 | cFrame = CFrame.new | |
29 | Euler = CFrame.fromEulerAnglesXYZ | |
30 | vt = Vector3.new | |
31 | bc = BrickColor.new | |
32 | br = BrickColor.random | |
33 | it = Instance.new | |
34 | cf = CFrame.new | |
35 | local eff = true | |
36 | local shielding = false | |
37 | ||
38 | local Booleans = { | |
39 | CamFollow = true, | |
40 | GyroUse = true | |
41 | } | |
42 | ||
43 | function lerp(object, newCFrame, alpha) | |
44 | return object:lerp(newCFrame, alpha) | |
45 | end | |
46 | ||
47 | local Directer = Inst("BodyGyro", root) | |
48 | Directer.MaxTorque = Vec3(0, 0, 0) | |
49 | Directer.P = 600000 | |
50 | local CPart = Inst("Part") | |
51 | CPart.Anchored = true | |
52 | CPart.CanCollide = false | |
53 | CPart.Locked = true | |
54 | CPart.Transparency = 1 | |
55 | ||
56 | local rainbowmode = false | |
57 | local chaosmode = false | |
58 | ||
59 | kan = Instance.new("Sound",char) | |
60 | kan.Volume = 1.25 | |
61 | kan.TimePosition = 0 | |
62 | kan.PlaybackSpeed = 1 | |
63 | kan.Pitch = 1 | |
64 | kan.SoundId = "rbxassetid://0" | |
65 | kan.Name = "wrecked" | |
66 | kan.Looped = true | |
67 | kan:Play() | |
68 | ||
69 | function newTheme(ID,timepos,pitch,vol) | |
70 | local kanz = kan | |
71 | --kanz:Stop() | |
72 | --kanz.Volume = vol | |
73 | --kanz.TimePosition = timepos | |
74 | kanz.PlaybackSpeed = pitch | |
75 | kanz.Pitch = pitch | |
76 | kanz.SoundId = ID | |
77 | kanz.Name = "wrecked" | |
78 | kanz.Looped = true | |
79 | kanz.Volume = 0.3 | |
80 | --kanz:Play() | |
81 | --coroutine.resume(coroutine.create(function() | |
82 | --wait(0.05) | |
83 | --end)) | |
84 | end | |
85 | ||
86 | function newThemeCust(ID,timepos,pitch,vol) | |
87 | local kanz = kan | |
88 | kanz:Stop() | |
89 | kanz.Volume = vol | |
90 | kanz.TimePosition = timepos | |
91 | kanz.PlaybackSpeed = pitch | |
92 | kanz.Pitch = pitch | |
93 | kanz.SoundId = ID | |
94 | kanz.Name = "wrecked" | |
95 | kanz.Looped = true | |
96 | kanz:Play() | |
97 | coroutine.resume(coroutine.create(function() | |
98 | wait(0.05) | |
99 | end)) | |
100 | end | |
101 | ||
102 | ||
103 | ||
104 | function CameraShake(Times, Power, PlayerTarget) | |
105 | coroutine.resume(coroutine.create(function() | |
106 | FV = Instance.new("BoolValue", PlayerTarget) | |
107 | FV.Name = "CameraShake" | |
108 | for ShakeNum=1,Times do | |
109 | swait() | |
110 | local ef=Power | |
111 | if ef>=1 then | |
112 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef)) | |
113 | else | |
114 | ef=Power*10 | |
115 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10) | |
116 | end | |
117 | end | |
118 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
119 | FV:Destroy() | |
120 | end)) | |
121 | end | |
122 | ||
123 | function CameraEnshaking(Length,Intensity) | |
124 | coroutine.resume(coroutine.create(function() | |
125 | local intensity = 1*Intensity | |
126 | local rotM = 0.01*Intensity | |
127 | for i = 0, Length, 0.1 do | |
128 | swait() | |
129 | intensity = intensity - 0.05*Intensity/Length | |
130 | rotM = rotM - 0.0005*Intensity/Length | |
131 | hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) | |
132 | cam.CFrame = cam.CFrame * cFrame(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) * Euler(radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM) | |
133 | end | |
134 | Humanoid.CameraOffset = Vec3(0, 0, 0) | |
135 | end)) | |
136 | end | |
137 | CamShake=function(Part,Distan,Power,Times) | |
138 | local de=Part.Position | |
139 | for i,v in pairs(workspace:children()) do | |
140 | if v:IsA("Model") and v:findFirstChild("Humanoid") then | |
141 | for _,c in pairs(v:children()) do | |
142 | if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then | |
143 | local Noob=v.Humanoid | |
144 | if Noob~=nil then | |
145 | coroutine.resume(coroutine.create(function() | |
146 | FV = Instance.new("BoolValue", Noob) | |
147 | FV.Name = "CameraShake" | |
148 | for ShakeNum=1,Times do | |
149 | swait() | |
150 | local ef=Power | |
151 | if ef>=1 then | |
152 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef)) | |
153 | else | |
154 | ef=Power*10 | |
155 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10) | |
156 | end | |
157 | end | |
158 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
159 | FV:Destroy() | |
160 | end)) | |
161 | CameraShake(Times, Power, Noob) | |
162 | end | |
163 | end | |
164 | end | |
165 | end | |
166 | end | |
167 | end | |
168 | ||
169 | function chatfunc(text,color) | |
170 | local chat = coroutine.wrap(function() | |
171 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
172 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
173 | end | |
174 | local naeeym2 = Instance.new("BillboardGui",Character) | |
175 | naeeym2.Size = UDim2.new(0,100,0,40) | |
176 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
177 | naeeym2.Adornee = Character.Head | |
178 | naeeym2.Name = "TalkingBillBoard" | |
179 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
180 | tecks2.BackgroundTransparency = 1 | |
181 | tecks2.BorderSizePixel = 0 | |
182 | tecks2.Text = "" | |
183 | tecks2.Font = "SciFi" | |
184 | tecks2.TextSize = 30 | |
185 | tecks2.TextStrokeTransparency = 0 | |
186 | tecks2.TextColor3 = color | |
187 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
188 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
189 | local tecks3 = Instance.new("TextLabel",naeeym2) | |
190 | tecks3.BackgroundTransparency = 1 | |
191 | tecks3.BorderSizePixel = 0 | |
192 | tecks3.Text = "" | |
193 | tecks3.Font = "SciFi" | |
194 | tecks3.TextSize = 30 | |
195 | tecks3.TextStrokeTransparency = 0 | |
196 | tecks3.TextColor3 = Color3.new(0,0,0) | |
197 | tecks3.TextStrokeColor3 = color | |
198 | tecks3.Size = UDim2.new(1,0,0.5,0) | |
199 | coroutine.resume(coroutine.create(function() | |
200 | while true do | |
201 | swait(1) | |
202 | plr.Character.wrecked.Volume = 0.3 | |
203 | if chaosmode == true then | |
204 | tecks2.TextColor3 = BrickColor.random().Color | |
205 | tecks3.TextStrokeColor3 = BrickColor.random().Color | |
206 | end | |
207 | tecks2.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5)) | |
208 | tecks3.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5)) | |
209 | tecks2.Rotation = math.random(-5,5) | |
210 | tecks3.Rotation = math.random(-5,5) | |
211 | end | |
212 | end)) | |
213 | for i = 1,string.len(text),1 do | |
214 | CFuncs["Sound"].Create("rbxassetid://274118116", char, 0.25, 0.115) | |
215 | tecks2.Text = string.sub(text,1,i) | |
216 | tecks3.Text = string.sub(text,1,i) | |
217 | swait(1) | |
218 | end | |
219 | wait(1) | |
220 | local randomrot = math.random(1,2) | |
221 | if randomrot == 1 then | |
222 | for i = 1, 50 do | |
223 | swait() | |
224 | tecks2.Rotation = tecks2.Rotation - .75 | |
225 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
226 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
227 | tecks3.Rotation = tecks2.Rotation + .75 | |
228 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
229 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
230 | end | |
231 | elseif randomrot == 2 then | |
232 | for i = 1, 50 do | |
233 | swait() | |
234 | tecks2.Rotation = tecks2.Rotation + .75 | |
235 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
236 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
237 | tecks3.Rotation = tecks2.Rotation - .75 | |
238 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
239 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
240 | end | |
241 | end | |
242 | naeeym2:Destroy() | |
243 | end) | |
244 | chat() | |
245 | end | |
246 | ||
247 | ||
248 | local Create = LoadLibrary("RbxUtility").Create | |
249 | ||
250 | CFuncs = { | |
251 | ["Part"] = { | |
252 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
253 | local Part = Create("Part"){ | |
254 | Parent = Parent, | |
255 | Reflectance = Reflectance, | |
256 | Transparency = Transparency, | |
257 | CanCollide = false, | |
258 | Locked = true, | |
259 | BrickColor = BrickColor.new(tostring(BColor)), | |
260 | Name = Name, | |
261 | Size = Size, | |
262 | Material = Material, | |
263 | } | |
264 | RemoveOutlines(Part) | |
265 | return Part | |
266 | end; | |
267 | }; | |
268 | ||
269 | ["Mesh"] = { | |
270 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
271 | local Msh = Create(Mesh){ | |
272 | Parent = Part, | |
273 | Offset = OffSet, | |
274 | Scale = Scale, | |
275 | } | |
276 | if Mesh == "SpecialMesh" then | |
277 | Msh.MeshType = MeshType | |
278 | Msh.MeshId = MeshId | |
279 | end | |
280 | return Msh | |
281 | end; | |
282 | }; | |
283 | ||
284 | ["Mesh"] = { | |
285 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
286 | local Msh = Create(Mesh){ | |
287 | Parent = Part, | |
288 | Offset = OffSet, | |
289 | Scale = Scale, | |
290 | } | |
291 | if Mesh == "SpecialMesh" then | |
292 | Msh.MeshType = MeshType | |
293 | Msh.MeshId = MeshId | |
294 | end | |
295 | return Msh | |
296 | end; | |
297 | }; | |
298 | ||
299 | ["Weld"] = { | |
300 | Create = function(Parent, Part0, Part1, C0, C1) | |
301 | local Weld = Create("Weld"){ | |
302 | Parent = Parent, | |
303 | Part0 = Part0, | |
304 | Part1 = Part1, | |
305 | C0 = C0, | |
306 | C1 = C1, | |
307 | } | |
308 | return Weld | |
309 | end; | |
310 | }; | |
311 | ||
312 | ["Sound"] = { | |
313 | Create = function(id, par, vol, pit) | |
314 | coroutine.resume(coroutine.create(function() | |
315 | local S = Create("Sound"){ | |
316 | Volume = vol, | |
317 | Name = "EffectSoundo", | |
318 | Pitch = pit or 1, | |
319 | SoundId = id, | |
320 | Parent = par or workspace, | |
321 | } | |
322 | wait() | |
323 | S:play() | |
324 | game:GetService("Debris"):AddItem(S, 10) | |
325 | end)) | |
326 | end; | |
327 | }; | |
328 | ||
329 | ["LongSound"] = { | |
330 | Create = function(id, par, vol, pit) | |
331 | coroutine.resume(coroutine.create(function() | |
332 | local S = Create("Sound"){ | |
333 | Volume = vol, | |
334 | Pitch = pit or 1, | |
335 | SoundId = id, | |
336 | Parent = par or workspace, | |
337 | } | |
338 | wait() | |
339 | S:play() | |
340 | game:GetService("Debris"):AddItem(S, 30) | |
341 | end)) | |
342 | end; | |
343 | }; | |
344 | ||
345 | ["ParticleEmitter"] = { | |
346 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
347 | local fp = Create("ParticleEmitter"){ | |
348 | Parent = Parent, | |
349 | Color = ColorSequence.new(Color1, Color2), | |
350 | LightEmission = LightEmission, | |
351 | Size = Size, | |
352 | Texture = Texture, | |
353 | Transparency = Transparency, | |
354 | ZOffset = ZOffset, | |
355 | Acceleration = Accel, | |
356 | Drag = Drag, | |
357 | LockedToPart = LockedToPart, | |
358 | VelocityInheritance = VelocityInheritance, | |
359 | EmissionDirection = EmissionDirection, | |
360 | Enabled = Enabled, | |
361 | Lifetime = LifeTime, | |
362 | Rate = Rate, | |
363 | Rotation = Rotation, | |
364 | RotSpeed = RotSpeed, | |
365 | Speed = Speed, | |
366 | VelocitySpread = VelocitySpread, | |
367 | } | |
368 | return fp | |
369 | end; | |
370 | }; | |
371 | ||
372 | CreateTemplate = { | |
373 | ||
374 | }; | |
375 | } | |
376 | ||
377 | ||
378 | ||
379 | New = function(Object, Parent, Name, Data) | |
380 | local Object = Instance.new(Object) | |
381 | for Index, Value in pairs(Data or {}) do | |
382 | Object[Index] = Value | |
383 | end | |
384 | Object.Parent = Parent | |
385 | Object.Name = Name | |
386 | return Object | |
387 | end | |
388 | local halocolor = BrickColor.new("Dark blue") | |
389 | local halocolor2 = BrickColor.new("Dark blue") | |
390 | local starcolor = BrickColor.new("Dark blue") | |
391 | local lunacolor = BrickColor.new("Dark blue") | |
392 | local lunacolor2 = BrickColor.new("Dark blue") | |
393 | local wepcolor = BrickColor.new("Dark blue") | |
394 | local maincolor = BrickColor.new("Dark blue") | |
395 | local m = Instance.new("Model",char) | |
396 | local m2 = Instance.new("Model",char) | |
397 | local m3 = Instance.new("Model",char) | |
398 | local mw1 = Instance.new("Model",char) | |
399 | local mw2 = Instance.new("Model",char) | |
400 | ||
401 | local extrawingmod1 = Instance.new("Model",char) | |
402 | local extrawingmod2 = Instance.new("Model",char) | |
403 | ||
404 | function CreateParta(parent,transparency,reflectance,material,brickcolor) | |
405 | local p = Instance.new("Part") | |
406 | p.TopSurface = 0 | |
407 | p.BottomSurface = 0 | |
408 | p.Parent = parent | |
409 | p.Size = Vector3.new(0.1,0.1,0.1) | |
410 | p.Transparency = transparency | |
411 | p.Reflectance = reflectance | |
412 | p.CanCollide = false | |
413 | p.Locked = true | |
414 | p.BrickColor = brickcolor | |
415 | p.Material = material | |
416 | return p | |
417 | end | |
418 | ||
419 | function CreateMesh(parent,meshtype,x1,y1,z1) | |
420 | local mesh = Instance.new("SpecialMesh",parent) | |
421 | mesh.MeshType = meshtype | |
422 | mesh.Scale = Vector3.new(x1*10,y1*10,z1*10) | |
423 | return mesh | |
424 | end | |
425 | ||
426 | function CreateSpecialMesh(parent,meshid,x1,y1,z1) | |
427 | local mesh = Instance.new("SpecialMesh",parent) | |
428 | mesh.MeshType = "FileMesh" | |
429 | mesh.MeshId = meshid | |
430 | mesh.Scale = Vector3.new(x1,y1,z1) | |
431 | return mesh | |
432 | end | |
433 | ||
434 | ||
435 | function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1) | |
436 | local mesh = Instance.new("SpecialMesh",parent) | |
437 | mesh.MeshType = "FileMesh" | |
438 | mesh.MeshId = meshid | |
439 | mesh.TextureId = "http://www.roblox.com/asset/?id=269748808" | |
440 | mesh.Scale = Vector3.new(x1,y1,z1) | |
441 | mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b) | |
442 | return mesh | |
443 | end | |
444 | ||
445 | function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za) | |
446 | local weld = Instance.new("Weld") | |
447 | weld.Parent = parent | |
448 | weld.Part0 = part0 | |
449 | weld.Part1 = part1 | |
450 | weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za) | |
451 | weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za) | |
452 | return weld | |
453 | end | |
454 | ||
455 | ||
456 | -------------- | |
457 | local secondchar = Instance.new("Model",char) | |
458 | local GhostCol = BrickColor.new("Dark blue") | |
459 | local sectors = CreateParta(secondchar,1,0,"Neon",GhostCol) | |
460 | CreateMesh(sectors,"Brick",2*8,2*8,1*8) | |
461 | local torsweld = CreateWeld(sectors,root,sectors,1,-1,-2,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
462 | ||
463 | local seclarm = CreateParta(secondchar,1,0,"Neon",GhostCol) | |
464 | CreateMesh(seclarm,"Brick",1*8,2*8,1*8) | |
465 | local larmsweld = CreateWeld(seclarm,sectors,seclarm,1.5,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
466 | ||
467 | local secrarm = CreateParta(secondchar,1,0,"Neon",GhostCol) | |
468 | CreateMesh(secrarm,"Brick",1*8,2*8,1*8) | |
469 | local rarmsweld = CreateWeld(secrarm,sectors,secrarm,-1.5,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
470 | ||
471 | local seclleg = CreateParta(secondchar,1,0,"Neon",GhostCol) | |
472 | CreateMesh(seclleg,"Brick",1*8,2*8,1*8) | |
473 | local llegsweld = CreateWeld(seclleg,sectors,seclleg,0.5,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
474 | ||
475 | local secrleg = CreateParta(secondchar,1,0,"Neon",GhostCol) | |
476 | CreateMesh(secrleg,"Brick",1*8,2*8,1*8) | |
477 | local rlegsweld = CreateWeld(secrleg,sectors,secrleg,-0.5,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
478 | ||
479 | local seched = CreateParta(secondchar,1,0,"Neon",GhostCol) | |
480 | CreateMesh(seched,"Brick",1*8,1*8,1*8) | |
481 | local hedsweld = CreateWeld(seched,sectors,seched,0,-1.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
482 | -------------- | |
483 | local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
484 | CreateWeld(sorb,rarm,sorb,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
485 | local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
486 | CreateWeld(sorb2,larm,sorb2,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
487 | ||
488 | local handlex = CreateParta(mw2,1,1,"Neon",maincolor) | |
489 | CreateMesh(handle,"Brick",0,0,0) | |
490 | local handlexweld = CreateWeld(handlex,tors,handlex,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
491 | local valuaring = 10 | |
492 | for i = 0, 49 do | |
493 | valuaring = valuaring + 10 | |
494 | rn = CreateParta(mw2,0,0,"Neon",halocolor) | |
495 | CreateMesh(rn,"Brick",0.25,0.1,0.1) | |
496 | CreateWeld(rn,handlex,rn,0,1,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
497 | end | |
498 | ||
499 | handlex = CreateParta(mw2,1,1,"Neon",maincolor) | |
500 | CreateMesh(handle,"Brick",0,0,0) | |
501 | CreateWeld(handlex,tors,handlex,0,-3,-2.1,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
502 | local valuaring = 10 | |
503 | for i = 0, 49 do | |
504 | valuaring = valuaring + 10 | |
505 | rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
506 | CreateMesh(rn,"Brick",0.5,0.2,0.2) | |
507 | CreateWeld(rn,handlex,rn,0,2,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
508 | end | |
509 | ||
510 | ||
511 | local handle = CreateParta(m,1,1,"Neon",maincolor) | |
512 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
513 | local handleweld = CreateWeld(handle,tors,handle,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
514 | ||
515 | --- Left wing. | |
516 | ||
517 | local lwing1 = CreateParta(m,1,1,"Neon",maincolor) | |
518 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
519 | local lwing1weld = CreateWeld(lwing1,handle,lwing1,3,0,0,math.rad(5),math.rad(0),math.rad(12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
520 | ||
521 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
522 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
523 | CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
524 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
525 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
526 | CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
527 | A0 = Instance.new('Attachment',wed) | |
528 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
529 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
530 | CreateWeld(wed,lwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
531 | A1 = Instance.new('Attachment',wed) | |
532 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
533 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
534 | CreateWeld(wed,lwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
535 | ||
536 | tl1 = Instance.new('Trail',wed) | |
537 | tl1.Attachment0 = A0 | |
538 | tl1.Attachment1 = A1 | |
539 | --tl1.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
540 | tl1.LightEmission = 1 | |
541 | tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
542 | tl1.Color = ColorSequence.new(BrickColor.new('Dark blue').Color) | |
543 | tl1.Lifetime = 0.6 | |
544 | ||
545 | ||
546 | local lwing2 = CreateParta(m,1,1,"Neon",maincolor) | |
547 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
548 | local lwing2weld = CreateWeld(lwing2,handle,lwing2,4,1,0,math.rad(10),math.rad(0),math.rad(25),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
549 | ||
550 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
551 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
552 | CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
553 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
554 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
555 | CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
556 | A0 = Instance.new('Attachment',wed) | |
557 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
558 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
559 | CreateWeld(wed,lwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
560 | A1 = Instance.new('Attachment',wed) | |
561 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
562 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
563 | CreateWeld(wed,lwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
564 | ||
565 | tl2 = Instance.new('Trail',wed) | |
566 | tl2.Attachment0 = A0 | |
567 | tl2.Attachment1 = A1 | |
568 | --tl2.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
569 | tl2.LightEmission = 1 | |
570 | tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
571 | tl2.Color = ColorSequence.new(BrickColor.new('Dark blue').Color) | |
572 | tl2.Lifetime = 0.6 | |
573 | ||
574 | local lwing3 = CreateParta(m,1,1,"Neon",maincolor) | |
575 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
576 | local lwing3weld = CreateWeld(lwing3,handle,lwing3,4.75,2,0,math.rad(15),math.rad(0),math.rad(37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
577 | ||
578 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
579 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
580 | CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
581 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
582 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
583 | CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
584 | A0 = Instance.new('Attachment',wed) | |
585 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
586 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
587 | CreateWeld(wed,lwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
588 | A1 = Instance.new('Attachment',wed) | |
589 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
590 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
591 | CreateWeld(wed,lwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
592 | ||
593 | tl3 = Instance.new('Trail',wed) | |
594 | tl3.Attachment0 = A0 | |
595 | tl3.Attachment1 = A1 | |
596 | --tl3.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
597 | tl3.LightEmission = 1 | |
598 | tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
599 | tl3.Color = ColorSequence.new(BrickColor.new('Dark blue').Color) | |
600 | tl3.Lifetime = 0.6 | |
601 | ||
602 | tl1.Enabled = false | |
603 | tl2.Enabled = false | |
604 | tl3.Enabled = false | |
605 | local lwing4 = CreateParta(m,1,1,"Neon",maincolor) | |
606 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
607 | local lwing4weld = CreateWeld(lwing4,handle,lwing4,5.75,3,0,math.rad(20),math.rad(0),math.rad(50),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
608 | ||
609 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
610 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
611 | CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
612 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
613 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
614 | CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
615 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
616 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
617 | CreateWeld(wed,lwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
618 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
619 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
620 | CreateWeld(wed,lwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
621 | ||
622 | local lwing5 = CreateParta(m,1,1,"Neon",maincolor) | |
623 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
624 | local lwing5weld = CreateWeld(lwing5,handle,lwing5,6.75,4,0,math.rad(25),math.rad(0),math.rad(62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
625 | ||
626 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
627 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
628 | CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
629 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
630 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
631 | CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
632 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
633 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
634 | CreateWeld(wed,lwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
635 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
636 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
637 | CreateWeld(wed,lwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
638 | ||
639 | local lwing6 = CreateParta(m,1,1,"Neon",maincolor) | |
640 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
641 | local lwing6weld = CreateWeld(lwing6,handle,lwing6,7.75,5,0,math.rad(30),math.rad(0),math.rad(75),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
642 | ||
643 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
644 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
645 | CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
646 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
647 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
648 | CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
649 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
650 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
651 | CreateWeld(wed,lwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
652 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
653 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
654 | CreateWeld(wed,lwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
655 | ||
656 | -- Right wing. | |
657 | ||
658 | local rwing1 = CreateParta(m,1,1,"Neon",maincolor) | |
659 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
660 | local rwing1weld = CreateWeld(rwing1,handle,rwing1,-3,0,0,math.rad(5),math.rad(0),math.rad(-12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
661 | ||
662 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
663 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
664 | CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
665 | A0 = Instance.new('Attachment',wed) | |
666 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
667 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
668 | CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
669 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
670 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
671 | CreateWeld(wed,rwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
672 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
673 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
674 | CreateWeld(wed,rwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
675 | A1 = Instance.new('Attachment',wed) | |
676 | ||
677 | tr1 = Instance.new('Trail',wed) | |
678 | tr1.Attachment0 = A0 | |
679 | tr1.Attachment1 = A1 | |
680 | --tr1.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
681 | tr1.LightEmission = 1 | |
682 | tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
683 | tr1.Color = ColorSequence.new(BrickColor.new('Dark blue').Color) | |
684 | tr1.Lifetime = 0.6 | |
685 | ||
686 | local rwing2 = CreateParta(m,1,1,"Neon",maincolor) | |
687 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
688 | local rwing2weld = CreateWeld(rwing2,handle,rwing2,-4,1,0,math.rad(10),math.rad(0),math.rad(-25),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
689 | ||
690 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
691 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
692 | CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
693 | A0 = Instance.new('Attachment',wed) | |
694 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
695 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
696 | CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
697 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
698 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
699 | CreateWeld(wed,rwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
700 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
701 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
702 | CreateWeld(wed,rwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
703 | A1 = Instance.new('Attachment',wed) | |
704 | ||
705 | tr2 = Instance.new('Trail',wed) | |
706 | tr2.Attachment0 = A0 | |
707 | tr2.Attachment1 = A1 | |
708 | --tr2.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
709 | tr2.LightEmission = 1 | |
710 | tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
711 | tr2.Color = ColorSequence.new(BrickColor.new('Dark blue').Color) | |
712 | tr2.Lifetime = 0.6 | |
713 | ||
714 | local rwing3 = CreateParta(m,1,1,"Neon",maincolor) | |
715 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
716 | local rwing3weld = CreateWeld(rwing3,handle,rwing3,-4.75,2,0,math.rad(15),math.rad(0),math.rad(-37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
717 | ||
718 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
719 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
720 | CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
721 | A0 = Instance.new('Attachment',wed) | |
722 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
723 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
724 | CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
725 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
726 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
727 | CreateWeld(wed,rwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
728 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
729 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
730 | CreateWeld(wed,rwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
731 | A1 = Instance.new('Attachment',wed) | |
732 | ||
733 | tr3 = Instance.new('Trail',wed) | |
734 | tr3.Attachment0 = A0 | |
735 | tr3.Attachment1 = A1 | |
736 | --tr3.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
737 | tr3.LightEmission = 1 | |
738 | tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
739 | tr3.Color = ColorSequence.new(BrickColor.new('Dark blue').Color) | |
740 | tr3.Lifetime = 0.6 | |
741 | ||
742 | ||
743 | local rwing4 = CreateParta(m,1,1,"Neon",maincolor) | |
744 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
745 | local rwing4weld = CreateWeld(rwing4,handle,rwing4,-5.75,3,0,math.rad(20),math.rad(0),math.rad(-50),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
746 | ||
747 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
748 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
749 | CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
750 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
751 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
752 | CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
753 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
754 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
755 | CreateWeld(wed,rwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
756 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
757 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
758 | CreateWeld(wed,rwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
759 | ||
760 | local rwing5 = CreateParta(m,1,1,"Neon",maincolor) | |
761 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
762 | local rwing5weld = CreateWeld(rwing5,handle,rwing5,-6.75,4,0,math.rad(25),math.rad(0),math.rad(-62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
763 | ||
764 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
765 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
766 | CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
767 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
768 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
769 | CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
770 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
771 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
772 | CreateWeld(wed,rwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
773 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
774 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
775 | CreateWeld(wed,rwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
776 | ||
777 | local rwing6 = CreateParta(m,1,1,"Neon",maincolor) | |
778 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
779 | local rwing6weld = CreateWeld(rwing6,handle,rwing6,-7.75,3,0,math.rad(30),math.rad(0),math.rad(-75),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
780 | ||
781 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
782 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
783 | CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
784 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
785 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
786 | CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
787 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
788 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
789 | CreateWeld(wed,rwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
790 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
791 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
792 | CreateWeld(wed,rwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
793 | ||
794 | ||
795 | Player = game.Players.LocalPlayer | |
796 | Character = Player.Character | |
797 | local txt = Instance.new("BillboardGui", Character) | |
798 | txt.Adornee = Character.Head | |
799 | txt.Name = "_status" | |
800 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
801 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
802 | local text = Instance.new("TextLabel", txt) | |
803 | text.Size = UDim2.new(10, 0, 7, 0) | |
804 | text.FontSize = "Size24" | |
805 | text.TextScaled = true | |
806 | text.TextTransparency = 0 | |
807 | text.BackgroundTransparency = 1 | |
808 | text.TextTransparency = 0 | |
809 | text.TextStrokeTransparency = 0 | |
810 | text.Font = "Antique" | |
811 | text.TextStrokeColor3 = Color3.new(255, 0, 0) | |
812 | text.Text = "Evil Kill bot" | |
813 | ||
814 | local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really red", "Hood", VT(1,1,1),false) | |
815 | PRT.Color = C3(255, 0, 0) | |
816 | local HoodWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.2,0), CF(0, 0, 0)) | |
817 | CreateMesh("SpecialMesh", PRT, "FileMesh", "76062497", "", VT(1,1,1)*1.05, VT(0,0,0)) | |
818 | local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really red", "Scarf", VT(1,1,1),false) | |
819 | PRT.Color = C3(255, 0, 0) | |
820 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PRT, CF(0.05,0.4,-0.1) * ANGLES(RAD(-3), RAD(0), RAD(0)), CF(0, 0, 0)) | |
821 | CreateMesh("SpecialMesh", PRT, "FileMesh", "99856331", "", VT(1.1,1,1.1), VT(0,0,0)) | |
822 | for i = 1, 16 do | |
823 | local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/16.2, "Dark stone grey", "FaceGradient", VT(1.01,0.65,1.01),false) | |
824 | FACE.Color = C3(255, 0, 0) | |
825 | Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE | |
826 | CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.45-(i-1)/25,0), CF(0, 0, 0)) | |
827 | end | |
828 | ||
829 | local LASTPART = Head | |
830 | for i = 1, 20 do | |
831 | local MATH = (1-(i/25)) | |
832 | if LASTPART == Head then | |
833 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
834 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(15), RAD(-15)), CF(0, 0, 0)) | |
835 | LASTPART = Horn | |
836 | Horn.Color = C3((i*3-3)/255,0,0) | |
837 | else | |
838 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
839 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(-0.3), RAD(0)), CF(0, 0, 0)) | |
840 | LASTPART = Horn | |
841 | Horn.Color = C3((i*3-3)/255,0,0) | |
842 | end | |
843 | end | |
844 | local LASTPART = Head | |
845 | for i = 1, 20 do | |
846 | local MATH = (1-(i/25)) | |
847 | if LASTPART == Head then | |
848 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
849 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(-15), RAD(15)), CF(0, 0) | |
850 | ||
851 | --//====================================================\\-- | |
852 | --|| EDIT BY VOYQGO | |
853 | --\\====================================================//-- | |
854 | ||
855 | ||
856 | ||
857 | ||
858 | ||
859 | wait(0.2) | |
860 | ||
861 | Player = game:GetService("Players").LocalPlayer | |
862 | PlayerGui = Player.PlayerGui | |
863 | Cam = workspace.CurrentCamera | |
864 | Backpack = Player.Backpack | |
865 | Character = Player.Character | |
866 | Humanoid = Character.Humanoid | |
867 | Mouse = Player:GetMouse() | |
868 | RootPart = Character["HumanoidRootPart"] | |
869 | Torso = Character["Torso"] | |
870 | Head = Character["Head"] | |
871 | RightArm = Character["Right Arm"] | |
872 | LeftArm = Character["Left Arm"] | |
873 | RightLeg = Character["Right Leg"] | |
874 | LeftLeg = Character["Left Leg"] | |
875 | RootJoint = RootPart["RootJoint"] | |
876 | Neck = Torso["Neck"] | |
877 | RightShoulder = Torso["Right Shoulder"] | |
878 | LeftShoulder = Torso["Left Shoulder"] | |
879 | RightHip = Torso["Right Hip"] | |
880 | LeftHip = Torso["Left Hip"] | |
881 | ||
882 | IT = Instance.new | |
883 | CF = CFrame.new | |
884 | VT = Vector3.new | |
885 | RAD = math.rad | |
886 | C3 = Color3.new | |
887 | UD2 = UDim2.new | |
888 | BRICKC = BrickColor.new | |
889 | ANGLES = CFrame.Angles | |
890 | EULER = CFrame.fromEulerAnglesXYZ | |
891 | COS = math.cos | |
892 | ACOS = math.acos | |
893 | SIN = math.sin | |
894 | ASIN = math.asin | |
895 | ABS = math.abs | |
896 | MRANDOM = math.random | |
897 | FLOOR = math.floor | |
898 | ||
899 | --//=================================\\ | |
900 | --|| USEFUL VALUES | |
901 | --\\=================================// | |
902 | ||
903 | Animation_Speed = 3 | |
904 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
905 | local Speed = 16 | |
906 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
907 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
908 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
909 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
910 | local DAMAGEMULTIPLIER = 1 | |
911 | local ANIM = "Idle" | |
912 | local ATTACK = false | |
913 | local EQUIPPED = false | |
914 | local HOLD = false | |
915 | local COMBO = 1 | |
916 | local Rooted = false | |
917 | local SINE = 0 | |
918 | local KEYHOLD = false | |
919 | local CHANGE = 2 / Animation_Speed | |
920 | local WALKINGANIM = false | |
921 | local VALUE1 = false | |
922 | local VALUE2 = false | |
923 | local ROBLOXIDLEANIMATION = IT("Animation") | |
924 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
925 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
926 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
927 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
928 | WEAPONGUI.Name = "Weapon GUI" | |
929 | local Weapon = IT("Model") | |
930 | Weapon.Name = "Adds" | |
931 | local Effects = IT("Folder", Weapon) | |
932 | Effects.Name = "Effects" | |
933 | local ANIMATOR = Humanoid.Animator | |
934 | local ANIMATE = Character.Animate | |
935 | local UNANCHOR = true | |
936 | ||
937 | --//=================================\\ | |
938 | --\\=================================// | |
939 | ||
940 | ||
941 | --//=================================\\ | |
942 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
943 | --\\=================================// | |
944 | ||
945 | ArtificialHB = Instance.new("BindableEvent", script) | |
946 | ArtificialHB.Name = "ArtificialHB" | |
947 | ||
948 | script:WaitForChild("ArtificialHB") | |
949 | ||
950 | frame = Frame_Speed | |
951 | tf = 0 | |
952 | allowframeloss = false | |
953 | tossremainder = false | |
954 | lastframe = tick() | |
955 | script.ArtificialHB:Fire() | |
956 | ||
957 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
958 | tf = tf + s | |
959 | if tf >= frame then | |
960 | if allowframeloss then | |
961 | script.ArtificialHB:Fire() | |
962 | lastframe = tick() | |
963 | else | |
964 | for i = 1, math.floor(tf / frame) do | |
965 | script.ArtificialHB:Fire() | |
966 | end | |
967 | lastframe = tick() | |
968 | end | |
969 | if tossremainder then | |
970 | tf = 0 | |
971 | else | |
972 | tf = tf - frame * math.floor(tf / frame) | |
973 | end | |
974 | end | |
975 | end) | |
976 | ||
977 | --//=================================\\ | |
978 | --\\=================================// | |
979 | ||
980 | --//=================================\\ | |
981 | --|| SOME FUNCTIONS | |
982 | --\\=================================// | |
983 | ||
984 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
985 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
986 | end | |
987 | ||
988 | function PositiveAngle(NUMBER) | |
989 | if NUMBER >= 0 then | |
990 | NUMBER = 0 | |
991 | end | |
992 | return NUMBER | |
993 | end | |
994 | ||
995 | function NegativeAngle(NUMBER) | |
996 | if NUMBER <= 0 then | |
997 | NUMBER = 0 | |
998 | end | |
999 | return NUMBER | |
1000 | end | |
1001 | ||
1002 | function Swait(NUMBER) | |
1003 | if NUMBER == 0 or NUMBER == nil then | |
1004 | ArtificialHB.Event:wait() | |
1005 | else | |
1006 | for i = 1, NUMBER do | |
1007 | ArtificialHB.Event:wait() | |
1008 | end | |
1009 | end | |
1010 | end | |
1011 | ||
1012 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
1013 | local NEWMESH = IT(MESH) | |
1014 | if MESH == "SpecialMesh" then | |
1015 | NEWMESH.MeshType = MESHTYPE | |
1016 | if MESHID ~= "nil" and MESHID ~= "" then | |
1017 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
1018 | end | |
1019 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
1020 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
1021 | end | |
1022 | end | |
1023 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
1024 | NEWMESH.Scale = SCALE | |
1025 | NEWMESH.Parent = PARENT | |
1026 | return NEWMESH | |
1027 | end | |
1028 | ||
1029 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
1030 | local NEWPART = IT("Part") | |
1031 | NEWPART.formFactor = FORMFACTOR | |
1032 | NEWPART.Reflectance = REFLECTANCE | |
1033 | NEWPART.Transparency = TRANSPARENCY | |
1034 | NEWPART.CanCollide = false | |
1035 | NEWPART.Locked = true | |
1036 | NEWPART.Anchored = true | |
1037 | if ANCHOR == false then | |
1038 | NEWPART.Anchored = false | |
1039 | end | |
1040 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
1041 | NEWPART.Name = NAME | |
1042 | NEWPART.Size = SIZE | |
1043 | NEWPART.Position = Torso.Position | |
1044 | NEWPART.Material = MATERIAL | |
1045 | NEWPART:BreakJoints() | |
1046 | NEWPART.Parent = PARENT | |
1047 | return NEWPART | |
1048 | end | |
1049 | ||
1050 | local function weldBetween(a, b) | |
1051 | local weldd = Instance.new("ManualWeld") | |
1052 | weldd.Part0 = a | |
1053 | weldd.Part1 = b | |
1054 | weldd.C0 = CFrame.new() | |
1055 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
1056 | weldd.Parent = a | |
1057 | return weldd | |
1058 | end | |
1059 | ||
1060 | ||
1061 | function QuaternionFromCFrame(cf) | |
1062 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
1063 | local trace = m00 + m11 + m22 | |
1064 | if trace > 0 then | |
1065 | local s = math.sqrt(1 + trace) | |
1066 | local recip = 0.5 / s | |
1067 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
1068 | else | |
1069 | local i = 0 | |
1070 | if m11 > m00 then | |
1071 | i = 1 | |
1072 | end | |
1073 | if m22 > (i == 0 and m00 or m11) then | |
1074 | i = 2 | |
1075 | end | |
1076 | if i == 0 then | |
1077 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
1078 | local recip = 0.5 / s | |
1079 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
1080 | elseif i == 1 then | |
1081 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
1082 | local recip = 0.5 / s | |
1083 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
1084 | elseif i == 2 then | |
1085 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
1086 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
1087 | end | |
1088 | end | |
1089 | end | |
1090 | ||
1091 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
1092 | local xs, ys, zs = x + x, y + y, z + z | |
1093 | local wx, wy, wz = w * xs, w * ys, w * zs | |
1094 | local xx = x * xs | |
1095 | local xy = x * ys | |
1096 | local xz = x * zs | |
1097 | local yy = y * ys | |
1098 | local yz = y * zs | |
1099 | local zz = z * zs | |
1100 | 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)) | |
1101 | end | |
1102 | ||
1103 | function QuaternionSlerp(a, b, t) | |
1104 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
1105 | local startInterp, finishInterp; | |
1106 | if cosTheta >= 0.0001 then | |
1107 | if (1 - cosTheta) > 0.0001 then | |
1108 | local theta = ACOS(cosTheta) | |
1109 | local invSinTheta = 1 / SIN(theta) | |
1110 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
1111 | finishInterp = SIN(t * theta) * invSinTheta | |
1112 | else | |
1113 | startInterp = 1 - t | |
1114 | finishInterp = t | |
1115 | end | |
1116 | else | |
1117 | if (1 + cosTheta) > 0.0001 then | |
1118 | local theta = ACOS(-cosTheta) | |
1119 | local invSinTheta = 1 / SIN(theta) | |
1120 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
1121 | finishInterp = SIN(t * theta) * invSinTheta | |
1122 | else | |
1123 | startInterp = t - 1 | |
1124 | finishInterp = t | |
1125 | end | |
1126 | end | |
1127 | 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 | |
1128 | end | |
1129 | ||
1130 | function Clerp(a, b, t) | |
1131 | local qa = {QuaternionFromCFrame(a)} | |
1132 | local qb = {QuaternionFromCFrame(b)} | |
1133 | local ax, ay, az = a.x, a.y, a.z | |
1134 | local bx, by, bz = b.x, b.y, b.z | |
1135 | local _t = 1 - t | |
1136 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
1137 | end | |
1138 | ||
1139 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
1140 | local frame = IT("Frame") | |
1141 | frame.BackgroundTransparency = TRANSPARENCY | |
1142 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
1143 | frame.Position = POSITION | |
1144 | frame.Size = SIZE | |
1145 | frame.BackgroundColor3 = COLOR | |
1146 | frame.BorderColor3 = BORDERCOLOR | |
1147 | frame.Name = NAME | |
1148 | frame.Parent = PARENT | |
1149 | return frame | |
1150 | end | |
1151 | ||
1152 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
1153 | local label = IT("TextLabel") | |
1154 | label.BackgroundTransparency = 1 | |
1155 | label.Size = UD2(1, 0, 1, 0) | |
1156 | label.Position = UD2(0, 0, 0, 0) | |
1157 | label.TextColor3 = TEXTCOLOR | |
1158 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
1159 | label.TextTransparency = TRANSPARENCY | |
1160 | label.FontSize = TEXTFONTSIZE | |
1161 | label.Font = TEXTFONT | |
1162 | label.BorderSizePixel = BORDERSIZEPIXEL | |
1163 | label.TextScaled = false | |
1164 | label.Text = TEXT | |
1165 | label.Name = NAME | |
1166 | label.Parent = PARENT | |
1167 | return label | |
1168 | end | |
1169 | ||
1170 | function NoOutlines(PART) | |
1171 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
1172 | end | |
1173 | ||
1174 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
1175 | local NEWWELD = IT(TYPE) | |
1176 | NEWWELD.Part0 = PART0 | |
1177 | NEWWELD.Part1 = PART1 | |
1178 | NEWWELD.C0 = C0 | |
1179 | NEWWELD.C1 = C1 | |
1180 | NEWWELD.Parent = PARENT | |
1181 | return NEWWELD | |
1182 | end | |
1183 | ||
1184 | local S = IT("Sound") | |
1185 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
1186 | local NEWSOUND = nil | |
1187 | coroutine.resume(coroutine.create(function() | |
1188 | NEWSOUND = S:Clone() | |
1189 | NEWSOUND.Parent = PARENT | |
1190 | NEWSOUND.Volume = VOLUME | |
1191 | NEWSOUND.Pitch = PITCH | |
1192 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
1193 | NEWSOUND:play() | |
1194 | if DOESLOOP == true then | |
1195 | NEWSOUND.Looped = true | |
1196 | else | |
1197 | repeat wait(1) until NEWSOUND.Playing == false | |
1198 | NEWSOUND:remove() | |
1199 | end | |
1200 | end)) | |
1201 | return NEWSOUND | |
1202 | end | |
1203 | ||
1204 | function CFrameFromTopBack(at, top, back) | |
1205 | local right = top:Cross(back) | |
1206 | return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z) | |
1207 | end | |
1208 | ||
1209 | --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1210 | function WACKYEFFECT(Table) | |
1211 | local TYPE = (Table.EffectType or "Sphere") | |
1212 | local SIZE = (Table.Size or VT(1,1,1)) | |
1213 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
1214 | local TRANSPARENCY = (Table.Transparency or 0) | |
1215 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
1216 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
1217 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
1218 | local ROTATION1 = (Table.RotationX or 0) | |
1219 | local ROTATION2 = (Table.RotationY or 0) | |
1220 | local ROTATION3 = (Table.RotationZ or 0) | |
1221 | local MATERIAL = (Table.Material or "Neon") | |
1222 | local COLOR = (Table.Color or C3(1,1,1)) | |
1223 | local TIME = (Table.Time or 45) | |
1224 | local SOUNDID = (Table.SoundID or nil) | |
1225 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
1226 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
1227 | coroutine.resume(coroutine.create(function() | |
1228 | local PLAYSSOUND = false | |
1229 | local SOUND = nil | |
1230 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
1231 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
1232 | PLAYSSOUND = true | |
1233 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
1234 | end | |
1235 | EFFECT.Color = COLOR | |
1236 | local MSH = nil | |
1237 | if TYPE == "Sphere" then | |
1238 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
1239 | elseif TYPE == "Block" then | |
1240 | MSH = IT("BlockMesh",EFFECT) | |
1241 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
1242 | elseif TYPE == "Wave" then | |
1243 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
1244 | elseif TYPE == "Ring" then | |
1245 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
1246 | elseif TYPE == "Slash" then | |
1247 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
1248 | elseif TYPE == "Round Slash" then | |
1249 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
1250 | elseif TYPE == "Swirl" then | |
1251 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
1252 | elseif TYPE == "Skull" then | |
1253 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
1254 | elseif TYPE == "Crystal" then | |
1255 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
1256 | end | |
1257 | if MSH ~= nil then | |
1258 | local MOVESPEED = nil | |
1259 | if MOVEDIRECTION ~= nil then | |
1260 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
1261 | end | |
1262 | local GROWTH = SIZE - ENDSIZE | |
1263 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
1264 | if TYPE == "Block" then | |
1265 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
1266 | else | |
1267 | EFFECT.CFrame = CFRAME | |
1268 | end | |
1269 | for LOOP = 1, TIME+1 do | |
1270 | Swait() | |
1271 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
1272 | if TYPE == "Wave" then | |
1273 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
1274 | end | |
1275 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
1276 | if TYPE == "Block" then | |
1277 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
1278 | else | |
1279 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
1280 | end | |
1281 | if MOVEDIRECTION ~= nil then | |
1282 | local ORI = EFFECT.Orientation | |
1283 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
1284 | EFFECT.Orientation = ORI | |
1285 | end | |
1286 | end | |
1287 | if PLAYSSOUND == false then | |
1288 | EFFECT:remove() | |
1289 | else | |
1290 | repeat Swait() until SOUND.Playing == false | |
1291 | EFFECT:remove() | |
1292 | end | |
1293 | else | |
1294 | if PLAYSSOUND == false then | |
1295 | EFFECT:remove() | |
1296 | else | |
1297 | repeat Swait() until SOUND.Playing == false | |
1298 | EFFECT:remove() | |
1299 | end | |
1300 | end | |
1301 | end)) | |
1302 | end | |
1303 | ||
1304 | function MakeForm(PART,TYPE) | |
1305 | if TYPE == "Cyl" then | |
1306 | local MSH = IT("CylinderMesh",PART) | |
1307 | elseif TYPE == "Ball" then | |
1308 | local MSH = IT("SpecialMesh",PART) | |
1309 | MSH.MeshType = "Sphere" | |
1310 | elseif TYPE == "Wedge" then | |
1311 | local MSH = IT("SpecialMesh",PART) | |
1312 | MSH.MeshType = "Wedge" | |
1313 | end | |
1314 | end | |
1315 | ||
1316 | Debris = game:GetService("Debris") | |
1317 | ||
1318 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
1319 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
1320 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
1321 | end | |
1322 | ||
1323 | function CharacterFade(COLOR,TIMER) | |
1324 | coroutine.resume(coroutine.create(function() | |
1325 | local FADE = IT("Model",Effects) | |
1326 | for _, c in pairs(Character:GetChildren()) do | |
1327 | if c.ClassName == "Part" and c ~= RootPart then | |
1328 | local FADER = c:Clone() | |
1329 | FADER.Color = COLOR | |
1330 | FADER.CFrame = c.CFrame | |
1331 | FADER.Parent = FADE | |
1332 | FADER.Anchored = true | |
1333 | FADER.Transparency = 0.25 | |
1334 | FADER:BreakJoints() | |
1335 | FADER.Material = "Glass" | |
1336 | FADER:ClearAllChildren() | |
1337 | if FADER.Name == "Head" then | |
1338 | FADER.Size = VT(1,1,1) | |
1339 | end | |
1340 | end | |
1341 | end | |
1342 | local TRANS = 0.75/TIMER | |
1343 | for i = 1, TIMER do | |
1344 | Swait() | |
1345 | for _, c in pairs(FADE:GetChildren()) do | |
1346 | if c.ClassName == "Part" then | |
1347 | c.Transparency = c.Transparency + TRANS | |
1348 | end | |
1349 | end | |
1350 | end | |
1351 | FADE:remove() | |
1352 | end)) | |
1353 | end | |
1354 | ||
1355 | local PE=Instance.new("ParticleEmitter") | |
1356 | PE.LightEmission=0.3 | |
1357 | PE.Size=NumberSequence.new(0) | |
1358 | PE.Transparency=NumberSequence.new(0,1) | |
1359 | PE.Rotation=NumberRange.new(0,360) | |
1360 | PE.LockedToPart = false | |
1361 | PE.Speed = NumberRange.new(0,0,0) | |
1362 | PE.ZOffset = 0.3 | |
1363 | PE.Rate = 999 | |
1364 | PE.VelocitySpread = 25 | |
1365 | PE.Name = "Particles" | |
1366 | ||
1367 | function CreateParticles(art,accel,drag,lifetime,type,isenabledbydefault,locked,size,speed) | |
1368 | local particle = nil | |
1369 | coroutine.resume(coroutine.create(function(PART) | |
1370 | particle = PE:Clone() | |
1371 | Swait() | |
1372 | particle.Rate = 999 | |
1373 | particle.Parent = art | |
1374 | particle.Acceleration = accel | |
1375 | if type == "Fire" then | |
1376 | local EyeSizes={ | |
1377 | NumberSequenceKeypoint.new(0,size,size/2), | |
1378 | NumberSequenceKeypoint.new(1,size/4,size/8) | |
1379 | } | |
1380 | particle.Size = NumberSequence.new(EyeSizes) | |
1381 | elseif type == "Smoke" then | |
1382 | local EyeSizes={ | |
1383 | NumberSequenceKeypoint.new(0,size/5,0), | |
1384 | NumberSequenceKeypoint.new(1,size*2,0.5) | |
1385 | } | |
1386 | particle.Size = NumberSequence.new(EyeSizes) | |
1387 | elseif type == "Solid" then | |
1388 | local EyeSizes={ | |
1389 | NumberSequenceKeypoint.new(0,size,0), | |
1390 | NumberSequenceKeypoint.new(1,size,0) | |
1391 | } | |
1392 | particle.Size = NumberSequence.new(EyeSizes) | |
1393 | end | |
1394 | particle.Lifetime=NumberRange.new(lifetime) | |
1395 | particle.Drag = drag | |
1396 | if locked == true then | |
1397 | particle.LockedToPart = true | |
1398 | end | |
1399 | particle.Speed = NumberRange.new(speed*0.8,speed) | |
1400 | particle.Texture = "http://www.roblox.com/asset/?id=1179557490" | |
1401 | particle.Enabled = isenabledbydefault | |
1402 | particle.Color = ColorSequence.new(Color3.new(255/255, 176/255, 0)) | |
1403 | end)) | |
1404 | return particle | |
1405 | end | |
1406 | ||
1407 | --//=================================\\ | |
1408 | --|| RAGDOLL STUFF | |
1409 | --\\=================================// | |
1410 | ||
1411 | function recurse(root,callback,i) | |
1412 | i= i or 0 | |
1413 | for _,v in pairs(root:GetChildren()) do | |
1414 | i = i + 1 | |
1415 | callback(i,v) | |
1416 | ||
1417 | if #v:GetChildren() > 0 then | |
1418 | i = recurse(v,callback,i) | |
1419 | end | |
1420 | end | |
1421 | ||
1422 | return i | |
1423 | end | |
1424 | ||
1425 | function ragdollJoint(character, part0, part1, attachmentName, className, properties) | |
1426 | attachmentName = attachmentName.."RigAttachment" | |
1427 | local constraint = Instance.new(className.."Constraint") | |
1428 | constraint.Attachment0 = part0:FindFirstChild(attachmentName) | |
1429 | constraint.Attachment1 = part1:FindFirstChild(attachmentName) | |
1430 | constraint.Name = "RagdollConstraint"..part1.Name | |
1431 | ||
1432 | for _,propertyData in next,properties or {} do | |
1433 | constraint[propertyData[1]] = propertyData[2] | |
1434 | end | |
1435 | ||
1436 | constraint.Parent = character | |
1437 | end | |
1438 | ||
1439 | function getAttachment0(character, attachmentName) | |
1440 | for _,child in next,character:GetChildren() do | |
1441 | local attachment = child:FindFirstChild(attachmentName) | |
1442 | if attachment then | |
1443 | return attachment | |
1444 | end | |
1445 | end | |
1446 | end | |
1447 | ||
1448 | function ArtificialHitbox(Part) | |
1449 | local HITBOX = CreatePart(3, Part, "Metal", 0, 1, "Really black", "Hitbox", Part.Size/2, false) | |
1450 | HITBOX.CanCollide = true | |
1451 | HITBOX.CFrame = Part.CFrame | |
1452 | weldBetween(Part,HITBOX) | |
1453 | end | |
1454 | ||
1455 | function R15Ragdoll(character,KeepArms) | |
1456 | character:BreakJoints() | |
1457 | coroutine.resume(coroutine.create(function() | |
1458 | recurse(character, function(_,v) | |
1459 | if v:IsA("Attachment") then | |
1460 | v.Axis = Vector3.new(0, 1, 0) | |
1461 | v.SecondaryAxis = Vector3.new(0, 0, 1) | |
1462 | v.Rotation = Vector3.new(0, 0, 0) | |
1463 | end | |
1464 | end) | |
1465 | for _,child in next,character:GetChildren() do | |
1466 | if child:IsA("Accoutrement") then | |
1467 | for _,part in next,child:GetChildren() do | |
1468 | if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then | |
1469 | local attachment1 = part:FindFirstChildOfClass("Attachment") | |
1470 | local attachment0 = getAttachment0(character,attachment1.Name) | |
1471 | if attachment0 and attachment1 then | |
1472 | local constraint = Instance.new("HingeConstraint") | |
1473 | constraint.Attachment0 = attachment0 | |
1474 | constraint.Attachment1 = attachment1 | |
1475 | constraint.LimitsEnabled = true | |
1476 | constraint.UpperAngle = 0 | |
1477 | constraint.LowerAngle = 0 | |
1478 | constraint.Parent = character | |
1479 | end | |
1480 | ArtificialHitbox(part) | |
1481 | elseif part.Name == "HumanoidRootPart" then | |
1482 | part:remove() | |
1483 | end | |
1484 | end | |
1485 | end | |
1486 | end | |
1487 | ||
1488 | ragdollJoint(character,character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", { | |
1489 | {"LimitsEnabled",true}; | |
1490 | {"UpperAngle",5}; | |
1491 | }) | |
1492 | if character:FindFirstChild("Head") then | |
1493 | ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "BallSocket", { | |
1494 | {"LimitsEnabled",true}; | |
1495 | {"UpperAngle",15}; | |
1496 | }) | |
1497 | end | |
1498 | ||
1499 | local handProperties = { | |
1500 | {"LimitsEnabled", true}; | |
1501 | {"UpperAngle",0}; | |
1502 | {"LowerAngle",0}; | |
1503 | } | |
1504 | ragdollJoint(character,character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties) | |
1505 | ragdollJoint(character,character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties) | |
1506 | ||
1507 | local shinProperties = { | |
1508 | {"LimitsEnabled", true}; | |
1509 | {"UpperAngle", 0}; | |
1510 | {"LowerAngle", -75}; | |
1511 | } | |
1512 | ragdollJoint(character,character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties) | |
1513 | ragdollJoint(character,character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties) | |
1514 | ||
1515 | local footProperties = { | |
1516 | {"LimitsEnabled", true}; | |
1517 | {"UpperAngle", 15}; | |
1518 | {"LowerAngle", -45}; | |
1519 | } | |
1520 | ragdollJoint(character,character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties) | |
1521 | ragdollJoint(character,character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties) | |
1522 | if KeepArms == true then | |
1523 | ragdollJoint(character,character.UpperTorso, character.RightUpperArm, "RightShoulder", "BallSocket") | |
1524 | ragdollJoint(character,character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket") | |
1525 | ragdollJoint(character,character.UpperTorso, character.LeftUpperArm, "LeftShoulder", "BallSocket") | |
1526 | ragdollJoint(character,character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket") | |
1527 | end | |
1528 | ragdollJoint(character,character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket") | |
1529 | ragdollJoint(character,character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket") | |
1530 | Debris:AddItem(character,5) | |
1531 | end)) | |
1532 | end | |
1533 | ||
1534 | function Ragdoll(Character2,CharTorso,KeepArms) | |
1535 | coroutine.resume(coroutine.create(function() | |
1536 | Character2:BreakJoints() | |
1537 | local hum = Character2:findFirstChild("Humanoid") | |
1538 | hum:remove() | |
1539 | local function Scan(ch) | |
1540 | local e | |
1541 | for e = 1,#ch do | |
1542 | Scan(ch[e]:GetChildren()) | |
1543 | if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then | |
1544 | ch[e]:remove() | |
1545 | end | |
1546 | end | |
1547 | end | |
1548 | local NEWHUM = IT("Humanoid") | |
1549 | NEWHUM.Name = "Corpse" | |
1550 | NEWHUM.Health = 0 | |
1551 | NEWHUM.MaxHealth = 0 | |
1552 | NEWHUM.PlatformStand = true | |
1553 | NEWHUM.Parent = Character2 | |
1554 | NEWHUM.DisplayDistanceType = "None" | |
1555 | ||
1556 | local ch = Character2:GetChildren() | |
1557 | local i | |
1558 | for i = 1,#ch do | |
1559 | if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then | |
1560 | ch[i]:remove() | |
1561 | end | |
1562 | end | |
1563 | ||
1564 | local Torso2 = Character2.Torso | |
1565 | local movevector = Vector3.new() | |
1566 | ||
1567 | if Torso2 then | |
1568 | movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector | |
1569 | local Head = Character2:FindFirstChild("Head") | |
1570 | if Head then | |
1571 | local Neck = Instance.new("Weld") | |
1572 | Neck.Name = "Neck" | |
1573 | Neck.Part0 = Torso2 | |
1574 | Neck.Part1 = Head | |
1575 | Neck.C0 = CFrame.new(0, 1.5, 0) | |
1576 | Neck.C1 = CFrame.new() | |
1577 | Neck.Parent = Torso2 | |
1578 | ||
1579 | end | |
1580 | local Limb = Character2:FindFirstChild("Right Arm") | |
1581 | if Limb and KeepArms == true then | |
1582 | ||
1583 | Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0) | |
1584 | local Joint = Instance.new("Glue") | |
1585 | Joint.Name = "RightShoulder" | |
1586 | Joint.Part0 = Torso2 | |
1587 | Joint.Part1 = Limb | |
1588 | Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
1589 | Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
1590 | Joint.Parent = Torso2 | |
1591 | ||
1592 | local B = Instance.new("Part") | |
1593 | B.TopSurface = 0 | |
1594 | B.BottomSurface = 0 | |
1595 | B.formFactor = "Symmetric" | |
1596 | B.Size = Vector3.new(1, 1, 1) | |
1597 | B.Transparency = 1 | |
1598 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
1599 | B.Parent = Character2 | |
1600 | local W = Instance.new("Weld") | |
1601 | W.Part0 = Limb | |
1602 | W.Part1 = B | |
1603 | W.C0 = CFrame.new(0, -0.5, 0) | |
1604 | W.Parent = Limb | |
1605 | ||
1606 | end | |
1607 | local Limb = Character2:FindFirstChild("Left Arm") | |
1608 | if Limb and KeepArms == true then | |
1609 | ||
1610 | Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0) | |
1611 | local Joint = Instance.new("Glue") | |
1612 | Joint.Name = "LeftShoulder" | |
1613 | Joint.Part0 = Torso2 | |
1614 | Joint.Part1 = Limb | |
1615 | Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
1616 | Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
1617 | Joint.Parent = Torso2 | |
1618 | ||
1619 | local B = Instance.new("Part") | |
1620 | B.TopSurface = 0 | |
1621 | B.BottomSurface = 0 | |
1622 | B.formFactor = "Symmetric" | |
1623 | B.Size = Vector3.new(1, 1, 1) | |
1624 | B.Transparency = 1 | |
1625 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
1626 | B.Parent = Character2 | |
1627 | local W = Instance.new("Weld") | |
1628 | W.Part0 = Limb | |
1629 | W.Part1 = B | |
1630 | W.C0 = CFrame.new(0, -0.5, 0) | |
1631 | W.Parent = Limb | |
1632 | ||
1633 | end | |
1634 | local Limb = Character2:FindFirstChild("Right Leg") | |
1635 | if Limb then | |
1636 | ||
1637 | Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0) | |
1638 | local Joint = Instance.new("Glue") | |
1639 | Joint.Name = "RightHip" | |
1640 | Joint.Part0 = Torso2 | |
1641 | Joint.Part1 = Limb | |
1642 | Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
1643 | Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
1644 | Joint.Parent = Torso2 | |
1645 | ||
1646 | local B = Instance.new("Part") | |
1647 | B.TopSurface = 0 | |
1648 | B.BottomSurface = 0 | |
1649 | B.formFactor = "Symmetric" | |
1650 | B.Size = Vector3.new(1, 1, 1) | |
1651 | B.Transparency = 1 | |
1652 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
1653 | B.Parent = Character2 | |
1654 | local W = Instance.new("Weld") | |
1655 | W.Part0 = Limb | |
1656 | W.Part1 = B | |
1657 | W.C0 = CFrame.new(0, -0.5, 0) | |
1658 | W.Parent = Limb | |
1659 | ||
1660 | end | |
1661 | local Limb = Character2:FindFirstChild("Left Leg") | |
1662 | if Limb then | |
1663 | ||
1664 | Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0) | |
1665 | local Joint = Instance.new("Glue") | |
1666 | Joint.Name = "LeftHip" | |
1667 | Joint.Part0 = Torso2 | |
1668 | Joint.Part1 = Limb | |
1669 | Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
1670 | Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
1671 | Joint.Parent = Torso2 | |
1672 | ||
1673 | local B = Instance.new("Part") | |
1674 | B.TopSurface = 0 | |
1675 | B.BottomSurface = 0 | |
1676 | B.formFactor = "Symmetric" | |
1677 | B.Size = Vector3.new(1, 1, 1) | |
1678 | B.Transparency = 1 | |
1679 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
1680 | B.Parent = Character2 | |
1681 | local W = Instance.new("Weld") | |
1682 | W.Part0 = Limb | |
1683 | W.Part1 = B | |
1684 | W.C0 = CFrame.new(0, -0.5, 0) | |
1685 | W.Parent = Limb | |
1686 | ||
1687 | end | |
1688 | --[ | |
1689 | local Bar = Instance.new("Part") | |
1690 | Bar.TopSurface = 0 | |
1691 | Bar.BottomSurface = 0 | |
1692 | Bar.formFactor = "Symmetric" | |
1693 | Bar.Size = Vector3.new(1, 1, 1) | |
1694 | Bar.Transparency = 1 | |
1695 | Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0) | |
1696 | Bar.Parent = Character2 | |
1697 | local Weld = Instance.new("Weld") | |
1698 | Weld.Part0 = Torso2 | |
1699 | Weld.Part1 = Bar | |
1700 | Weld.C0 = CFrame.new(0, 0.5, 0) | |
1701 | Weld.Parent = Torso2 | |
1702 | --]] | |
1703 | end | |
1704 | Character2.Parent = workspace | |
1705 | Debris:AddItem(Character2,5) | |
1706 | ||
1707 | return Character2,Torso2 | |
1708 | end)) | |
1709 | end | |
1710 | ||
1711 | --//=================================\\ | |
1712 | --|| WEAPON CREATION | |
1713 | --\\=================================// | |
1714 | ||
1715 | local DUST = CreateParticles(RightArm,VT(0,0,0),5,2,"Smoke",false,false,5,0) | |
1716 | DUST.ZOffset = 1 | |
1717 | RightArm.Transparency = 1 | |
1718 | local BasePart = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(1,2,1),false) | |
1719 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, BasePart, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1720 | local Sphere = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(1.4,1.4,1.4),false) | |
1721 | MakeForm(Sphere,"Ball") | |
1722 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Sphere, CF(0.2,0.8,0.1) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1723 | local LaserPart = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0.3,0.3,0.1),false) | |
1724 | MakeForm(LaserPart,"Ball") | |
1725 | CreateWeldOrSnapOrMotor("Weld", Sphere, Sphere, LaserPart, CF(0,0,-0.65) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1726 | local Bump = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.3,0.2),false) | |
1727 | MakeForm(Bump,"Ball") | |
1728 | CreateWeldOrSnapOrMotor("Weld", Sphere, Sphere, Bump, CF(0,0,0.65) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1729 | local BottomLaser = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0.4,0,0.4),false) | |
1730 | MakeForm(BottomLaser,"Cyl") | |
1731 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, BottomLaser, CF(0,-1,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1732 | local Part1 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.5,0.5),false) | |
1733 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part1, CF(0,-0.76,-0.26) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1734 | local Part2 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.5,0.5),false) | |
1735 | CreateWeldOrSnapOrMotor("Weld", BasePart, Part1, Part2, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0, -0.25, 0)) | |
1736 | local Part3 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.5,0.5),false) | |
1737 | CreateWeldOrSnapOrMotor("Weld", BasePart, Part1, Part3, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(-90)), CF(0, -0.26, 0)) | |
1738 | local Part4 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.56,0.5),false) | |
1739 | CreateWeldOrSnapOrMotor("Weld", BasePart, Part2, Part4, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, -0.26, 0)) | |
1740 | local Part5 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.56,0.5),false) | |
1741 | CreateWeldOrSnapOrMotor("Weld", BasePart, Part4, Part5, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(-125)), CF(0, -0.26, 0)) | |
1742 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.25,0.5),false) | |
1743 | CreateWeldOrSnapOrMotor("Weld", BasePart, Part4, Part, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(0, -0.26/2, 0)) | |
1744 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.3,0.5),false) | |
1745 | CreateWeldOrSnapOrMotor("Weld", BasePart, Part2, Part, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(-65)), CF(0, -0.31/2, 0)) | |
1746 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(1.4,0,1.4),false) | |
1747 | MakeForm(Part,"Cyl") | |
1748 | CreateWeldOrSnapOrMotor("Weld", Sphere, Sphere, Part, CF(0.035,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1749 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(1.4,0,1.4),false) | |
1750 | MakeForm(Part,"Cyl") | |
1751 | CreateWeldOrSnapOrMotor("Weld", Sphere, Sphere, Part, CF(0,-0.035,0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0)) | |
1752 | local Sphere = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(0.3,1.6,0.7),false) | |
1753 | MakeForm(Sphere,"Ball") | |
1754 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Sphere, CF(0.45,0.5,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1755 | ||
1756 | for _, c in pairs(Weapon:GetChildren()) do | |
1757 | if c.ClassName == "Part" then | |
1758 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1759 | end | |
1760 | end | |
1761 | ||
1762 | local SKILLTEXTCOLOR = C3(1,0,0) | |
1763 | local SKILLFONT = "SciFi" | |
1764 | local SKILLTEXTSIZE = 5 | |
1765 | ||
1766 | Weapon.Parent = Character | |
1767 | ||
1768 | Humanoid.Died:connect(function() | |
1769 | ATTACK = true | |
1770 | end) | |
1771 | ||
1772 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
1773 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.86, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
1774 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.82, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
1775 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.78, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
1776 | local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.74, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") | |
1777 | local SKILL6FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.70, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame") | |
1778 | ||
1779 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 1") | |
1780 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 2") | |
1781 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 3") | |
1782 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 4") | |
1783 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[E]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 5") | |
1784 | local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[X]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 6") | |
1785 | ||
1786 | --//=================================\\ | |
1787 | --|| ATTACK FUNCTIONS AND STUFF | |
1788 | --\\=================================// | |
1789 | ||
1790 | function Warp() | |
1791 | local HITFLOOR,HITPOS = Raycast(Mouse.Hit.p+VT(0,1,0), (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 100, Character) | |
1792 | if HITFLOOR then | |
1793 | CharacterFade(C3(0.5,0,0),50) | |
1794 | HITPOS = HITPOS + VT(0,3.5,0) | |
1795 | local POS = RootPart.Position | |
1796 | RootPart.CFrame = CF(HITPOS,CF(POS,HITPOS)*CF(0,0,-100000).p) | |
1797 | CreateSound(289556450,Torso,2,MRANDOM(8,13)/10,false) | |
1798 | end | |
1799 | end | |
1800 | ||
1801 | function Dash() | |
1802 | ATTACK = true | |
1803 | Rooted = true | |
1804 | local SOUND = CreateSound(1165167610, Torso, 1, 1, true) | |
1805 | local LOOP = 0 | |
1806 | repeat | |
1807 | LOOP = LOOP + 1 | |
1808 | Swait() | |
1809 | local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, 5, workspace) | |
1810 | local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 100, Character) | |
1811 | if HITFLOOR then | |
1812 | CharacterFade(C3(0.5,0,0),35) | |
1813 | HITPOS = HITPOS + VT(0,3.5,0) | |
1814 | local POS = RootPart.Position | |
1815 | RootPart.CFrame = CF(HITPOS,CF(POS,HITPOS)*CF(0,0,-100000).p) | |
1816 | RootPart.Velocity = VT(0,0,0) | |
1817 | RootPart.RotVelocity = VT(0,0,0) | |
1818 | end | |
1819 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(75), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1820 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-45), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1821 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1822 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1823 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-15), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1824 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-15), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1825 | until KEYHOLD == false | |
1826 | coroutine.resume(coroutine.create(function() | |
1827 | for i = 1, 20 do | |
1828 | Swait() | |
1829 | SOUND.Volume = SOUND.Volume - 1/20 | |
1830 | end | |
1831 | SOUND:remove() | |
1832 | end)) | |
1833 | if LOOP > 50 then | |
1834 | CreateSound(772085046,Torso,5,MRANDOM(8,13)/10,false) | |
1835 | for i = 1, 100 do | |
1836 | Swait() | |
1837 | RootPart.CFrame = RootPart.CFrame * CF(0,0,-(1-(i/100))/3) | |
1838 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(1,0.5,1), Size2 = VT(2,0,2), Transparency = 0.7, Transparency2 = 1, CFrame = CF(RightLeg.CFrame*CF(0,-1,0).p), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0.3,0.3,0.3), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1839 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(1,0.5,1), Size2 = VT(2,0,2), Transparency = 0.7, Transparency2 = 1, CFrame = CF(LeftLeg.CFrame*CF(0,-1,0).p), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0.3,0.3,0.3), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1840 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1841 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1842 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1843 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1844 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1845 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1846 | end | |
1847 | end | |
1848 | ATTACK = false | |
1849 | Rooted = false | |
1850 | end | |
1851 | ||
1852 | function LimbRip() | |
1853 | ATTACK = true | |
1854 | Rooted = false | |
1855 | local TARGET = nil | |
1856 | local ROOT = nil | |
1857 | local HUMAN = nil | |
1858 | local DIST = 4 | |
1859 | Speed = 12 | |
1860 | for i=0, 1, 0.1 / Animation_Speed do | |
1861 | Swait() | |
1862 | local CHILDREN = workspace:GetDescendants() | |
1863 | for index, CHILD in pairs(CHILDREN) do | |
1864 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1865 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1866 | if HUM then | |
1867 | local TORSO = CHILD:FindFirstChild("HumanoidRootPart") or CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1868 | if TORSO and HUM.Health > 0 then | |
1869 | if (TORSO.Position - RightArm.Position).Magnitude <= DIST then | |
1870 | DIST = (TORSO.Position - RightArm.Position).Magnitude | |
1871 | ROOT = TORSO | |
1872 | HUMAN = HUM | |
1873 | TARGET = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1874 | end | |
1875 | end | |
1876 | end | |
1877 | end | |
1878 | end | |
1879 | if ROOT then | |
1880 | break | |
1881 | end | |
1882 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
1883 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(10), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
1884 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.4) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1885 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1886 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1887 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1888 | end | |
1889 | Speed = 16 | |
1890 | if ROOT then | |
1891 | CreateSound(305685800,Torso,5,1.3,false) | |
1892 | Rooted = true | |
1893 | local GORED = false | |
1894 | coroutine.resume(coroutine.create(function() | |
1895 | repeat | |
1896 | Swait() | |
1897 | ROOT.Anchored = true | |
1898 | until GORED == true | |
1899 | ROOT.Anchored = false | |
1900 | end)) | |
1901 | RootPart.CFrame = ROOT.CFrame*CF(0,0,2.25) | |
1902 | if TARGET.Name == "Torso" then | |
1903 | local RARM = TARGET.Parent:FindFirstChild("Right Arm") | |
1904 | local LARM = TARGET.Parent:FindFirstChild("Left Arm") | |
1905 | if RARM and LARM then | |
1906 | for i=0, 1, 0.1 / Animation_Speed do | |
1907 | Swait() | |
1908 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1909 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1910 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1911 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1912 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1913 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1914 | end | |
1915 | for _, c in pairs(TARGET.Parent:GetDescendants()) do | |
1916 | if c:IsA("JointInstance") then | |
1917 | if c.Part1 == RARM or c.Part1 == LARM or c.Part0 == RARM or c.Part0 == LARM then | |
1918 | c:remove() | |
1919 | end | |
1920 | end | |
1921 | end | |
1922 | CreateSound(363808674, TARGET, 3, MRANDOM(7,9)/10, false) | |
1923 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, RARM, CF(0,-1.35,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1924 | CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, LARM, CF(0,-1.35,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1925 | for i=0, 1, 0.1 / Animation_Speed do | |
1926 | Swait() | |
1927 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1928 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1929 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(160), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1930 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(160), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1931 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1932 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1933 | end | |
1934 | for i=0, 1, 0.1 / Animation_Speed do | |
1935 | Swait() | |
1936 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.25) * ANGLES(RAD(-25), RAD(0), RAD(80)), 1 / Animation_Speed) | |
1937 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-30)), 1 / Animation_Speed) | |
1938 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(160), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1939 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(160), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1940 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.6) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-65), RAD(0), RAD(0)) * CF(0,1.5,0), 1 / Animation_Speed) | |
1941 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1942 | end | |
1943 | for i=0, 0.1, 0.1 / Animation_Speed do | |
1944 | Swait() | |
1945 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.2, 0.25) * ANGLES(RAD(-35), RAD(0), RAD(80)), 1 / Animation_Speed) | |
1946 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-30)), 1 / Animation_Speed) | |
1947 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(160), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1948 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(160), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1949 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.6) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-65), RAD(0), RAD(0)) * CF(0,-0.3,0), 1 / Animation_Speed) | |
1950 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1951 | end | |
1952 | GORED = true | |
1953 | Ragdoll(TARGET.Parent,Torso) | |
1954 | if ROOT.Name ~= "Torso" then | |
1955 | ROOT:remove() | |
1956 | end | |
1957 | local RGRAB = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, RARM, CF(0,-1.35,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1958 | local LGRAB = CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, LARM, CF(0,-1.35,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1959 | local bv = Instance.new("BodyVelocity",TARGET) | |
1960 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1961 | bv.velocity = TARGET.CFrame.lookVector*75 | |
1962 | Debris:AddItem(bv,0.05) | |
1963 | CreateSound(621557962, RightLeg, 1, MRANDOM(7,9)/10, false) | |
1964 | for i=0, 0.5, 0.1 / Animation_Speed do | |
1965 | Swait() | |
1966 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.2, 0.25) * ANGLES(RAD(-35), RAD(0), RAD(80)), 1 / Animation_Speed) | |
1967 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-30)), 1 / Animation_Speed) | |
1968 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(160), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1969 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(160), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1970 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.6) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-65), RAD(0), RAD(0)) * CF(0,-0.3,0), 1 / Animation_Speed) | |
1971 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1972 | end | |
1973 | for i=0, 1, 0.1 / Animation_Speed do | |
1974 | Swait() | |
1975 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1976 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1977 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.6 / Animation_Speed) | |
1978 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.6 / Animation_Speed) | |
1979 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1980 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1981 | end | |
1982 | local HITBOX = CreatePart(3, RARM, "Metal", 0, 1, "Really black", "Part", RARM.Size, false) | |
1983 | HITBOX.CFrame = RARM.CFrame | |
1984 | HITBOX.CanCollide = true | |
1985 | weldBetween(RARM,HITBOX) | |
1986 | local HITBOX = CreatePart(3, LARM, "Metal", 0, 1, "Really black", "Part", RARM.Size, false) | |
1987 | HITBOX.CFrame = LARM.CFrame | |
1988 | HITBOX.CanCollide = true | |
1989 | weldBetween(LARM,HITBOX) | |
1990 | RGRAB:remove() | |
1991 | LGRAB:remove() | |
1992 | for i=0, 0.4, 0.1 / Animation_Speed do | |
1993 | Swait() | |
1994 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1995 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1996 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(0), RAD(0), RAD(110)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1997 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(0), RAD(0), RAD(-110)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1998 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1999 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2000 | end | |
2001 | end | |
2002 | elseif TARGET.Name == "UpperTorso" then | |
2003 | if TARGET.Parent:FindFirstChild("RightUpperArm") and TARGET.Parent:FindFirstChild("LeftUpperArm") then | |
2004 | for i=0, 0.3, 0.1 / Animation_Speed do | |
2005 | Swait() | |
2006 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
2007 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
2008 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.5) * ANGLES(RAD(140), RAD(0), RAD(45)) * ANGLES(RAD(0), RAD(25), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2009 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2010 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2011 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2012 | end | |
2013 | local SAWBLADE = CreatePart(3, Weapon, "Neon", 0, 0.5, "Really red", "Part", VT(0,0,0),false) | |
2014 | local WELD = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, SAWBLADE, CF(0,-1,0) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0)) | |
2015 | local BLADE = true | |
2016 | CreateMesh("SpecialMesh", SAWBLADE, "FileMesh", "74322089", "", VT(1,1,1), VT(0,0,0)) | |
2017 | coroutine.resume(coroutine.create(function() | |
2018 | repeat | |
2019 | Swait() | |
2020 | WELD.C1 = WELD.C1 * ANGLES(RAD(0), RAD(0), RAD(25)) | |
2021 | until BLADE == false | |
2022 | SAWBLADE:remove() | |
2023 | end)) | |
2024 | CreateSound(1165167936, SAWBLADE, 2, 1, true) | |
2025 | for i=0, 1, 0.1 / Animation_Speed do | |
2026 | Swait() | |
2027 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
2028 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
2029 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.5) * ANGLES(RAD(140), RAD(0), RAD(45)) * ANGLES(RAD(0), RAD(25), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2030 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2031 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2032 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2033 | end | |
2034 | for i=0, 3, 0.1 / Animation_Speed do | |
2035 | Swait() | |
2036 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
2037 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
2038 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.5) * ANGLES(RAD(15), RAD(0), RAD(45)) * ANGLES(RAD(0), RAD(-25), RAD(0)) * RIGHTSHOULDERC0, 0.1 / Animation_Speed) | |
2039 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2040 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2041 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2042 | end | |
2043 | CreateSound(363808674, TARGET, 3, MRANDOM(7,9)/10, false) | |
2044 | TARGET.Parent:FindFirstChild("RightUpperArm").RightShoulder:remove() | |
2045 | for i=0, 1, 0.1 / Animation_Speed do | |
2046 | Swait() | |
2047 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(1, 0, 0.3) * ANGLES(RAD(0), RAD(0), RAD(90)), 1 / Animation_Speed) | |
2048 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-80)), 1 / Animation_Speed) | |
2049 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, 0) * ANGLES(RAD(140), RAD(0), RAD(90)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2050 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2051 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2052 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2053 | end | |
2054 | for i=0, 3, 0.1 / Animation_Speed do | |
2055 | Swait() | |
2056 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(1, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 1 / Animation_Speed) | |
2057 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-80)), 1 / Animation_Speed) | |
2058 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(15)) * ANGLES(RAD(0), RAD(-45), RAD(0)) * RIGHTSHOULDERC0, 0.1 / Animation_Speed) | |
2059 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2060 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2061 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2062 | end | |
2063 | CreateSound(363808674, TARGET, 3, MRANDOM(7,9)/10, false) | |
2064 | TARGET.Parent:FindFirstChild("LeftUpperArm").LeftShoulder:remove() | |
2065 | BLADE = false | |
2066 | for i=0, 0.5, 0.1 / Animation_Speed do | |
2067 | Swait() | |
2068 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.25) * ANGLES(RAD(-25), RAD(0), RAD(80)), 1 / Animation_Speed) | |
2069 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-30)), 1 / Animation_Speed) | |
2070 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-25), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2071 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2072 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.6) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-65), RAD(0), RAD(0)) * CF(0,1.5,0), 1 / Animation_Speed) | |
2073 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2074 | end | |
2075 | for i=0, 0.1, 0.1 / Animation_Speed do | |
2076 | Swait() | |
2077 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.2, 0.25) * ANGLES(RAD(-35), RAD(0), RAD(80)), 1 / Animation_Speed) | |
2078 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-30)), 1 / Animation_Speed) | |
2079 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-32), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2080 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2081 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.6) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-65), RAD(0), RAD(0)) * CF(0,-0.3,0), 1 / Animation_Speed) | |
2082 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2083 | end | |
2084 | GORED = true | |
2085 | TARGET.Parent:BreakJoints() | |
2086 | R15Ragdoll(TARGET.Parent) | |
2087 | if ROOT.Name ~= "Torso" then | |
2088 | ROOT:remove() | |
2089 | end | |
2090 | local bv = Instance.new("BodyVelocity",TARGET) | |
2091 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
2092 | bv.velocity = TARGET.CFrame.lookVector*75 | |
2093 | Debris:AddItem(bv,0.05) | |
2094 | CreateSound(621557962, RightLeg, 1, MRANDOM(7,9)/10, false) | |
2095 | for i=0, 0.3, 0.1 / Animation_Speed do | |
2096 | Swait() | |
2097 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.2, 0.25) * ANGLES(RAD(-35), RAD(0), RAD(80)), 1 / Animation_Speed) | |
2098 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-30)), 1 / Animation_Speed) | |
2099 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-32), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2100 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2101 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.6) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-65), RAD(0), RAD(0)) * CF(0,-0.3,0), 1 / Animation_Speed) | |
2102 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2103 | end | |
2104 | end | |
2105 | end | |
2106 | end | |
2107 | ATTACK = false | |
2108 | Rooted = false | |
2109 | end | |
2110 | ||
2111 | function Buzzsaw() | |
2112 | ATTACK = true | |
2113 | Rooted = false | |
2114 | local ARMSPEED = 0.1 | |
2115 | local TARGET = nil | |
2116 | local ROOT = nil | |
2117 | local HUMAN = nil | |
2118 | local DIST = 4 | |
2119 | local SAWBLADE = CreatePart(3, Weapon, "Neon", 0, 0.5, "Really red", "Part", VT(0,0,0),false) | |
2120 | local WELD = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, SAWBLADE, CF(0,-1,0) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0)) | |
2121 | local BLADE = true | |
2122 | CreateMesh("SpecialMesh", SAWBLADE, "FileMesh", "74322089", "", VT(2,2,1), VT(0,0,0)) | |
2123 | coroutine.resume(coroutine.create(function() | |
2124 | repeat | |
2125 | Swait() | |
2126 | WELD.C1 = WELD.C1 * ANGLES(RAD(0), RAD(0), RAD(25)) | |
2127 | until BLADE == false | |
2128 | SAWBLADE:remove() | |
2129 | end)) | |
2130 | CreateSound(1165167936, SAWBLADE, 2, 1, true) | |
2131 | for i=0, 1, 0.1 / Animation_Speed do | |
2132 | Swait() | |
2133 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
2134 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
2135 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55, 0.5, -0.5) * ANGLES(RAD(175), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2136 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2137 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2138 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2139 | end | |
2140 | for i=0, 2, 0.1 / Animation_Speed do | |
2141 | Swait() | |
2142 | local CHILDREN = workspace:GetDescendants() | |
2143 | for index, CHILD in pairs(CHILDREN) do | |
2144 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2145 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2146 | if HUM then | |
2147 | local TORSO = CHILD:FindFirstChild("HumanoidRootPart") or CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2148 | if TORSO and HUM.Health > 0 then | |
2149 | if (TORSO.Position - RightArm.Position).Magnitude <= DIST then | |
2150 | DIST = (TORSO.Position - RightArm.Position).Magnitude | |
2151 | ROOT = TORSO | |
2152 | HUMAN = HUM | |
2153 | TARGET = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2154 | end | |
2155 | end | |
2156 | end | |
2157 | end | |
2158 | end | |
2159 | if ROOT then | |
2160 | break | |
2161 | end | |
2162 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
2163 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
2164 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55, 0.5, -0.5) * ANGLES(RAD(15), RAD(0), RAD(45)) * ANGLES(RAD(0), RAD(-45), RAD(0)) * RIGHTSHOULDERC0, ARMSPEED / Animation_Speed) | |
2165 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2166 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2167 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2168 | end | |
2169 | if ROOT then | |
2170 | ARMSPEED = 0.03 | |
2171 | Rooted = true | |
2172 | RootPart.CFrame = ROOT.CFrame*CF(0,0,2.5) | |
2173 | repeat | |
2174 | HUMAN.Health = HUMAN.Health - 0.5 | |
2175 | Swait() | |
2176 | ROOT.Anchored = true | |
2177 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(1, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
2178 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
2179 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(45)) * ANGLES(RAD(0), RAD(-45), RAD(0)) * RIGHTSHOULDERC0, ARMSPEED / Animation_Speed) | |
2180 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2181 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2182 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2183 | until RightArm.Position.Y < Torso.Position.Y-0.15 or HUMAN.Health == 0 | |
2184 | ROOT.Anchored = false | |
2185 | if HUMAN.Health == 0 then | |
2186 | if ROOT.Name ~= "Torso" then | |
2187 | ROOT:remove() | |
2188 | end | |
2189 | if TARGET.Name == "Torso" then | |
2190 | Ragdoll(HUMAN.Parent,Torso,true) | |
2191 | elseif TARGET.Name == "UpperTorso" then | |
2192 | R15Ragdoll(HUMAN.Parent,true) | |
2193 | end | |
2194 | end | |
2195 | end | |
2196 | BLADE = false | |
2197 | ATTACK = false | |
2198 | Rooted = false | |
2199 | end | |
2200 | ||
2201 | function ReeeEEEEEE() | |
2202 | ATTACK = true | |
2203 | Rooted = false | |
2204 | Speed = 12 | |
2205 | local FX = CreateSound(198165368, Head, 4, 0.5, false) | |
2206 | repeat | |
2207 | Swait() | |
2208 | FX.Parent = Head | |
2209 | local CHILDREN = workspace:GetDescendants() | |
2210 | for index, CHILD in pairs(CHILDREN) do | |
2211 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2212 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2213 | if HUM then | |
2214 | local TORSO = CHILD:FindFirstChild("Head") | |
2215 | if TORSO then | |
2216 | if (TORSO.Position - Head.Position).Magnitude <= 25 then | |
2217 | WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = CF(TORSO.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2218 | TORSO:remove() | |
2219 | if CHILD:FindFirstChild("Torso") then | |
2220 | Ragdoll(CHILD,Torso,true) | |
2221 | elseif CHILD:FindFirstChild("UpperTorso") then | |
2222 | R15Ragdoll(CHILD,true) | |
2223 | end | |
2224 | end | |
2225 | end | |
2226 | end | |
2227 | end | |
2228 | end | |
2229 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2230 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-45), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2231 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(15)) * ANGLES(RAD(0), RAD(15), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2232 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(-15)) * ANGLES(RAD(0), RAD(-15), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2233 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-45), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2234 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-45), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2235 | until FX.Playing == false | |
2236 | Speed = 16 | |
2237 | ATTACK = false | |
2238 | Rooted = false | |
2239 | end | |
2240 | ||
2241 | function Needle() | |
2242 | ATTACK = true | |
2243 | Rooted = true | |
2244 | local GYRO = IT("BodyGyro",RootPart) | |
2245 | GYRO.D = 2 | |
2246 | GYRO.P = 2000 | |
2247 | GYRO.MaxTorque = VT(0,4000000,0) | |
2248 | local NEEDGYRO = true | |
2249 | coroutine.resume(coroutine.create(function() | |
2250 | repeat | |
2251 | Swait() | |
2252 | GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p) | |
2253 | until NEEDGYRO == false | |
2254 | GYRO:Remove() | |
2255 | end)) | |
2256 | for i=0, 0.3, 0.1 / Animation_Speed do | |
2257 | Swait() | |
2258 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
2259 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
2260 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2261 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(25), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2262 | RightHip.C0 = Clerp(RightHip.C0, CF(1, 0, -1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2263 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.5, 0) * ANGLES(RAD(-90), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2264 | end | |
2265 | for i=0, 1, 0.1 / Animation_Speed do | |
2266 | Swait() | |
2267 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
2268 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(15), RAD(-45)), 1 / Animation_Speed) | |
2269 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2270 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(25), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2271 | RightHip.C0 = Clerp(RightHip.C0, CF(1, 0, -1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2272 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.5, 0) * ANGLES(RAD(-90), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2273 | end | |
2274 | local HIT,POS = CastProperRay(RightArm.CFrame*CF(0,-1,0).p,Mouse.Hit.p,300,Character) | |
2275 | WACKYEFFECT({Time = 45, EffectType = "Wave", Size = VT(1,0,1), Size2 = VT(5,1,5), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 90655239, SoundPitch = 1, SoundVolume = 2}) | |
2276 | NEEDGYRO = false | |
2277 | if HIT then | |
2278 | local NEEDLE = IT("Model",Effects) | |
2279 | local BASE = CreatePart(3, NEEDLE, "Glass", 0, 0.5, "Pearl", "Part", VT(0.3,0.6,0.3), false) | |
2280 | MakeForm(BASE,"Cyl") | |
2281 | BASE.CFrame = CF(POS,RightArm.CFrame*CF(0,-1,0).p) * ANGLES(RAD(90), RAD(0), RAD(0))*CF(0,-0.35,0) | |
2282 | weldBetween(BASE,HIT) | |
2283 | local FLUID = CreatePart(3, NEEDLE, "Neon", 0, 0, "Lime green", "Part", VT(0.28,0.58,0.28), false) | |
2284 | MakeForm(FLUID,"Cyl") | |
2285 | FLUID.CFrame = BASE.CFrame | |
2286 | weldBetween(BASE,FLUID) | |
2287 | local PART = CreatePart(3, NEEDLE, "Metal", 0, 0, "Pearl", "Part", VT(0,0.2,0), false) | |
2288 | PART.CFrame = BASE.CFrame*CF(0,0.4,0) | |
2289 | weldBetween(BASE,PART) | |
2290 | local PART = CreatePart(3, NEEDLE, "Metal", 0, 0, "Pearl", "Part", VT(0.1,0.1,0.1), false) | |
2291 | PART.CFrame = BASE.CFrame*CF(0,-0.35,0) | |
2292 | weldBetween(BASE,PART) | |
2293 | local PART = CreatePart(3, NEEDLE, "Metal", 0, 0, "Pearl", "Part", VT(0.2,0.1,0.2), false) | |
2294 | PART.CFrame = BASE.CFrame*CF(0,-0.4,0) | |
2295 | weldBetween(BASE,PART) | |
2296 | Debris:AddItem(NEEDLE,7) | |
2297 | if HIT.Parent:FindFirstChildOfClass("Humanoid") then | |
2298 | local HUMAN = HIT.Parent:FindFirstChildOfClass("Humanoid") | |
2299 | coroutine.resume(coroutine.create(function() | |
2300 | for i = 1, 500 do | |
2301 | HUMAN.Health = HUMAN.Health - MRANDOM(1,6)/5 | |
2302 | if HUMAN.Health == 0 then | |
2303 | break | |
2304 | end | |
2305 | Swait(2) | |
2306 | end | |
2307 | if HUMAN.Health == 0 then | |
2308 | local CHILD = HUMAN.Parent | |
2309 | if CHILD:FindFirstChild("Torso") then | |
2310 | CHILD:FindFirstChild("Torso").CFrame = CHILD:FindFirstChild("Torso").CFrame * ANGLES(RAD(2), RAD(0), RAD(0)) | |
2311 | Ragdoll(CHILD,Torso,true) | |
2312 | elseif CHILD:FindFirstChild("UpperTorso") then | |
2313 | R15Ragdoll(CHILD,true) | |
2314 | end | |
2315 | end | |
2316 | end)) | |
2317 | end | |
2318 | end | |
2319 | for i=0, 1, 0.1 / Animation_Speed do | |
2320 | Swait() | |
2321 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
2322 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(15), RAD(-45)), 1 / Animation_Speed) | |
2323 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2324 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(25), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2325 | RightHip.C0 = Clerp(RightHip.C0, CF(1, 0, -1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2326 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.5, 0) * ANGLES(RAD(-90), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2327 | end | |
2328 | ATTACK = false | |
2329 | Rooted = false | |
2330 | end | |
2331 | ||
2332 | function ScrewThis() | |
2333 | ATTACK = true | |
2334 | Rooted = true | |
2335 | local SCREW = CreatePart(3, Weapon, "Neon", 0, 1, "Really red", "Part", VT(2, 0.4, 0.4)/2,false) | |
2336 | SCREW.CanCollide = true | |
2337 | local WELD = CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, SCREW, CF(0,-1,0.2) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0)) | |
2338 | CreateMesh("SpecialMesh", SCREW, "FileMesh", "70265804", "70265794", VT(1,1,1)/1.5, VT(0,0,0)) | |
2339 | for i=0, 0.4, 0.1 / Animation_Speed do | |
2340 | Swait() | |
2341 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2342 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(45)), 1 / Animation_Speed) | |
2343 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2344 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2345 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2346 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2347 | end | |
2348 | SCREW.Transparency = 0 | |
2349 | for i=0, 0.1, 0.1 / Animation_Speed do | |
2350 | Swait() | |
2351 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2352 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
2353 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(60), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2354 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2355 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2356 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2357 | end | |
2358 | for i=0, 1, 0.1 / Animation_Speed do | |
2359 | Swait() | |
2360 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2361 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
2362 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.15, -0.5) * ANGLES(RAD(40), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2363 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.7, 0.5, -0.3) * ANGLES(RAD(120), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(15), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2364 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2365 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2366 | end | |
2367 | for i = 1, 3 do | |
2368 | for i=0, 0.3, 0.1 / Animation_Speed do | |
2369 | Swait() | |
2370 | WELD.C1 = WELD.C1 * ANGLES(RAD(5), RAD(0), RAD(0)) | |
2371 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2372 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
2373 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.15, -0.5) * ANGLES(RAD(40), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2374 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.7, 0.5, -0.3) * ANGLES(RAD(120), RAD(0), RAD(78)) * ANGLES(RAD(0), RAD(15), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2375 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2376 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2377 | end | |
2378 | for i=0, 1, 0.1 / Animation_Speed do | |
2379 | Swait() | |
2380 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2381 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
2382 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.15, -0.5) * ANGLES(RAD(40), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2383 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.7, 0.5, -0.3) * ANGLES(RAD(120), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(15), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2384 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2385 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2386 | end | |
2387 | end | |
2388 | if MRANDOM(1, 5) == 1 then | |
2389 | DUST:Emit(25) | |
2390 | WELD:remove() | |
2391 | CreateSound(328460122, RightArm, 3, 1, false) | |
2392 | SCREW.Velocity = CF(RightArm.Position,SCREW.Position).lookVector*65 | |
2393 | Debris:AddItem(SCREW,6) | |
2394 | for i=0, 3, 0.1 / Animation_Speed do | |
2395 | Swait() | |
2396 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2397 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
2398 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.15, -0.5) * ANGLES(RAD(40), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2399 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.7, 0.5, -0.3) * ANGLES(RAD(120), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(15), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2400 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2401 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2402 | end | |
2403 | for i = 1, 3 do | |
2404 | for i=0, 0.35, 0.1 / Animation_Speed do | |
2405 | Swait() | |
2406 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2407 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(15)), 1 / Animation_Speed) | |
2408 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.15, -0.5) * ANGLES(RAD(40), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2409 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.7, 0.5, -0.3) * ANGLES(RAD(120), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(15), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2410 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2411 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2412 | end | |
2413 | for i=0, 0.35, 0.1 / Animation_Speed do | |
2414 | Swait() | |
2415 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2416 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-15)), 1 / Animation_Speed) | |
2417 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.15, -0.5) * ANGLES(RAD(40), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2418 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.7, 0.5, -0.3) * ANGLES(RAD(120), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(15), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2419 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2420 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2421 | end | |
2422 | end | |
2423 | else | |
2424 | for i=0, 0.5, 0.1 / Animation_Speed do | |
2425 | Swait() | |
2426 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2427 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(60)), 1 / Animation_Speed) | |
2428 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2429 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2430 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2431 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2432 | end | |
2433 | WELD:remove() | |
2434 | for i=0, 0.15, 0.1 / Animation_Speed do | |
2435 | Swait() | |
2436 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2437 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(60)), 1 / Animation_Speed) | |
2438 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2439 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-110)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2440 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2441 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2442 | end | |
2443 | Debris:AddItem(SCREW,6) | |
2444 | end | |
2445 | ATTACK = false | |
2446 | Rooted = false | |
2447 | end | |
2448 | ||
2449 | --//=================================\\ | |
2450 | --|| ASSIGN THINGS TO KEYS | |
2451 | --\\=================================// | |
2452 | ||
2453 | function MouseDown(Mouse) | |
2454 | if ATTACK == false then | |
2455 | end | |
2456 | end | |
2457 | ||
2458 | function MouseUp(Mouse) | |
2459 | HOLD = false | |
2460 | end | |
2461 | ||
2462 | function KeyDown(Key) | |
2463 | KEYHOLD = true | |
2464 | if Key == "z" and ATTACK == false then | |
2465 | Warp() | |
2466 | end | |
2467 | ||
2468 | if Key == "b" and ATTACK == false then | |
2469 | Dash() | |
2470 | end | |
2471 | ||
2472 | if Key == "c" and ATTACK == false then | |
2473 | LimbRip() | |
2474 | end | |
2475 | ||
2476 | if Key == "v" and ATTACK == false then | |
2477 | Buzzsaw() | |
2478 | end | |
2479 | ||
2480 | if Key == "e" and ATTACK == false then | |
2481 | ReeeEEEEEE() | |
2482 | end | |
2483 | ||
2484 | if Key == "x" and ATTACK == false then | |
2485 | Needle() | |
2486 | end | |
2487 | ||
2488 | if Key == "t" and ATTACK == false then | |
2489 | ScrewThis() | |
2490 | end | |
2491 | end | |
2492 | ||
2493 | function KeyUp(Key) | |
2494 | KEYHOLD = false | |
2495 | end | |
2496 | ||
2497 | Mouse.Button1Down:connect(function(NEWKEY) | |
2498 | MouseDown(NEWKEY) | |
2499 | end) | |
2500 | Mouse.Button1Up:connect(function(NEWKEY) | |
2501 | MouseUp(NEWKEY) | |
2502 | end) | |
2503 | Mouse.KeyDown:connect(function(NEWKEY) | |
2504 | KeyDown(NEWKEY) | |
2505 | end) | |
2506 | Mouse.KeyUp:connect(function(NEWKEY) | |
2507 | KeyUp(NEWKEY) | |
2508 | end) | |
2509 | ||
2510 | --//=================================\\ | |
2511 | --\\=================================// | |
2512 | ||
2513 | function AntiTimeStop() | |
2514 | for _, c in pairs(Character:GetChildren()) do | |
2515 | if c:IsA("BasePart") then | |
2516 | c.Anchored = false | |
2517 | end | |
2518 | end | |
2519 | for _, c in pairs(Weapon:GetChildren()) do | |
2520 | if c:IsA("BasePart") then | |
2521 | c.Anchored = false | |
2522 | end | |
2523 | end | |
2524 | end | |
2525 | ||
2526 | --//=================================\\ | |
2527 | --|| WRAP THE WHOLE SCRIPT UP | |
2528 | --\\=================================// | |
2529 | ||
2530 | Humanoid.Changed:connect(function(Jump) | |
2531 | if Jump == "Jump" and (Disable_Jump == true) then | |
2532 | Humanoid.Jump = false | |
2533 | end | |
2534 | end) | |
2535 | ||
2536 | local sick = IT("Sound") | |
2537 | ||
2538 | while true do | |
2539 | Swait() | |
2540 | script.Parent = WEAPONGUI | |
2541 | ANIMATE.Parent = nil | |
2542 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
2543 | v:Stop(); | |
2544 | end | |
2545 | SINE = SINE + CHANGE | |
2546 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
2547 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
2548 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
2549 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
2550 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
2551 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2552 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2553 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2- 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(90 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2554 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(90 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2555 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
2556 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2557 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2558 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2559 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2560 | end | |
2561 | if HITFLOOR == nil then | |
2562 | ANIM = "Midair" | |
2563 | if ATTACK == false then | |
2564 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2565 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2566 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75, 0) * ANGLES(RAD(-15), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2567 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(-15), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2568 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.2, -0.6) * ANGLES(RAD(15), RAD(70), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2569 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.2, -0.6) * ANGLES(RAD(15), RAD(-70), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2570 | end | |
2571 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
2572 | ANIM = "Idle" | |
2573 | if ATTACK == false then | |
2574 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2575 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2576 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.35 * SIN(SINE / 12), 0) * ANGLES(RAD(0), RAD(0), RAD(10 - 15 * COS(SINE / 12))) * ANGLES(RAD(0), RAD(-15), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2577 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.35 * SIN(SINE / 12), 0) * ANGLES(RAD(0), RAD(0), RAD(-10 + 15 * COS(SINE / 12))) * ANGLES(RAD(0), RAD(15), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2578 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2579 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2580 | end | |
2581 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
2582 | ANIM = "Walk" | |
2583 | if ATTACK == false then | |
2584 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(10 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed) | |
2585 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-10 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed) | |
2586 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * ANGLES(RAD(0), RAD(-15), RAD(0)) * RIGHTSHOULDERC0, 0.8 / Animation_Speed) | |
2587 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * ANGLES(RAD(0), RAD(15), RAD(0)) * LEFTSHOULDERC0, 0.8 / Animation_Speed) | |
2588 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed) | |
2589 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed) | |
2590 | end | |
2591 | end | |
2592 | Humanoid.MaxHealth = 10e10 | |
2593 | Humanoid.Health = 10e10 | |
2594 | sick.SoundId = "rbxassetid://1696854181" | |
2595 | sick.Looped = true | |
2596 | sick.Pitch = 1 | |
2597 | sick.Volume = 2 | |
2598 | sick.Playing = true | |
2599 | sick.Parent = Effects | |
2600 | AntiTimeStop() | |
2601 | if Rooted == false then | |
2602 | Disable_Jump = false | |
2603 | Humanoid.WalkSpeed = Speed | |
2604 | elseif Rooted == true then | |
2605 | Disable_Jump = true | |
2606 | Humanoid.WalkSpeed = 0 | |
2607 | end | |
2608 | Humanoid.Name = "Killbot" | |
2609 | end | |
2610 | ||
2611 | --//=================================\\ | |
2612 | --\\=================================// | |
2613 | ||
2614 | --//====================================================\\-- | |
2615 | --|| END OF SCRIPT | |
2616 | --\\====================================================//-- |