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