SHOW:
|
|
- or go back to the newest paste.
1 | plr = game:GetService("Players").LocalPlayer | |
2 | char = plr.Character | |
3 | hum = char.Humanoid | |
4 | local cam = game.Workspace.CurrentCamera | |
5 | local Controller = plr.PlayerScripts:WaitForChild("ControlScript") | |
6 | Camera = cam | |
7 | local CamInterrupt = false | |
8 | local TwoD = false | |
9 | local TargetInfo = {nil, nil} | |
10 | cam.CameraType = "Custom" | |
11 | t = char.Torso | |
12 | h = char.Head | |
13 | ra = char["Right Arm"] | |
14 | la = char["Left Arm"] | |
15 | rl = char["Right Leg"] | |
16 | ll = char["Left Leg"] | |
17 | tors = char.Torso | |
18 | lleg = char["Left Leg"] | |
19 | root = char.HumanoidRootPart | |
20 | hed = char.Head | |
21 | rleg = char["Right Leg"] | |
22 | rarm = char["Right Arm"] | |
23 | larm = char["Left Arm"] | |
24 | radian = math.rad | |
25 | random = math.random | |
26 | Vec3 = Vector3.new | |
27 | Inst = Instance.new | |
28 | cFrame = CFrame.new | |
29 | Euler = CFrame.fromEulerAnglesXYZ | |
30 | vt = Vector3.new | |
31 | bc = BrickColor.new | |
32 | br = BrickColor.random | |
33 | it = Instance.new | |
34 | cf = CFrame.new | |
35 | local eff = true | |
36 | local shielding = false | |
37 | ||
38 | local Booleans = { | |
39 | CamFollow = true, | |
40 | GyroUse = true | |
41 | } | |
42 | ||
43 | function lerp(object, newCFrame, alpha) | |
44 | return object:lerp(newCFrame, alpha) | |
45 | end | |
46 | ||
47 | local Directer = Inst("BodyGyro", root) | |
48 | Directer.MaxTorque = Vec3(0, 0, 0) | |
49 | Directer.P = 600000 | |
50 | local CPart = Inst("Part") | |
51 | CPart.Anchored = true | |
52 | CPart.CanCollide = false | |
53 | CPart.Locked = true | |
54 | CPart.Transparency = 1 | |
55 | ||
56 | local rainbowmode = false | |
57 | local chaosmode = false | |
58 | ||
59 | kan = Instance.new("Sound",char) | |
60 | kan.Volume = 1.25 | |
61 | kan.TimePosition = 0 | |
62 | kan.PlaybackSpeed = 1 | |
63 | kan.Pitch = 1 | |
64 | kan.SoundId = "rbxassetid://0" | |
65 | kan.Name = "wrecked" | |
66 | kan.Looped = true | |
67 | kan:Play() | |
68 | ||
69 | function newTheme(ID,timepos,pitch,vol) | |
70 | local kanz = kan | |
71 | --kanz:Stop() | |
72 | --kanz.Volume = vol | |
73 | --kanz.TimePosition = timepos | |
74 | kanz.PlaybackSpeed = pitch | |
75 | kanz.Pitch = pitch | |
76 | kanz.SoundId = ID | |
77 | kanz.Name = "wrecked" | |
78 | kanz.Looped = true | |
79 | kanz.Volume = 0.3 | |
80 | --kanz:Play() | |
81 | --coroutine.resume(coroutine.create(function() | |
82 | --wait(0.05) | |
83 | --end)) | |
84 | end | |
85 | ||
86 | function newThemeCust(ID,timepos,pitch,vol) | |
87 | local kanz = kan | |
88 | kanz:Stop() | |
89 | kanz.Volume = vol | |
90 | kanz.TimePosition = timepos | |
91 | kanz.PlaybackSpeed = pitch | |
92 | kanz.Pitch = pitch | |
93 | kanz.SoundId = ID | |
94 | kanz.Name = "wrecked" | |
95 | kanz.Looped = true | |
96 | kanz:Play() | |
97 | coroutine.resume(coroutine.create(function() | |
98 | wait(0.05) | |
99 | end)) | |
100 | end | |
101 | ||
102 | ||
103 | ||
104 | function CameraShake(Times, Power, PlayerTarget) | |
105 | coroutine.resume(coroutine.create(function() | |
106 | FV = Instance.new("BoolValue", PlayerTarget) | |
107 | FV.Name = "CameraShake" | |
108 | for ShakeNum=1,Times do | |
109 | swait() | |
110 | local ef=Power | |
111 | if ef>=1 then | |
112 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef)) | |
113 | else | |
114 | ef=Power*10 | |
115 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10) | |
116 | end | |
117 | end | |
118 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
119 | FV:Destroy() | |
120 | end)) | |
121 | end | |
122 | ||
123 | function CameraEnshaking(Length,Intensity) | |
124 | coroutine.resume(coroutine.create(function() | |
125 | local intensity = 1*Intensity | |
126 | local rotM = 0.01*Intensity | |
127 | for i = 0, Length, 0.1 do | |
128 | swait() | |
129 | intensity = intensity - 0.05*Intensity/Length | |
130 | rotM = rotM - 0.0005*Intensity/Length | |
131 | hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) | |
132 | cam.CFrame = cam.CFrame * cFrame(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) * Euler(radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM) | |
133 | end | |
134 | Humanoid.CameraOffset = Vec3(0, 0, 0) | |
135 | end)) | |
136 | end | |
137 | CamShake=function(Part,Distan,Power,Times) | |
138 | local de=Part.Position | |
139 | for i,v in pairs(workspace:children()) do | |
140 | if v:IsA("Model") and v:findFirstChild("Humanoid") then | |
141 | for _,c in pairs(v:children()) do | |
142 | if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then | |
143 | local Noob=v.Humanoid | |
144 | if Noob~=nil then | |
145 | coroutine.resume(coroutine.create(function() | |
146 | FV = Instance.new("BoolValue", Noob) | |
147 | FV.Name = "CameraShake" | |
148 | for ShakeNum=1,Times do | |
149 | swait() | |
150 | local ef=Power | |
151 | if ef>=1 then | |
152 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef)) | |
153 | else | |
154 | ef=Power*10 | |
155 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10) | |
156 | end | |
157 | end | |
158 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
159 | FV:Destroy() | |
160 | end)) | |
161 | CameraShake(Times, Power, Noob) | |
162 | end | |
163 | end | |
164 | end | |
165 | end | |
166 | end | |
167 | end | |
168 | ||
169 | function chatfunc(text,color) | |
170 | local chat = coroutine.wrap(function() | |
171 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
172 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
173 | end | |
174 | local naeeym2 = Instance.new("BillboardGui",Character) | |
175 | naeeym2.Size = UDim2.new(0,100,0,40) | |
176 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
177 | naeeym2.Adornee = Character.Head | |
178 | naeeym2.Name = "TalkingBillBoard" | |
179 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
180 | tecks2.BackgroundTransparency = 1 | |
181 | tecks2.BorderSizePixel = 0 | |
182 | tecks2.Text = "" | |
183 | tecks2.Font = "SciFi" | |
184 | tecks2.TextSize = 30 | |
185 | tecks2.TextStrokeTransparency = 0 | |
186 | tecks2.TextColor3 = color | |
187 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
188 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
189 | local tecks3 = Instance.new("TextLabel",naeeym2) | |
190 | tecks3.BackgroundTransparency = 1 | |
191 | tecks3.BorderSizePixel = 0 | |
192 | tecks3.Text = "" | |
193 | tecks3.Font = "SciFi" | |
194 | tecks3.TextSize = 30 | |
195 | tecks3.TextStrokeTransparency = 0 | |
196 | tecks3.TextColor3 = Color3.new(0,0,0) | |
197 | tecks3.TextStrokeColor3 = color | |
198 | tecks3.Size = UDim2.new(1,0,0.5,0) | |
199 | coroutine.resume(coroutine.create(function() | |
200 | while true do | |
201 | swait(1) | |
202 | plr.Character.wrecked.Volume = 0.3 | |
203 | if chaosmode == true then | |
204 | tecks2.TextColor3 = BrickColor.random().Color | |
205 | tecks3.TextStrokeColor3 = BrickColor.random().Color | |
206 | end | |
207 | tecks2.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5)) | |
208 | tecks3.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5)) | |
209 | tecks2.Rotation = math.random(-5,5) | |
210 | tecks3.Rotation = math.random(-5,5) | |
211 | end | |
212 | end)) | |
213 | for i = 1,string.len(text),1 do | |
214 | CFuncs["Sound"].Create("rbxassetid://274118116", char, 0.25, 0.115) | |
215 | tecks2.Text = string.sub(text,1,i) | |
216 | tecks3.Text = string.sub(text,1,i) | |
217 | swait(1) | |
218 | end | |
219 | wait(1) | |
220 | local randomrot = math.random(1,2) | |
221 | if randomrot == 1 then | |
222 | for i = 1, 50 do | |
223 | swait() | |
224 | tecks2.Rotation = tecks2.Rotation - .75 | |
225 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
226 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
227 | tecks3.Rotation = tecks2.Rotation + .75 | |
228 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
229 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
230 | end | |
231 | elseif randomrot == 2 then | |
232 | for i = 1, 50 do | |
233 | swait() | |
234 | tecks2.Rotation = tecks2.Rotation + .75 | |
235 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
236 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
237 | tecks3.Rotation = tecks2.Rotation - .75 | |
238 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
239 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
240 | end | |
241 | end | |
242 | naeeym2:Destroy() | |
243 | end) | |
244 | chat() | |
245 | end | |
246 | ||
247 | ||
248 | local Create = LoadLibrary("RbxUtility").Create | |
249 | ||
250 | CFuncs = { | |
251 | ["Part"] = { | |
252 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
253 | local Part = Create("Part"){ | |
254 | Parent = Parent, | |
255 | Reflectance = Reflectance, | |
256 | Transparency = Transparency, | |
257 | CanCollide = false, | |
258 | Locked = true, | |
259 | BrickColor = BrickColor.new(tostring(BColor)), | |
260 | Name = Name, | |
261 | Size = Size, | |
262 | Material = Material, | |
263 | } | |
264 | RemoveOutlines(Part) | |
265 | return Part | |
266 | end; | |
267 | }; | |
268 | ||
269 | ["Mesh"] = { | |
270 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
271 | local Msh = Create(Mesh){ | |
272 | Parent = Part, | |
273 | Offset = OffSet, | |
274 | Scale = Scale, | |
275 | } | |
276 | if Mesh == "SpecialMesh" then | |
277 | Msh.MeshType = MeshType | |
278 | Msh.MeshId = MeshId | |
279 | end | |
280 | return Msh | |
281 | end; | |
282 | }; | |
283 | ||
284 | ["Mesh"] = { | |
285 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
286 | local Msh = Create(Mesh){ | |
287 | Parent = Part, | |
288 | Offset = OffSet, | |
289 | Scale = Scale, | |
290 | } | |
291 | if Mesh == "SpecialMesh" then | |
292 | Msh.MeshType = MeshType | |
293 | Msh.MeshId = MeshId | |
294 | end | |
295 | return Msh | |
296 | end; | |
297 | }; | |
298 | ||
299 | ["Weld"] = { | |
300 | Create = function(Parent, Part0, Part1, C0, C1) | |
301 | local Weld = Create("Weld"){ | |
302 | Parent = Parent, | |
303 | Part0 = Part0, | |
304 | Part1 = Part1, | |
305 | C0 = C0, | |
306 | C1 = C1, | |
307 | } | |
308 | return Weld | |
309 | end; | |
310 | }; | |
311 | ||
312 | ["Sound"] = { | |
313 | Create = function(id, par, vol, pit) | |
314 | coroutine.resume(coroutine.create(function() | |
315 | local S = Create("Sound"){ | |
316 | Volume = vol, | |
317 | Name = "EffectSoundo", | |
318 | Pitch = pit or 1, | |
319 | SoundId = id, | |
320 | Parent = par or workspace, | |
321 | } | |
322 | wait() | |
323 | S:play() | |
324 | game:GetService("Debris"):AddItem(S, 10) | |
325 | end)) | |
326 | end; | |
327 | }; | |
328 | ||
329 | ["LongSound"] = { | |
330 | Create = function(id, par, vol, pit) | |
331 | coroutine.resume(coroutine.create(function() | |
332 | local S = Create("Sound"){ | |
333 | Volume = vol, | |
334 | Pitch = pit or 1, | |
335 | SoundId = id, | |
336 | Parent = par or workspace, | |
337 | } | |
338 | wait() | |
339 | S:play() | |
340 | game:GetService("Debris"):AddItem(S, 30) | |
341 | end)) | |
342 | end; | |
343 | }; | |
344 | ||
345 | ["ParticleEmitter"] = { | |
346 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
347 | local fp = Create("ParticleEmitter"){ | |
348 | Parent = Parent, | |
349 | Color = ColorSequence.new(Color1, Color2), | |
350 | LightEmission = LightEmission, | |
351 | Size = Size, | |
352 | Texture = Texture, | |
353 | Transparency = Transparency, | |
354 | ZOffset = ZOffset, | |
355 | Acceleration = Accel, | |
356 | Drag = Drag, | |
357 | LockedToPart = LockedToPart, | |
358 | VelocityInheritance = VelocityInheritance, | |
359 | EmissionDirection = EmissionDirection, | |
360 | Enabled = Enabled, | |
361 | Lifetime = LifeTime, | |
362 | Rate = Rate, | |
363 | Rotation = Rotation, | |
364 | RotSpeed = RotSpeed, | |
365 | Speed = Speed, | |
366 | VelocitySpread = VelocitySpread, | |
367 | } | |
368 | return fp | |
369 | end; | |
370 | }; | |
371 | ||
372 | CreateTemplate = { | |
373 | ||
374 | }; | |
375 | } | |
376 | ||
377 | ||
378 | ||
379 | New = function(Object, Parent, Name, Data) | |
380 | local Object = Instance.new(Object) | |
381 | for Index, Value in pairs(Data or {}) do | |
382 | Object[Index] = Value | |
383 | end | |
384 | Object.Parent = Parent | |
385 | Object.Name = Name | |
386 | return Object | |
387 | end | |
388 | local halocolor = BrickColor.random() | |
389 | local halocolor2 = BrickColor.random() | |
390 | local starcolor = BrickColor.random() | |
391 | local lunacolor = BrickColor.random() | |
392 | local lunacolor2 = BrickColor.random() | |
393 | local wepcolor = BrickColor.random() | |
394 | local maincolor = BrickColor.random() | |
395 | local m = Instance.new("Model",char) | |
396 | local m2 = Instance.new("Model",char) | |
397 | local m3 = Instance.new("Model",char) | |
398 | local mw1 = Instance.new("Model",char) | |
399 | local mw2 = Instance.new("Model",char) | |
400 | ||
401 | local extrawingmod1 = Instance.new("Model",char) | |
402 | local extrawingmod2 = Instance.new("Model",char) | |
403 | ||
404 | function CreateParta(parent,transparency,reflectance,material,brickcolor) | |
405 | local p = Instance.new("Part") | |
406 | p.TopSurface = 0 | |
407 | p.BottomSurface = 0 | |
408 | p.Parent = parent | |
409 | p.Size = Vector3.new(0.1,0.1,0.1) | |
410 | p.Transparency = transparency | |
411 | p.Reflectance = reflectance | |
412 | p.CanCollide = false | |
413 | p.Locked = true | |
414 | p.BrickColor = brickcolor | |
415 | p.Material = material | |
416 | return p | |
417 | end | |
418 | ||
419 | function CreateMesh(parent,meshtype,x1,y1,z1) | |
420 | local mesh = Instance.new("SpecialMesh",parent) | |
421 | mesh.MeshType = meshtype | |
422 | mesh.Scale = Vector3.new(x1*10,y1*10,z1*10) | |
423 | return mesh | |
424 | end | |
425 | ||
426 | function CreateSpecialMesh(parent,meshid,x1,y1,z1) | |
427 | local mesh = Instance.new("SpecialMesh",parent) | |
428 | mesh.MeshType = "FileMesh" | |
429 | mesh.MeshId = meshid | |
430 | mesh.Scale = Vector3.new(x1,y1,z1) | |
431 | return mesh | |
432 | end | |
433 | ||
434 | ||
435 | function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1) | |
436 | local mesh = Instance.new("SpecialMesh",parent) | |
437 | mesh.MeshType = "FileMesh" | |
438 | mesh.MeshId = meshid | |
439 | mesh.TextureId = "http://www.roblox.com/asset/?id=269748808" | |
440 | mesh.Scale = Vector3.new(x1,y1,z1) | |
441 | mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b) | |
442 | return mesh | |
443 | end | |
444 | ||
445 | function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za) | |
446 | local weld = Instance.new("Weld") | |
447 | weld.Parent = parent | |
448 | weld.Part0 = part0 | |
449 | weld.Part1 = part1 | |
450 | weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za) | |
451 | weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za) | |
452 | return weld | |
453 | end | |
454 | ||
455 | ||
456 | -------------- | |
457 | local secondchar = Instance.new("Model",char) | |
458 | local GhostCol = BrickColor.random() | |
459 | local sectors = CreateParta(secondchar,1,0,"Neon",GhostCol) | |
460 | CreateMesh(sectors,"Brick",2*8,2*8,1*8) | |
461 | local torsweld = CreateWeld(sectors,root,sectors,1,-1,-2,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
462 | ||
463 | local seclarm = CreateParta(secondchar,1,0,"Neon",GhostCol) | |
464 | CreateMesh(seclarm,"Brick",1*8,2*8,1*8) | |
465 | local larmsweld = CreateWeld(seclarm,sectors,seclarm,1.5,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
466 | ||
467 | local secrarm = CreateParta(secondchar,1,0,"Neon",GhostCol) | |
468 | CreateMesh(secrarm,"Brick",1*8,2*8,1*8) | |
469 | local rarmsweld = CreateWeld(secrarm,sectors,secrarm,-1.5,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
470 | ||
471 | local seclleg = CreateParta(secondchar,1,0,"Neon",GhostCol) | |
472 | CreateMesh(seclleg,"Brick",1*8,2*8,1*8) | |
473 | local llegsweld = CreateWeld(seclleg,sectors,seclleg,0.5,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
474 | ||
475 | local secrleg = CreateParta(secondchar,1,0,"Neon",GhostCol) | |
476 | CreateMesh(secrleg,"Brick",1*8,2*8,1*8) | |
477 | local rlegsweld = CreateWeld(secrleg,sectors,secrleg,-0.5,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
478 | ||
479 | local seched = CreateParta(secondchar,1,0,"Neon",GhostCol) | |
480 | CreateMesh(seched,"Brick",1*8,1*8,1*8) | |
481 | local hedsweld = CreateWeld(seched,sectors,seched,0,-1.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
482 | -------------- | |
483 | local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
484 | CreateWeld(sorb,rarm,sorb,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
485 | local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
486 | CreateWeld(sorb2,larm,sorb2,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
487 | ||
488 | local handlex = CreateParta(mw2,1,1,"Neon",maincolor) | |
489 | CreateMesh(handle,"Brick",0,0,0) | |
490 | local handlexweld = CreateWeld(handlex,tors,handlex,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
491 | local valuaring = 10 | |
492 | for i = 0, 49 do | |
493 | valuaring = valuaring + 10 | |
494 | rn = CreateParta(mw2,0,0,"Neon",halocolor) | |
495 | CreateMesh(rn,"Brick",0.25,0.1,0.1) | |
496 | CreateWeld(rn,handlex,rn,0,1,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
497 | end | |
498 | ||
499 | handlex = CreateParta(mw2,1,1,"Neon",maincolor) | |
500 | CreateMesh(handle,"Brick",0,0,0) | |
501 | CreateWeld(handlex,tors,handlex,0,-3,-2.1,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
502 | local valuaring = 10 | |
503 | for i = 0, 49 do | |
504 | valuaring = valuaring + 10 | |
505 | rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
506 | CreateMesh(rn,"Brick",0.5,0.2,0.2) | |
507 | CreateWeld(rn,handlex,rn,0,2,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
508 | end | |
509 | ||
510 | ||
511 | local handle = CreateParta(m,1,1,"Neon",maincolor) | |
512 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
513 | local handleweld = CreateWeld(handle,tors,handle,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
514 | ||
515 | --- Left wing. | |
516 | ||
517 | local lwing1 = CreateParta(m,1,1,"Neon",maincolor) | |
518 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
519 | local lwing1weld = CreateWeld(lwing1,handle,lwing1,3,0,0,math.rad(5),math.rad(0),math.rad(12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
520 | ||
521 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
522 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
523 | CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
524 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
525 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
526 | CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
527 | A0 = Instance.new('Attachment',wed) | |
528 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
529 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
530 | CreateWeld(wed,lwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
531 | A1 = Instance.new('Attachment',wed) | |
532 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
533 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
534 | CreateWeld(wed,lwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
535 | ||
536 | tl1 = Instance.new('Trail',wed) | |
537 | tl1.Attachment0 = A0 | |
538 | tl1.Attachment1 = A1 | |
539 | --tl1.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
540 | tl1.LightEmission = 1 | |
541 | tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
542 | tl1.Color = ColorSequence.new(BrickColor.random().Color) | |
543 | tl1.Lifetime = 0.6 | |
544 | ||
545 | ||
546 | local lwing2 = CreateParta(m,1,1,"Neon",maincolor) | |
547 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
548 | local lwing2weld = CreateWeld(lwing2,handle,lwing2,4,1,0,math.rad(10),math.rad(0),math.rad(25),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
549 | ||
550 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
551 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
552 | CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
553 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
554 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
555 | CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
556 | A0 = Instance.new('Attachment',wed) | |
557 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
558 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
559 | CreateWeld(wed,lwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
560 | A1 = Instance.new('Attachment',wed) | |
561 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
562 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
563 | CreateWeld(wed,lwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
564 | ||
565 | tl2 = Instance.new('Trail',wed) | |
566 | tl2.Attachment0 = A0 | |
567 | tl2.Attachment1 = A1 | |
568 | --tl2.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
569 | tl2.LightEmission = 1 | |
570 | tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
571 | tl2.Color = ColorSequence.new(BrickColor.random().Color) | |
572 | tl2.Lifetime = 0.6 | |
573 | ||
574 | local lwing3 = CreateParta(m,1,1,"Neon",maincolor) | |
575 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
576 | local lwing3weld = CreateWeld(lwing3,handle,lwing3,4.75,2,0,math.rad(15),math.rad(0),math.rad(37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
577 | ||
578 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
579 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
580 | CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
581 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
582 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
583 | CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
584 | A0 = Instance.new('Attachment',wed) | |
585 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
586 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
587 | CreateWeld(wed,lwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
588 | A1 = Instance.new('Attachment',wed) | |
589 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
590 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
591 | CreateWeld(wed,lwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
592 | ||
593 | tl3 = Instance.new('Trail',wed) | |
594 | tl3.Attachment0 = A0 | |
595 | tl3.Attachment1 = A1 | |
596 | --tl3.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
597 | tl3.LightEmission = 1 | |
598 | tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
599 | tl3.Color = ColorSequence.new(BrickColor.random().Color) | |
600 | tl3.Lifetime = 0.6 | |
601 | ||
602 | tl1.Enabled = false | |
603 | tl2.Enabled = false | |
604 | tl3.Enabled = false | |
605 | local lwing4 = CreateParta(m,1,1,"Neon",maincolor) | |
606 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
607 | local lwing4weld = CreateWeld(lwing4,handle,lwing4,5.75,3,0,math.rad(20),math.rad(0),math.rad(50),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
608 | ||
609 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
610 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
611 | CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
612 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
613 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
614 | CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
615 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
616 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
617 | CreateWeld(wed,lwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
618 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
619 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
620 | CreateWeld(wed,lwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
621 | ||
622 | local lwing5 = CreateParta(m,1,1,"Neon",maincolor) | |
623 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
624 | local lwing5weld = CreateWeld(lwing5,handle,lwing5,6.75,4,0,math.rad(25),math.rad(0),math.rad(62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
625 | ||
626 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
627 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
628 | CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
629 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
630 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
631 | CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
632 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
633 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
634 | CreateWeld(wed,lwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
635 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
636 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
637 | CreateWeld(wed,lwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
638 | ||
639 | local lwing6 = CreateParta(m,1,1,"Neon",maincolor) | |
640 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
641 | local lwing6weld = CreateWeld(lwing6,handle,lwing6,7.75,5,0,math.rad(30),math.rad(0),math.rad(75),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
642 | ||
643 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
644 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
645 | CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
646 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
647 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
648 | CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
649 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
650 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
651 | CreateWeld(wed,lwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
652 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
653 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
654 | CreateWeld(wed,lwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
655 | ||
656 | -- Right wing. | |
657 | ||
658 | local rwing1 = CreateParta(m,1,1,"Neon",maincolor) | |
659 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
660 | local rwing1weld = CreateWeld(rwing1,handle,rwing1,-3,0,0,math.rad(5),math.rad(0),math.rad(-12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
661 | ||
662 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
663 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
664 | CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
665 | A0 = Instance.new('Attachment',wed) | |
666 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
667 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
668 | CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
669 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
670 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
671 | CreateWeld(wed,rwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
672 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
673 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
674 | CreateWeld(wed,rwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
675 | A1 = Instance.new('Attachment',wed) | |
676 | ||
677 | tr1 = Instance.new('Trail',wed) | |
678 | tr1.Attachment0 = A0 | |
679 | tr1.Attachment1 = A1 | |
680 | --tr1.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
681 | tr1.LightEmission = 1 | |
682 | tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
683 | tr1.Color = ColorSequence.new(BrickColor.random().Color) | |
684 | tr1.Lifetime = 0.6 | |
685 | ||
686 | local rwing2 = CreateParta(m,1,1,"Neon",maincolor) | |
687 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
688 | local rwing2weld = CreateWeld(rwing2,handle,rwing2,-4,1,0,math.rad(10),math.rad(0),math.rad(-25),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
689 | ||
690 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
691 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
692 | CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
693 | A0 = Instance.new('Attachment',wed) | |
694 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
695 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
696 | CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
697 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
698 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
699 | CreateWeld(wed,rwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
700 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
701 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
702 | CreateWeld(wed,rwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
703 | A1 = Instance.new('Attachment',wed) | |
704 | ||
705 | tr2 = Instance.new('Trail',wed) | |
706 | tr2.Attachment0 = A0 | |
707 | tr2.Attachment1 = A1 | |
708 | --tr2.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
709 | tr2.LightEmission = 1 | |
710 | tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
711 | tr2.Color = ColorSequence.new(BrickColor.random().Color) | |
712 | tr2.Lifetime = 0.6 | |
713 | ||
714 | local rwing3 = CreateParta(m,1,1,"Neon",maincolor) | |
715 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
716 | local rwing3weld = CreateWeld(rwing3,handle,rwing3,-4.75,2,0,math.rad(15),math.rad(0),math.rad(-37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
717 | ||
718 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
719 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
720 | CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
721 | A0 = Instance.new('Attachment',wed) | |
722 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
723 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
724 | CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
725 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
726 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
727 | CreateWeld(wed,rwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
728 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
729 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
730 | CreateWeld(wed,rwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
731 | A1 = Instance.new('Attachment',wed) | |
732 | ||
733 | tr3 = Instance.new('Trail',wed) | |
734 | tr3.Attachment0 = A0 | |
735 | tr3.Attachment1 = A1 | |
736 | --tr3.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
737 | tr3.LightEmission = 1 | |
738 | tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
739 | tr3.Color = ColorSequence.new(BrickColor.random().Color) | |
740 | tr3.Lifetime = 0.6 | |
741 | ||
742 | ||
743 | local rwing4 = CreateParta(m,1,1,"Neon",maincolor) | |
744 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
745 | local rwing4weld = CreateWeld(rwing4,handle,rwing4,-5.75,3,0,math.rad(20),math.rad(0),math.rad(-50),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
746 | ||
747 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
748 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
749 | CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
750 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
751 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
752 | CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
753 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
754 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
755 | CreateWeld(wed,rwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
756 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
757 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
758 | CreateWeld(wed,rwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
759 | ||
760 | local rwing5 = CreateParta(m,1,1,"Neon",maincolor) | |
761 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
762 | local rwing5weld = CreateWeld(rwing5,handle,rwing5,-6.75,4,0,math.rad(25),math.rad(0),math.rad(-62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
763 | ||
764 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
765 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
766 | CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
767 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
768 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
769 | CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
770 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
771 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
772 | CreateWeld(wed,rwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
773 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
774 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
775 | CreateWeld(wed,rwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
776 | ||
777 | local rwing6 = CreateParta(m,1,1,"Neon",maincolor) | |
778 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
779 | local rwing6weld = CreateWeld(rwing6,handle,rwing6,-7.75,3,0,math.rad(30),math.rad(0),math.rad(-75),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
780 | ||
781 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
782 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
783 | CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
784 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
785 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
786 | CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
787 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
788 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
789 | CreateWeld(wed,rwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
790 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
791 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
792 | CreateWeld(wed,rwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
793 | ||
794 | ---- HERES THE RING | |
795 | ||
796 | ||
797 | --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor) | |
798 | CreateMesh(ran,"Wedge",1.02,1.02,1.02) | |
799 | 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)) | |
800 | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
801 | CreateMesh(ran,"Wedge",0.9,0.9,1.025) | |
802 | 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)) | |
803 | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
804 | CreateMesh(ran,"Wedge",1.025,0.9,0.9) | |
805 | 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)) | |
806 | ||
807 | ||
808 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
809 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
810 | 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)) | |
811 | ||
812 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
813 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
814 | 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)) | |
815 | ||
816 | ||
817 | ||
818 | gan = CreateParta(m2,0,0,"Neon",halocolor2) | |
819 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
820 | 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)) | |
821 | ||
822 | gan = CreateParta(m2,0,0,"Neon",halocolor2) | |
823 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
824 | 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)) | |
825 | ||
826 | gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2) | |
827 | CreateMesh(gane,"Brick",1.0625,0.2,1.0625) | |
828 | 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)) | |
829 | ||
830 | star = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
831 | CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5) | |
832 | 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)) | |
833 | starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor) | |
834 | CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95) | |
835 | 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)) | |
836 | ||
837 | --- second ring | |
838 | ||
839 | ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor) | |
840 | CreateMesh(ran,"Wedge",1.02,1.02,1.02) | |
841 | 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)) | |
842 | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
843 | CreateMesh(ran,"Wedge",0.9,0.9,1.025) | |
844 | 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)) | |
845 | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
846 | CreateMesh(ran,"Wedge",1.025,0.9,0.9) | |
847 | 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)) | |
848 | ||
849 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
850 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
851 | 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)) | |
852 | ||
853 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
854 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
855 | 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)) | |
856 | ||
857 | ||
858 | ||
859 | gan = CreateParta(m2,0,0,"Neon",halocolor2) | |
860 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
861 | 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)) | |
862 | ||
863 | gan = CreateParta(m2,0,0,"Neon",halocolor2) | |
864 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
865 | 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)) | |
866 | ||
867 | gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2) | |
868 | CreateMesh(gane,"Brick",1.0625,0.2,1.0625) | |
869 | 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)) | |
870 | ||
871 | star = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
872 | CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5) | |
873 | 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)) | |
874 | starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor) | |
875 | CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95) | |
876 | 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))]]-- | |
877 | ||
878 | ||
879 | ||
880 | for i, v in pairs(m:GetChildren()) do | |
881 | if v:IsA("Part") then | |
882 | v.BrickColor = BrickColor.random() | |
883 | v.Material = "Glass" | |
884 | end | |
885 | end | |
886 | for i, v in pairs(m2:GetChildren()) do | |
887 | if v:IsA("Part") then | |
888 | v.BrickColor = BrickColor.random() | |
889 | v.Material = "Granite" | |
890 | end | |
891 | end | |
892 | for i, v in pairs(m3:GetChildren()) do | |
893 | if v:IsA("Part") then | |
894 | v.BrickColor = BrickColor.random() | |
895 | v.Material = "Neon" | |
896 | end | |
897 | end | |
898 | for i, v in pairs(mw2:GetChildren()) do | |
899 | if v:IsA("Part") then | |
900 | v.BrickColor = BrickColor.random() | |
901 | v.Material = "Neon" | |
902 | end | |
903 | end | |
904 | for i, v in pairs(mw1:GetChildren()) do | |
905 | if v:IsA("Part") then | |
906 | v.Transparency = 1 | |
907 | v.BrickColor = BrickColor.random() | |
908 | v.Material = "Neon" | |
909 | end | |
910 | end | |
911 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
912 | if v:IsA("Part") then | |
913 | v.Transparency = 1 | |
914 | v.BrickColor = BrickColor.random() | |
915 | v.Material = "Neon" | |
916 | end | |
917 | end | |
918 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
919 | if v:IsA("Part") then | |
920 | v.Transparency = 1 | |
921 | v.BrickColor = BrickColor.random() | |
922 | v.Material = "Neon" | |
923 | end | |
924 | end | |
925 | local MAINRUINCOLOR = BrickColor.random() | |
926 | --//====================================================\\-- | |
927 | --|| Edited by IvanPortero1 | |
928 | --\\====================================================//-- | |
929 | ||
930 | print("this edit was made by UndeniableInfinity, Soins1, And VictoriaChristophe") | |
931 | print("this is voyqgo here and i did add wings to it to make it look way cool") | |
932 | print("UndeniableInfinity, Soins1, And VictoriaChristophe Good job make this edit") | |
933 | print("so hv fun this COOL EDIT") | |
934 | ||
935 | script:ClearAllChildren() | |
936 | wait(0.2) | |
937 | Player = game:GetService("Players").LocalPlayer | |
938 | PlayerGui = Player.PlayerGui | |
939 | Cam = workspace.CurrentCamera | |
940 | Backpack = Player.Backpack | |
941 | Character = Player.Character | |
942 | Humanoid = Character.Humanoid | |
943 | Mouse = Player:GetMouse() | |
944 | RootPart = Character["HumanoidRootPart"] | |
945 | Torso = Character["Torso"] | |
946 | Head = Character["Head"] | |
947 | RightArm = Character["Right Arm"] | |
948 | LeftArm = Character["Left Arm"] | |
949 | RightLeg = Character["Right Leg"] | |
950 | LeftLeg = Character["Left Leg"] | |
951 | RootJoint = RootPart["RootJoint"] | |
952 | Neck = Torso["Neck"] | |
953 | RightShoulder = Torso["Right Shoulder"] | |
954 | LeftShoulder = Torso["Left Shoulder"] | |
955 | RightHip = Torso["Right Hip"] | |
956 | LeftHip = Torso["Left Hip"] | |
957 | local TIME = 0 | |
958 | ||
959 | IT = Instance.new | |
960 | CF = CFrame.new | |
961 | VT = Vector3.new | |
962 | RAD = math.rad | |
963 | C3 = Color3.new | |
964 | UD2 = UDim2.new | |
965 | BRICKC = BrickColor.new | |
966 | ANGLES = CFrame.Angles | |
967 | EULER = CFrame.fromEulerAnglesXYZ | |
968 | COS = math.cos | |
969 | ACOS = math.acos | |
970 | SIN = math.sin | |
971 | ASIN = math.asin | |
972 | ABS = math.abs | |
973 | MRANDOM = math.random | |
974 | FLOOR = math.floor | |
975 | ||
976 | --//=================================\\ | |
977 | --|| USEFUL VALUES | |
978 | --\\=================================// | |
979 | ||
980 | Animation_Speed = 1.5 | |
981 | local FORCERESET = false | |
982 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
983 | local Speed = 30 | |
984 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
985 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
986 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
987 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
988 | local DAMAGEMULTIPLIER = 1 | |
989 | local ANIM = "Idle" | |
990 | local ATTACK = false | |
991 | local EQUIPPED = false | |
992 | local HOLD = false | |
993 | local COMBO = 1 | |
994 | local Rooted = false | |
995 | local SINE = 0 | |
996 | local KEYHOLD = false | |
997 | local CHANGE = 2 / Animation_Speed | |
998 | local WALKINGANIM = false | |
999 | local VALUE1 = false | |
1000 | local VALUE2 = false | |
1001 | local ROBLOXIDLEANIMATION = IT("Animation") | |
1002 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
1003 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
1004 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
1005 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
1006 | WEAPONGUI.Name = "BanishV3Gui" | |
1007 | local Weapon = IT("Model") | |
1008 | Weapon.Name = "Adds" | |
1009 | local Effects = IT("Folder", Weapon) | |
1010 | Effects.Name = "Effects" | |
1011 | local ANIMATOR = Humanoid.Animator | |
1012 | local ANIMATE = Character:FindFirstChild("Animate") | |
1013 | local UNANCHOR = true | |
1014 | local TOBANISH = {} | |
1015 | - | local WhiteList={}WhiteList[1]="boss_kiddos"WhiteList[2]="Frepix"WhiteList[3]="xXXNickGamerYTXXx"WhiteList[4]="VictoriaChristophe"WhiteList[5]="Houjou_Reisuke,"WhiteList[6]="IvanPortero1"WhiteList[7]="UndeniableInfinity"WhiteList[8]="soins1"WhiteList[9]="Mcisbetter111"WhiteList[10]="kermat161"WhiteList[11]="voyqgo" |
1015 | + | local WhiteList={}WhiteList[1]="nobodyspecial11"WhiteList[2]="Frepix"WhiteList[3]="xXXNickGamerYTXXx"WhiteList[4]="VictoriaChristophe"WhiteList[5]="Houjou_Reisuke,"WhiteList[6]="IvanPortero1"WhiteList[7]="UndeniableInfinity"WhiteList[8]="soins1"WhiteList[9]="Mcisbetter111"WhiteList[10]="kermat161"WhiteList[11]="voyqgo" |
1016 | local flg=false | |
1017 | for i=1,#WhiteList do | |
1018 | if WhiteList[i]==Player.Name then | |
1019 | flg=true end end | |
1020 | if not flg then error("Sorry.(Your Not Whitelisted!)")end | |
1021 | script.Parent = PlayerGui | |
1022 | ||
1023 | --//=================================\\ | |
1024 | --\\=================================// | |
1025 | ||
1026 | ||
1027 | --//=================================\\ | |
1028 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
1029 | --\\=================================// | |
1030 | ||
1031 | ArtificialHB = Instance.new("BindableEvent", script) | |
1032 | ArtificialHB.Name = "ArtificialHB" | |
1033 | ||
1034 | script:WaitForChild("ArtificialHB") | |
1035 | ||
1036 | frame = Frame_Speed | |
1037 | tf = 0 | |
1038 | allowframeloss = false | |
1039 | tossremainder = false | |
1040 | lastframe = tick() | |
1041 | script.ArtificialHB:Fire() | |
1042 | ||
1043 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
1044 | tf = tf + s | |
1045 | if tf >= frame then | |
1046 | if allowframeloss then | |
1047 | script.ArtificialHB:Fire() | |
1048 | lastframe = tick() | |
1049 | else | |
1050 | for i = 1, math.floor(tf / frame) do | |
1051 | script.ArtificialHB:Fire() | |
1052 | end | |
1053 | lastframe = tick() | |
1054 | end | |
1055 | if tossremainder then | |
1056 | tf = 0 | |
1057 | else | |
1058 | tf = tf - frame * math.floor(tf / frame) | |
1059 | end | |
1060 | end | |
1061 | end) | |
1062 | ||
1063 | --//=================================\\ | |
1064 | --\\=================================// | |
1065 | ||
1066 | --//=================================\\ | |
1067 | --|| SOME FUNCTIONS | |
1068 | --\\=================================// | |
1069 | ||
1070 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
1071 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
1072 | end | |
1073 | ||
1074 | function PositiveAngle(NUMBER) | |
1075 | if NUMBER >= 0 then | |
1076 | NUMBER = 0 | |
1077 | end | |
1078 | return NUMBER | |
1079 | end | |
1080 | ||
1081 | function NegativeAngle(NUMBER) | |
1082 | if NUMBER <= 0 then | |
1083 | NUMBER = 0 | |
1084 | end | |
1085 | return NUMBER | |
1086 | end | |
1087 | ||
1088 | function Swait(NUMBER) | |
1089 | if NUMBER == 0 or NUMBER == nil then | |
1090 | ArtificialHB.Event:wait() | |
1091 | else | |
1092 | for i = 1, NUMBER do | |
1093 | ArtificialHB.Event:wait() | |
1094 | end | |
1095 | end | |
1096 | end | |
1097 | ||
1098 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
1099 | local NEWMESH = IT(MESH) | |
1100 | if MESH == "SpecialMesh" then | |
1101 | NEWMESH.MeshType = MESHTYPE | |
1102 | if MESHID ~= "nil" and MESHID ~= "" then | |
1103 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
1104 | end | |
1105 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
1106 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
1107 | end | |
1108 | end | |
1109 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
1110 | NEWMESH.Scale = SCALE | |
1111 | NEWMESH.Parent = PARENT | |
1112 | return NEWMESH | |
1113 | end | |
1114 | ||
1115 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
1116 | local NEWPART = IT("Part") | |
1117 | NEWPART.formFactor = FORMFACTOR | |
1118 | NEWPART.Reflectance = REFLECTANCE | |
1119 | NEWPART.Transparency = TRANSPARENCY | |
1120 | NEWPART.CanCollide = false | |
1121 | NEWPART.Locked = true | |
1122 | NEWPART.Anchored = true | |
1123 | if ANCHOR == false then | |
1124 | NEWPART.Anchored = false | |
1125 | end | |
1126 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
1127 | NEWPART.Name = NAME | |
1128 | NEWPART.Size = SIZE | |
1129 | NEWPART.Position = Torso.Position | |
1130 | NEWPART.Material = MATERIAL | |
1131 | NEWPART:BreakJoints() | |
1132 | NEWPART.Parent = PARENT | |
1133 | return NEWPART | |
1134 | end | |
1135 | ||
1136 | local function weldBetween(a, b) | |
1137 | local weldd = Instance.new("ManualWeld") | |
1138 | weldd.Part0 = a | |
1139 | weldd.Part1 = b | |
1140 | weldd.C0 = CFrame.new() | |
1141 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
1142 | weldd.Parent = a | |
1143 | return weldd | |
1144 | end | |
1145 | ||
1146 | ||
1147 | function QuaternionFromCFrame(cf) | |
1148 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
1149 | local trace = m00 + m11 + m22 | |
1150 | if trace > 0 then | |
1151 | local s = math.sqrt(1 + trace) | |
1152 | local recip = 0.5 / s | |
1153 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
1154 | else | |
1155 | local i = 0 | |
1156 | if m11 > m00 then | |
1157 | i = 1 | |
1158 | end | |
1159 | if m22 > (i == 0 and m00 or m11) then | |
1160 | i = 2 | |
1161 | end | |
1162 | if i == 0 then | |
1163 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
1164 | local recip = 0.5 / s | |
1165 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
1166 | elseif i == 1 then | |
1167 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
1168 | local recip = 0.5 / s | |
1169 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
1170 | elseif i == 2 then | |
1171 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
1172 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
1173 | end | |
1174 | end | |
1175 | end | |
1176 | ||
1177 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
1178 | local xs, ys, zs = x + x, y + y, z + z | |
1179 | local wx, wy, wz = w * xs, w * ys, w * zs | |
1180 | local xx = x * xs | |
1181 | local xy = x * ys | |
1182 | local xz = x * zs | |
1183 | local yy = y * ys | |
1184 | local yz = y * zs | |
1185 | local zz = z * zs | |
1186 | 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)) | |
1187 | end | |
1188 | ||
1189 | function QuaternionSlerp(a, b, t) | |
1190 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
1191 | local startInterp, finishInterp; | |
1192 | if cosTheta >= 0.0001 then | |
1193 | if (1 - cosTheta) > 0.0001 then | |
1194 | local theta = ACOS(cosTheta) | |
1195 | local invSinTheta = 1 / SIN(theta) | |
1196 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
1197 | finishInterp = SIN(t * theta) * invSinTheta | |
1198 | else | |
1199 | startInterp = 1 - t | |
1200 | finishInterp = t | |
1201 | end | |
1202 | else | |
1203 | if (1 + cosTheta) > 0.0001 then | |
1204 | local theta = ACOS(-cosTheta) | |
1205 | local invSinTheta = 1 / SIN(theta) | |
1206 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
1207 | finishInterp = SIN(t * theta) * invSinTheta | |
1208 | else | |
1209 | startInterp = t - 1 | |
1210 | finishInterp = t | |
1211 | end | |
1212 | end | |
1213 | 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 | |
1214 | end | |
1215 | ||
1216 | function Clerp(a, b, t) | |
1217 | local qa = {QuaternionFromCFrame(a)} | |
1218 | local qb = {QuaternionFromCFrame(b)} | |
1219 | local ax, ay, az = a.x, a.y, a.z | |
1220 | local bx, by, bz = b.x, b.y, b.z | |
1221 | local _t = 1 - t | |
1222 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
1223 | end | |
1224 | ||
1225 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
1226 | local frame = IT("Frame") | |
1227 | frame.BackgroundTransparency = TRANSPARENCY | |
1228 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
1229 | frame.Position = POSITION | |
1230 | frame.Size = SIZE | |
1231 | frame.BackgroundColor3 = COLOR | |
1232 | frame.BorderColor3 = BORDERCOLOR | |
1233 | frame.Name = NAME | |
1234 | frame.Parent = PARENT | |
1235 | return frame | |
1236 | end | |
1237 | ||
1238 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
1239 | local label = IT("TextLabel") | |
1240 | label.BackgroundTransparency = 1 | |
1241 | label.Size = UD2(1, 0, 1, 0) | |
1242 | label.Position = UD2(0, 0, 0, 0) | |
1243 | label.TextColor3 = TEXTCOLOR | |
1244 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
1245 | label.TextTransparency = TRANSPARENCY | |
1246 | label.FontSize = TEXTFONTSIZE | |
1247 | label.Font = TEXTFONT | |
1248 | label.BorderSizePixel = BORDERSIZEPIXEL | |
1249 | label.TextScaled = false | |
1250 | label.Text = TEXT | |
1251 | label.Name = NAME | |
1252 | label.Parent = PARENT | |
1253 | return label | |
1254 | end | |
1255 | ||
1256 | function NoOutlines(PART) | |
1257 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
1258 | end | |
1259 | ||
1260 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
1261 | local NEWWELD = IT(TYPE) | |
1262 | NEWWELD.Part0 = PART0 | |
1263 | NEWWELD.Part1 = PART1 | |
1264 | NEWWELD.C0 = C0 | |
1265 | NEWWELD.C1 = C1 | |
1266 | NEWWELD.Parent = PARENT | |
1267 | return NEWWELD | |
1268 | end | |
1269 | ||
1270 | local S = IT("Sound") | |
1271 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
1272 | local NEWSOUND = nil | |
1273 | coroutine.resume(coroutine.create(function() | |
1274 | NEWSOUND = S:Clone() | |
1275 | NEWSOUND.Parent = PARENT | |
1276 | NEWSOUND.Volume = VOLUME | |
1277 | NEWSOUND.Pitch = PITCH | |
1278 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
1279 | NEWSOUND:play() | |
1280 | if DOESLOOP == true then | |
1281 | NEWSOUND.Looped = true | |
1282 | else | |
1283 | repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT | |
1284 | NEWSOUND:remove() | |
1285 | end | |
1286 | end)) | |
1287 | return NEWSOUND | |
1288 | end | |
1289 | local sick = Instance.new("Sound",Torso) | |
1290 | sick.Parent = Torso | |
1291 | sick:resume() | |
1292 | sick.Volume = 4 | |
1293 | sick.Pitch = 1 | |
1294 | sick.SoundId = "rbxassetid://1504604335" | |
1295 | sick.Name = "BanishV3Music" | |
1296 | sick:play() | |
1297 | wait(9.7) | |
1298 | ||
1299 | Player = game:GetService("Players").LocalPlayer | |
1300 | PlayerGui = Player:FindFirstChildOfClass("PlayerGui") | |
1301 | Cam = workspace.CurrentCamera | |
1302 | Backpack = Player:FindFirstChildOfClass("Backpack") | |
1303 | Character = Player.Character | |
1304 | Humanoid = Character:FindFirstChildOfClass("Humanoid") | |
1305 | Mouse = Player:GetMouse() | |
1306 | ||
1307 | function chatfunc(text) | |
1308 | local chat = coroutine.wrap(function() | |
1309 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
1310 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
1311 | end | |
1312 | local naeeym2 = Instance.new("BillboardGui",Character) | |
1313 | naeeym2.Size = UDim2.new(0,100,0,40) | |
1314 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
1315 | naeeym2.Adornee = Character.Head | |
1316 | naeeym2.Name = "TalkingBillBoard" | |
1317 | local tecks3 = Instance.new("TextLabel",naeeym2) | |
1318 | tecks3.BackgroundTransparency = 1 | |
1319 | tecks3.BorderSizePixel = 0 | |
1320 | tecks3.Text = "" | |
1321 | tecks3.Font = "SciFi" | |
1322 | tecks3.TextSize = 30 | |
1323 | tecks3.TextStrokeTransparency = 0 | |
1324 | tecks3.TextColor3 = Color3.new(3.15,0,0) | |
1325 | tecks3.TextStrokeColor3 = Color3.new(0,0,0) | |
1326 | tecks3.Size = UDim2.new(1,0,0.5,0) | |
1327 | for i = 1,string.len(text),1 do | |
1328 | tecks3.Text = string.sub(text,1,i) | |
1329 | wait(0.01) | |
1330 | end | |
1331 | wait(3) | |
1332 | for i = 1, 80 do | |
1333 | Swait() | |
1334 | tecks3.Position = tecks3.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
1335 | tecks3.Rotation = tecks3.Rotation + .8 | |
1336 | tecks3.TextStrokeTransparency = tecks3.TextStrokeTransparency +.03 | |
1337 | tecks3.TextTransparency = tecks3.TextTransparency + .03 | |
1338 | end | |
1339 | end) | |
1340 | chat() | |
1341 | end | |
1342 | ||
1343 | ||
1344 | function CFrameFromTopBack(at, top, back) | |
1345 | local right = top:Cross(back) | |
1346 | 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) | |
1347 | end | |
1348 | ||
1349 | --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}) | |
1350 | local cR=255 | |
1351 | local cG=0 | |
1352 | local cB=0 | |
1353 | local flg5=1 local omgidk=1 | |
1354 | local add=15 | |
1355 | game:GetService("RunService"):BindToRenderStep("Ghost",1,function() | |
1356 | if omgidk>10000 then omgidk=0 end | |
1357 | omgidk=omgidk+1 | |
1358 | if cR>=255 then flg5=1 end | |
1359 | if cG>=255 then flg5=2 end | |
1360 | if cB>=255 then flg5=3 end | |
1361 | if flg5==1 then cR=cR-add cG=cG+add end | |
1362 | if flg5==2 then cG=cG-add cB=cB+add end | |
1363 | if flg5==3 then cB=cB-add cR=cR+add end | |
1364 | color=Color3.fromRGB(cR,cG,cB) | |
1365 | function WACKYEFFECT(Table) | |
1366 | local TYPE = (Table.EffectType or "Sphere") | |
1367 | local SIZE = (Table.Size or VT(6,6,6)) | |
1368 | local ENDSIZE = (Table.Size2 or VT(7,7,7)) | |
1369 | local TRANSPARENCY = (Table.Transparency or 0) | |
1370 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
1371 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
1372 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
1373 | local ROTATION1 = (Table.RotationX or 0) | |
1374 | local ROTATION2 = (Table.RotationY or 0) | |
1375 | local ROTATION3 = (Table.RotationZ or 0) | |
1376 | local MATERIAL = "Neon" | |
1377 | local COLOR = color | |
1378 | local TIME = (Table.Time or 45) | |
1379 | local SOUNDID = (Table.SoundID or nil) | |
1380 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
1381 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
1382 | coroutine.resume(coroutine.create(function() | |
1383 | local PLAYSSOUND = false | |
1384 | local SOUND = nil | |
1385 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
1386 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
1387 | PLAYSSOUND = true | |
1388 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
1389 | end | |
1390 | EFFECT.Color = color | |
1391 | local MSH = nil | |
1392 | if TYPE == "Sphere" then | |
1393 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
1394 | elseif TYPE == "Block" then | |
1395 | MSH = IT("BlockMesh",EFFECT) | |
1396 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
1397 | elseif TYPE == "Wave" then | |
1398 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
1399 | elseif TYPE == "Ring" then | |
1400 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
1401 | elseif TYPE == "Slash" then | |
1402 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
1403 | elseif TYPE == "Round Slash" then | |
1404 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
1405 | elseif TYPE == "Swirl" then | |
1406 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
1407 | elseif TYPE == "Skull" then | |
1408 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
1409 | elseif TYPE == "Crystal" then | |
1410 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
1411 | end | |
1412 | if MSH ~= nil then | |
1413 | local MOVESPEED = nil | |
1414 | if MOVEDIRECTION ~= nil then | |
1415 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
1416 | end | |
1417 | local GROWTH = SIZE - ENDSIZE | |
1418 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
1419 | if TYPE == "Block" then | |
1420 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
1421 | else | |
1422 | EFFECT.CFrame = CFRAME | |
1423 | end | |
1424 | for LOOP = 1, TIME+1 do | |
1425 | Swait() | |
1426 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
1427 | if TYPE == "Wave" then | |
1428 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
1429 | end | |
1430 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
1431 | if TYPE == "Block" then | |
1432 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
1433 | else | |
1434 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
1435 | end | |
1436 | if MOVEDIRECTION ~= nil then | |
1437 | local ORI = EFFECT.Orientation | |
1438 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
1439 | EFFECT.Orientation = ORI | |
1440 | end | |
1441 | end | |
1442 | if PLAYSSOUND == false then | |
1443 | EFFECT:remove() | |
1444 | else | |
1445 | SOUND.Stopped:Connect(function() | |
1446 | EFFECT:remove() | |
1447 | end) | |
1448 | end | |
1449 | else | |
1450 | if PLAYSSOUND == false then | |
1451 | EFFECT:remove() | |
1452 | else | |
1453 | repeat Swait() until SOUND.Playing == false | |
1454 | EFFECT:remove() | |
1455 | end | |
1456 | end | |
1457 | end)) | |
1458 | end | |
1459 | end) | |
1460 | function MakeForm(PART,TYPE) | |
1461 | if TYPE == "Cyl" then | |
1462 | local MSH = IT("CylinderMesh",PART) | |
1463 | elseif TYPE == "Ball" then | |
1464 | local MSH = IT("SpecialMesh",PART) | |
1465 | MSH.MeshType = "Sphere" | |
1466 | elseif TYPE == "Wedge" then | |
1467 | local MSH = IT("SpecialMesh",PART) | |
1468 | MSH.MeshType = "Wedge" | |
1469 | end | |
1470 | end | |
1471 | function SpawnTrail(FROM,TO,BIG) | |
1472 | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Trail", VT(10,10,10)) | |
1473 | MakeForm(TRAIL,"Cyl") | |
1474 | local cR=255 | |
1475 | local cG=0 | |
1476 | local cB=0 | |
1477 | local flg5=1 local omgidk=1 | |
1478 | local add=15 | |
1479 | game:GetService("RunService"):BindToRenderStep("Ghost",1,function() | |
1480 | if omgidk>10000 then omgidk=0 end | |
1481 | omgidk=omgidk+1 | |
1482 | if cR>=255 then flg5=1 end | |
1483 | if cG>=255 then flg5=2 end | |
1484 | if cB>=255 then flg5=3 end | |
1485 | if flg5==1 then cR=cR-add cG=cG+add end | |
1486 | if flg5==2 then cG=cG-add cB=cB+add end | |
1487 | if flg5==3 then cB=cB-add cR=cR+add end | |
1488 | color=Color3.fromRGB(cR,cG,cB) | |
1489 | TRAIL.Color = color | |
1490 | end) | |
1491 | local DIST = (FROM - TO).Magnitude | |
1492 | if BIG == true then | |
1493 | TRAIL.Size = VT(5,DIST,5) | |
1494 | else | |
1495 | TRAIL.Size = VT(5,DIST,5) | |
1496 | end | |
1497 | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
1498 | coroutine.resume(coroutine.create(function() | |
1499 | for i = 1, 55 do | |
1500 | Swait() | |
1501 | TRAIL.Transparency = TRAIL.Transparency + 0.01 | |
1502 | end | |
1503 | TRAIL:remove() | |
1504 | end)) | |
1505 | end | |
1506 | ||
1507 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
1508 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
1509 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
1510 | end | |
1511 | ||
1512 | function turnto(position) | |
1513 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
1514 | end | |
1515 | ||
1516 | --//=================================\\ | |
1517 | --|| WEAPON CREATION | |
1518 | --\\=================================// | |
1519 | ||
1520 | local Particle = IT("ParticleEmitter",nil) | |
1521 | Particle.Enabled = false | |
1522 | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)}) | |
1523 | Particle.LightEmission = 0.5 | |
1524 | Particle.Rate = 150 | |
1525 | Particle.ZOffset = 0.2 | |
1526 | Particle.Rotation = NumberRange.new(-180, 180) | |
1527 | Particle.RotSpeed = NumberRange.new(-180, 180) | |
1528 | Particle.Texture = "http://www.roblox.com/asset/?id=304437537" | |
1529 | Particle.Color = ColorSequence.new(C3(255,0,0),C3(255,128,0),C3(255,255,0),C3(0,255,0),C3(0,255,255),C3(0,0,255),C3(191,0,255),C3(255,0,191)) | |
1530 | ||
1531 | --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false}) | |
1532 | function ParticleEmitter(Table) | |
1533 | local PRTCL = Particle:Clone() | |
1534 | local Speed = Table.Speed or 5 | |
1535 | local Drag = Table.Drag or 0 | |
1536 | local Size1 = Table.Size1 or 1 | |
1537 | local Size2 = Table.Size2 or 5 | |
1538 | local Lifetime1 = Table.Lifetime1 or 9.5 | |
1539 | local Lifetime2 = Table.Lifetime2 or 10 | |
1540 | local Parent = Table.Parent or Torso | |
1541 | local Emit = Table.Emit or 100 | |
1542 | local Offset = Table.Offset or 360 | |
1543 | local Acel = Table.Acel or VT(0,0,0) | |
1544 | local Enabled = Table.Enabled or false | |
1545 | PRTCL.Parent = Parent | |
1546 | PRTCL.Size = NumberSequence.new(Size1,Size2) | |
1547 | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
1548 | PRTCL.Speed = NumberRange.new(Speed) | |
1549 | PRTCL.VelocitySpread = Offset | |
1550 | PRTCL.Drag = Drag | |
1551 | PRTCL.Acceleration = Acel | |
1552 | if Enabled == false then | |
1553 | PRTCL:Emit(Emit) | |
1554 | Debris:AddItem(PRTCL,Lifetime2) | |
1555 | else | |
1556 | PRTCL.Enabled = true | |
1557 | end | |
1558 | return PRTCL | |
1559 | end | |
1560 | m = game.Players.LocalPlayer | |
1561 | char = m.Character | |
1562 | local txt = Instance.new("BillboardGui", char) | |
1563 | txt.Adornee = char.Head | |
1564 | txt.Name = "_status" | |
1565 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
1566 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
1567 | local text = Instance.new("TextLabel", txt) | |
1568 | text.Size = UDim2.new(10, 0, 7, 0) | |
1569 | text.FontSize = "Size24" | |
1570 | text.TextScaled = true | |
1571 | text.TextTransparency = 0 | |
1572 | text.BackgroundTransparency = 1 | |
1573 | text.TextTransparency = 0 | |
1574 | text.TextStrokeTransparency = 0 | |
1575 | text.Font = "Bodoni" | |
1576 | text.TextStrokeColor3 = Color3.new(0, 0, 0) | |
1577 | v = Instance.new("Part") | |
1578 | v.Name = "ColorBrick" | |
1579 | v.Parent = m.Character | |
1580 | v.Anchored = true | |
1581 | v.CanCollide = false | |
1582 | v.BottomSurface = "Smooth" | |
1583 | v.TopSurface = "Smooth" | |
1584 | v.Size = Vector3.new(10, 5, 3) | |
1585 | v.Transparency = 1 | |
1586 | v.CFrame = char.Torso.CFrame | |
1587 | v.BrickColor = BrickColor.new("Really black") | |
1588 | v.Transparency = 1 | |
1589 | v.Shape = "Block" | |
1590 | spawn(function() | |
1591 | local TweenService = game:GetService("TweenService") | |
1592 | local Colours = {Color3.fromRGB(255,0,0),Color3.fromRGB(255,128,0),Color3.fromRGB(255,255,0),Color3.fromRGB(0,255,0),Color3.fromRGB(0,255,255),Color3.fromRGB(0,0,255),Color3.fromRGB(191,0,255),Color3.fromRGB(255,0,191)} | |
1593 | local Int = 0 | |
1594 | while wait(0.5) do | |
1595 | if Int == #Colours then Int = 0 end | |
1596 | Int = Int+1 | |
1597 | TweenService:Create(text,TweenInfo.new(1),{TextColor3 = Colours[Int]}):Play() | |
1598 | end | |
1599 | end) | |
1600 | text.Text = "The Final Judgement" | |
1601 | ||
1602 | local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false) | |
1603 | local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0)) | |
1604 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
1605 | MakeForm(Part,"Wedge") | |
1606 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
1607 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false) | |
1608 | MakeForm(Part,"Wedge") | |
1609 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0)) | |
1610 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false) | |
1611 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1612 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false) | |
1613 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1614 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false) | |
1615 | MakeForm(Part,"Cyl") | |
1616 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1617 | for i = 1, 8 do | |
1618 | local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) | |
1619 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) | |
1620 | end | |
1621 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false) | |
1622 | MakeForm(Part,"Cyl") | |
1623 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1624 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false) | |
1625 | MakeForm(Part,"Ball") | |
1626 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1627 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false) | |
1628 | MakeForm(Part,"Wedge") | |
1629 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0)) | |
1630 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false) | |
1631 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1632 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false) | |
1633 | MakeForm(Part,"Cyl") | |
1634 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1635 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false) | |
1636 | MakeForm(Part,"Cyl") | |
1637 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1638 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false) | |
1639 | MakeForm(Part,"Cyl") | |
1640 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1641 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
1642 | MakeForm(Part,"Wedge") | |
1643 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0)) | |
1644 | local LASTPART = Handle | |
1645 | for i = 1, 10 do | |
1646 | if LASTPART == Handle then | |
1647 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false) | |
1648 | LASTPART = Part | |
1649 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1650 | else | |
1651 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false) | |
1652 | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0)) | |
1653 | LASTPART = Part | |
1654 | end | |
1655 | end | |
1656 | ||
1657 | local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false) | |
1658 | MakeForm(Barrel,"Cyl") | |
1659 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1660 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false) | |
1661 | MakeForm(Part,"Cyl") | |
1662 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0)) | |
1663 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false) | |
1664 | MakeForm(Part,"Wedge") | |
1665 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1666 | local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false) | |
1667 | MakeForm(Hole,"Cyl") | |
1668 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0)) | |
1669 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false) | |
1670 | local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
1671 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2)) | |
1672 | local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false) | |
1673 | local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
1674 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2)) | |
1675 | coroutine.resume(coroutine.create(function() | |
1676 | while wait() do | |
1677 | GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) | |
1678 | GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) | |
1679 | end | |
1680 | end)) | |
1681 | ||
1682 | ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.7, Size2 = 0, Lifetime1 = 0.7, Lifetime2 = 0.7, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(3,9,8)}) | |
1683 | --ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.8, Size2 = 0, Lifetime1 = 0.8, Lifetime2 = 0.9, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(3,9,8)}) | |
1684 | ||
1685 | local cR=255 | |
1686 | local cG=0 | |
1687 | local cB=0 | |
1688 | local flg5=1 local omgidk=1 | |
1689 | local add=15 | |
1690 | game:GetService("RunService"):BindToRenderStep("Ghost",1,function() | |
1691 | if omgidk>10000 then omgidk=0 end | |
1692 | omgidk=omgidk+1 | |
1693 | if cR>=255 then flg5=1 end | |
1694 | if cG>=255 then flg5=2 end | |
1695 | if cB>=255 then flg5=3 end | |
1696 | if flg5==1 then cR=cR-add cG=cG+add end | |
1697 | if flg5==2 then cG=cG-add cB=cB+add end | |
1698 | if flg5==3 then cB=cB-add cR=cR+add end | |
1699 | color=Color3.fromRGB(cR,cG,cB) | |
1700 | for _, c in pairs(Weapon:GetDescendants()) do | |
1701 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
1702 | c.Material = "Glass" | |
1703 | c.Color = C3(0,0,0) | |
1704 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
1705 | c.Color = color | |
1706 | c.Material = "Neon" | |
1707 | end | |
1708 | end | |
1709 | end) | |
1710 | Weapon.Parent = Character | |
1711 | for _, c in pairs(Weapon:GetChildren()) do | |
1712 | if c.ClassName == "Part" then | |
1713 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1714 | end | |
1715 | end | |
1716 | ||
1717 | local SKILLTEXTCOLOR = C3(1,0,0) | |
1718 | local SKILLFONT = "Antique" | |
1719 | local SKILLTEXTSIZE = 7 | |
1720 | ||
1721 | Humanoid.Died:connect(function() | |
1722 | ATTACK = true | |
1723 | end) | |
1724 | ||
1725 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.13, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
1726 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.60, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
1727 | ||
1728 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Colorful Death", SKILLTEXTCOLOR, 7, "Garamond", 0, 2, 1, "Text 1") | |
1729 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Forgiveness", SKILLTEXTCOLOR, 7, "Garamond", 0, 2, 1, "Text 2") | |
1730 | ||
1731 | function printbye(Name) | |
1732 | local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your live is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "} | |
1733 | warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".") | |
1734 | end | |
1735 | workspace.ChildAdded:connect(function(instance) | |
1736 | for BANISH = 1, #TOBANISH do | |
1737 | if TOBANISH[BANISH] ~= nil then | |
1738 | if instance.Name == TOBANISH[BANISH] then | |
1739 | coroutine.resume(coroutine.create(function() | |
1740 | printbye(instance.Name) | |
1741 | instance:ClearAllChildren() | |
1742 | Debris:AddItem(instance,0.0005) | |
1743 | end)) | |
1744 | end | |
1745 | end | |
1746 | end | |
1747 | end) | |
1748 | ||
1749 | --//=================================\\ | |
1750 | --|| DAMAGING | |
1751 | --\\=================================// | |
1752 | ||
1753 | function Banish(Foe) | |
1754 | if Foe then | |
1755 | coroutine.resume(coroutine.create(function() | |
1756 | --if game.Players:FindFirstChild(Foe.Name) then | |
1757 | table.insert(TOBANISH,Foe.Name) | |
1758 | printbye(Foe.Name) | |
1759 | --end | |
1760 | Foe.Archivable = true | |
1761 | local CLONE = Foe:Clone() | |
1762 | Foe:Destroy() | |
1763 | CLONE.Parent = Effects | |
1764 | CLONE:BreakJoints() | |
1765 | local MATERIALS = {"Glass","Neon"} | |
1766 | for _, c in pairs(CLONE:GetDescendants()) do | |
1767 | if c:IsA("BasePart") then | |
1768 | if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then | |
1769 | CreateSound(340722848, c, 10, 1, false) | |
1770 | end | |
1771 | c.Anchored = true | |
1772 | c.Transparency = c.Transparency + 0.2 | |
1773 | c.Material = MATERIALS[MRANDOM(1,2)] | |
1774 | c.Color = C3(1,0,0) | |
1775 | if c.ClassName == "MeshPart" then | |
1776 | c.TextureID = "" | |
1777 | end | |
1778 | if c:FindFirstChildOfClass("SpecialMesh") then | |
1779 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
1780 | end | |
1781 | if c:FindFirstChildOfClass("Decal") then | |
1782 | c:FindFirstChildOfClass("Decal"):remove() | |
1783 | end | |
1784 | c.Name = "Banished" | |
1785 | c.CanCollide = false | |
1786 | else | |
1787 | c:remove() | |
1788 | end | |
1789 | end | |
1790 | local A = false | |
1791 | for i = 1, 35 do | |
1792 | if A == false then | |
1793 | A = true | |
1794 | elseif A == true then | |
1795 | A = false | |
1796 | end | |
1797 | for _, c in pairs(CLONE:GetDescendants()) do | |
1798 | if c:IsA("BasePart") then | |
1799 | c.Anchored = true | |
1800 | c.Material = MATERIALS[MRANDOM(1,2)] | |
1801 | c.Transparency = c.Transparency + 0.8/35 | |
1802 | if A == false then | |
1803 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
1804 | elseif A == true then | |
1805 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
1806 | end | |
1807 | end | |
1808 | end | |
1809 | Swait() | |
1810 | end | |
1811 | CLONE:remove() | |
1812 | end)) | |
1813 | end | |
1814 | end | |
1815 | ||
1816 | function ApplyAoE(POSITION,RANGE,ISBANISH) | |
1817 | local CHILDREN = workspace:GetDescendants() | |
1818 | for index, CHILD in pairs(CHILDREN) do | |
1819 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1820 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1821 | if HUM then | |
1822 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1823 | if TORSO then | |
1824 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
1825 | if ISBANISH == true then | |
1826 | Banish(CHILD) | |
1827 | else | |
1828 | if ISBANISH == "Gravity" then | |
1829 | HUM.PlatformStand = true | |
1830 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then | |
1831 | local grav = Instance.new("BodyPosition",TORSO) | |
1832 | grav.D = 15 | |
1833 | grav.P = 20000 | |
1834 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1835 | grav.position = TORSO.Position | |
1836 | grav.Name = "V3BanishForce"..Player.Name | |
1837 | else | |
1838 | TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0) | |
1839 | TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25)) | |
1840 | end | |
1841 | else | |
1842 | HUM.PlatformStand = false | |
1843 | end | |
1844 | end | |
1845 | elseif ISBANISH == "Gravity" then | |
1846 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then | |
1847 | TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove() | |
1848 | HUM.PlatformStand = false | |
1849 | end | |
1850 | end | |
1851 | end | |
1852 | end | |
1853 | end | |
1854 | end | |
1855 | end | |
1856 | ||
1857 | ||
1858 | ||
1859 | UnBanishTaunts = {"Forgiveness is a judgement's option.", "Mercy can be given anytime.", "Your Actions Have Been Forgiven.", "I shall set you free.", "I have let you go.", "Don't do that again.", "As A Person, i have the emotion of forgiving.", "Why Not Be Merciful?"} | |
1860 | ||
1861 | ||
1862 | --//=================================\\ | |
1863 | --|| ATTACK FUNCTIONS AND STUFF | |
1864 | --\\=================================// | |
1865 | ||
1866 | function Colorful_Death() | |
1867 | ATTACK = true | |
1868 | Rooted = false | |
1869 | for i=0, 0.05, 0.1 / Animation_Speed do | |
1870 | Swait() | |
1871 | turnto(Mouse.Hit.p) | |
1872 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
1873 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
1874 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1875 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1876 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1877 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1878 | end | |
1879 | repeat | |
1880 | for i=0, 0.05, 0.1 / Animation_Speed do | |
1881 | Swait() | |
1882 | turnto(Mouse.Hit.p) | |
1883 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
1884 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
1885 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1886 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1887 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1888 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1889 | end | |
1890 | local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character) | |
1891 | SpawnTrail(Hole.Position,POS) | |
1892 | if HIT ~= nil then | |
1893 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
1894 | Banish(HIT.Parent) | |
1895 | end | |
1896 | end | |
1897 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(1,0,1), Size2 = VT(6,7.5,6), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1898 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(1,0,1), Size2 = VT(6,6.5,6), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
1899 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(1,0,1), Size2 = VT(6,6.5,6), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
1900 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(1,0,1), Size2 = VT(6,6.5,6), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
1901 | for i=0, 0.05, 0.1 / Animation_Speed do | |
1902 | Swait() | |
1903 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
1904 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed) | |
1905 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(130), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1906 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1907 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1908 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1909 | end | |
1910 | until KEYHOLD == false | |
1911 | ATTACK = false | |
1912 | Rooted = false | |
1913 | end | |
1914 | ||
1915 | ||
1916 | ||
1917 | --//=================================\\ | |
1918 | --|| ASSIGN THINGS TO KEYS | |
1919 | --\\=================================// | |
1920 | ||
1921 | function MouseDown(Mouse) | |
1922 | if ATTACK == false then | |
1923 | end | |
1924 | end | |
1925 | ||
1926 | function MouseUp(Mouse) | |
1927 | HOLD = false | |
1928 | end | |
1929 | ||
1930 | function KeyDown(Key) | |
1931 | KEYHOLD = true | |
1932 | if Key == "z" and ATTACK == false then | |
1933 | Colorful_Death() | |
1934 | end | |
1935 | ||
1936 | if Key == "b" and ATTACK == false then | |
1937 | chatfunc(UnBanishTaunts[MRANDOM(1,#UnBanishTaunts)]) | |
1938 | TOBANISH = {} | |
1939 | end | |
1940 | ||
1941 | if Key == "c" and ATTACK == false then | |
1942 | ||
1943 | end | |
1944 | ||
1945 | if Key == "v" and ATTACK == false then | |
1946 | end | |
1947 | ||
1948 | if Key == "x" and ATTACK == false then | |
1949 | end | |
1950 | end | |
1951 | ||
1952 | function KeyUp(Key) | |
1953 | KEYHOLD = false | |
1954 | end | |
1955 | ||
1956 | Mouse.Button1Down:connect(function(NEWKEY) | |
1957 | MouseDown(NEWKEY) | |
1958 | end) | |
1959 | Mouse.Button1Up:connect(function(NEWKEY) | |
1960 | MouseUp(NEWKEY) | |
1961 | end) | |
1962 | Mouse.KeyDown:connect(function(NEWKEY) | |
1963 | KeyDown(NEWKEY) | |
1964 | end) | |
1965 | Mouse.KeyUp:connect(function(NEWKEY) | |
1966 | KeyUp(NEWKEY) | |
1967 | end) | |
1968 | ||
1969 | --//=================================\\ | |
1970 | --\\=================================// | |
1971 | ||
1972 | ||
1973 | function unanchor() | |
1974 | if UNANCHOR == true then | |
1975 | g = Character:GetChildren() | |
1976 | for i = 1, #g do | |
1977 | if g[i].ClassName == "Part" then | |
1978 | g[i].Anchored = false | |
1979 | end | |
1980 | end | |
1981 | end | |
1982 | end | |
1983 | ||
1984 | ||
1985 | --//=================================\\ | |
1986 | --|| WRAP THE WHOLE SCRIPT UP | |
1987 | --\\=================================// | |
1988 | ||
1989 | Humanoid.Changed:connect(function(Jump) | |
1990 | if Jump == "Jump" and (Disable_Jump == true) then | |
1991 | Humanoid.Jump = false | |
1992 | end | |
1993 | end) | |
1994 | ||
1995 | local CONNECT = nil | |
1996 | ||
1997 | while true do | |
1998 | Swait() | |
1999 | ANIMATE.Parent = nil | |
2000 | if Character:FindFirstChildOfClass("Humanoid") == nil then | |
2001 | Humanoid = IT("Humanoid",Character) | |
2002 | end | |
2003 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
2004 | v:Stop(); | |
2005 | end | |
2006 | SINE = SINE + CHANGE | |
2007 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
2008 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
2009 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
2010 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 29) | |
2011 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
2012 | 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) / 3) | |
2013 | 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) / 3) | |
2014 | 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(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / 3) | |
2015 | 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(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / 3) | |
2016 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
2017 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / 3) | |
2018 | 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 / 3) | |
2019 | 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 / 3) | |
2020 | 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 / 3) | |
2021 | end | |
2022 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
2023 | ANIM = "Jump" | |
2024 | if ATTACK == false then | |
2025 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2026 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2027 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2028 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2029 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
2030 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
2031 | end | |
2032 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
2033 | ANIM = "Fall" | |
2034 | if ATTACK == false then | |
2035 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2036 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2037 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2038 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2039 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
2040 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
2041 | end | |
2042 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
2043 | ANIM = "Idle" | |
2044 | if ATTACK == false then | |
2045 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.15 / 3) | |
2046 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 4.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.15 / 3) | |
2047 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.5) * ANGLES(RAD(75), RAD(45 + 2 * SIN(SINE / 12)), RAD(-25))* RIGHTSHOULDERC0, 0.15 / 3) | |
2048 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / 3) | |
2049 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1.1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / 3) | |
2050 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / 3) | |
2051 | end | |
2052 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
2053 | ANIM = "Walk" | |
2054 | if ATTACK == false then | |
2055 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / 3) | |
2056 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / 3) | |
2057 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.1, -0.4) * ANGLES(RAD(150), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / 3) | |
2058 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / 3) | |
2059 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / 3) | |
2060 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / 3) | |
2061 | end | |
2062 | end | |
2063 | unanchor() | |
2064 | Humanoid.MaxHealth = "inf" | |
2065 | Humanoid.Health = "inf" | |
2066 | if Rooted == false then | |
2067 | Disable_Jump = false | |
2068 | Humanoid.WalkSpeed = Speed | |
2069 | elseif Rooted == true then | |
2070 | Disable_Jump = true | |
2071 | Humanoid.WalkSpeed = 0 | |
2072 | end | |
2073 | end | |
2074 | --//=================================\\ | |
2075 | --\\=================================// | |
2076 | ||
2077 | ||
2078 | ||
2079 | ||
2080 | ||
2081 | --//====================================================\\-- | |
2082 | --|| END OF SCRIPT | |
2083 | --\\====================================================//-- |