SHOW:
|
|
- or go back to the newest paste.
1 | - | -- This script has been converted to FE by iPxter |
1 | + | |
2 | --|| CREATED BY KILLERZTH_1596/WANTH092 | |
3 | --\\====================================================//-- | |
4 | - | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end |
4 | + | |
5 | - | local Player,Mouse,mouse,UserInputService,ContextActionService = owner |
5 | + | |
6 | - | do |
6 | + | |
7 | - | print("FE Compatibility code by Mokiros | Translated to FE by iPxter") |
7 | + | Player = game.Players.LocalPlayer |
8 | - | script.Parent = Player.Character |
8 | + | |
9 | Cam = workspace.CurrentCamera | |
10 | - | --RemoteEvent for communicating |
10 | + | |
11 | - | local Event = Instance.new("RemoteEvent") |
11 | + | |
12 | - | Event.Name = "UserInput_Event" |
12 | + | |
13 | RootPart = Character["HumanoidRootPart"] | |
14 | - | --Fake event to make stuff like Mouse.KeyDown work |
14 | + | |
15 | - | local function fakeEvent() |
15 | + | |
16 | - | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} |
16 | + | |
17 | - | t.connect = t.Connect |
17 | + | |
18 | - | return t |
18 | + | |
19 | LeftLeg = Character["Left Leg"] | |
20 | RootJoint = RootPart["RootJoint"] | |
21 | - | --Creating fake input objects with fake variables |
21 | + | |
22 | - | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} |
22 | + | |
23 | - | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} |
23 | + | |
24 | - | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) |
24 | + | |
25 | - | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil |
25 | + | |
26 | - | end} |
26 | + | |
27 | - | --Merged 2 functions into one by checking amount of arguments |
27 | + | |
28 | - | CAS.UnbindAction = CAS.BindAction |
28 | + | |
29 | IT = Instance.new | |
30 | - | --This function will trigger the events that have been :Connect()'ed |
30 | + | |
31 | - | local function te(self,ev,...) |
31 | + | |
32 | - | local t = m[ev] |
32 | + | |
33 | - | if t and t._fakeEvent and t.Function then |
33 | + | |
34 | - | t.Function(...) |
34 | + | |
35 | BRICKC = BrickColor.new | |
36 | ANGLES = CFrame.Angles | |
37 | - | m.TrigEvent = te |
37 | + | |
38 | - | UIS.TrigEvent = te |
38 | + | |
39 | ACOS = math.acos | |
40 | - | Event.OnServerEvent:Connect(function(plr,io) |
40 | + | |
41 | - | if plr~=Player then return end |
41 | + | |
42 | - | if io.isMouse then |
42 | + | |
43 | - | m.Target = io.Target |
43 | + | |
44 | - | m.Hit = io.Hit |
44 | + | |
45 | ||
46 | - | local b = io.UserInputState == Enum.UserInputState.Begin |
46 | + | |
47 | - | if io.UserInputType == Enum.UserInputType.MouseButton1 then |
47 | + | |
48 | - | return m:TrigEvent(b and "Button1Down" or "Button1Up") |
48 | + | |
49 | ||
50 | - | for _,t in pairs(CAS.Actions) do |
50 | + | |
51 | - | for _,k in pairs(t.Keys) do |
51 | + | |
52 | - | if k==io.KeyCode then |
52 | + | |
53 | - | t.Function(t.Name,io.UserInputState,io) |
53 | + | |
54 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
55 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
56 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
57 | - | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) |
57 | + | |
58 | - | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) |
58 | + | |
59 | local ANIM = "Idle" | |
60 | local ATTACK = false | |
61 | - | Event.Parent = NLS([==[ |
61 | + | |
62 | - | local Player = game:GetService("Players").LocalPlayer |
62 | + | |
63 | - | local Event = script:WaitForChild("UserInput_Event") |
63 | + | |
64 | local Rooted = false | |
65 | - | local UIS = game:GetService("UserInputService") |
65 | + | |
66 | - | local input = function(io,a) |
66 | + | |
67 | - | if a then return end |
67 | + | |
68 | - | --Since InputObject is a client-side instance, we create and pass table instead |
68 | + | |
69 | - | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) |
69 | + | |
70 | local VALUE2 = false | |
71 | - | UIS.InputBegan:Connect(input) |
71 | + | |
72 | - | UIS.InputEnded:Connect(input) |
72 | + | |
73 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
74 | - | local Mouse = Player:GetMouse() |
74 | + | |
75 | - | local h,t |
75 | + | |
76 | - | --Give the server mouse data 30 times every second, but only if the values changed |
76 | + | |
77 | - | --If player is not moving their mouse, client won't fire events |
77 | + | |
78 | - | while wait(1/30) do |
78 | + | |
79 | - | if h~=Mouse.Hit or t~=Mouse.Target then |
79 | + | |
80 | - | h,t=Mouse.Hit,Mouse.Target |
80 | + | |
81 | - | Event:FireServer({isMouse=true,Target=t,Hit=h}) |
81 | + | |
82 | local Clock = IT("Model") | |
83 | - | end]==],Player.Character) |
83 | + | |
84 | - | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS |
84 | + | |
85 | Clock.Name = "Adds" | |
86 | local Effects = IT("Folder", Weapon) | |
87 | - | print("Pretty old collab but ok i'll leak this myself") |
87 | + | |
88 | - | print("also F##K OFF LOGGER!!") |
88 | + | |
89 | local ANIMATE = Character.Animate | |
90 | local UNANCHOR = true | |
91 | TRANSFORMED = false | |
92 | local CLOCKLOOP = 0 | |
93 | local sick = Instance.new("Sound",Torso) | |
94 | local SONG = 1873219898 | |
95 | local CLOCKTARGET = nil | |
96 | - | Player = owner |
96 | + | |
97 | local CLOCKSPEED2 = 0 | |
98 | script.Parent = WEAPONGUI | |
99 | local CLONE = Character:Clone() | |
100 | CLONE.Parent = nil | |
101 | Character.Archivable = false | |
102 | local GHOSTS = {} | |
103 | ANIMATE:remove() | |
104 | Character.Archivable = true | |
105 | script.Parent = WEAPONGUI | |
106 | local GHOSTBASE = Character:Clone() | |
107 | GHOSTBASE.Parent = nil | |
108 | GHOSTBASE.Name = "Infected" | |
109 | for _, c in pairs(GHOSTBASE:GetChildren()) do | |
110 | if c.ClassName == "Part" and c.Transparency < 1 then | |
111 | c.Color = C3(0,0,0) | |
112 | if c.ClassName == "Accessory" or c.ClassName == "Hat" or c.ClassName == "CharacterMesh" or c.ClassName == "Shirt" or c.ClassName == "Pants" then | |
113 | c:remove() | |
114 | end | |
115 | end | |
116 | end | |
117 | local HeadC = C3(0,0,0) | |
118 | local BodyC = C3(0,0,0) | |
119 | local HITFLOOR = nil | |
120 | local INTRO = true | |
121 | local INSTANT = false | |
122 | local MODE = "The Superior Pandora" | |
123 | sick.SoundId = "rbxassetid://"..SONG | |
124 | sick.Looped = true | |
125 | sick.Pitch = 0.98 | |
126 | sick.Volume = 5 | |
127 | sick.Parent = Torso | |
128 | sick:Play() | |
129 | sick:Resume() | |
130 | --sick.Playing = false | |
131 | --//=================================\\ | |
132 | --\\=================================// | |
133 | ||
134 | ||
135 | --//=================================\\ | |
136 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
137 | --\\=================================// | |
138 | ||
139 | ArtificialHB = Instance.new("BindableEvent", script) | |
140 | ArtificialHB.Name = "ArtificialHB" | |
141 | ||
142 | script:WaitForChild("ArtificialHB") | |
143 | ||
144 | frame = Frame_Speed | |
145 | tf = 0 | |
146 | allowframeloss = false | |
147 | tossremainder = false | |
148 | lastframe = tick() | |
149 | script.ArtificialHB:Fire() | |
150 | ||
151 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
152 | tf = tf + s | |
153 | if tf >= frame then | |
154 | if allowframeloss then | |
155 | script.ArtificialHB:Fire() | |
156 | lastframe = tick() | |
157 | else | |
158 | for i = 1, math.floor(tf / frame) do | |
159 | script.ArtificialHB:Fire() | |
160 | end | |
161 | lastframe = tick() | |
162 | end | |
163 | if tossremainder then | |
164 | tf = 0 | |
165 | else | |
166 | tf = tf - frame * math.floor(tf / frame) | |
167 | end | |
168 | end | |
169 | end) | |
170 | ||
171 | --//=================================\\ | |
172 | --\\=================================// | |
173 | ||
174 | --//=================================\\ | |
175 | --// MAKHAIL07 STUFF | |
176 | --\\=================================// | |
177 | ||
178 | local plr = game.Players.LocalPlayer | |
179 | local char = plr.Character | |
180 | local hum = char.Humanoid | |
181 | cam = workspace.CurrentCamera | |
182 | Rad = math.rad | |
183 | Mrandom = math.random | |
184 | ||
185 | --//=================================\\ | |
186 | --|| RAGDOLL STUFF | |
187 | --\\=================================// | |
188 | ||
189 | function recurse(root,callback,i) | |
190 | i= i or 0 | |
191 | for _,v in pairs(root:GetChildren()) do | |
192 | i = i + 1 | |
193 | callback(i,v) | |
194 | ||
195 | if #v:GetChildren() > 0 then | |
196 | i = recurse(v,callback,i) | |
197 | end | |
198 | end | |
199 | ||
200 | return i | |
201 | end | |
202 | ||
203 | function ragdollJoint(character, part0, part1, attachmentName, className, properties) | |
204 | attachmentName = attachmentName.."RigAttachment" | |
205 | local constraint = Instance.new(className.."Constraint") | |
206 | constraint.Attachment0 = part0:FindFirstChild(attachmentName) | |
207 | constraint.Attachment1 = part1:FindFirstChild(attachmentName) | |
208 | constraint.Name = "RagdollConstraint"..part1.Name | |
209 | ||
210 | for _,propertyData in next,properties or {} do | |
211 | constraint[propertyData[1]] = propertyData[2] | |
212 | end | |
213 | ||
214 | constraint.Parent = character | |
215 | end | |
216 | ||
217 | function getAttachment0(character, attachmentName) | |
218 | for _,child in next,character:GetChildren() do | |
219 | local attachment = child:FindFirstChild(attachmentName) | |
220 | if attachment then | |
221 | return attachment | |
222 | end | |
223 | end | |
224 | end | |
225 | ||
226 | function ArtificialHitbox(Part) | |
227 | local HITBOX = CreatePart(3, Part, "Metal", 0, 1, "Really black", "Hitbox", Part.Size/2, false) | |
228 | HITBOX.CanCollide = true | |
229 | HITBOX.CFrame = Part.CFrame | |
230 | weldBetween(Part,HITBOX) | |
231 | end | |
232 | ||
233 | function R15Ragdoll(character,KeepArms) | |
234 | character:BreakJoints() | |
235 | coroutine.resume(coroutine.create(function() | |
236 | recurse(character, function(_,v) | |
237 | if v:IsA("Attachment") then | |
238 | v.Axis = Vector3.new(0, 1, 0) | |
239 | v.SecondaryAxis = Vector3.new(0, 0, 1) | |
240 | v.Rotation = Vector3.new(0, 0, 0) | |
241 | end | |
242 | end) | |
243 | for _,child in next,character:GetChildren() do | |
244 | if child:IsA("Accoutrement") then | |
245 | for _,part in next,child:GetChildren() do | |
246 | if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then | |
247 | local attachment1 = part:FindFirstChildOfClass("Attachment") | |
248 | local attachment0 = getAttachment0(character,attachment1.Name) | |
249 | if attachment0 and attachment1 then | |
250 | local constraint = Instance.new("HingeConstraint") | |
251 | constraint.Attachment0 = attachment0 | |
252 | constraint.Attachment1 = attachment1 | |
253 | constraint.LimitsEnabled = true | |
254 | constraint.UpperAngle = 0 | |
255 | constraint.LowerAngle = 0 | |
256 | constraint.Parent = character | |
257 | end | |
258 | ArtificialHitbox(part) | |
259 | elseif part.Name == "HumanoidRootPart" then | |
260 | part:remove() | |
261 | end | |
262 | end | |
263 | end | |
264 | end | |
265 | ||
266 | ragdollJoint(character,character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", { | |
267 | - | local plr = owner |
267 | + | |
268 | {"UpperAngle",5}; | |
269 | }) | |
270 | if character:FindFirstChild("Head") then | |
271 | ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "BallSocket", { | |
272 | {"LimitsEnabled",true}; | |
273 | {"UpperAngle",15}; | |
274 | }) | |
275 | end | |
276 | ||
277 | local handProperties = { | |
278 | {"LimitsEnabled", true}; | |
279 | {"UpperAngle",0}; | |
280 | {"LowerAngle",0}; | |
281 | } | |
282 | ragdollJoint(character,character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties) | |
283 | ragdollJoint(character,character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties) | |
284 | ||
285 | local shinProperties = { | |
286 | {"LimitsEnabled", true}; | |
287 | {"UpperAngle", 0}; | |
288 | {"LowerAngle", -75}; | |
289 | } | |
290 | ragdollJoint(character,character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties) | |
291 | ragdollJoint(character,character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties) | |
292 | ||
293 | local footProperties = { | |
294 | {"LimitsEnabled", true}; | |
295 | {"UpperAngle", 15}; | |
296 | {"LowerAngle", -45}; | |
297 | } | |
298 | ragdollJoint(character,character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties) | |
299 | ragdollJoint(character,character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties) | |
300 | if KeepArms == true then | |
301 | ragdollJoint(character,character.UpperTorso, character.RightUpperArm, "RightShoulder", "BallSocket") | |
302 | ragdollJoint(character,character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket") | |
303 | ragdollJoint(character,character.UpperTorso, character.LeftUpperArm, "LeftShoulder", "BallSocket") | |
304 | ragdollJoint(character,character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket") | |
305 | end | |
306 | ragdollJoint(character,character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket") | |
307 | ragdollJoint(character,character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket") | |
308 | Debris:AddItem(character,5) | |
309 | end)) | |
310 | end | |
311 | ||
312 | function Ragdoll(Character2,CharTorso,KeepArms) | |
313 | coroutine.resume(coroutine.create(function() | |
314 | Character2:BreakJoints() | |
315 | local hum = Character2:findFirstChild("Humanoid") | |
316 | hum:remove() | |
317 | local function Scan(ch) | |
318 | local e | |
319 | for e = 1,#ch do | |
320 | Scan(ch[e]:GetChildren()) | |
321 | if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then | |
322 | ch[e]:remove() | |
323 | end | |
324 | end | |
325 | end | |
326 | local NEWHUM = IT("Humanoid") | |
327 | NEWHUM.Name = "Corpse" | |
328 | NEWHUM.Health = 0 | |
329 | NEWHUM.MaxHealth = 0 | |
330 | NEWHUM.PlatformStand = true | |
331 | NEWHUM.Parent = Character2 | |
332 | NEWHUM.DisplayDistanceType = "None" | |
333 | ||
334 | local ch = Character2:GetChildren() | |
335 | local i | |
336 | for i = 1,#ch do | |
337 | if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then | |
338 | ch[i]:remove() | |
339 | end | |
340 | end | |
341 | ||
342 | local Torso2 = Character2.Torso | |
343 | local movevector = Vector3.new() | |
344 | ||
345 | if Torso2 then | |
346 | movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector | |
347 | local Head = Character2:FindFirstChild("Head") | |
348 | if Head then | |
349 | local Neck = Instance.new("Weld") | |
350 | Neck.Name = "Neck" | |
351 | Neck.Part0 = Torso2 | |
352 | Neck.Part1 = Head | |
353 | Neck.C0 = CFrame.new(0, 1.5, 0) | |
354 | Neck.C1 = CFrame.new() | |
355 | Neck.Parent = Torso2 | |
356 | ||
357 | end | |
358 | local Limb = Character2:FindFirstChild("Right Arm") | |
359 | if Limb and KeepArms == true then | |
360 | ||
361 | Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0) | |
362 | local Joint = Instance.new("Glue") | |
363 | Joint.Name = "RightShoulder" | |
364 | Joint.Part0 = Torso2 | |
365 | Joint.Part1 = Limb | |
366 | Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
367 | Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
368 | Joint.Parent = Torso2 | |
369 | ||
370 | local B = Instance.new("Part") | |
371 | B.TopSurface = 0 | |
372 | B.BottomSurface = 0 | |
373 | B.formFactor = "Symmetric" | |
374 | B.Size = Vector3.new(1, 1, 1) | |
375 | B.Transparency = 1 | |
376 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
377 | B.Parent = Character2 | |
378 | local W = Instance.new("Weld") | |
379 | W.Part0 = Limb | |
380 | W.Part1 = B | |
381 | W.C0 = CFrame.new(0, -0.5, 0) | |
382 | W.Parent = Limb | |
383 | ||
384 | end | |
385 | local Limb = Character2:FindFirstChild("Left Arm") | |
386 | if Limb and KeepArms == true then | |
387 | ||
388 | Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0) | |
389 | local Joint = Instance.new("Glue") | |
390 | Joint.Name = "LeftShoulder" | |
391 | Joint.Part0 = Torso2 | |
392 | Joint.Part1 = Limb | |
393 | Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
394 | Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
395 | Joint.Parent = Torso2 | |
396 | ||
397 | local B = Instance.new("Part") | |
398 | B.TopSurface = 0 | |
399 | B.BottomSurface = 0 | |
400 | B.formFactor = "Symmetric" | |
401 | B.Size = Vector3.new(1, 1, 1) | |
402 | B.Transparency = 1 | |
403 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
404 | B.Parent = Character2 | |
405 | local W = Instance.new("Weld") | |
406 | W.Part0 = Limb | |
407 | W.Part1 = B | |
408 | W.C0 = CFrame.new(0, -0.5, 0) | |
409 | W.Parent = Limb | |
410 | ||
411 | end | |
412 | local Limb = Character2:FindFirstChild("Right Leg") | |
413 | if Limb then | |
414 | ||
415 | Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0) | |
416 | local Joint = Instance.new("Glue") | |
417 | Joint.Name = "RightHip" | |
418 | Joint.Part0 = Torso2 | |
419 | Joint.Part1 = Limb | |
420 | Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
421 | Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
422 | Joint.Parent = Torso2 | |
423 | ||
424 | local B = Instance.new("Part") | |
425 | B.TopSurface = 0 | |
426 | B.BottomSurface = 0 | |
427 | B.formFactor = "Symmetric" | |
428 | B.Size = Vector3.new(1, 1, 1) | |
429 | B.Transparency = 1 | |
430 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
431 | B.Parent = Character2 | |
432 | local W = Instance.new("Weld") | |
433 | W.Part0 = Limb | |
434 | W.Part1 = B | |
435 | W.C0 = CFrame.new(0, -0.5, 0) | |
436 | W.Parent = Limb | |
437 | ||
438 | end | |
439 | local Limb = Character2:FindFirstChild("Left Leg") | |
440 | if Limb then | |
441 | ||
442 | Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0) | |
443 | local Joint = Instance.new("Glue") | |
444 | Joint.Name = "LeftHip" | |
445 | Joint.Part0 = Torso2 | |
446 | Joint.Part1 = Limb | |
447 | Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
448 | Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
449 | Joint.Parent = Torso2 | |
450 | ||
451 | local B = Instance.new("Part") | |
452 | B.TopSurface = 0 | |
453 | B.BottomSurface = 0 | |
454 | B.formFactor = "Symmetric" | |
455 | B.Size = Vector3.new(1, 1, 1) | |
456 | B.Transparency = 1 | |
457 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
458 | B.Parent = Character2 | |
459 | local W = Instance.new("Weld") | |
460 | W.Part0 = Limb | |
461 | W.Part1 = B | |
462 | W.C0 = CFrame.new(0, -0.5, 0) | |
463 | W.Parent = Limb | |
464 | ||
465 | end | |
466 | --[ | |
467 | local Bar = Instance.new("Part") | |
468 | Bar.TopSurface = 0 | |
469 | Bar.BottomSurface = 0 | |
470 | Bar.formFactor = "Symmetric" | |
471 | Bar.Size = Vector3.new(1, 1, 1) | |
472 | Bar.Transparency = 1 | |
473 | Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0) | |
474 | Bar.Parent = Character2 | |
475 | local Weld = Instance.new("Weld") | |
476 | Weld.Part0 = Torso2 | |
477 | Weld.Part1 = Bar | |
478 | Weld.C0 = CFrame.new(0, 0.5, 0) | |
479 | Weld.Parent = Torso2 | |
480 | --]] | |
481 | end | |
482 | Character2.Parent = workspace | |
483 | Debris:AddItem(Character2,5) | |
484 | ||
485 | return Character2,Torso2 | |
486 | end)) | |
487 | end | |
488 | ||
489 | --//=================================\\ | |
490 | --|| SOME FUNCTIONS | |
491 | --\\=================================// | |
492 | ||
493 | function MagicSphere2(size,waitt,cframe,color) | |
494 | local wave = CreatePart(3, Effects, "Neon", 0, 1, BRICKC(color), "Effect", VT(1,1,1)) | |
495 | local mesh = IT("SpecialMesh",wave) | |
496 | mesh.MeshType = "Sphere" | |
497 | mesh.Scale = VT(size,size,size) | |
498 | mesh.Offset = VT(0,0,0) | |
499 | wave.CFrame = cframe | |
500 | coroutine.resume(coroutine.create(function(PART) | |
501 | for i = 1, waitt do | |
502 | Swait() | |
503 | mesh.Scale = mesh.Scale - VT(size/waitt,size/waitt,size/waitt) | |
504 | wave.Transparency = wave.Transparency - (1/waitt) | |
505 | end | |
506 | wave:remove() | |
507 | end)) | |
508 | end | |
509 | ||
510 | function MagicSphere(size,waitt,cframe,color) | |
511 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(1,1,1)) | |
512 | local mesh = IT("SpecialMesh",wave) | |
513 | mesh.MeshType = "Sphere" | |
514 | mesh.Scale = VT(size,size,size) | |
515 | mesh.Offset = VT(0,0,0) | |
516 | wave.CFrame = cframe | |
517 | coroutine.resume(coroutine.create(function(PART) | |
518 | for i = 1, waitt do | |
519 | Swait() | |
520 | mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5) | |
521 | wave.Transparency = wave.Transparency + (1/waitt) | |
522 | if wave.Transparency > 0.99 then | |
523 | wave:remove() | |
524 | end | |
525 | end | |
526 | end)) | |
527 | end | |
528 | ||
529 | function CreateFlyingDebree(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH) | |
530 | if FLOOR ~= nil then | |
531 | for i = 1, AMOUNT do | |
532 | local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, FLOOR.Transparency, "Peal", "Debree", BLOCKSIZE, false) | |
533 | DEBREE.Material = FLOOR.Material | |
534 | DEBREE.Color = FLOOR.Color | |
535 | DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) | |
536 | DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH)) | |
537 | coroutine.resume(coroutine.create(function() | |
538 | Swait(15) | |
539 | DEBREE.Parent = workspace | |
540 | DEBREE.CanCollide = true | |
541 | Debris:AddItem(DEBREE,SWAIT) | |
542 | end)) | |
543 | end | |
544 | end | |
545 | end | |
546 | ||
547 | function CameraEnshaking(Length, Intensity) | |
548 | coroutine.resume(coroutine.create(function() | |
549 | local intensity = 1 * Intensity | |
550 | local rotM = 0.01 * Intensity | |
551 | for i = 0, Length, 0.1 do | |
552 | Swait() | |
553 | intensity = intensity - 0.05 * Intensity / Length | |
554 | rotM = rotM - 5.0E-4 * Intensity / Length | |
555 | hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) | |
556 | cam.CFrame = cam.CFrame * CF(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) * Euler(Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM) | |
557 | end | |
558 | hum.CameraOffset = Vector3.new(0, 0, 0) | |
559 | end)) | |
560 | end | |
561 | ||
562 | local DECAL = IT("Decal") | |
563 | function MakeRing() | |
564 | local RING = CreatePart(3, Effects, "Neon", 0, 1, BRICKC("Pearl"), "MagicRing", VT(0, 0, 0), true) | |
565 | local MSH = IT("BlockMesh", RING) | |
566 | local TOP = DECAL:Clone() | |
567 | local BOTTOM = DECAL:Clone() | |
568 | TOP.Parent = RING | |
569 | BOTTOM.Parent = RING | |
570 | TOP.Face = "Top" | |
571 | BOTTOM.Face = "Bottom" | |
572 | TOP.Texture = "http://www.roblox.com/asset/?id=273474310" | |
573 | BOTTOM.Texture = "http://www.roblox.com/asset/?id=273474310" | |
574 | local function REMOVE() | |
575 | coroutine.resume(coroutine.create(function() | |
576 | local SIZE = MSH.Scale.X | |
577 | for i = 1, 35 do | |
578 | Swait() | |
579 | MSH.Scale = MSH.Scale - VT(SIZE, 0, SIZE) / 60 | |
580 | TOP.Transparency = TOP.Transparency + 0.02857142857142857 | |
581 | BOTTOM.Transparency = BOTTOM.Transparency + 0.02857142857142857 | |
582 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(-5), RAD(0)) | |
583 | end | |
584 | RING:remove() | |
585 | end)) | |
586 | end | |
587 | return RING, MSH, REMOVE | |
588 | end | |
589 | ||
590 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
591 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
592 | end | |
593 | ||
594 | function PositiveAngle(NUMBER) | |
595 | if NUMBER >= 0 then | |
596 | NUMBER = 0 | |
597 | end | |
598 | return NUMBER | |
599 | end | |
600 | ||
601 | function NegativeAngle(NUMBER) | |
602 | if NUMBER <= 0 then | |
603 | NUMBER = 0 | |
604 | end | |
605 | return NUMBER | |
606 | end | |
607 | ||
608 | function Swait(NUMBER) | |
609 | if NUMBER == 0 or NUMBER == nil then | |
610 | ArtificialHB.Event:wait() | |
611 | else | |
612 | for i = 1, NUMBER do | |
613 | ArtificialHB.Event:wait() | |
614 | end | |
615 | end | |
616 | end | |
617 | ||
618 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
619 | local NEWMESH = IT(MESH) | |
620 | if MESH == "SpecialMesh" then | |
621 | NEWMESH.MeshType = MESHTYPE | |
622 | if MESHID ~= "nil" and MESHID ~= "" then | |
623 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
624 | end | |
625 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
626 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
627 | end | |
628 | end | |
629 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
630 | NEWMESH.Scale = SCALE | |
631 | NEWMESH.Parent = PARENT | |
632 | return NEWMESH | |
633 | end | |
634 | ||
635 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
636 | local NEWPART = IT("Part") | |
637 | NEWPART.formFactor = FORMFACTOR | |
638 | NEWPART.Reflectance = REFLECTANCE | |
639 | NEWPART.Transparency = TRANSPARENCY | |
640 | NEWPART.CanCollide = false | |
641 | NEWPART.Locked = true | |
642 | NEWPART.Anchored = true | |
643 | if ANCHOR == false then | |
644 | NEWPART.Anchored = false | |
645 | end | |
646 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
647 | NEWPART.Name = NAME | |
648 | NEWPART.Size = SIZE | |
649 | NEWPART.Position = Torso.Position | |
650 | NEWPART.Material = MATERIAL | |
651 | NEWPART:BreakJoints() | |
652 | NEWPART.Parent = PARENT | |
653 | return NEWPART | |
654 | end | |
655 | ||
656 | local function weldBetween(a, b) | |
657 | local weldd = Instance.new("ManualWeld") | |
658 | weldd.Part0 = a | |
659 | weldd.Part1 = b | |
660 | weldd.C0 = CFrame.new() | |
661 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
662 | weldd.Parent = a | |
663 | return weldd | |
664 | end | |
665 | ||
666 | ||
667 | function QuaternionFromCFrame(cf) | |
668 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
669 | local trace = m00 + m11 + m22 | |
670 | if trace > 0 then | |
671 | local s = math.sqrt(1 + trace) | |
672 | local recip = 0.5 / s | |
673 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
674 | else | |
675 | local i = 0 | |
676 | if m11 > m00 then | |
677 | i = 1 | |
678 | end | |
679 | if m22 > (i == 0 and m00 or m11) then | |
680 | i = 2 | |
681 | end | |
682 | if i == 0 then | |
683 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
684 | local recip = 0.5 / s | |
685 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
686 | elseif i == 1 then | |
687 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
688 | local recip = 0.5 / s | |
689 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
690 | elseif i == 2 then | |
691 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
692 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
693 | end | |
694 | end | |
695 | end | |
696 | ||
697 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
698 | local xs, ys, zs = x + x, y + y, z + z | |
699 | local wx, wy, wz = w * xs, w * ys, w * zs | |
700 | local xx = x * xs | |
701 | local xy = x * ys | |
702 | local xz = x * zs | |
703 | local yy = y * ys | |
704 | local yz = y * zs | |
705 | local zz = z * zs | |
706 | 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)) | |
707 | end | |
708 | ||
709 | function QuaternionSlerp(a, b, t) | |
710 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
711 | local startInterp, finishInterp; | |
712 | if cosTheta >= 0.0001 then | |
713 | if (1 - cosTheta) > 0.0001 then | |
714 | local theta = ACOS(cosTheta) | |
715 | local invSinTheta = 1 / SIN(theta) | |
716 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
717 | finishInterp = SIN(t * theta) * invSinTheta | |
718 | else | |
719 | startInterp = 1 - t | |
720 | finishInterp = t | |
721 | end | |
722 | else | |
723 | if (1 + cosTheta) > 0.0001 then | |
724 | local theta = ACOS(-cosTheta) | |
725 | local invSinTheta = 1 / SIN(theta) | |
726 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
727 | finishInterp = SIN(t * theta) * invSinTheta | |
728 | else | |
729 | startInterp = t - 1 | |
730 | finishInterp = t | |
731 | end | |
732 | end | |
733 | 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 | |
734 | end | |
735 | ||
736 | function Clerp(a, b, t) | |
737 | local qa = {QuaternionFromCFrame(a)} | |
738 | local qb = {QuaternionFromCFrame(b)} | |
739 | local ax, ay, az = a.x, a.y, a.z | |
740 | local bx, by, bz = b.x, b.y, b.z | |
741 | local _t = 1 - t | |
742 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
743 | end | |
744 | ||
745 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
746 | local frame = IT("Frame") | |
747 | frame.BackgroundTransparency = TRANSPARENCY | |
748 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
749 | frame.Position = POSITION | |
750 | frame.Size = SIZE | |
751 | frame.BackgroundColor3 = COLOR | |
752 | frame.BorderColor3 = BORDERCOLOR | |
753 | frame.Name = NAME | |
754 | frame.Parent = PARENT | |
755 | return frame | |
756 | end | |
757 | ||
758 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
759 | local label = IT("TextLabel") | |
760 | label.BackgroundTransparency = 1 | |
761 | label.Size = UD2(1, 0, 1, 0) | |
762 | label.Position = UD2(0, 0, 0, 0) | |
763 | label.TextColor3 = TEXTCOLOR | |
764 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
765 | label.TextTransparency = TRANSPARENCY | |
766 | label.FontSize = TEXTFONTSIZE | |
767 | label.Font = TEXTFONT | |
768 | label.BorderSizePixel = BORDERSIZEPIXEL | |
769 | label.TextStrokeColor3 = C3(1,1,1) | |
770 | label.TextScaled = false | |
771 | label.Text = TEXT | |
772 | label.Name = NAME | |
773 | label.Parent = PARENT | |
774 | return label | |
775 | end | |
776 | ||
777 | function NoOutlines(PART) | |
778 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
779 | end | |
780 | ||
781 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
782 | local NEWWELD = IT(TYPE) | |
783 | NEWWELD.Part0 = PART0 | |
784 | NEWWELD.Part1 = PART1 | |
785 | NEWWELD.C0 = C0 | |
786 | NEWWELD.C1 = C1 | |
787 | NEWWELD.Parent = PARENT | |
788 | return NEWWELD | |
789 | end | |
790 | ||
791 | local S = IT("Sound") | |
792 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
793 | local NEWSOUND = nil | |
794 | coroutine.resume(coroutine.create(function() | |
795 | NEWSOUND = S:Clone() | |
796 | NEWSOUND.Parent = PARENT | |
797 | NEWSOUND.Volume = VOLUME | |
798 | NEWSOUND.Pitch = PITCH | |
799 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
800 | NEWSOUND:play() | |
801 | if DOESLOOP == true then | |
802 | NEWSOUND.Looped = true | |
803 | else | |
804 | repeat wait(1) until NEWSOUND.Playing == false | |
805 | NEWSOUND:remove() | |
806 | end | |
807 | end)) | |
808 | return NEWSOUND | |
809 | end | |
810 | ||
811 | function CFrameFromTopBack(at, top, back) | |
812 | local right = top:Cross(back) | |
813 | 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) | |
814 | end | |
815 | ||
816 | --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}) | |
817 | function WACKYEFFECT(Table) | |
818 | local TYPE = (Table.EffectType or "Sphere") | |
819 | local SIZE = (Table.Size or VT(1,1,1)) | |
820 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
821 | local TRANSPARENCY = (Table.Transparency or 0) | |
822 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
823 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
824 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
825 | local ROTATION1 = (Table.RotationX or 0) | |
826 | local ROTATION2 = (Table.RotationY or 0) | |
827 | local ROTATION3 = (Table.RotationZ or 0) | |
828 | local MATERIAL = (Table.Material or "Neon") | |
829 | local COLOR = (Table.Color or C3(1,1,1)) | |
830 | local TIME = (Table.Time or 45) | |
831 | local SOUNDID = (Table.SoundID or nil) | |
832 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
833 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
834 | coroutine.resume(coroutine.create(function() | |
835 | local PLAYSSOUND = false | |
836 | local SOUND = nil | |
837 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
838 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
839 | PLAYSSOUND = true | |
840 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
841 | end | |
842 | EFFECT.Color = COLOR | |
843 | local MSH = nil | |
844 | if TYPE == "Sphere" then | |
845 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
846 | elseif TYPE == "Block" then | |
847 | MSH = IT("BlockMesh",EFFECT) | |
848 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
849 | elseif TYPE == "Wave" then | |
850 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
851 | elseif TYPE == "Ring" then | |
852 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
853 | elseif TYPE == "Slash" then | |
854 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
855 | elseif TYPE == "Round Slash" then | |
856 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
857 | elseif TYPE == "Swirl" then | |
858 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
859 | elseif TYPE == "Skull" then | |
860 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
861 | elseif TYPE == "Crystal" then | |
862 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
863 | end | |
864 | if MSH ~= nil then | |
865 | local MOVESPEED = nil | |
866 | if MOVEDIRECTION ~= nil then | |
867 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
868 | end | |
869 | local GROWTH = SIZE - ENDSIZE | |
870 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
871 | if TYPE == "Block" then | |
872 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
873 | else | |
874 | EFFECT.CFrame = CFRAME | |
875 | end | |
876 | for LOOP = 1, TIME+1 do | |
877 | Swait() | |
878 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
879 | if TYPE == "Wave" then | |
880 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
881 | end | |
882 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
883 | if TYPE == "Block" then | |
884 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
885 | else | |
886 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
887 | end | |
888 | if MOVEDIRECTION ~= nil then | |
889 | local ORI = EFFECT.Orientation | |
890 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
891 | EFFECT.Orientation = ORI | |
892 | end | |
893 | end | |
894 | if PLAYSSOUND == false then | |
895 | EFFECT:remove() | |
896 | else | |
897 | repeat Swait() until SOUND.Playing == false | |
898 | EFFECT:remove() | |
899 | end | |
900 | else | |
901 | if PLAYSSOUND == false then | |
902 | EFFECT:remove() | |
903 | else | |
904 | repeat Swait() until SOUND.Playing == false | |
905 | EFFECT:remove() | |
906 | end | |
907 | end | |
908 | end)) | |
909 | end | |
910 | ||
911 | function MakeForm(PART,TYPE) | |
912 | if TYPE == "Cyl" then | |
913 | local MSH = IT("CylinderMesh",PART) | |
914 | elseif TYPE == "Ball" then | |
915 | local MSH = IT("SpecialMesh",PART) | |
916 | MSH.MeshType = "Sphere" | |
917 | elseif TYPE == "Wedge" then | |
918 | local MSH = IT("SpecialMesh",PART) | |
919 | MSH.MeshType = "Wedge" | |
920 | end | |
921 | end | |
922 | ||
923 | Debris = game:GetService("Debris") | |
924 | ||
925 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
926 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
927 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
928 | end | |
929 | ||
930 | function turnto(position) | |
931 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
932 | end | |
933 | ||
934 | function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit) | |
935 | local Direction = CFrame.new(StartPos, Vec).lookVector | |
936 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore}) | |
937 | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore) | |
938 | if RayHit and CheckIntangible(RayHit) then | |
939 | if DelayIfHit then | |
940 | wait() | |
941 | end | |
942 | RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit) | |
943 | end | |
944 | return RayHit, RayPos, RayNormal | |
945 | end | |
946 | ||
947 | function CheckIntangible(Hit) | |
948 | local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"} | |
949 | if Hit and Hit.Parent then | |
950 | if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then | |
951 | return true | |
952 | end | |
953 | end | |
954 | return false | |
955 | end | |
956 | ||
957 | function CheckTableForString(Table, String) | |
958 | for i, v in pairs(Table) do | |
959 | if string.find(string.lower(String), string.lower(v)) then | |
960 | return true | |
961 | end | |
962 | end | |
963 | return false | |
964 | end | |
965 | ||
966 | --//=================================\\ | |
967 | --|| WEAPON CREATION | |
968 | --\\=================================// | |
969 | ||
970 | Humanoid.Parent = nil | |
971 | RootPart.Size = RootPart.Size*SIZE | |
972 | Torso.Size = Torso.Size*SIZE | |
973 | RightArm.Size = RightArm.Size*SIZE | |
974 | RightLeg.Size = RightLeg.Size*SIZE | |
975 | LeftArm.Size = LeftArm.Size*SIZE | |
976 | LeftLeg.Size = LeftLeg.Size*SIZE | |
977 | RootJoint.C0 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
978 | RootJoint.C1 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
979 | Neck.C0 = NECKC0 * CF(0 * SIZE, 0 * SIZE, 0 + ((1 * SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
980 | Neck.C1 = CF(0 * SIZE, -0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
981 | RightShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE) | |
982 | LeftShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE) | |
983 | RightHip.C0 = CF(1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
984 | LeftHip.C0 = CF(-1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
985 | RightHip.C1 = CF(0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
986 | LeftHip.C1 = CF(-0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
987 | Head.Size = Head.Size*SIZE | |
988 | RootJoint.Parent = RootPart | |
989 | Neck.Parent = Torso | |
990 | RightShoulder.Parent = Torso | |
991 | LeftShoulder.Parent = Torso | |
992 | RightHip.Parent = Torso | |
993 | LeftHip.Parent = Torso | |
994 | ||
995 | local Player = game.Players.LocalPlayer | |
996 | repeat | |
997 | wait() | |
998 | until Player.Character | |
999 | local Character = Player.Character | |
1000 | TrailSettings = { | |
1001 | Lifetime = 1, | |
1002 | Texture = "http://www.roblox.com/asset/?id=1097260739", | |
1003 | Color1 = ColorSequence.new(BrickColor.new("Really red").Color), | |
1004 | Color2 = ColorSequence.new(BrickColor.new("Really red").Color), | |
1005 | AllBody = true, | |
1006 | UpperBodyOnly = false, | |
1007 | LowerBodyOnly = false, | |
1008 | Accessories = false, | |
1009 | Extras = true, | |
1010 | R15 = false, | |
1011 | R15Parts = {"UpperTorso", "LowerTorso"} | |
1012 | } | |
1013 | local Trail | |
1014 | function UpperBody() | |
1015 | if TrailSettings.R15 == false then | |
1016 | A0 = Instance.new("Attachment", Character.Torso) | |
1017 | A1 = Instance.new("Attachment", Character.Head) | |
1018 | A2 = Instance.new("Attachment", Character["Right Arm"]) | |
1019 | A3 = Instance.new("Attachment", Character["Left Arm"]) | |
1020 | Trail = Instance.new("Trail", Character) | |
1021 | Trail.Attachment0 = A0 | |
1022 | Trail.Attachment1 = A1 | |
1023 | Trail.Texture = TrailSettings.Texture | |
1024 | Trail.Color = TrailSettings.Color1 | |
1025 | Trail.Lifetime = TrailSettings.Lifetime | |
1026 | local Trail2 = Trail:Clone() | |
1027 | Trail2.Parent = Character | |
1028 | Trail2.Attachment1 = A2 | |
1029 | local Trail3 = Trail:Clone() | |
1030 | Trail3.Parent = Character | |
1031 | Trail3.Attachment1 = A3 | |
1032 | local Trail6 = Trail:Clone() | |
1033 | Trail6.Parent = Character | |
1034 | Trail6.Attachment0 = A1 | |
1035 | Trail6.Attachment1 = A2 | |
1036 | local Trail7 = Trail:Clone() | |
1037 | Trail7.Parent = Character | |
1038 | Trail7.Attachment0 = A1 | |
1039 | Trail7.Attachment1 = A3 | |
1040 | else | |
1041 | A0 = Instance.new("Attachment", Character[TrailSettings.R15Parts[1]]) | |
1042 | A0R = Instance.new("Attachment", Character[TrailSettings.R15Parts[2]]) | |
1043 | A1 = Instance.new("Attachment", Character.Head) | |
1044 | A2 = Instance.new("Attachment", Character.RightUpperArm) | |
1045 | A2R = Instance.new("Attachment", Character.RightLowerArm) | |
1046 | A3 = Instance.new("Attachment", Character.LeftUpperArm) | |
1047 | A3R = Instance.new("Attachment", Character.LeftLowerArm) | |
1048 | Trail = Instance.new("Trail", Character) | |
1049 | Trail.Attachment0 = A0 | |
1050 | Trail.Attachment1 = A1 | |
1051 | Trail.Texture = TrailSettings.Texture | |
1052 | Trail.Color = TrailSettings.Color1 | |
1053 | Trail.Lifetime = TrailSettings.Lifetime | |
1054 | local Trail2 = Trail:Clone() | |
1055 | Trail2.Parent = Character | |
1056 | Trail2.Attachment1 = A2 | |
1057 | local Trail3 = Trail:Clone() | |
1058 | Trail3.Parent = Character | |
1059 | Trail3.Attachment1 = A3 | |
1060 | local Trail6 = Trail:Clone() | |
1061 | Trail6.Parent = Character | |
1062 | Trail6.Attachment0 = A1 | |
1063 | Trail6.Attachment1 = A2 | |
1064 | local Trail7 = Trail:Clone() | |
1065 | Trail7.Parent = Character | |
1066 | Trail7.Attachment0 = A1 | |
1067 | Trail7.Attachment1 = A3 | |
1068 | local Trail1R = Trail:Clone() | |
1069 | Trail1R.Parent = Character | |
1070 | Trail1R.Attachment1 = A2R | |
1071 | local Trail2R = Trail:Clone() | |
1072 | Trail2R.Parent = Character | |
1073 | Trail2R.Attachment1 = A3R | |
1074 | local Trail6R = Trail:Clone() | |
1075 | Trail6.Parent = Character | |
1076 | Trail6.Attachment0 = A1 | |
1077 | Trail6.Attachment1 = A2R | |
1078 | local Trail7R = Trail:Clone() | |
1079 | Trail7.Parent = Character | |
1080 | Trail7.Attachment0 = A1 | |
1081 | Trail7.Attachment1 = A3R | |
1082 | end | |
1083 | end | |
1084 | - | local Player = owner |
1084 | + | |
1085 | if TrailSettings.R15 == false then | |
1086 | A4 = Instance.new("Attachment", Character["Right Leg"]) | |
1087 | A5 = Instance.new("Attachment", Character["Left Leg"]) | |
1088 | local Trail4 = Trail:Clone() | |
1089 | Trail4.Parent = Character | |
1090 | Trail4.Attachment1 = A4 | |
1091 | local Trail5 = Trail:Clone() | |
1092 | Trail5.Parent = Character | |
1093 | Trail5.Attachment1 = A5 | |
1094 | local Trail8 = Trail:Clone() | |
1095 | Trail8.Parent = Character | |
1096 | Trail8.Attachment0 = A2 | |
1097 | Trail8.Attachment1 = A4 | |
1098 | Trail8.Color = TrailSettings.Color2 | |
1099 | local Trail9 = Trail:Clone() | |
1100 | Trail9.Parent = Character | |
1101 | Trail9.Attachment0 = A3 | |
1102 | Trail9.Attachment1 = A5 | |
1103 | Trail9.Color = TrailSettings.Color2 | |
1104 | local FT = Trail:Clone() | |
1105 | FT.Parent = Character | |
1106 | FT.Attachment0 = A4 | |
1107 | FT.Attachment1 = A5 | |
1108 | FT.Color = TrailSettings.Color2 | |
1109 | else | |
1110 | A4 = Instance.new("Attachment", Character.RightLowerLeg) | |
1111 | A4R = Instance.new("Attachment", Character.RightUpperLeg) | |
1112 | A5 = Instance.new("Attachment", Character.LeftLowerLeg) | |
1113 | A5R = Instance.new("Attachment", Character.LeftUpperLeg) | |
1114 | local Trail4 = Trail:Clone() | |
1115 | Trail4.Parent = Character | |
1116 | Trail4.Attachment1 = A4 | |
1117 | local Trail5 = Trail:Clone() | |
1118 | Trail5.Parent = Character | |
1119 | Trail5.Attachment1 = A5 | |
1120 | local Trail8 = Trail:Clone() | |
1121 | Trail8.Parent = Character | |
1122 | Trail8.Attachment0 = A2 | |
1123 | Trail8.Attachment1 = A4 | |
1124 | Trail8.Color = TrailSettings.Color2 | |
1125 | local Trail9 = Trail:Clone() | |
1126 | Trail9.Parent = Character | |
1127 | Trail9.Attachment0 = A3 | |
1128 | Trail9.Attachment1 = A5 | |
1129 | Trail9.Color = TrailSettings.Color2 | |
1130 | local FT = Trail:Clone() | |
1131 | FT.Parent = Character | |
1132 | FT.Attachment0 = A4 | |
1133 | FT.Attachment1 = A5 | |
1134 | FT.Color = TrailSettings.Color2 | |
1135 | local Trail3R = Trail:Clone() | |
1136 | Trail3R.Parent = Character | |
1137 | Trail3R.Attachment1 = A4R | |
1138 | local Trail4R = Trail:Clone() | |
1139 | Trail4R.Parent = Character | |
1140 | Trail4R.Attachment1 = A5R | |
1141 | local Trail8 = Trail:Clone() | |
1142 | Trail8.Parent = Character | |
1143 | Trail8.Attachment0 = A2R | |
1144 | Trail8.Attachment1 = A4R | |
1145 | Trail8.Color = TrailSettings.Color2 | |
1146 | local Trail9 = Trail:Clone() | |
1147 | Trail9.Parent = Character | |
1148 | Trail9.Attachment0 = A3R | |
1149 | Trail9.Attachment1 = A5R | |
1150 | Trail9.Color = TrailSettings.Color2 | |
1151 | local FT2R = Trail:Clone() | |
1152 | FT2R.Parent = Character | |
1153 | FT2R.Attachment0 = A4R | |
1154 | FT2R.Attachment1 = A5R | |
1155 | FT2R.Color = TrailSettings.Color2 | |
1156 | end | |
1157 | end | |
1158 | function AllBody() | |
1159 | UpperBody() | |
1160 | LowerBody() | |
1161 | end | |
1162 | if TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then | |
1163 | TrailSettings.UpperBodyOnly = false | |
1164 | TrailSettings.LowerBodyOnly = false | |
1165 | elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == false and TrailSettings.LowerBodyOnly == true then | |
1166 | TrailSettings.UpperBodyOnly = false | |
1167 | TrailSettings.LowerBodyOnly = false | |
1168 | elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == false then | |
1169 | TrailSettings.UpperBodyOnly = false | |
1170 | TrailSettings.LowerBodyOnly = false | |
1171 | elseif TrailSettings.AllBody == false and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then | |
1172 | TrailSettings.AllBody = true | |
1173 | TrailSettings.UpperBodyOnly = false | |
1174 | TrailSettings.LowerBodyOnly = false | |
1175 | end | |
1176 | if TrailSettings.UpperBodyOnly == true then | |
1177 | UpperBody() | |
1178 | print("Called Upper Body Trail") | |
1179 | elseif TrailSettings.LowerBodyOnly == true then | |
1180 | LowerBody() | |
1181 | print("Called Lower Body Trail") | |
1182 | elseif TrailSettings.AllBody == true then | |
1183 | AllBody() | |
1184 | print("Called Full Body Trail") | |
1185 | end | |
1186 | if TrailSettings.Accessories == true then | |
1187 | for Index, Item in pairs(Character:GetChildren()) do | |
1188 | if Item:IsA("Accessory") then | |
1189 | local AA = Instance.new("Attachment", Item.Handle) | |
1190 | local ATrail = Trail:Clone() | |
1191 | ATrail.Parent = Character | |
1192 | ATrail.Attachment1 = AA | |
1193 | end | |
1194 | end | |
1195 | end | |
1196 | if TrailSettings.Extras == true then | |
1197 | spawn(function() | |
1198 | repeat | |
1199 | wait() | |
1200 | until Trail | |
1201 | local AB = Instance.new("Attachment", a) | |
1202 | local ABT = Trail:Clone() | |
1203 | ABT.Parent = Character | |
1204 | ABT.Attachment0 = A4 | |
1205 | ABT.Attachment1 = AB | |
1206 | ABT.Color = TrailSettings.Color2 | |
1207 | local ABT2 = Trail:Clone() | |
1208 | ABT2.Parent = Character | |
1209 | ABT2.Attachment0 = A5 | |
1210 | ABT2.Attachment1 = AB | |
1211 | ABT2.Color = TrailSettings.Color2 | |
1212 | end) | |
1213 | end | |
1214 | wait() | |
1215 | ||
1216 | local top = Instance.new("Shirt") | |
1217 | top.ShirtTemplate = "rbxassetid://45695443" | |
1218 | top.Parent = Character | |
1219 | top.Name = "Cloth" | |
1220 | local bottom = Instance.new("Pants") | |
1221 | bottom.PantsTemplate = "rbxassetid://45696190" | |
1222 | bottom.Parent = Character | |
1223 | bottom.Name = "Cloth" | |
1224 | local PRT = CreatePart(3, Weapon, "Fabric", 0, 0, "Really black", "Hat", VT(1,1,1),false) | |
1225 | PRT.Color = C3(0,0,0) | |
1226 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.72*SIZE,0.1) * ANGLES(RAD(15), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1227 | CreateMesh("SpecialMesh", PRT, "FileMesh", "26768040", "", VT(1,1,1)*SIZE, VT(0,0,0)) | |
1228 | local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Detail", VT(1,1,1),false) | |
1229 | PRT.Color = C3(0,0,0) | |
1230 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0)) | |
1231 | CreateMesh("SpecialMesh", PRT, "FileMesh", "13520257", "", VT(1,1,1)*SIZE, VT(0,0,0)) | |
1232 | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(1,1.2,0.2),false) | |
1233 | PRT.Color = C3(255/255, 0/255, 0/255) | |
1234 | MakeForm(PRT,"Ball") | |
1235 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0)) | |
1236 | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.4,0.5),false) | |
1237 | PRT.Color = C3(255/255, 0/255, 0/255) | |
1238 | MakeForm(PRT,"Ball") | |
1239 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,-0.3,-.5*SIZE), CF(0, 0, 0)) | |
1240 | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.3,0.3),false) | |
1241 | PRT.Color = C3(255/255, 0/255, 0/255) | |
1242 | MakeForm(PRT,"Ball") | |
1243 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0.25,0.25,-.5*SIZE), CF(0, 0, 0)) | |
1244 | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.3,0.3),false) | |
1245 | PRT.Color = C3(255/255, 0/255, 0/255) | |
1246 | MakeForm(PRT,"Ball") | |
1247 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(-0.25,0.25,-.5*SIZE), CF(0, 0, 0)) | |
1248 | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.4,0.4,0.3),false) | |
1249 | PRT.Color = C3(255/255, 0/255, 0/255) | |
1250 | MakeForm(PRT,"Ball") | |
1251 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(-0.17,-0.25,-.5*SIZE) * ANGLES(RAD(-15), RAD(15), RAD(0)), CF(0, 0, 0)) | |
1252 | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.4,0.4,0.3),false) | |
1253 | PRT.Color = C3(255/255, 0/255, 0/255) | |
1254 | MakeForm(PRT,"Ball") | |
1255 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0.17,-0.25,-.5*SIZE) * ANGLES(RAD(-15), RAD(-15), RAD(0)), CF(0, 0, 0)) | |
1256 | ||
1257 | local LASTPART = Head | |
1258 | for i = 1, 24 do | |
1259 | local MATH = (1-(i/30)) | |
1260 | if LASTPART == Head then | |
1261 | local Horn = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
1262 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.8, 0.3, -0.4) * ANGLES(RAD(-25), RAD(220), RAD(90)), CF(0, 0, 0)) | |
1263 | LASTPART = Horn | |
1264 | Horn.Color = C3((i*3-3)/255,0,0) | |
1265 | else | |
1266 | local Horn = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
1267 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/2, 0) * ANGLES(RAD(5), RAD(3), RAD(0)), CF(0, -Horn.Size.Y/2, 0)) | |
1268 | LASTPART = Horn | |
1269 | Horn.Color = C3((i*3-3)/255,0,0) | |
1270 | end | |
1271 | end | |
1272 | local LASTPART = Head | |
1273 | for i = 1, 24 do | |
1274 | local MATH = (1-(i/30)) | |
1275 | if LASTPART == Head then | |
1276 | local Horn = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
1277 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.8, 0.3, -0.4) * ANGLES(RAD(-25), RAD(-220), RAD(-90)), CF(0, 0, 0)) | |
1278 | LASTPART = Horn | |
1279 | Horn.Color = C3((i*3-3)/255,0,0) | |
1280 | else | |
1281 | local Horn = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
1282 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/2, 0) * ANGLES(RAD(5), RAD(-3), RAD(0)), CF(0, -Horn.Size.Y/2, 0)) | |
1283 | LASTPART = Horn | |
1284 | Horn.Color = C3((i*3-3)/255,0,0) | |
1285 | end | |
1286 | end | |
1287 | local LASTPART = Head | |
1288 | for i = 1, 8 do | |
1289 | local MATH = (1-(i/14)) | |
1290 | if LASTPART == Head then | |
1291 | local Horn = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
1292 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.65, -0.3, -0.4) * ANGLES(RAD(-25), RAD(250), RAD(90)), CF(0, 0, 0)) | |
1293 | LASTPART = Horn | |
1294 | Horn.Color = C3((i*3-3)/255,0,0) | |
1295 | else | |
1296 | local Horn = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
1297 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/2, 0) * ANGLES(RAD(10), RAD(3), RAD(0)), CF(0, -Horn.Size.Y/2, 0)) | |
1298 | LASTPART = Horn | |
1299 | Horn.Color = C3((i*3-3)/255,0,0) | |
1300 | end | |
1301 | end | |
1302 | local LASTPART = Head | |
1303 | for i = 1, 8 do | |
1304 | local MATH = (1-(i/14)) | |
1305 | if LASTPART == Head then | |
1306 | local Horn = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
1307 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.65, -0.3, -0.4) * ANGLES(RAD(-25), RAD(-250), RAD(-90)), CF(0, 0, 0)) | |
1308 | LASTPART = Horn | |
1309 | Horn.Color = C3((i*3-3)/255,0,0) | |
1310 | else | |
1311 | local Horn = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
1312 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/2, 0) * ANGLES(RAD(10), RAD(-3), RAD(0)), CF(0, -Horn.Size.Y/2, 0)) | |
1313 | LASTPART = Horn | |
1314 | Horn.Color = C3((i*3-3)/255,0,0) | |
1315 | end | |
1316 | end | |
1317 | ||
1318 | local PRT = CreatePart(3, Clock, "Metal", 0, 0, "Mid gray", "Watch", VT(1.05,0.06,1.05)*SIZE,false) | |
1319 | CreateWeldOrSnapOrMotor("Weld", Clock, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1320 | local PRT = CreatePart(3, Clock, "Metal", 0, 0, "Mid gray", "Watch", VT(0.5,0.1,0.5)*SIZE,false) | |
1321 | CreateWeldOrSnapOrMotor("Weld", Clock, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0)) | |
1322 | MakeForm(PRT,"Cyl") | |
1323 | local PRT = CreatePart(3, Clock, "Neon", 0, 0, "Mid gray", "Watch", VT(0.45,0.11,0.45)*SIZE,false) | |
1324 | CreateWeldOrSnapOrMotor("Weld", Clock, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0)) | |
1325 | MakeForm(PRT,"Cyl") | |
1326 | PRT.Color = C3(255/255, 0/255, 0/255) | |
1327 | local RING = CreatePart(3, Clock, "Metal", 0, 0, "Mid gray", "Watch", VT(0.055,0.15,0.055)*SIZE,false) | |
1328 | CreateWeldOrSnapOrMotor("Weld", Clock, RightArm, RING, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0)) | |
1329 | MakeForm(RING,"Cyl") | |
1330 | RING.Color = C3(0,0,0) | |
1331 | for i = 1, 12 do | |
1332 | local PRT = CreatePart(3, Clock, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0)*SIZE,false) | |
1333 | PRT.Color = C3(0,0,0) | |
1334 | local MSH = IT("BlockMesh",PRT) | |
1335 | MSH.Scale = VT(0.6,1,1) | |
1336 | CreateWeldOrSnapOrMotor("Weld", Clock, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD((360/12)*i), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -0.2*SIZE)) | |
1337 | end | |
1338 | local PRT = CreatePart(3, Clock, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0.15)*SIZE,false) | |
1339 | PRT.Color = C3(0,0,0) | |
1340 | local MSH = IT("BlockMesh",PRT) | |
1341 | MSH.Scale = VT(0.4,1,1) | |
1342 | local WATCH1 = CreateWeldOrSnapOrMotor("Weld", Clock, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -0.075*SIZE)) | |
1343 | local PRT = CreatePart(3, Clock, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0.15/1.5)*SIZE,false) | |
1344 | PRT.Color = C3(0,0,0) | |
1345 | local MSH = IT("BlockMesh",PRT) | |
1346 | MSH.Scale = VT(0.4,1,1) | |
1347 | local WATCH2 = CreateWeldOrSnapOrMotor("Weld", Clock, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -(0.075/1.5)*SIZE)) | |
1348 | coroutine.resume(coroutine.create(function() | |
1349 | while true do | |
1350 | Swait() | |
1351 | CLOCKLOOP = CLOCKLOOP - 1*CLOCKSPEED | |
1352 | WATCH1.C0 = Clerp(WATCH1.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5), RAD(0)), 1 / Animation_Speed) | |
1353 | WATCH2.C0 = Clerp(WATCH2.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5/2), RAD(0)), 1 / Animation_Speed) | |
1354 | if CLOCKLOOP <= -150 then | |
1355 | if VALUE1 == false then | |
1356 | CLOCKLOOP = 0 | |
1357 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(3,3,3), Transparency = 0, Transparency2 = 1, CFrame = RING.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(255/255, 0/255, 0/255), SoundID = 743521450, SoundPitch = 1.2, SoundVolume = 4}) | |
1358 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25*SIZE, Character) | |
1359 | ApplyAoE(HITPOS,10,15,45,75,false) | |
1360 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(15,2,15), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0/255, 0/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1361 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(12,3,12), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(0/255, 0/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1362 | if CLOCKTARGET ~= nil then | |
1363 | CLOCKTARGET.Health = CLOCKTARGET.Health - 20 | |
1364 | if CLOCKTARGET.Torso ~= nil then | |
1365 | CLOCKTARGET.Torso.CFrame = CLOCKTARGET.Torso.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))) | |
1366 | end | |
1367 | if CLOCKTARGET.Health == 0 then | |
1368 | CLOCKTARGET = nil | |
1369 | end | |
1370 | end | |
1371 | end | |
1372 | end | |
1373 | end | |
1374 | end)) | |
1375 | ||
1376 | local PRT2 = CreatePart(3, Clock2, "Metal", 0, 0, "Mid gray", "Watch", VT(1.05,0.06,1.05)*SIZE,false) | |
1377 | CreateWeldOrSnapOrMotor("Weld", Clock2, LeftArm, PRT2, CF(0,-0.5*SIZE,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1378 | local PRT2 = CreatePart(3, Clock2, "Metal", 0, 0, "Mid gray", "Watch", VT(0.5,0.1,0.5)*SIZE,false) | |
1379 | CreateWeldOrSnapOrMotor("Weld", Clock2, LeftArm, PRT2, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0)) | |
1380 | MakeForm(PRT2,"Cyl") | |
1381 | local PRT2 = CreatePart(3, Clock2, "Neon", 0, 0, "Mid gray", "Watch", VT(0.45,0.11,0.45)*SIZE,false) | |
1382 | CreateWeldOrSnapOrMotor("Weld", Clock2, LeftArm, PRT2, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0)) | |
1383 | MakeForm(PRT2,"Cyl") | |
1384 | PRT2.Color = C3(255/255, 0/255, 0/255) | |
1385 | local RING2 = CreatePart(3, Clock2, "Metal", 0, 0, "Mid gray", "Watch", VT(0.055,0.15,0.055)*SIZE,false) | |
1386 | CreateWeldOrSnapOrMotor("Weld", Clock2, LeftArm, RING2, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0)) | |
1387 | MakeForm(RING2,"Cyl") | |
1388 | RING2.Color = C3(0,0,0) | |
1389 | for i = 1, 12 do | |
1390 | local PRT2 = CreatePart(3, Clock2, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0)*SIZE,false) | |
1391 | PRT2.Color = C3(0,0,0) | |
1392 | local MSH2 = IT("BlockMesh",PRT2) | |
1393 | MSH2.Scale = VT(0.6,1,1) | |
1394 | CreateWeldOrSnapOrMotor("Weld", Clock2, LeftArm, PRT2, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD((360/12)*i), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -0.2*SIZE)) | |
1395 | end | |
1396 | local PRT2 = CreatePart(3, Clock2, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0.15)*SIZE,false) | |
1397 | PRT2.Color = C3(0,0,0) | |
1398 | local MSH2 = IT("BlockMesh",PRT2) | |
1399 | MSH2.Scale = VT(0.4,1,1) | |
1400 | local WATCH3 = CreateWeldOrSnapOrMotor("Weld", Clock2, LeftArm, PRT2, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -0.075*SIZE)) | |
1401 | local PRT2 = CreatePart(3, Clock2, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0.15/1.5)*SIZE,false) | |
1402 | PRT2.Color = C3(0,0,0) | |
1403 | local MSH2 = IT("BlockMesh",PRT2) | |
1404 | MSH2.Scale = VT(0.4,1,1) | |
1405 | local WATCH4 = CreateWeldOrSnapOrMotor("Weld", Clock2, LeftArm, PRT2, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -(0.075/1.5)*SIZE)) | |
1406 | coroutine.resume(coroutine.create(function() | |
1407 | while true do | |
1408 | Swait() | |
1409 | CLOCKLOOP = CLOCKLOOP - 1*CLOCKSPEED2 | |
1410 | WATCH3.C0 = Clerp(WATCH3.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5), RAD(0)), 1 / Animation_Speed) | |
1411 | WATCH4.C0 = Clerp(WATCH4.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5/2), RAD(0)), 1 / Animation_Speed) | |
1412 | if CLOCKLOOP <= -150 then | |
1413 | if VALUE1 == false then | |
1414 | CLOCKLOOP = 0 | |
1415 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(3,3,3), Transparency = 0, Transparency2 = 1, CFrame = RING2.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(255/255, 0/255, 0/255), SoundID = 743521450, SoundPitch = 1.2, SoundVolume = 4}) | |
1416 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25*SIZE, Character) | |
1417 | ApplyAoE(HITPOS,10,15,45,75,false) | |
1418 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(15,2,15), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0/255, 0/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1419 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(12,3,12), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(0/255, 0/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1420 | if CLOCKTARGET ~= nil then | |
1421 | CLOCKTARGET.Health = CLOCKTARGET.Health - 10 | |
1422 | if CLOCKTARGET.Torso ~= nil then | |
1423 | CLOCKTARGET.Torso.CFrame = CLOCKTARGET.Torso.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))) | |
1424 | end | |
1425 | if CLOCKTARGET.Health == 0 then | |
1426 | CLOCKTARGET = nil | |
1427 | end | |
1428 | end | |
1429 | end | |
1430 | end | |
1431 | end | |
1432 | end)) | |
1433 | ||
1434 | for _, c in pairs(Clock2:GetChildren()) do | |
1435 | if c.ClassName == "Part" then | |
1436 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1437 | end | |
1438 | end | |
1439 | ||
1440 | for _, c in pairs(Weapon:GetChildren()) do | |
1441 | if c.ClassName == "Part" then | |
1442 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1443 | end | |
1444 | end | |
1445 | ||
1446 | for _, c in pairs(Clock:GetChildren()) do | |
1447 | if c.ClassName == "Part" then | |
1448 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1449 | end | |
1450 | end | |
1451 | ||
1452 | Neck.Name = "Weld" | |
1453 | RootJoint.Name = "Weld" | |
1454 | RightShoulder.Name = "Weld" | |
1455 | LeftShoulder.Name = "Weld" | |
1456 | RightHip.Name = "Weld" | |
1457 | LeftHip.Name = "Weld" | |
1458 | ||
1459 | local SKILLTEXTCOLOR = C3(255/255, 0/255, 0/255) | |
1460 | local SKILLFONT = "Fantasy" | |
1461 | local SKILLTEXTSIZE = 7 | |
1462 | ||
1463 | Weapon.Parent = Character | |
1464 | Humanoid.Parent = Character | |
1465 | Clock.Parent = nil | |
1466 | Clock2.Parent = nil | |
1467 | ||
1468 | Humanoid.Died:connect(function() | |
1469 | ATTACK = true | |
1470 | end) | |
1471 | ||
1472 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23-.20, 0, 0.84, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
1473 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50+.20, 0, 0.84, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
1474 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
1475 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
1476 | local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.825, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") | |
1477 | local SKILL6FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.265, 0, 0.755, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame") | |
1478 | local SKILL7FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.465, 0, 0.755, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 7 Frame") | |
1479 | ||
1480 | ||
1481 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Superior Stomp", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 1") | |
1482 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[Q] TimeSweep", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2") | |
1483 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Buzzsaw", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3") | |
1484 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Superior Sun", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 4") | |
1485 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[E] Infection Fog", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 5") | |
1486 | local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[F] Booster", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 6") | |
1487 | local SKILL7TEXT = CreateLabel(SKILL7FRAME, "[X] The End", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 7") | |
1488 | ||
1489 | --//=================================\\ | |
1490 | --|| DAMAGING | |
1491 | --\\=================================// | |
1492 | ||
1493 | function Ghostify(POSITION,RANGE) | |
1494 | local CHILDREN = workspace:GetDescendants() | |
1495 | for index, CHILD in pairs(CHILDREN) do | |
1496 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
1497 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1498 | if HUM then | |
1499 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1500 | if TORSO then | |
1501 | if HUM.Health > 0 and (TORSO.Position - POSITION).Magnitude <= RANGE then | |
1502 | local GHOST = GHOSTBASE:Clone() | |
1503 | GHOST.Parent = Effects | |
1504 | GHOST.Torso.CFrame = TORSO.CFrame | |
1505 | table.insert(GHOSTS,GHOST) | |
1506 | CHILD:remove() | |
1507 | end | |
1508 | end | |
1509 | end | |
1510 | end | |
1511 | end | |
1512 | end | |
1513 | ||
1514 | function SHAKECAM(POSITION, RANGE, INTENSITY, TIME) | |
1515 | local TORSO = Torso | |
1516 | local HUM = Humanoid | |
1517 | if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then | |
1518 | coroutine.wrap(function() | |
1519 | VT = Vector3.new | |
1520 | MRANDOM = math.random | |
1521 | local A = TIME | |
1522 | local B = INTENSITY | |
1523 | local C = true | |
1524 | local HUMANOID = Humanoid | |
1525 | local TIMER = A or 35 | |
1526 | local SHAKE = B or 5 | |
1527 | local FADE = C or true | |
1528 | if HUMANOID then | |
1529 | local FADER = SHAKE / TIMER | |
1530 | for i = 1, TIMER do | |
1531 | wait() | |
1532 | HUMANOID.CameraOffset = VT(MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10, MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10, MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10) | |
1533 | end | |
1534 | HUMANOID.CameraOffset = VT(0, 0, 0) | |
1535 | end | |
1536 | ||
1537 | end)() | |
1538 | end | |
1539 | end | |
1540 | ||
1541 | function ApplyDamage(Humanoid,Damage,TorsoPart) | |
1542 | local defence = Instance.new("BoolValue",Humanoid.Parent) | |
1543 | defence.Name = ("HitBy"..Player.Name) | |
1544 | game:GetService("Debris"):AddItem(defence, 0.001) | |
1545 | Damage = Damage * DAMAGEMULTIPLIER | |
1546 | if Humanoid.Health ~= 0 then | |
1547 | local CritChance = MRANDOM(1,100) | |
1548 | if Damage > Humanoid.Health then | |
1549 | Damage = math.ceil(Humanoid.Health) | |
1550 | if Damage == 0 then | |
1551 | Damage = 0.1 | |
1552 | end | |
1553 | end | |
1554 | Humanoid.Health = Humanoid.Health - Damage | |
1555 | end | |
1556 | end | |
1557 | ||
1558 | function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL) | |
1559 | local CHILDREN = workspace:GetDescendants() | |
1560 | for index, CHILD in pairs(CHILDREN) do | |
1561 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
1562 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1563 | if HUM then | |
1564 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1565 | if TORSO then | |
1566 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
1567 | if INSTAKILL == true then | |
1568 | CHILD:BreakJoints() | |
1569 | else | |
1570 | local DMG = MRANDOM(MINDMG,MAXDMG) | |
1571 | ApplyDamage(HUM,DMG,TORSO) | |
1572 | end | |
1573 | if FLING > 0 then | |
1574 | for _, c in pairs(CHILD:GetChildren()) do | |
1575 | if c:IsA("BasePart") then | |
1576 | local bv = Instance.new("BodyVelocity") | |
1577 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1578 | bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING | |
1579 | bv.Parent = c | |
1580 | Debris:AddItem(bv,0.05) | |
1581 | end | |
1582 | end | |
1583 | end | |
1584 | end | |
1585 | end | |
1586 | end | |
1587 | end | |
1588 | end | |
1589 | end | |
1590 | ||
1591 | --//=================================\\ | |
1592 | --|| ATTACK FUNCTIONS AND STUFF | |
1593 | --\\=================================// | |
1594 | ||
1595 | function Earthquake() | |
1596 | ATTACK = true | |
1597 | Rooted = true | |
1598 | local GYRO = IT("BodyGyro", RootPart) | |
1599 | GYRO.D = 20 | |
1600 | GYRO.P = 4000 | |
1601 | GYRO.MaxTorque = VT(0, 40000, 0) | |
1602 | local RING, MESH, DELET = MakeRing() | |
1603 | local HITFLOOR, HITPOS = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 15, Character) | |
1604 | RING.CFrame = CF(HITPOS) | |
1605 | for i = 0, 0.6, 0.1 / Animation_Speed do | |
1606 | GYRO.CFrame = CF(RootPart.Position, Mouse.Hit.p) | |
1607 | Swait() | |
1608 | MESH.Scale = MESH.Scale + VT(53, 0, 53) | |
1609 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
1610 | WACKYEFFECT({TIME = 15, EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) | |
1611 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1612 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed) | |
1613 | end | |
1614 | local BLASTS = {468991944, 468991990} | |
1615 | coroutine.resume(coroutine.create(function() | |
1616 | local CFRAME = RootPart.CFrame | |
1617 | for i = 1, 100 do | |
1618 | CFRAME = CFRAME * CF(0, 0, -35) | |
1619 | do | |
1620 | local HITFLOOR, HITPOS = Raycast(CFRAME.p, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 15, Character) | |
1621 | if HITFLOOR then | |
1622 | Swait() | |
1623 | do | |
1624 | local OFFSET = CFRAME * CF(MRANDOM(-25, 25), 0, 0) | |
1625 | coroutine.resume(coroutine.create(function() | |
1626 | local RING, MESH, DELET = MakeRing() | |
1627 | RING.CFrame = CF(OFFSET.p.X, HITPOS.Y, OFFSET.p.Z) | |
1628 | for i = 1, 25 do | |
1629 | Swait() | |
1630 | MESH.Scale = MESH.Scale + VT(42, 0, 42) | |
1631 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
1632 | end | |
1633 | ApplyAoE(RING.Position,25,50,90,90,false) | |
1634 | SHAKECAM(RING.Position, 80, 30, 15) | |
1635 | local TURN = ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)) * ANGLES(RAD(MRANDOM(0, 25)), RAD(0), RAD(0)) | |
1636 | WACKYEFFECT({ | |
1637 | Time = 25, | |
1638 | EffectType = "Sphere", | |
1639 | Size = VT(22, 22, 22), | |
1640 | Size2 = VT(85, 85, 85), | |
1641 | Transparency = 0, | |
1642 | Transparency2 = 1, | |
1643 | CFrame = CF(RING.Position), | |
1644 | MoveToPos = nil, | |
1645 | RotationX = 0, | |
1646 | RotationY = 0, | |
1647 | RotationZ = 0, | |
1648 | Material = "Neon", | |
1649 | Color = C3(0, 0, 0), | |
1650 | SoundID = BLASTS[MRANDOM(1, #BLASTS)], | |
1651 | SoundPitch = MRANDOM(9, 12) / 10, | |
1652 | SoundVolume = 10 | |
1653 | }) | |
1654 | for e = 1, 3 do | |
1655 | WACKYEFFECT({ | |
1656 | EffectType = "Wave", | |
1657 | Size = VT(25, 0, 25), | |
1658 | Size2 = VT(40, 0, 40) + VT(e * 6, e / 5, e * 6), | |
1659 | Transparency = 0, | |
1660 | Transparency2 = 1, | |
1661 | CFrame = CF(RING.Position) * ANGLES(RAD(0), RAD(72 * i), RAD(0)), | |
1662 | MoveToPos = nil, | |
1663 | RotationX = 0, | |
1664 | RotationY = 3, | |
1665 | RotationZ = 0, | |
1666 | Material = "Neon", | |
1667 | Color = C3(0, 0, 0), | |
1668 | SoundID = nil, | |
1669 | SoundPitch = nil, | |
1670 | SoundVolume = nil | |
1671 | }) | |
1672 | WACKYEFFECT({ | |
1673 | Time = 35, | |
1674 | EffectType = "Sphere", | |
1675 | Size = VT(22, 45, 22), | |
1676 | Size2 = VT(25, 45 + e * 75, 25), | |
1677 | Transparency = 0, | |
1678 | Transparency2 = 1, | |
1679 | CFrame = CF(RING.Position) * TURN, | |
1680 | MoveToPos = nil, | |
1681 | RotationX = 0, | |
1682 | RotationY = 0, | |
1683 | RotationZ = 0, | |
1684 | Material = "Neon", | |
1685 | Color = C3(0, 0, 0), | |
1686 | SoundID = nil, | |
1687 | SoundPitch = MRANDOM(9, 12) / 10, | |
1688 | SoundVolume = 10 | |
1689 | }) | |
1690 | end | |
1691 | wait(0.3) | |
1692 | DELET() | |
1693 | end)) | |
1694 | end | |
1695 | end | |
1696 | end | |
1697 | end | |
1698 | end)) | |
1699 | Rooted = false | |
1700 | DELET() | |
1701 | GYRO:remove() | |
1702 | ATTACK = false | |
1703 | Rooted = false | |
1704 | end | |
1705 | ||
1706 | function TimeSweep() | |
1707 | chatfunc("SEE YA.") | |
1708 | ATTACK = true | |
1709 | Rooted = false | |
1710 | for i=0, 0.5, 0.1 / Animation_Speed do | |
1711 | Swait() | |
1712 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
1713 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.2*SIZE) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1714 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-25), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed) | |
1715 | end | |
1716 | CreateSound(217767125, Torso, 10, 1) | |
1717 | local POS = RootPart.Orientation | |
1718 | RootPart.CFrame = CF(Mouse.Hit.p+VT(0,4,0)) | |
1719 | RootPart.Orientation = POS | |
1720 | RootJoint.Parent = RootPart | |
1721 | for i=0, 0.5, 0.1 / Animation_Speed do | |
1722 | Swait() | |
1723 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1724 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-15), RAD(12)) * ANGLES(RAD(175 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed) | |
1725 | end | |
1726 | for i=0, 0.1, 0.1 / Animation_Speed do | |
1727 | Swait() | |
1728 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
1729 | end | |
1730 | ATTACK = false | |
1731 | Rooted = false | |
1732 | end | |
1733 | ||
1734 | ||
1735 | function Taunt() | |
1736 | ATTACK = true | |
1737 | local LAUGH = nil | |
1738 | coroutine.resume(coroutine.create(function() | |
1739 | repeat | |
1740 | Swait() | |
1741 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
1742 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
1743 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.15*SIZE, -0.5*SIZE) * ANGLES(RAD(170), RAD(-25), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1744 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1745 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1746 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1747 | until LAUGH ~= nil | |
1748 | repeat | |
1749 | Swait() | |
1750 | LAUGH.Parent = Head | |
1751 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0+(0.1*LAUGH.PlaybackLoudness/75) + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
1752 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE+(0.1*LAUGH.PlaybackLoudness/75)) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
1753 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.15*SIZE+(0.1*LAUGH.PlaybackLoudness/75), -0.5*SIZE) * ANGLES(RAD(170), RAD(-25), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1754 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE+(0.1*LAUGH.PlaybackLoudness/75), 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1755 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE-(0.1*LAUGH.PlaybackLoudness/75) + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1756 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE-(0.1*LAUGH.PlaybackLoudness/75) - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1757 | until LAUGH.Playing == false | |
1758 | ATTACK = false | |
1759 | end)) | |
1760 | wait(0.1) | |
1761 | LAUGH = CreateSound(333446256, Head, 10, 1, false) | |
1762 | end | |
1763 | ||
1764 | function SuperStomp() | |
1765 | ATTACK = true | |
1766 | Rooted = true | |
1767 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25*SIZE, Character) | |
1768 | coroutine.resume(coroutine.create(function() | |
1769 | Swait(65) | |
1770 | CameraEnshaking(3,25) | |
1771 | CreateSound(262562442,RightLeg,60,1,false) | |
1772 | CreateFlyingDebree(HITFLOOR,CF(HITPOS),10,VT(5,5,5),4,125) | |
1773 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(0,0.55,0)*SIZE, Size2 = VT(90,3,90), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(159/255, 0/255, 0/255), SoundID = nil, SoundPitch = 0.96, SoundVolume = 10}) | |
1774 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0,7.5,0)*SIZE, Size2 = VT(60,6.5,60), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(159/255, 0/255, 0/255), SoundID = nil, SoundPitch = 0.96, SoundVolume = 10}) | |
1775 | ApplyAoE(HITPOS,35,35,50,75,false) | |
1776 | end)) | |
1777 | CreateSound(163619849,RightLeg,10,1,false) | |
1778 | for i=0, 2, 0.1 / Animation_Speed do | |
1779 | WACKYEFFECT({EffectType = "Block", Size = VT(2,2,2), Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = RightLeg.CFrame*CF(0,-1.3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) | |
1780 | Swait() | |
1781 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-15), RAD(0), RAD(40)), 0.5 / Animation_Speed) | |
1782 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.25*SIZE) - 1)) * ANGLES(RAD(35), RAD(0), RAD(-40)), 0.5 / Animation_Speed) | |
1783 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.2*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(90), RAD(-45), RAD(-55)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1784 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.2*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(0), RAD(30), RAD(85)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1785 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -0.4*SIZE - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1786 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-15), RAD(-75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1787 | end | |
1788 | for i=0, 1, 0.1 / Animation_Speed do | |
1789 | Swait() | |
1790 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(10), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1791 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.25*SIZE) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1792 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.2*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(0), RAD(105), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1793 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.2*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(0), RAD(-105), RAD(85)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1794 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -0.7*SIZE - 0.05 * COS(SINE / 12), -0.4) * ANGLES(RAD(10), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 1 / Animation_Speed) | |
1795 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05 * COS(SINE / 12), 0.13) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(35)), 1 / Animation_Speed) | |
1796 | end | |
1797 | ATTACK = false | |
1798 | Rooted = false | |
1799 | end | |
1800 | ||
1801 | function Buzzsaw() | |
1802 | ATTACK = true | |
1803 | Rooted = false | |
1804 | local ARMSPEED = 0.1 | |
1805 | local TARGET = nil | |
1806 | local ROOT = nil | |
1807 | local HUMAN = nil | |
1808 | local DIST = 4 | |
1809 | local SAWBLADE = CreatePart(3, Weapon, "Glass", 0, 0.5, "Really red", "Part", VT(0,0,0),false) | |
1810 | local WELD = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, SAWBLADE, CF(0,-1,0) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0)) | |
1811 | local BLADE = true | |
1812 | CreateMesh("SpecialMesh", SAWBLADE, "FileMesh", "74322089", "", VT(2,2,1), VT(0,0,0)) | |
1813 | coroutine.resume(coroutine.create(function() | |
1814 | repeat | |
1815 | Swait() | |
1816 | WELD.C1 = WELD.C1 * ANGLES(RAD(0), RAD(0), RAD(25)) | |
1817 | until BLADE == false | |
1818 | SAWBLADE:remove() | |
1819 | end)) | |
1820 | CreateSound(1165167936, SAWBLADE, 2, 1, true) | |
1821 | for i=0, 1, 0.1 / Animation_Speed do | |
1822 | Swait() | |
1823 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
1824 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0.6 + ((0) - 0)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
1825 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.9, -0.5) * ANGLES(RAD(115), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1826 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.9, 0.7, 0.3) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1827 | RightHip.C0 = Clerp(RightHip.C0, CF(1.5, -1.4, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1828 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.5, -1.4, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1829 | end | |
1830 | for i=0, 2, 0.1 / Animation_Speed do | |
1831 | Swait() | |
1832 | local CHILDREN = workspace:GetDescendants() | |
1833 | for index, CHILD in pairs(CHILDREN) do | |
1834 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1835 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1836 | if HUM then | |
1837 | local TORSO = CHILD:FindFirstChild("HumanoidRootPart") or CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1838 | if TORSO and HUM.Health > 0 then | |
1839 | if (TORSO.Position - RightArm.Position).Magnitude <= DIST then | |
1840 | DIST = (TORSO.Position - RightArm.Position).Magnitude | |
1841 | ROOT = TORSO | |
1842 | HUMAN = HUM | |
1843 | TARGET = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1844 | end | |
1845 | end | |
1846 | end | |
1847 | end | |
1848 | end | |
1849 | if ROOT then | |
1850 | break | |
1851 | end | |
1852 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
1853 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0.6 + ((0) - 0)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
1854 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.9, -0.5) * ANGLES(RAD(15), RAD(0), RAD(25)) * ANGLES(RAD(0), RAD(-45), RAD(0)) * RIGHTSHOULDERC0, ARMSPEED / Animation_Speed) | |
1855 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.9, 0.7, 0.3) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1856 | RightHip.C0 = Clerp(RightHip.C0, CF(1.5, -1.4, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1857 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.5, -1.4, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1858 | end | |
1859 | if ROOT then | |
1860 | ARMSPEED = 0.01 | |
1861 | Rooted = true | |
1862 | RootPart.CFrame = ROOT.CFrame*CF(0,0,2.5) | |
1863 | repeat | |
1864 | HUMAN.Health = HUMAN.Health - 1.2 | |
1865 | HUMAN.RootPart.CFrame = ROOT.CFrame*CF(0,0.02,0) | |
1866 | Swait() | |
1867 | ROOT.Anchored = true | |
1868 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(1, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
1869 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0.6 + ((0) - 0)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
1870 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, -0.4, 0) * ANGLES(RAD(15), RAD(0), RAD(25)) * ANGLES(RAD(0), RAD(-45), RAD(0)) * RIGHTSHOULDERC0, ARMSPEED / Animation_Speed) | |
1871 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.9, 0.7, 0.3) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1872 | RightHip.C0 = Clerp(RightHip.C0, CF(1.5, -1.4, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1873 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.5, -1.4, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1874 | until RightArm.Position.Y < Torso.Position.Y-0.15 or HUMAN.Health == 0 | |
1875 | ROOT.Anchored = false | |
1876 | if HUMAN.Health == 0 then | |
1877 | if ROOT.Name ~= "Torso" then | |
1878 | ROOT:remove() | |
1879 | end | |
1880 | if TARGET.Name == "Torso" then | |
1881 | Ragdoll(HUMAN.Parent,Torso,true) | |
1882 | elseif TARGET.Name == "UpperTorso" then | |
1883 | R15Ragdoll(HUMAN.Parent,true) | |
1884 | end | |
1885 | end | |
1886 | end | |
1887 | BLADE = false | |
1888 | ATTACK = false | |
1889 | Rooted = false | |
1890 | end | |
1891 | ||
1892 | function Sun1() | |
1893 | ATTACK = true | |
1894 | Rooted = true | |
1895 | local StartPos = RootPart.CFrame * CF(0,15,0).p | |
1896 | coroutine.resume(coroutine.create(function() | |
1897 | CreateSound("348663022", Torso, 5, 1) | |
1898 | local StartPos = RootPart.CFrame * CF(0,15,0).p | |
1899 | for i = 1, 5 do | |
1900 | MagicSphere2(25,25,CF(StartPos),"Bright red") | |
1901 | Swait(15) | |
1902 | end | |
1903 | local soundeffect = IT("Sound",Torso) | |
1904 | soundeffect.SoundId = "rbxassetid://487186990" | |
1905 | soundeffect.Looped = true | |
1906 | soundeffect.Volume = 3 | |
1907 | soundeffect.Playing = true | |
1908 | repeat | |
1909 | turnto(Mouse.Hit.p) | |
1910 | MagicSphere2(25,25,CF(StartPos),"Bright red") | |
1911 | MagicSphere(25/10,25,CF(StartPos),"Bright red") | |
1912 | local RayHit, RayPos, RayNormal = CastZapRay(StartPos, Mouse.Hit.p, 750, Character, false) | |
1913 | local distance = (StartPos - RayPos).magnitude | |
1914 | local RayBeam = IT("Part",Effects) | |
1915 | RayBeam.Material = "Neon" | |
1916 | RayBeam.Anchored = false | |
1917 | RayBeam.BrickColor = BRICKC"Bright red" | |
1918 | local mesh = IT("SpecialMesh",RayBeam) | |
1919 | mesh.MeshType = "Cylinder" | |
1920 | RayBeam.Size = Vector3.new(distance+10, 5, 5) | |
1921 | RayBeam.CFrame = CFrame.new(StartPos, RayPos) * CFrame.new(0, 0, -distance/2) * ANGLES(RAD(0),RAD(90),RAD(0)) | |
1922 | MagicSphere(5,45,CF(RayPos),"Bright red") | |
1923 | ApplyAoE(RayPos,22,1,2,0,false) | |
1924 | Swait() | |
1925 | if KEYHOLD == false then | |
1926 | coroutine.resume(coroutine.create(function() | |
1927 | Rooted = false | |
1928 | MODE = "The Superior Pandora" | |
1929 | for i = 1, 5 do | |
1930 | RayBeam.Transparency = RayBeam.Transparency + 1/5 | |
1931 | Swait() | |
1932 | end | |
1933 | RayBeam:remove() | |
1934 | end)) | |
1935 | else | |
1936 | RayBeam:remove() | |
1937 | end | |
1938 | until KEYHOLD == false | |
1939 | soundeffect:remove() | |
1940 | end)) | |
1941 | MagicSphere2(65,120,CF(StartPos),"Really black") | |
1942 | MagicSphere(10,60,CF(StartPos),"Really black") | |
1943 | for i=0, 2, 0.1 / Animation_Speed do | |
1944 | Swait() | |
1945 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
1946 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-15 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1947 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(135), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1948 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1949 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1950 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1951 | end | |
1952 | MODE = "Sun" | |
1953 | ATTACK = false | |
1954 | end | |
1955 | ||
1956 | function Sun2() | |
1957 | ATTACK = true | |
1958 | Rooted = true | |
1959 | local StartPos = RootPart.CFrame * CF(0,35,0).p | |
1960 | coroutine.resume(coroutine.create(function() | |
1961 | CreateSound("348663022", Torso, 5, 1) | |
1962 | local StartPos = RootPart.CFrame * CF(0,35,0).p | |
1963 | for i = 1, 5 do | |
1964 | MagicSphere2(25*2,25,CF(StartPos),"Bright red") | |
1965 | Swait(15) | |
1966 | end | |
1967 | local soundeffect = IT("Sound",Torso) | |
1968 | soundeffect.SoundId = "rbxassetid://487186990" | |
1969 | soundeffect.Looped = true | |
1970 | soundeffect.Volume = 3 | |
1971 | soundeffect.Playing = true | |
1972 | repeat | |
1973 | turnto(Mouse.Hit.p) | |
1974 | MagicSphere2(25*2,25,CF(StartPos),"Bright red") | |
1975 | MagicSphere(25/10*2,25,CF(StartPos),"Bright red") | |
1976 | local RayHit, RayPos, RayNormal = CastZapRay(StartPos, Mouse.Hit.p, 750, Character, false) | |
1977 | local distance = (StartPos - RayPos).magnitude | |
1978 | local RayBeam = IT("Part",Effects) | |
1979 | RayBeam.Material = "Neon" | |
1980 | RayBeam.Anchored = false | |
1981 | RayBeam.BrickColor = BRICKC"Bright red" | |
1982 | local mesh = IT("SpecialMesh",RayBeam) | |
1983 | mesh.MeshType = "Cylinder" | |
1984 | RayBeam.Size = Vector3.new(distance+10*2, 5, 5) | |
1985 | RayBeam.CFrame = CFrame.new(StartPos, RayPos) * CFrame.new(0, 0, -distance/2) * ANGLES(RAD(0),RAD(90),RAD(0)) | |
1986 | MagicSphere(10*2,20,CF(RayPos),"Bright red") | |
1987 | ApplyAoE(RayPos,42,1,2.25,0,false) | |
1988 | Swait() | |
1989 | if KEYHOLD == false then | |
1990 | coroutine.resume(coroutine.create(function() | |
1991 | Rooted = false | |
1992 | MODE = "Booster" | |
1993 | for i = 1, 5 do | |
1994 | RayBeam.Transparency = RayBeam.Transparency + 1/5 | |
1995 | Swait() | |
1996 | end | |
1997 | RayBeam:remove() | |
1998 | end)) | |
1999 | else | |
2000 | RayBeam:remove() | |
2001 | end | |
2002 | until KEYHOLD == false | |
2003 | soundeffect:remove() | |
2004 | end)) | |
2005 | MagicSphere2(65*2,120,CF(StartPos),"Really black") | |
2006 | MagicSphere(10*2,60,CF(StartPos),"Really black") | |
2007 | for i=0, 2, 0.1 / Animation_Speed do | |
2008 | Swait() | |
2009 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
2010 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-15 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2011 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(135), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2012 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(135), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2013 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2014 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2015 | end | |
2016 | MODE = "Sun2" | |
2017 | ATTACK = false | |
2018 | end | |
2019 | ||
2020 | function InfectionFog() | |
2021 | ATTACK = true | |
2022 | Rooted = false | |
2023 | for i=0, 2, 0.1 / Animation_Speed do | |
2024 | Swait() | |
2025 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2026 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0.4*SIZE + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2027 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(150), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2028 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2029 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2030 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2031 | end | |
2032 | CreateSound(769072651, RightArm, 10, 1, false) | |
2033 | for i=0, 2, 0.1 / Animation_Speed do | |
2034 | Swait() | |
2035 | WACKYEFFECT({Time = 15, EffectType = "Block", Size = VT(0.5,0.5,0.5), Size2 = VT(2.5,2.5,2.5), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0) * 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 = 1, SoundVolume = 0}) | |
2036 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2037 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0.4*SIZE + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2038 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(150), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2039 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2040 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2041 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2042 | end | |
2043 | CreateSound(138931042, Torso, 10, 2.4, false) | |
2044 | WACKYEFFECT({Time = 120, EffectType = "Sphere", Size = VT(0.5,0.5,0.5), Size2 = VT(300,300,300), Transparency = 0.8, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0) * 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 = 1, SoundVolume = 0}) | |
2045 | Swait(100) | |
2046 | Ghostify(Torso.Position,135) | |
2047 | Swait(20) | |
2048 | CreateSound(138271815, GHOSTBASE, 0.8, 0.9, false) | |
2049 | ATTACK = false | |
2050 | Rooted = false | |
2051 | end | |
2052 | ||
2053 | function ClockBooster() | |
2054 | ATTACK = true | |
2055 | Rooted = true | |
2056 | if MODE == "The Superior Pandora" then | |
2057 | MagicSphere2(20,40,RootPart.CFrame,"Really red") | |
2058 | CreateSound(743521450,RootPart,10,0.8,false) | |
2059 | for i=0, 1, 0.1 / Animation_Speed do | |
2060 | Swait() | |
2061 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2062 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.2*SIZE) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2063 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(0), RAD(30), RAD(75)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2064 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(0), RAD(-30), RAD(-75)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2065 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2066 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2067 | end | |
2068 | Speed = 30 | |
2069 | Clock2.Parent = Character | |
2070 | CLOCKSPEED = 4 | |
2071 | CLOCKSPEED2 = 4 | |
2072 | DAMAGEMULTIPLIER = 1.5 | |
2073 | MODE = "Booster" | |
2074 | elseif MODE == "Booster" then | |
2075 | CreateSound(147722227, Torso, 15, 1.3, false) | |
2076 | for i=0, 0.3, 0.1 / Animation_Speed do | |
2077 | Swait() | |
2078 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2079 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2080 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(0), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2081 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2082 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2083 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2084 | end | |
2085 | Speed = 20 | |
2086 | CLOCKSPEED = 1.5 | |
2087 | CLOCKSPEED2 = 0 | |
2088 | Clock2.Parent = nil | |
2089 | DAMAGEMULTIPLIER = 1 | |
2090 | MODE = "The Superior Pandora" | |
2091 | end | |
2092 | ATTACK = false | |
2093 | Rooted = false | |
2094 | end | |
2095 | --//=================================\\ | |
2096 | --|| SOME TAG EDIT | |
2097 | --\\=================================// | |
2098 | ||
2099 | m = game.Players.LocalPlayer | |
2100 | char = m.Character | |
2101 | local txt = Instance.new("BillboardGui", char) | |
2102 | txt.Adornee = char.Head | |
2103 | txt.Name = "_status" | |
2104 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
2105 | txt.StudsOffset = Vector3.new(-9, 10, 0) | |
2106 | local text = Instance.new("TextLabel", txt) | |
2107 | text.Size = UDim2.new(10, 0, 7, 0) | |
2108 | text.FontSize = "Size24" | |
2109 | text.TextScaled = true | |
2110 | text.TextTransparency = 0 | |
2111 | text.BackgroundTransparency = 1 | |
2112 | text.TextTransparency = 0 | |
2113 | text.TextStrokeTransparency = 0 | |
2114 | text.Font = "Bodoni" | |
2115 | text.TextStrokeColor3 = Color3.new(255/255, 0/255, 0/255) | |
2116 | v = Instance.new("Part") | |
2117 | v.Name = "ColorBrick" | |
2118 | v.Parent = m.Character | |
2119 | v.FormFactor = "Symmetric" | |
2120 | v.Anchored = true | |
2121 | v.CanCollide = false | |
2122 | v.BottomSurface = "Smooth" | |
2123 | v.TopSurface = "Smooth" | |
2124 | v.Size = Vector3.new(10, 5, 3) | |
2125 | v.Transparency = 1 | |
2126 | v.CFrame = char.Torso.CFrame | |
2127 | v.BrickColor = BrickColor.new("Really black") | |
2128 | v.Transparency = 1 | |
2129 | v.Shape = "Block" | |
2130 | ||
2131 | --//=================================\\ | |
2132 | --|| CHAT FUNCTION | |
2133 | --\\=================================// | |
2134 | ||
2135 | function chatfunc(text) | |
2136 | local chat = coroutine.wrap(function() | |
2137 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
2138 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
2139 | end | |
2140 | local Bill = Instance.new("BillboardGui",Character) | |
2141 | Bill.Size = UDim2.new(0,100,0,40) | |
2142 | Bill.StudsOffset = Vector3.new(0,3,0) | |
2143 | Bill.Adornee = Character.Head | |
2144 | Bill.Name = "TalkingBillBoard" | |
2145 | local Hehe = Instance.new("TextLabel",Bill) | |
2146 | Hehe.BackgroundTransparency = 1 | |
2147 | Hehe.BorderSizePixel = 0 | |
2148 | Hehe.Text = "" | |
2149 | Hehe.Font = "Fantasy" | |
2150 | Hehe.TextSize = 40 | |
2151 | Hehe.TextStrokeTransparency = 0 | |
2152 | Hehe.Size = UDim2.new(1,0,0.5,0) | |
2153 | coroutine.resume(coroutine.create(function() | |
2154 | while Hehe ~= nil do | |
2155 | wait() | |
2156 | Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
2157 | Hehe.Rotation = math.random(-5,5) | |
2158 | Hehe.TextColor3 = Color3.new(0,0,0) | |
2159 | Hehe.TextStrokeColor3 = Color3.new(255,0,0) | |
2160 | end | |
2161 | end)) | |
2162 | for i = 1,string.len(text),1 do | |
2163 | wait() | |
2164 | Hehe.Text = string.sub(text,1,i) | |
2165 | end | |
2166 | wait(3)--Re[math.random(1, 93)] | |
2167 | for i = 0, 1, .025 do | |
2168 | wait() | |
2169 | Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i)) | |
2170 | Hehe.TextStrokeTransparency = i | |
2171 | Hehe.TextTransparency = i | |
2172 | end | |
2173 | Bill:Destroy() | |
2174 | end) | |
2175 | chat() | |
2176 | end | |
2177 | ||
2178 | function onChatted(msg) | |
2179 | chatfunc(msg) | |
2180 | end | |
2181 | ||
2182 | Player.Chatted:connect(onChatted) | |
2183 | ||
2184 | --//=================================\\ | |
2185 | --|| CHAT INTRO | |
2186 | --\\=================================// | |
2187 | ||
2188 | - | m = owner |
2188 | + | |
2189 | chatfunc("Superior is alive..") | |
2190 | text.Text = "The Superior Pandora" | |
2191 | wait(2) | |
2192 | chatfunc("Hello any admins...?") | |
2193 | end)) | |
2194 | ||
2195 | --//=================================\\ | |
2196 | --|| INTRO | |
2197 | --\\=================================// | |
2198 | ||
2199 | coroutine.resume(coroutine.create(function() | |
2200 | ATTACK = true | |
2201 | Rooted = true | |
2202 | HeadC = C3(0,0,0) | |
2203 | BodyC = C3(0,0,0) | |
2204 | for i=0, 3, 0.1 / Animation_Speed do | |
2205 | Swait() | |
2206 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.2*SIZE) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2207 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-3.5 * COS(SINE / 12)), RAD(-45), RAD(12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2208 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.8 / Animation_Speed) | |
2209 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2210 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.1 * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(2.5 * COS(SINE / 12))), 0.8 / Animation_Speed) | |
2211 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.1 * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0 - 2.5 * COS(SINE / 12))), 0.8 / Animation_Speed) | |
2212 | if MRANDOM(1,10) == 1 then | |
2213 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(MRANDOM(-30,30)), RAD(MRANDOM(-30,30)), RAD(MRANDOM(-30,30))), 1) | |
2214 | end | |
2215 | end | |
2216 | for i=0, 0.5, 0.1 / Animation_Speed do | |
2217 | Swait() | |
2218 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.2*SIZE) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2219 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(0 * COS(SINE / 12)), RAD(0), RAD(0)) * ANGLES(RAD(90 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2220 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.8 / Animation_Speed) | |
2221 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2222 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.1 * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(2.5 * COS(SINE / 12))), 0.8 / Animation_Speed) | |
2223 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.1 * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0 - 2.5 * COS(SINE / 12))), 0.8 / Animation_Speed) | |
2224 | end | |
2225 | WACKYEFFECT({Time = 25, EffectType = "Block", Size = VT(7.5,7.5,7.5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0) * ANGLES(RAD(0), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 0}) | |
2226 | Clock.Parent = Character | |
2227 | for i=0, 0.5, 0.1 / Animation_Speed do | |
2228 | Swait() | |
2229 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.2*SIZE) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), 1 / Animation_Speed) | |
2230 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(0 - 0 * COS(SINE / 12)), RAD(0), RAD(0)) * ANGLES(RAD(0 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2231 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.8 / Animation_Speed) | |
2232 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2233 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.1 * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(2.5 * COS(SINE / 12))), 0.8 / Animation_Speed) | |
2234 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.1 * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0 - 2.5 * COS(SINE / 12))), 0.8 / Animation_Speed) | |
2235 | end | |
2236 | CLOCKSPEED = 1.5 | |
2237 | CLOCKSPEED2 = 0 | |
2238 | HeadC = C3(0,0,0) | |
2239 | BodyC = C3(0,0,0) | |
2240 | TRANSFORMED = true | |
2241 | ATTACK = false | |
2242 | Rooted = false | |
2243 | end)) | |
2244 | --//=================================\\ | |
2245 | --|| ASSIGN THINGS TO KEYS | |
2246 | --\\=================================// | |
2247 | ||
2248 | function MouseDown(Mouse) | |
2249 | HOLD = true | |
2250 | if ATTACK == false then | |
2251 | end | |
2252 | end | |
2253 | ||
2254 | function MouseUp(Mouse) | |
2255 | HOLD = false | |
2256 | end | |
2257 | ||
2258 | function KeyDown(Key) | |
2259 | KEYHOLD = true | |
2260 | if Key == "z" and ATTACK == false then | |
2261 | SuperStomp() | |
2262 | end | |
2263 | ||
2264 | if Key == "b" and ATTACK == false then | |
2265 | TimesUp() | |
2266 | end | |
2267 | ||
2268 | if Key == "c" and ATTACK == false then | |
2269 | Buzzsaw() | |
2270 | end | |
2271 | ||
2272 | if Key == "e" and ATTACK == false then | |
2273 | InfectionFog() | |
2274 | end | |
2275 | ||
2276 | if Key == "q" and ATTACK == false then | |
2277 | TimeSweep() | |
2278 | end | |
2279 | ||
2280 | if Key == "v" and ATTACK == false then | |
2281 | if MODE == "Superior" then | |
2282 | Sun1() | |
2283 | elseif MODE == "Booster" then | |
2284 | Sun2() | |
2285 | end | |
2286 | end | |
2287 | ||
2288 | if Key == "x" and ATTACK == false then | |
2289 | Earthquake() | |
2290 | end | |
2291 | ||
2292 | if Key == "f" and ATTACK == false then | |
2293 | ClockBooster() | |
2294 | end | |
2295 | ||
2296 | if Key == "t" and ATTACK == false then | |
2297 | Taunt() | |
2298 | end | |
2299 | end | |
2300 | ||
2301 | function KeyUp(Key) | |
2302 | KEYHOLD = false | |
2303 | end | |
2304 | ||
2305 | Mouse.Button1Down:connect(function(NEWKEY) | |
2306 | MouseDown(NEWKEY) | |
2307 | end) | |
2308 | Mouse.Button1Up:connect(function(NEWKEY) | |
2309 | MouseUp(NEWKEY) | |
2310 | end) | |
2311 | Mouse.KeyDown:connect(function(NEWKEY) | |
2312 | KeyDown(NEWKEY) | |
2313 | end) | |
2314 | Mouse.KeyUp:connect(function(NEWKEY) | |
2315 | KeyUp(NEWKEY) | |
2316 | end) | |
2317 | ||
2318 | --//=================================\\ | |
2319 | --\\=================================// | |
2320 | ||
2321 | ||
2322 | function unanchor() | |
2323 | if UNANCHOR == true then | |
2324 | RootPart.Anchored = false | |
2325 | end | |
2326 | g = Character:GetChildren() | |
2327 | for i = 1, #g do | |
2328 | if g[i].ClassName == "Part" and g[i] ~= RootPart then | |
2329 | g[i].Anchored = false | |
2330 | end | |
2331 | end | |
2332 | g = Weapon:GetChildren() | |
2333 | for i = 1, #g do | |
2334 | if g[i].ClassName == "Part" then | |
2335 | g[i].Anchored = false | |
2336 | end | |
2337 | end | |
2338 | end | |
2339 | ||
2340 | ||
2341 | --//=================================\\ | |
2342 | --|| WRAP THE WHOLE SCRIPT UP | |
2343 | --\\=================================// | |
2344 | ||
2345 | Humanoid.Changed:connect(function(Jump) | |
2346 | if Jump == "Jump" and (Disable_Jump == true) then | |
2347 | Humanoid.Jump = false | |
2348 | end | |
2349 | end) | |
2350 | ||
2351 | while true do | |
2352 | Swait() | |
2353 | script.Parent = WEAPONGUI | |
2354 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
2355 | v:Stop(); | |
2356 | end | |
2357 | ANIMATE.Parent = nil | |
2358 | SINE = SINE + CHANGE*1.5 | |
2359 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
2360 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
2361 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character) | |
2362 | local WALKSPEEDVALUE = 10 / (Humanoid.WalkSpeed / 16) | |
2363 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
2364 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2365 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2366 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5*SIZE, 0.875*SIZE - 0.125 * SIN(SINE / WALKSPEEDVALUE)*SIZE - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0 +0.5+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(25+80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2367 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5*SIZE, 0.875*SIZE + 0.125 * SIN(SINE / WALKSPEEDVALUE)*SIZE - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0 +0.5+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(-25+80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2368 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
2369 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2370 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2371 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5*SIZE, 1*SIZE, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2372 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5*SIZE, 1*SIZE, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2373 | end | |
2374 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
2375 | ANIM = "Jump" | |
2376 | if ATTACK == false then | |
2377 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2378 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2379 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2380 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2381 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed) | |
2382 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 1 / Animation_Speed) | |
2383 | end | |
2384 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
2385 | ANIM = "Fall" | |
2386 | if ATTACK == false then | |
2387 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2388 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2389 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2390 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2391 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 1 / Animation_Speed) | |
2392 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 1 / Animation_Speed) | |
2393 | end | |
2394 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
2395 | ANIM = "Idle" | |
2396 | if ATTACK == false then | |
2397 | if MODE == "The Superior Pandora" then | |
2398 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(-17.58)), 1 / Animation_Speed) | |
2399 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.2*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(15 - 3)), 1 / Animation_Speed) | |
2400 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.7*SIZE, -0.5*SIZE) * ANGLES(RAD(0.98), RAD(-119.59 + 2.5 * SIN(SINE / 25)), RAD(-175.39 + 2.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2401 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.3*SIZE) * ANGLES(RAD(9.71), RAD(3.14 - -2.5 * SIN(SINE / 12)), RAD(0.2 - -2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2402 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2403 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2404 | elseif MODE == "Sun" then | |
2405 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
2406 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(5 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2407 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2408 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2409 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2410 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2411 | elseif MODE == "Sun2" then | |
2412 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
2413 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(5 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2414 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2415 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2416 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2417 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2418 | elseif MODE == "Booster" then | |
2419 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
2420 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.3*SIZE) - 1)) * ANGLES(RAD(15 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2421 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.3*SIZE, 0.5*SIZE, -0.7*SIZE) * ANGLES(RAD(115), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-80 + 5 * SIN(SINE / 15))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2422 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.3*SIZE, 0.5*SIZE, -0.7*SIZE) * ANGLES(RAD(115), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(80 - 5 * SIN(SINE / 15))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2423 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2424 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2425 | end | |
2426 | end | |
2427 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
2428 | ANIM = "Walk" | |
2429 | if ATTACK == false then | |
2430 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, -0.1*SIZE) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2431 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.3*SIZE) - 1)) * ANGLES(RAD(15 - 1 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 1/ Animation_Speed) | |
2432 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.9*SIZE, 0.5*SIZE + 0.05*SIZE * SIN(SINE / 12), -0.5) * ANGLES(RAD(100), RAD(0), RAD(-70)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2433 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.9*SIZE, 0.25*SIZE + 0.05*SIZE * SIN(SINE / 12), -0.35) * ANGLES(RAD(70), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2434 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE , -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2435 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2436 | end | |
2437 | end | |
2438 | unanchor() | |
2439 | Humanoid.MaxHealth = "inf" | |
2440 | Humanoid.Health = "inf" | |
2441 | if Rooted == false then | |
2442 | Disable_Jump = false | |
2443 | Humanoid.WalkSpeed = Speed | |
2444 | elseif Rooted == true then | |
2445 | Disable_Jump = true | |
2446 | Humanoid.WalkSpeed = 0 | |
2447 | end | |
2448 | for _, c in pairs(Character:GetChildren()) do | |
2449 | if c.ClassName == "Part" and c.Name ~= "Detail" then | |
2450 | c.Material = "Fabric" | |
2451 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
2452 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
2453 | end | |
2454 | if c ~= Head then | |
2455 | c.Color = HeadC | |
2456 | else | |
2457 | c.Color = BodyC | |
2458 | end | |
2459 | if c == Head then | |
2460 | if c:FindFirstChild("face") then | |
2461 | c.face:remove() | |
2462 | end | |
2463 | end | |
2464 | elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then | |
2465 | c:remove() | |
2466 | elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then | |
2467 | c:remove() | |
2468 | end | |
2469 | end | |
2470 | end | |
2471 | --//=================================\\ | |
2472 | --\\=================================// | |
2473 | ||
2474 | ||
2475 | ||
2476 | ||
2477 | ||
2478 | --//====================================================\\-- | |
2479 | --|| END OF SCRIPT | |
2480 | --\\====================================================//-- |