SHOW:
|
|
- or go back to the newest paste.
1 | --//====================================================\\-- | |
2 | --|| CREATED BY SHACKLUSTER | |
3 | --\\====================================================//-- | |
4 | Player = game.Players.LocalPlayer | |
5 | Character = Player.Character | |
6 | local txt = Instance.new("BillboardGui", Character) | |
7 | txt.Adornee = Character.Head | |
8 | txt.Name = "_status" | |
9 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
10 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
11 | local text = Instance.new("TextLabel", txt) | |
12 | text.Size = UDim2.new(10, 0, 7, 0) | |
13 | text.FontSize = "Size24" | |
14 | text.TextScaled = true | |
15 | text.TextTransparency = 0 | |
16 | text.BackgroundTransparency = 10 | |
17 | text.TextTransparency = 0 | |
18 | text.TextStrokeTransparency = 0 | |
19 | text.Font = "Antique" | |
20 | text.TextStrokeColor3 = Color3.new(0,0,0) | |
21 | text.Text = "Terra God" | |
22 | ||
23 | ||
24 | local createstuff = function() | |
25 | local stuff = Instance.new("Model") | |
26 | local collar = Instance.new("Part") | |
27 | local mesh = Instance.new("FileMesh") | |
28 | local part = Instance.new("Part") | |
29 | local mesh_2 = Instance.new("CylinderMesh") | |
30 | local weld = Instance.new("ManualWeld") | |
31 | local eye = Instance.new("Part") | |
32 | local mesh_3 = Instance.new("SpecialMesh") | |
33 | local decal = Instance.new("Decal") | |
34 | local hood = Instance.new("Part") | |
35 | local mesh_4 = Instance.new("FileMesh") | |
36 | local pillar = Instance.new("Part") | |
37 | local rock = Instance.new("Part") | |
38 | local core = Instance.new("Attachment") | |
39 | local emit = Instance.new("ParticleEmitter") | |
40 | local mesh_5 = Instance.new("FileMesh") | |
41 | local rockspike = Instance.new("Part") | |
42 | local mesh_6 = Instance.new("SpecialMesh") | |
43 | local shield = Instance.new("Part") | |
44 | local core_2 = Instance.new("Attachment") | |
45 | local spinepart = Instance.new("Part") | |
46 | local mesh_7 = Instance.new("FileMesh") | |
47 | local pants = Instance.new("Pants") | |
48 | local shirt = Instance.new("Shirt") | |
49 | local emit_2 = Instance.new("ParticleEmitter") | |
50 | local vortex = Instance.new("ParticleEmitter") | |
51 | local wave = Instance.new("ParticleEmitter") | |
52 | ||
53 | stuff.Name = "Stuff" | |
54 | stuff.Parent = workspace | |
55 | collar.Size = Vector3.new(2.06, 0.2, 2.06) | |
56 | collar.Name = "Collar" | |
57 | collar.Material = Enum.Material.Metal | |
58 | collar.TopSurface = Enum.SurfaceType.Smooth | |
59 | collar.BottomSurface = Enum.SurfaceType.Smooth | |
60 | collar.Parent = stuff | |
61 | collar.CFrame = CFrame.new(5.8, 46.2, -39.9) | |
62 | mesh.MeshId = "rbxassetid://1861264141" | |
63 | mesh.Parent = collar | |
64 | part.Size = Vector3.new(1.3, 0.2, 1.3) | |
65 | part.BrickColor = BrickColor.new("Really black") | |
66 | part.Color = Color3.new(0.109804, 0.0823529, 0.117647) | |
67 | part.Material = Enum.Material.Metal | |
68 | part.TopSurface = Enum.SurfaceType.Smooth | |
69 | part.BottomSurface = Enum.SurfaceType.Smooth | |
70 | part.Parent = collar | |
71 | part.CFrame = CFrame.new(5.8, 46.2, -39.9) | |
72 | mesh_2.Scale = Vector3.new(1.1, 1.1, 1.1) | |
73 | mesh_2.Parent = part | |
74 | weld.Part0 = collar | |
75 | weld.Name = "Weld" | |
76 | weld.Part1 = part | |
77 | weld.Parent = collar | |
78 | eye.Anchored = true | |
79 | eye.Size = Vector3.new(2, 2, 2) | |
80 | eye.BottomSurface = Enum.SurfaceType.Smooth | |
81 | eye.Material = Enum.Material.SmoothPlastic | |
82 | eye.Color = Color3.new(0.972549, 0.972549, 0.972549) | |
83 | eye.Name = "Eye" | |
84 | eye.TopSurface = Enum.SurfaceType.Smooth | |
85 | eye.BrickColor = BrickColor.new("Institutional white") | |
86 | eye.Parent = stuff | |
87 | eye.CFrame = CFrame.new(9.8, 45.845, -47.125) * CFrame.Angles(0, 0, 0) | |
88 | mesh_3.MeshType = Enum.MeshType.Sphere | |
89 | mesh_3.Parent = eye | |
90 | decal.Texture = "http://www.roblox.com/asset/?id=743271416" | |
91 | decal.Parent = eye | |
92 | hood.Size = Vector3.new(2.919, 2.394, 2.891) | |
93 | hood.BottomSurface = Enum.SurfaceType.Smooth | |
94 | hood.Material = Enum.Material.SmoothPlastic | |
95 | hood.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
96 | hood.BrickColor = BrickColor.new("Really black") | |
97 | hood.TopSurface = Enum.SurfaceType.Smooth | |
98 | hood.Name = "Hood" | |
99 | hood.Parent = stuff | |
100 | hood.CFrame = CFrame.new(9.8, 44.1, -48.7) | |
101 | mesh_4.Scale = Vector3.new(1.55, 1.44, 1.4) | |
102 | mesh_4.MeshId = "rbxassetid://16952952" | |
103 | mesh_4.Parent = hood | |
104 | pillar.Size = Vector3.new(1, 1, 1) | |
105 | pillar.Name = "Pillar" | |
106 | pillar.Material = Enum.Material.Metal | |
107 | pillar.TopSurface = Enum.SurfaceType.Smooth | |
108 | pillar.BottomSurface = Enum.SurfaceType.Smooth | |
109 | pillar.Parent = stuff | |
110 | pillar.CFrame = CFrame.new(-26.77, 0.5, -37.02) | |
111 | rock.Size = Vector3.new(2.03, 1.978, 2.057) | |
112 | rock.BottomSurface = Enum.SurfaceType.Smooth | |
113 | rock.Name = "Rock" | |
114 | rock.TopSurface = Enum.SurfaceType.Smooth | |
115 | rock.Parent = stuff | |
116 | rock.CFrame = CFrame.new(-0.43, 45.908, -52.56) | |
117 | core.Name = "Core" | |
118 | core.Parent = rock | |
119 | emit.Enabled = false | |
120 | emit.Lifetime = NumberRange.new(1, 4) | |
121 | emit.Name = "Emit" | |
122 | emit.Speed = NumberRange.new(0, 35) | |
123 | emit.Rotation = NumberRange.new(0, 360) | |
124 | emit.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.037, 0.754), NumberSequenceKeypoint.new(0.067, 0), NumberSequenceKeypoint.new(1, 0)}) | |
125 | emit.VelocitySpread = 360 | |
126 | emit.Texture = "rbxassetid://281633012" | |
127 | emit.Acceleration = Vector3.new(0, -15, 0) | |
128 | emit.Color = ColorSequence.new(Color3.new(0.423529, 0.345098, 0.294118), Color3.new(0.423529, 0.345098, 0.294118)) | |
129 | emit.RotSpeed = NumberRange.new(-25, 25) | |
130 | emit.SpreadAngle = Vector2.new(360, 360) | |
131 | emit.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 3), NumberSequenceKeypoint.new(0.255, 3.06), NumberSequenceKeypoint.new(0.649, 2.131), NumberSequenceKeypoint.new(1, 0)}) | |
132 | emit.Parent = core | |
133 | mesh_5.MeshId = "rbxassetid://1861108040" | |
134 | mesh_5.Parent = rock | |
135 | rockspike.Anchored = true | |
136 | rockspike.Size = Vector3.new(3.364, 20, 3.364) | |
137 | rockspike.BottomSurface = Enum.SurfaceType.Smooth | |
138 | rockspike.Material = Enum.Material.Grass | |
139 | rockspike.Color = Color3.new(0.423529, 0.345098, 0.294118) | |
140 | rockspike.Name = "RockSpike" | |
141 | rockspike.TopSurface = Enum.SurfaceType.Smooth | |
142 | rockspike.BrickColor = BrickColor.new("Pine Cone") | |
143 | rockspike.Parent = stuff | |
144 | rockspike.CFrame = CFrame.new(-0.43, 46.208, -29.96) | |
145 | mesh_6.TextureId = "rbxassetid://136560096" | |
146 | mesh_6.MeshType = Enum.MeshType.FileMesh | |
147 | mesh_6.MeshId = "rbxassetid://1861231635" | |
148 | mesh_6.Parent = rockspike | |
149 | shield.Size = Vector3.new(1, 1, 1) | |
150 | shield.Name = "Shield" | |
151 | shield.Material = Enum.Material.Metal | |
152 | shield.TopSurface = Enum.SurfaceType.Smooth | |
153 | shield.BottomSurface = Enum.SurfaceType.Smooth | |
154 | shield.Parent = stuff | |
155 | shield.CFrame = CFrame.new(-26.77, 0.5, -37.02) | |
156 | core_2.Name = "Core" | |
157 | core_2.Parent = shield | |
158 | spinepart.CanCollide = false | |
159 | spinepart.Size = Vector3.new(0.3, 0.3, 0.6) | |
160 | spinepart.BrickColor = BrickColor.new("Institutional white") | |
161 | spinepart.BottomSurface = Enum.SurfaceType.Smooth | |
162 | spinepart.Color = Color3.new(0.972549, 0.972549, 0.972549) | |
163 | spinepart.Name = "SpinePart" | |
164 | spinepart.TopSurface = Enum.SurfaceType.Smooth | |
165 | spinepart.Parent = stuff | |
166 | spinepart.CFrame = CFrame.new(-24.33, 46.208, -52.56) | |
167 | mesh_7.MeshId = "rbxassetid://1861166416" | |
168 | mesh_7.Parent = spinepart | |
169 | pants.Name = "Pants" | |
170 | pants.PantsTemplate = "http://www.roblox.com/asset/?id=1614573917" | |
171 | pants.Parent = stuff | |
172 | shirt.Name = "Shirt" | |
173 | shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=1604092628" | |
174 | shirt.Parent = stuff | |
175 | emit_2.Enabled = false | |
176 | emit_2.Lifetime = NumberRange.new(1, 4) | |
177 | emit_2.Name = "Emit" | |
178 | emit_2.Speed = NumberRange.new(0, 35) | |
179 | emit_2.Rotation = NumberRange.new(0, 360) | |
180 | emit_2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.037, 0.754), NumberSequenceKeypoint.new(0.067, 0), NumberSequenceKeypoint.new(1, 0)}) | |
181 | emit_2.VelocitySpread = 360 | |
182 | emit_2.Texture = "rbxassetid://281633012" | |
183 | emit_2.Acceleration = Vector3.new(0, -15, 0) | |
184 | emit_2.Color = ColorSequence.new(Color3.new(0.423529, 0.345098, 0.294118), Color3.new(0.423529, 0.345098, 0.294118)) | |
185 | emit_2.RotSpeed = NumberRange.new(-25, 25) | |
186 | emit_2.SpreadAngle = Vector2.new(360, 360) | |
187 | emit_2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1, 0.5), NumberSequenceKeypoint.new(1, 0)}) | |
188 | emit_2.Parent = stuff | |
189 | vortex.Enabled = false | |
190 | vortex.Name = "Vortex" | |
191 | vortex.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.3, 0.5), NumberSequenceKeypoint.new(1, 0.5)}) | |
192 | vortex.Lifetime = NumberRange.new(1) | |
193 | vortex.Rate = 0 | |
194 | vortex.Speed = NumberRange.new(0) | |
195 | vortex.Color = ColorSequence.new(Color3.new(0.423529, 0.345098, 0.294118), Color3.new(0.423529, 0.345098, 0.294118)) | |
196 | vortex.Rotation = NumberRange.new(0, 360) | |
197 | vortex.ZOffset = -2 | |
198 | vortex.RotSpeed = NumberRange.new(360) | |
199 | vortex.LightEmission = 1 | |
200 | vortex.Texture = "rbxassetid://1084969997" | |
201 | vortex.LockedToPart = true | |
202 | vortex.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 0)}) | |
203 | vortex.Parent = stuff | |
204 | wave.Enabled = false | |
205 | wave.Lifetime = NumberRange.new(0.3) | |
206 | wave.Name = "Wave" | |
207 | wave.Speed = NumberRange.new(0) | |
208 | wave.LightEmission = 1 | |
209 | wave.Rate = 1 | |
210 | wave.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.17, 0.393), NumberSequenceKeypoint.new(0.334, 0.661), NumberSequenceKeypoint.new(0.535, 0.836), NumberSequenceKeypoint.new(1, 1)}) | |
211 | wave.Texture = "rbxassetid://1084991215" | |
212 | wave.Rotation = NumberRange.new(-180, 180) | |
213 | wave.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 0)}) | |
214 | wave.ZOffset = 1 | |
215 | wave.Parent = stuff | |
216 | for i,v in pairs(stuff:GetChildren()) do | |
217 | v.Parent = script | |
218 | end | |
219 | end | |
220 | ||
221 | createstuff() | |
222 | ||
223 | ||
224 | ||
225 | ||
226 | ||
227 | wait(0.2) | |
228 | ||
229 | Player = game:GetService("Players").LocalPlayer | |
230 | PlayerGui = Player.PlayerGui | |
231 | Cam = workspace.CurrentCamera | |
232 | Backpack = Player.Backpack | |
233 | Character = Player.Character | |
234 | Humanoid = Character.Humanoid | |
235 | Mouse = Player:GetMouse() | |
236 | RootPart = Character["HumanoidRootPart"] | |
237 | Torso = Character["Torso"] | |
238 | Head = Character["Head"] | |
239 | RightArm = Character["Right Arm"] | |
240 | LeftArm = Character["Left Arm"] | |
241 | RightLeg = Character["Right Leg"] | |
242 | LeftLeg = Character["Left Leg"] | |
243 | RootJoint = RootPart["RootJoint"] | |
244 | Neck = Torso["Neck"] | |
245 | RightShoulder = Torso["Right Shoulder"] | |
246 | LeftShoulder = Torso["Left Shoulder"] | |
247 | RightHip = Torso["Right Hip"] | |
248 | LeftHip = Torso["Left Hip"] | |
249 | ||
250 | IT = Instance.new | |
251 | CF = CFrame.new | |
252 | VT = Vector3.new | |
253 | RAD = math.rad | |
254 | C3 = Color3.new | |
255 | UD2 = UDim2.new | |
256 | BRICKC = BrickColor.new | |
257 | ANGLES = CFrame.Angles | |
258 | EULER = CFrame.fromEulerAnglesXYZ | |
259 | COS = math.cos | |
260 | ACOS = math.acos | |
261 | SIN = math.sin | |
262 | ASIN = math.asin | |
263 | ABS = math.abs | |
264 | MRANDOM = math.random | |
265 | FLOOR = math.floor | |
266 | ||
267 | --//=================================\\ | |
268 | --|| USEFUL VALUES | |
269 | --\\=================================// | |
270 | ||
271 | Animation_Speed = 3 | |
272 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
273 | local Speed = 35 | |
274 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
275 | local NECKC0 = CF(0, 1.75, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
276 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
277 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
278 | local DAMAGEMULTIPLIER = 1 | |
279 | local ANIM = "Idle" | |
280 | local ATTACK = false | |
281 | local EQUIPPED = false | |
282 | local HOLD = false | |
283 | local COMBO = 1 | |
284 | local Rooted = false | |
285 | local SINE = 0 | |
286 | local KEYHOLD = false | |
287 | local CHANGE = 2 / Animation_Speed | |
288 | local WALKINGANIM = false | |
289 | local VALUE1 = false | |
290 | local VALUE2 = false | |
291 | local ROBLOXIDLEANIMATION = IT("Animation") | |
292 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
293 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
294 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
295 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
296 | WEAPONGUI.Name = "Weapon GUI" | |
297 | local Effects = IT("Folder", Character) | |
298 | Effects.Name = "Effects" | |
299 | local ANIMATOR = Humanoid.Animator | |
300 | local ANIMATE = Character.Animate | |
301 | local UNANCHOR = true | |
302 | local PLAYSONG = true | |
303 | local EXTRATRANS = 0 | |
304 | ||
305 | --//=================================\\ | |
306 | --\\=================================// | |
307 | ||
308 | ||
309 | --//=================================\\ | |
310 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
311 | --\\=================================// | |
312 | ||
313 | ArtificialHB = Instance.new("BindableEvent", script) | |
314 | ArtificialHB.Name = "ArtificialHB" | |
315 | ||
316 | script:WaitForChild("ArtificialHB") | |
317 | ||
318 | frame = Frame_Speed | |
319 | tf = 0 | |
320 | allowframeloss = false | |
321 | tossremainder = false | |
322 | lastframe = tick() | |
323 | script.ArtificialHB:Fire() | |
324 | ||
325 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
326 | tf = tf + s | |
327 | if tf >= frame then | |
328 | if allowframeloss then | |
329 | script.ArtificialHB:Fire() | |
330 | lastframe = tick() | |
331 | else | |
332 | for i = 1, math.floor(tf / frame) do | |
333 | script.ArtificialHB:Fire() | |
334 | end | |
335 | lastframe = tick() | |
336 | end | |
337 | if tossremainder then | |
338 | tf = 0 | |
339 | else | |
340 | tf = tf - frame * math.floor(tf / frame) | |
341 | end | |
342 | end | |
343 | end) | |
344 | ||
345 | --//=================================\\ | |
346 | --\\=================================// | |
347 | ||
348 | --//=================================\\ | |
349 | --|| SOME FUNCTIONS | |
350 | --\\=================================// | |
351 | ||
352 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
353 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
354 | end | |
355 | ||
356 | function PositiveAngle(NUMBER) | |
357 | if NUMBER >= 0 then | |
358 | NUMBER = 0 | |
359 | end | |
360 | return NUMBER | |
361 | end | |
362 | ||
363 | function NegativeAngle(NUMBER) | |
364 | if NUMBER <= 0 then | |
365 | NUMBER = 0 | |
366 | end | |
367 | return NUMBER | |
368 | end | |
369 | ||
370 | function Swait(NUMBER) | |
371 | if NUMBER == 0 or NUMBER == nil then | |
372 | ArtificialHB.Event:wait() | |
373 | else | |
374 | for i = 1, NUMBER do | |
375 | ArtificialHB.Event:wait() | |
376 | end | |
377 | end | |
378 | end | |
379 | ||
380 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
381 | local NEWMESH = IT(MESH) | |
382 | if MESH == "SpecialMesh" then | |
383 | NEWMESH.MeshType = MESHTYPE | |
384 | if MESHID ~= "nil" and MESHID ~= "" then | |
385 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
386 | end | |
387 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
388 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
389 | end | |
390 | end | |
391 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
392 | NEWMESH.Scale = SCALE | |
393 | NEWMESH.Parent = PARENT | |
394 | return NEWMESH | |
395 | end | |
396 | ||
397 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
398 | local NEWPART = IT("Part") | |
399 | NEWPART.formFactor = FORMFACTOR | |
400 | NEWPART.Reflectance = REFLECTANCE | |
401 | NEWPART.Transparency = TRANSPARENCY | |
402 | NEWPART.CanCollide = false | |
403 | NEWPART.Locked = true | |
404 | NEWPART.Anchored = true | |
405 | if ANCHOR == false then | |
406 | NEWPART.Anchored = false | |
407 | end | |
408 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
409 | NEWPART.Name = NAME | |
410 | NEWPART.Size = SIZE | |
411 | NEWPART.Position = Torso.Position | |
412 | NEWPART.Material = MATERIAL | |
413 | NEWPART:BreakJoints() | |
414 | NEWPART.Parent = PARENT | |
415 | return NEWPART | |
416 | end | |
417 | ||
418 | local function weldBetween(a, b) | |
419 | local weldd = Instance.new("ManualWeld") | |
420 | weldd.Part0 = a | |
421 | weldd.Part1 = b | |
422 | weldd.C0 = CFrame.new() | |
423 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
424 | weldd.Parent = a | |
425 | return weldd | |
426 | end | |
427 | ||
428 | ||
429 | function QuaternionFromCFrame(cf) | |
430 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
431 | local trace = m00 + m11 + m22 | |
432 | if trace > 0 then | |
433 | local s = math.sqrt(1 + trace) | |
434 | local recip = 0.5 / s | |
435 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
436 | else | |
437 | local i = 0 | |
438 | if m11 > m00 then | |
439 | i = 1 | |
440 | end | |
441 | if m22 > (i == 0 and m00 or m11) then | |
442 | i = 2 | |
443 | end | |
444 | if i == 0 then | |
445 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
446 | local recip = 0.5 / s | |
447 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
448 | elseif i == 1 then | |
449 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
450 | local recip = 0.5 / s | |
451 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
452 | elseif i == 2 then | |
453 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
454 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
455 | end | |
456 | end | |
457 | end | |
458 | ||
459 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
460 | local xs, ys, zs = x + x, y + y, z + z | |
461 | local wx, wy, wz = w * xs, w * ys, w * zs | |
462 | local xx = x * xs | |
463 | local xy = x * ys | |
464 | local xz = x * zs | |
465 | local yy = y * ys | |
466 | local yz = y * zs | |
467 | local zz = z * zs | |
468 | 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)) | |
469 | end | |
470 | ||
471 | function QuaternionSlerp(a, b, t) | |
472 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
473 | local startInterp, finishInterp; | |
474 | if cosTheta >= 0.0001 then | |
475 | if (1 - cosTheta) > 0.0001 then | |
476 | local theta = ACOS(cosTheta) | |
477 | local invSinTheta = 1 / SIN(theta) | |
478 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
479 | finishInterp = SIN(t * theta) * invSinTheta | |
480 | else | |
481 | startInterp = 1 - t | |
482 | finishInterp = t | |
483 | end | |
484 | else | |
485 | if (1 + cosTheta) > 0.0001 then | |
486 | local theta = ACOS(-cosTheta) | |
487 | local invSinTheta = 1 / SIN(theta) | |
488 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
489 | finishInterp = SIN(t * theta) * invSinTheta | |
490 | else | |
491 | startInterp = t - 1 | |
492 | finishInterp = t | |
493 | end | |
494 | end | |
495 | 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 | |
496 | end | |
497 | ||
498 | function Clerp(a, b, t) | |
499 | local qa = {QuaternionFromCFrame(a)} | |
500 | local qb = {QuaternionFromCFrame(b)} | |
501 | local ax, ay, az = a.x, a.y, a.z | |
502 | local bx, by, bz = b.x, b.y, b.z | |
503 | local _t = 1 - t | |
504 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
505 | end | |
506 | ||
507 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
508 | local frame = IT("Frame") | |
509 | frame.BackgroundTransparency = TRANSPARENCY | |
510 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
511 | frame.Position = POSITION | |
512 | frame.Size = SIZE | |
513 | frame.BackgroundColor3 = COLOR | |
514 | frame.BorderColor3 = BORDERCOLOR | |
515 | frame.Name = NAME | |
516 | frame.Parent = PARENT | |
517 | return frame | |
518 | end | |
519 | ||
520 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
521 | local label = IT("TextLabel") | |
522 | label.BackgroundTransparency = 1 | |
523 | label.Size = UD2(1, 0, 1, 0) | |
524 | label.Position = UD2(0, 0, 0, 0) | |
525 | label.TextColor3 = TEXTCOLOR | |
526 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
527 | label.TextTransparency = TRANSPARENCY | |
528 | label.FontSize = TEXTFONTSIZE | |
529 | label.Font = TEXTFONT | |
530 | label.BorderSizePixel = BORDERSIZEPIXEL | |
531 | label.TextScaled = false | |
532 | label.Text = TEXT | |
533 | label.Name = NAME | |
534 | label.Parent = PARENT | |
535 | return label | |
536 | end | |
537 | ||
538 | function NoOutlines(PART) | |
539 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
540 | end | |
541 | ||
542 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
543 | local NEWWELD = IT(TYPE) | |
544 | NEWWELD.Part0 = PART0 | |
545 | NEWWELD.Part1 = PART1 | |
546 | NEWWELD.C0 = C0 | |
547 | NEWWELD.C1 = C1 | |
548 | NEWWELD.Parent = PARENT | |
549 | return NEWWELD | |
550 | end | |
551 | ||
552 | local S = IT("Sound") | |
553 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
554 | local NEWSOUND = nil | |
555 | coroutine.resume(coroutine.create(function() | |
556 | NEWSOUND = S:Clone() | |
557 | NEWSOUND.Parent = PARENT | |
558 | NEWSOUND.Volume = VOLUME | |
559 | NEWSOUND.Pitch = PITCH | |
560 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
561 | NEWSOUND:play() | |
562 | if DOESLOOP == true then | |
563 | NEWSOUND.Looped = true | |
564 | else | |
565 | repeat wait(1) until NEWSOUND.Playing == false | |
566 | NEWSOUND:remove() | |
567 | end | |
568 | end)) | |
569 | return NEWSOUND | |
570 | end | |
571 | ||
572 | function CFrameFromTopBack(at, top, back) | |
573 | local right = top:Cross(back) | |
574 | 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) | |
575 | end | |
576 | ||
577 | --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}) | |
578 | function WACKYEFFECT(Table) | |
579 | local TYPE = (Table.EffectType or "Sphere") | |
580 | local SIZE = (Table.Size or VT(1,1,1)) | |
581 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
582 | local TRANSPARENCY = (Table.Transparency or 0) | |
583 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
584 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
585 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
586 | local ROTATION1 = (Table.RotationX or 0) | |
587 | local ROTATION2 = (Table.RotationY or 0) | |
588 | local ROTATION3 = (Table.RotationZ or 0) | |
589 | local MATERIAL = (Table.Material or "Neon") | |
590 | local COLOR = (Table.Color or C3(1,1,1)) | |
591 | local TIME = (Table.Time or 45) | |
592 | local SOUNDID = (Table.SoundID or nil) | |
593 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
594 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
595 | coroutine.resume(coroutine.create(function() | |
596 | local PLAYSSOUND = false | |
597 | local SOUND = nil | |
598 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
599 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
600 | PLAYSSOUND = true | |
601 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
602 | end | |
603 | EFFECT.Color = COLOR | |
604 | local MSH = nil | |
605 | if TYPE == "Sphere" then | |
606 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
607 | elseif TYPE == "Block" then | |
608 | MSH = IT("BlockMesh",EFFECT) | |
609 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
610 | elseif TYPE == "Wave" then | |
611 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
612 | elseif TYPE == "Ring" then | |
613 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
614 | elseif TYPE == "Slash" then | |
615 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
616 | elseif TYPE == "Round Slash" then | |
617 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
618 | elseif TYPE == "Swirl" then | |
619 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
620 | elseif TYPE == "Skull" then | |
621 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
622 | elseif TYPE == "Crystal" then | |
623 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
624 | end | |
625 | if MSH ~= nil then | |
626 | local MOVESPEED = nil | |
627 | if MOVEDIRECTION ~= nil then | |
628 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
629 | end | |
630 | local GROWTH = SIZE - ENDSIZE | |
631 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
632 | if TYPE == "Block" then | |
633 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
634 | else | |
635 | EFFECT.CFrame = CFRAME | |
636 | end | |
637 | for LOOP = 1, TIME+1 do | |
638 | Swait() | |
639 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
640 | if TYPE == "Wave" then | |
641 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
642 | end | |
643 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
644 | if TYPE == "Block" then | |
645 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
646 | else | |
647 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
648 | end | |
649 | if MOVEDIRECTION ~= nil then | |
650 | local ORI = EFFECT.Orientation | |
651 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
652 | EFFECT.Orientation = ORI | |
653 | end | |
654 | end | |
655 | if PLAYSSOUND == false then | |
656 | EFFECT:remove() | |
657 | else | |
658 | repeat Swait() until EFFECT:FindFirstChild("Sound") == nil | |
659 | EFFECT:remove() | |
660 | end | |
661 | else | |
662 | if PLAYSSOUND == false then | |
663 | EFFECT:remove() | |
664 | else | |
665 | repeat Swait() until EFFECT:FindFirstChild("Sound") == nil | |
666 | EFFECT:remove() | |
667 | end | |
668 | end | |
669 | end)) | |
670 | end | |
671 | ||
672 | function MakeForm(PART,TYPE) | |
673 | if TYPE == "Cyl" then | |
674 | local MSH = IT("CylinderMesh",PART) | |
675 | elseif TYPE == "Ball" then | |
676 | local MSH = IT("SpecialMesh",PART) | |
677 | MSH.MeshType = "Sphere" | |
678 | elseif TYPE == "Wedge" then | |
679 | local MSH = IT("SpecialMesh",PART) | |
680 | MSH.MeshType = "Wedge" | |
681 | end | |
682 | end | |
683 | ||
684 | Debris = game:GetService("Debris") | |
685 | ||
686 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
687 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
688 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
689 | end | |
690 | ||
691 | local ROCK = script.Rock | |
692 | ROCK.Parent = nil | |
693 | function GetRock(FLOOROBJECT) | |
694 | local Rock = ROCK:Clone() | |
695 | Rock.Parent = Effects | |
696 | if FLOOROBJECT ~= nil then | |
697 | if FLOOROBJECT.Material ~= Enum.Material.Grass and FLOOROBJECT.Material ~= Enum.Material.Fabric then | |
698 | Rock.Material = FLOOROBJECT.Material | |
699 | Rock.Color = FLOOROBJECT.Color | |
700 | else | |
701 | Rock.Material = "Slate" | |
702 | Rock.Color = BRICKC"Dirt brown".Color | |
703 | end | |
704 | else | |
705 | Rock.Material = "Slate" | |
706 | Rock.Color = BRICKC"Dirt brown".Color | |
707 | end | |
708 | Rock.Core.Emit.Color = ColorSequence.new(Rock.Color) | |
709 | return Rock | |
710 | end | |
711 | ||
712 | local SPIKE = script.RockSpike | |
713 | SPIKE.Parent = nil | |
714 | function GetSpike(FLOOROBJECT) | |
715 | local Rock = SPIKE:Clone() | |
716 | Rock.Parent = Effects | |
717 | if FLOOROBJECT ~= nil then | |
718 | if FLOOROBJECT.Material ~= Enum.Material.Grass and FLOOROBJECT.Material ~= Enum.Material.Fabric then | |
719 | Rock.Material = FLOOROBJECT.Material | |
720 | Rock.Color = FLOOROBJECT.Color | |
721 | else | |
722 | Rock.Material = "Slate" | |
723 | Rock.Color = BRICKC"Dirt brown".Color | |
724 | end | |
725 | else | |
726 | Rock.Material = "Slate" | |
727 | Rock.Color = BRICKC"Dirt brown".Color | |
728 | end | |
729 | return Rock | |
730 | end | |
731 | ||
732 | local SHIELD = script.Shield | |
733 | SHIELD.Parent = nil | |
734 | function GetShield(FLOOROBJECT) | |
735 | local Rock = SHIELD:Clone() | |
736 | Rock.Parent = Effects | |
737 | if FLOOROBJECT ~= nil then | |
738 | Rock.Material = FLOOROBJECT.Material | |
739 | Rock.Color = FLOOROBJECT.Color | |
740 | else | |
741 | Rock.Material = "Slate" | |
742 | Rock.Color = BRICKC"Dirt brown".Color | |
743 | end | |
744 | return Rock | |
745 | end | |
746 | ||
747 | function RespondToImpact(Object,Rock) | |
748 | local BREAKABLEMATERIALS = {{Enum.Material.Glass,5,1571353313},{Enum.Material.Ice,2,151284431},{Enum.Material.Wood,1.3,131144461},{Enum.Material.WoodPlanks,1,131144461},{Enum.Material.Cobblestone,0.2,130972023}} | |
749 | for i = 1, #BREAKABLEMATERIALS do | |
750 | local MATERIAL = BREAKABLEMATERIALS[i] | |
751 | if Object.Material == MATERIAL[1] then | |
752 | local A = Rock.Size.Magnitude | |
753 | local B = Object.Size.Magnitude | |
754 | if B < A*MATERIAL[2] then | |
755 | WaveParticles(Object.Position,B*3,Object.Color) | |
756 | Object:remove() | |
757 | CreateSound(MATERIAL[3], Rock, 5, MRANDOM(8,12)/10, false) | |
758 | end | |
759 | end | |
760 | end | |
761 | end | |
762 | ||
763 | function WaveParticles(Position,Size,Color) | |
764 | local BASE = CreatePart(3, Effects, "Neon", 0, 1, BRICKC("Pearl"), "Shockwave", VT(0,0,0), true) | |
765 | BASE.CFrame = CF(Position) | |
766 | local A = IT("Attachment",BASE) | |
767 | local WAVE = script.Wave:Clone() | |
768 | WAVE.Parent = A | |
769 | WAVE.Size = NumberSequence.new(0,Size) | |
770 | WAVE.Color = ColorSequence.new(Color) | |
771 | Debris:AddItem(BASE,0.5) | |
772 | WAVE:Emit(1) | |
773 | end | |
774 | ||
775 | --//=================================\\ | |
776 | --|| WEAPON CREATION | |
777 | --\\=================================// | |
778 | ||
779 | local sick = Instance.new("Sound",Character) | |
780 | ||
781 | local PILLAR = script.Pillar | |
782 | PILLAR.Parent = nil | |
783 | local HOOD = script.Hood | |
784 | HOOD.Parent = Character | |
785 | HOOD.CFrame = Torso.CFrame*CFrame.new(0,2.2,0) | |
786 | weldBetween(Torso,HOOD) | |
787 | Head:ClearAllChildren() | |
788 | Head.Transparency = 1 | |
789 | local EYE = script.Eye | |
790 | EYE.Parent = Character | |
791 | EYE.CFrame = Head.CFrame*CF(0,0,0) | |
792 | EYE.Anchored = false | |
793 | weldBetween(EYE,Head) | |
794 | local COLLAR = script.Collar | |
795 | COLLAR.Parent = Character | |
796 | COLLAR.CFrame = Torso.CFrame*CF(0,1,0) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
797 | weldBetween(Torso,COLLAR) | |
798 | local BONE = script.SpinePart | |
799 | BONE.Parent = nil | |
800 | local TAIL = {} | |
801 | local LASTPART = Torso | |
802 | local SIZE = BONE.Size | |
803 | for i = 1, 23 do | |
804 | local PART = BONE:Clone() | |
805 | PART.Anchored = false | |
806 | PART.Parent = Character | |
807 | PART.Size = SIZE*((25-i)/10)/1.6 | |
808 | if LASTPART == Torso then | |
809 | local WELD = CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, PART, CF(0,-0.8,0.6)* ANGLES(RAD(-55), RAD(0), RAD(0)), CF(0, 0, 0)) | |
810 | LASTPART = PART | |
811 | table.insert(TAIL,WELD) | |
812 | else | |
813 | local WELD = CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, PART, CF(0,-PART.Size.Y/1.2,-0.01), CF(0, 0, 0)) | |
814 | LASTPART = PART | |
815 | table.insert(TAIL,WELD) | |
816 | end | |
817 | end | |
818 | for _, c in pairs(Character:GetChildren()) do | |
819 | if c:IsA("BasePart") then | |
820 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
821 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
822 | end | |
823 | if c == Head then | |
824 | if c:FindFirstChild("face") then | |
825 | c.face:remove() | |
826 | end | |
827 | end | |
828 | elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.ClassName == "Hat" or c.Name == "Body Colors" then | |
829 | c:remove() | |
830 | end | |
831 | end | |
832 | local BODY = {} | |
833 | for _, c in pairs(Character:GetDescendants()) do | |
834 | if c:IsA("BasePart") and c.Name ~= "Handle" then | |
835 | if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then | |
836 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
837 | end | |
838 | table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency}) | |
839 | elseif c:IsA("JointInstance") then | |
840 | table.insert(BODY,{c,c.Parent,nil,nil,nil}) | |
841 | end | |
842 | end | |
843 | for e = 1, #BODY do | |
844 | if BODY[e] ~= nil then | |
845 | local STUFF = BODY[e] | |
846 | local PART = STUFF[1] | |
847 | local PARENT = STUFF[2] | |
848 | local MATERIAL = STUFF[3] | |
849 | local COLOR = STUFF[4] | |
850 | local TRANSPARENCY = STUFF[5] | |
851 | if PART.ClassName == "Part" and PART ~= RootPart then | |
852 | PART.Material = MATERIAL | |
853 | PART.Color = COLOR | |
854 | PART.Transparency = TRANSPARENCY | |
855 | end | |
856 | PART.AncestryChanged:Connect(function() | |
857 | PART.Parent = PARENT | |
858 | end) | |
859 | end | |
860 | end | |
861 | function refit() | |
862 | Character.Parent = workspace | |
863 | for e = 1, #BODY do | |
864 | if BODY[e] ~= nil then | |
865 | local STUFF = BODY[e] | |
866 | local PART = STUFF[1] | |
867 | local PARENT = STUFF[2] | |
868 | local MATERIAL = STUFF[3] | |
869 | local COLOR = STUFF[4] | |
870 | local TRANSPARENCY = STUFF[5] | |
871 | if PART:IsA("BasePart") and PART ~= RootPart then | |
872 | PART.Material = MATERIAL | |
873 | PART.Color = COLOR | |
874 | PART.Transparency = TRANSPARENCY+EXTRATRANS | |
875 | end | |
876 | if PART.Parent ~= PARENT then | |
877 | Humanoid:remove() | |
878 | PART.Parent = PARENT | |
879 | Humanoid = IT("Humanoid",Character) | |
880 | end | |
881 | end | |
882 | end | |
883 | end | |
884 | ||
885 | Humanoid.Died:connect(function() | |
886 | refit() | |
887 | end) | |
888 | ||
889 | --//=================================\\ | |
890 | --|| DAMAGING | |
891 | --\\=================================// | |
892 | ||
893 | function ApplyDamage(Humanoid,Damage,TorsoPart) | |
894 | Damage = Damage * DAMAGEMULTIPLIER | |
895 | if Humanoid.Health ~= 0 then | |
896 | Humanoid.Health = Humanoid.Health - Damage | |
897 | end | |
898 | end | |
899 | ||
900 | function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL,ROCK) | |
901 | local CHILDREN = workspace:GetDescendants() | |
902 | for index, CHILD in pairs(CHILDREN) do | |
903 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
904 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
905 | if HUM then | |
906 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
907 | if TORSO then | |
908 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
909 | if INSTAKILL == true or HUM.MaxHealth > 5000 then | |
910 | CHILD:BreakJoints() | |
911 | else | |
912 | local DMG = MRANDOM(MINDMG,MAXDMG) | |
913 | ApplyDamage(HUM,DMG,TORSO) | |
914 | end | |
915 | if FLING > 0 then | |
916 | for _, c in pairs(CHILD:GetChildren()) do | |
917 | if c:IsA("BasePart") then | |
918 | local bv = Instance.new("BodyVelocity",c) | |
919 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
920 | bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING | |
921 | Debris:AddItem(bv,0.05) | |
922 | end | |
923 | end | |
924 | end | |
925 | end | |
926 | end | |
927 | end | |
928 | elseif CHILD:IsA("BasePart") and ROCK ~= nil then | |
929 | if (CHILD.Position - POSITION).Magnitude <= RANGE then | |
930 | RespondToImpact(CHILD,ROCK) | |
931 | end | |
932 | end | |
933 | end | |
934 | end | |
935 | ||
936 | --//=================================\\ | |
937 | --|| ATTACK FUNCTIONS AND STUFF | |
938 | --\\=================================// | |
939 | ||
940 | function RockExplosion(Rock,Multiplier,Survive) | |
941 | local EXPLOSION = Rock.Core:FindFirstChildOfClass("ParticleEmitter") | |
942 | EXPLOSION.Color = ColorSequence.new(Rock.Color) | |
943 | local SIZE = (Rock.Size.Y*4)*Multiplier | |
944 | EXPLOSION.Enabled = false | |
945 | EXPLOSION.Speed = NumberRange.new(0,SIZE*5) | |
946 | EXPLOSION.Size = NumberSequence.new(SIZE/15,0) | |
947 | EXPLOSION:Emit(200,300) | |
948 | WaveParticles(Rock.Position,SIZE*2,Rock.Color) | |
949 | coroutine.resume(coroutine.create(function() | |
950 | Rock:BreakJoints() | |
951 | if Survive == nil then | |
952 | Rock.Transparency = 1 | |
953 | Rock.CanCollide = false | |
954 | Rock.Anchored = true | |
955 | Debris:AddItem(Rock,5) | |
956 | end | |
957 | CreateSound(165970126, Rock, 2, MRANDOM(8,12)/10, false) | |
958 | ApplyAoE(Rock.Position,SIZE,25,30,35,false,Rock) | |
959 | local HITFLOOR,HITPOS = Raycast(Rock.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, Rock.Size.Y/2, Character) | |
960 | Swait() | |
961 | if HITFLOOR then | |
962 | WACKYEFFECT({Time = 75, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(SIZE*7,3,SIZE*7), Transparency = 0.7, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = HITFLOOR.Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
963 | end | |
964 | for i = 1, 5 do | |
965 | WACKYEFFECT({Time = MRANDOM(15,55), EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(SIZE*5,0.2,SIZE*5), Transparency = 0.95, Transparency2 = 1, CFrame = CF(Rock.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Rock.Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
966 | end | |
967 | end)) | |
968 | end | |
969 | ||
970 | function Bullet() | |
971 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
972 | ATTACK = true | |
973 | Rooted = true | |
974 | local GYRO = IT("BodyGyro",RootPart) | |
975 | GYRO.D = 2 | |
976 | GYRO.P = 2000 | |
977 | GYRO.MaxTorque = VT(0,4000000,0) | |
978 | coroutine.resume(coroutine.create(function() | |
979 | repeat | |
980 | Swait() | |
981 | GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p) | |
982 | until ATTACK == false | |
983 | GYRO:Remove() | |
984 | end)) | |
985 | local FLOOR = false | |
986 | if HITFLOOR then | |
987 | if HITFLOOR.Material ~= Enum.Material.Foil and HITFLOOR.Material ~= Enum.Material.Glass then | |
988 | FLOOR = true | |
989 | end | |
990 | end | |
991 | if FLOOR == true then | |
992 | for i=0, 0.5, 0.1 / Animation_Speed do | |
993 | Swait() | |
994 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 2 / Animation_Speed) | |
995 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 2 / Animation_Speed) | |
996 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
997 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
998 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.35, -0.75) * ANGLES(RAD(-30), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
999 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-30), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1000 | end | |
1001 | for i=0, 0.25, 0.1 / Animation_Speed do | |
1002 | Swait() | |
1003 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.4, -0.1) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1004 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1005 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1006 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1007 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.9, -0.6) * ANGLES(RAD(35), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1008 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.1, 0) * ANGLES(RAD(35), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1009 | end | |
1010 | local ROCKPLACED = false | |
1011 | local Rock = nil | |
1012 | if HITFLOOR.Anchored == true then | |
1013 | Rock = GetRock(HITFLOOR) | |
1014 | Rock.Core.Emit.Enabled = true | |
1015 | Rock.Size = VT(6,6,6) | |
1016 | Rock.CFrame = CF(RootPart.CFrame*CF(0,-9,-6).p,Mouse.Hit.p) | |
1017 | CreateSound(130972023, Rock, 2, MRANDOM(5,8)/10, false) | |
1018 | coroutine.resume(coroutine.create(function() | |
1019 | for i = 1, 30 do | |
1020 | Swait() | |
1021 | Rock.CFrame = Clerp(Rock.CFrame, CF(RootPart.CFrame*CF(0,1,-6).p,Mouse.Hit.p), 0.8 / Animation_Speed) | |
1022 | end | |
1023 | ROCKPLACED = true | |
1024 | Rock.Core.Emit.Enabled = false | |
1025 | end)) | |
1026 | else | |
1027 | if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then | |
1028 | local TORSO = HITFLOOR.Parent:FindFirstChild("Torso") or HITFLOOR.Parent:FindFirstChild("UpperTorso") | |
1029 | if TORSO then | |
1030 | Rock = TORSO | |
1031 | ROCK.Core:Clone().Parent = Rock | |
1032 | else | |
1033 | Rock = HITFLOOR | |
1034 | ROCK.Core:Clone().Parent = Rock | |
1035 | end | |
1036 | elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then | |
1037 | local TORSO = HITFLOOR.Parent.Parent:FindFirstChild("Torso") or HITFLOOR.Parent.Parent:FindFirstChild("UpperTorso") | |
1038 | if TORSO then | |
1039 | Rock = TORSO | |
1040 | ROCK.Core:Clone().Parent = Rock | |
1041 | else | |
1042 | Rock = HITFLOOR | |
1043 | ROCK.Core:Clone().Parent = Rock | |
1044 | end | |
1045 | else | |
1046 | Rock = HITFLOOR | |
1047 | ROCK.Core:Clone().Parent = Rock | |
1048 | end | |
1049 | Rock.Anchored = true | |
1050 | coroutine.resume(coroutine.create(function() | |
1051 | for i = 1, 30 do | |
1052 | Swait() | |
1053 | Rock.CFrame = Clerp(Rock.CFrame, CF(RootPart.CFrame*CF(0,1,-6).p,Mouse.Hit.p), 0.8 / Animation_Speed) | |
1054 | end | |
1055 | ROCKPLACED = true | |
1056 | end)) | |
1057 | end | |
1058 | for i=0, 0.1, 0.1 / Animation_Speed do | |
1059 | Swait() | |
1060 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.4, -0.1) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1061 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1062 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1063 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1064 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -0.6) * ANGLES(RAD(35), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1065 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.1, 0) * ANGLES(RAD(35), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1066 | end | |
1067 | repeat | |
1068 | Swait() | |
1069 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.25) * ANGLES(RAD(-25), RAD(0), RAD(80)), 1 / Animation_Speed) | |
1070 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-30)), 1 / Animation_Speed) | |
1071 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-25), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1072 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1073 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.6) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-65), RAD(0), RAD(0)) * CF(0,1.5,0), 1 / Animation_Speed) | |
1074 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1075 | until ROCKPLACED == true | |
1076 | for i=0, 0.1, 0.1 / Animation_Speed do | |
1077 | Swait() | |
1078 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.2, 0.25) * ANGLES(RAD(-35), RAD(0), RAD(80)), 1 / Animation_Speed) | |
1079 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-30)), 1 / Animation_Speed) | |
1080 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-32), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1081 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1082 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.6) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-65), RAD(0), RAD(0)) * CF(0,-0.3,0), 1 / Animation_Speed) | |
1083 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1084 | end | |
1085 | WaveParticles(Rock.Position,12,C3(1,1,1)) | |
1086 | CreateSound(621557962, RightLeg, 1, MRANDOM(7,9)/10, false) | |
1087 | coroutine.resume(coroutine.create(function() | |
1088 | if Rock.Parent:FindFirstChildOfClass("Humanoid") == nil then | |
1089 | for i = 1, 200 do | |
1090 | Swait() | |
1091 | Rock.CFrame = Rock.CFrame * CF(0,0,-1.2) | |
1092 | local HIT = Raycast(Rock.Position, Rock.CFrame.lookVector, Rock.Size.X/2, Character) | |
1093 | if HIT then | |
1094 | RespondToImpact(HIT,Rock) | |
1095 | break | |
1096 | end | |
1097 | end | |
1098 | RockExplosion(Rock,1) | |
1099 | else | |
1100 | for i = 1, 60 do | |
1101 | Swait() | |
1102 | Rock.CFrame = Rock.CFrame * CF(0,0,-2) | |
1103 | local HIT = Raycast(Rock.Position, Rock.CFrame.lookVector, 3, Character) | |
1104 | if HIT then | |
1105 | RespondToImpact(HIT,Rock) | |
1106 | break | |
1107 | end | |
1108 | end | |
1109 | RockExplosion(Rock,2) | |
1110 | end | |
1111 | end)) | |
1112 | for i=0, 0.4, 0.1 / Animation_Speed do | |
1113 | Swait() | |
1114 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.2, 0.25) * ANGLES(RAD(-35), RAD(0), RAD(80)), 1 / Animation_Speed) | |
1115 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-30)), 1 / Animation_Speed) | |
1116 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-32), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1117 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1118 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.6) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-65), RAD(0), RAD(0)) * CF(0,-0.3,0), 1 / Animation_Speed) | |
1119 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1120 | end | |
1121 | else | |
1122 | local GRAV = IT("BodyPosition",RootPart) | |
1123 | GRAV.D = 250 | |
1124 | GRAV.P = 20000 | |
1125 | GRAV.MaxForce = VT(math.huge,math.huge,math.huge) | |
1126 | GRAV.Position = RootPart.Position | |
1127 | local Rock = GetRock() | |
1128 | Rock.Size = VT(0,0,0) | |
1129 | Rock.CFrame = CF(RightLeg.CFrame*CF(0,-1,0).p,Mouse.Hit.p) | |
1130 | CreateSound(201858045, Rock, 1, MRANDOM(10,12)/10, false) | |
1131 | local DONEROCK = false | |
1132 | coroutine.resume(coroutine.create(function() | |
1133 | for i = 1, 15 do | |
1134 | Swait() | |
1135 | Rock.Size = Rock.Size + VT(0.1,0.1,0.1) | |
1136 | Rock.Size = Rock.Size * 1.1 | |
1137 | Rock.CFrame = CF(RightLeg.CFrame*CF(0,-1-Rock.Size.Y/2,0).p,Mouse.Hit.p) | |
1138 | end | |
1139 | DONEROCK = true | |
1140 | end)) | |
1141 | repeat | |
1142 | Swait() | |
1143 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-65), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1144 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1145 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1146 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-80), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1147 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(90), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1148 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-15), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1149 | until DONEROCK == true | |
1150 | local LOOP = 0 | |
1151 | for i=0, 0.2, 0.1 / Animation_Speed do | |
1152 | Swait() | |
1153 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-70), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1154 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1155 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1156 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1157 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(130), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1158 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-15), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1159 | end | |
1160 | WaveParticles(Rock.Position,5,C3(1,1,1)) | |
1161 | CreateSound(621557962, RightLeg, 1, MRANDOM(10,12)/10, false) | |
1162 | coroutine.resume(coroutine.create(function() | |
1163 | for i = 1, 300 do | |
1164 | Swait() | |
1165 | Rock.CFrame = Rock.CFrame * CF(0,0,-1.6) | |
1166 | local HIT = Raycast(Rock.Position, Rock.CFrame.lookVector, Rock.Size.X/2, Character) | |
1167 | if HIT then | |
1168 | RespondToImpact(HIT,Rock) | |
1169 | break | |
1170 | end | |
1171 | end | |
1172 | RockExplosion(Rock,1) | |
1173 | end)) | |
1174 | for i=0, 0.3, 0.1 / Animation_Speed do | |
1175 | Swait() | |
1176 | LOOP = LOOP + 15*3 | |
1177 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-65+(LOOP)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1178 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1179 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1180 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1181 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1182 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-15), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1183 | end | |
1184 | GRAV:remove() | |
1185 | end | |
1186 | ATTACK = false | |
1187 | Rooted = false | |
1188 | end | |
1189 | ||
1190 | function Melee() | |
1191 | ATTACK = true | |
1192 | Rooted = false | |
1193 | Speed = 12 | |
1194 | repeat | |
1195 | Swait() | |
1196 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-35)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1197 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(15)), 1 / Animation_Speed) | |
1198 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1199 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1200 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1201 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1202 | until KEYHOLD == false | |
1203 | Speed = 0 | |
1204 | local ROOT = nil | |
1205 | local TORS = nil | |
1206 | local HUMAN = nil | |
1207 | local DIST = 4 | |
1208 | for i=0, 0.2, 0.1 / Animation_Speed do | |
1209 | Swait() | |
1210 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
1211 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(10), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
1212 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.4) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1213 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1214 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1215 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1216 | end | |
1217 | for i=0, 1, 0.1 / Animation_Speed do | |
1218 | Swait() | |
1219 | local CHILDREN = workspace:GetDescendants() | |
1220 | for index, CHILD in pairs(CHILDREN) do | |
1221 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1222 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1223 | if HUM then | |
1224 | local TORSO = CHILD:FindFirstChild("HumanoidRootPart") or CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1225 | if TORSO and HUM.Health > 0 then | |
1226 | if (TORSO.Position - RightArm.Position).Magnitude <= DIST then | |
1227 | DIST = (TORSO.Position - RightArm.Position).Magnitude | |
1228 | ROOT = TORSO | |
1229 | HUMAN = HUM | |
1230 | TORS = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1231 | end | |
1232 | end | |
1233 | end | |
1234 | end | |
1235 | end | |
1236 | if ROOT then | |
1237 | break | |
1238 | end | |
1239 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
1240 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(10), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
1241 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.4) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1242 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1243 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1244 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1245 | end | |
1246 | if ROOT then | |
1247 | local POSITIONED = false | |
1248 | coroutine.resume(coroutine.create(function() | |
1249 | ROOT.Anchored = true | |
1250 | local POS = RootPart.CFrame*CF(0,-3,-1) * ANGLES(RAD(180), RAD(0), RAD(0)) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
1251 | for i = 1, 25 do | |
1252 | ROOT.Anchored = true | |
1253 | Swait() | |
1254 | ROOT.CFrame = Clerp(ROOT.CFrame, POS, 0.8 / Animation_Speed) | |
1255 | end | |
1256 | POSITIONED = true | |
1257 | repeat Swait() ROOT.Anchored = true until ATTACK == false | |
1258 | ROOT.Anchored = false | |
1259 | end)) | |
1260 | repeat | |
1261 | Swait() | |
1262 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1263 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1264 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1265 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1266 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1267 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1268 | until POSITIONED == true | |
1269 | for i = 1, 3 do | |
1270 | for i=0, 0.5, 0.1 / Animation_Speed do | |
1271 | Swait() | |
1272 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1273 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1274 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
1275 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1276 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.35, -0.75) * ANGLES(RAD(50), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1277 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-30), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1278 | end | |
1279 | for i=0, 0.15, 0.1 / Animation_Speed do | |
1280 | Swait() | |
1281 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.4, -0.1) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1282 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1283 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1284 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1285 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.9, -0.6) * ANGLES(RAD(35), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1286 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.1, 0) * ANGLES(RAD(35), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1287 | end | |
1288 | local EMIT = script.Emit:Clone() | |
1289 | EMIT.Parent = TORS | |
1290 | EMIT.Size = NumberSequence.new(1,0) | |
1291 | EMIT:Emit(120) | |
1292 | Debris:AddItem(EMIT,5) | |
1293 | CreateSound(138186576, RightLeg, 1, MRANDOM(13,15)/10, false) | |
1294 | WaveParticles(TORS.Position,12,C3(1,1,1)) | |
1295 | ApplyAoE(RightLeg.Position,8,25,35,0,false) | |
1296 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(35,3,35), Transparency = 0.2, Transparency2 = 1, CFrame = CF(TORS.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1297 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(25,4,25), Transparency = 0.2, Transparency2 = 1, CFrame = CF(TORS.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1298 | for i=0, 0.25, 0.1 / Animation_Speed do | |
1299 | Swait() | |
1300 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.4, -0.1) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1301 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1302 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1303 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1304 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.9, -0.6) * ANGLES(RAD(35), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1305 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.1, 0) * ANGLES(RAD(35), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1306 | end | |
1307 | if HUMAN.Health == 0 then | |
1308 | break | |
1309 | end | |
1310 | for i=0, 0.2, 0.1 / Animation_Speed do | |
1311 | Swait() | |
1312 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1313 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1314 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1315 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1316 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1317 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1318 | end | |
1319 | end | |
1320 | end | |
1321 | Speed = 25 | |
1322 | ATTACK = false | |
1323 | Rooted = false | |
1324 | end | |
1325 | ||
1326 | function Launch() | |
1327 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
1328 | if HITFLOOR then | |
1329 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(15,3,15), Transparency = 0.2, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 138186576, SoundPitch = 1, SoundVolume = 2}) | |
1330 | local P = PILLAR:Clone() | |
1331 | P.Color = HITFLOOR.Color | |
1332 | P.Material = HITFLOOR.Material | |
1333 | P.Parent = Effects | |
1334 | P.CFrame = CF(HITPOS-VT(0,4.5,0)) | |
1335 | coroutine.resume(coroutine.create(function() | |
1336 | for i = 1, 6 do | |
1337 | Swait() | |
1338 | P.CFrame = P.CFrame * CF(0,0.9,0) | |
1339 | end | |
1340 | wait(1) | |
1341 | for i = 1, 45 do | |
1342 | Swait() | |
1343 | P.Transparency =P.Transparency + 1/45 | |
1344 | end | |
1345 | P:remove() | |
1346 | end)) | |
1347 | RootPart.CFrame = RootPart.CFrame*CF(0,1,0) | |
1348 | RootPart.Velocity = VT(0,0,0) | |
1349 | local bv = Instance.new("BodyVelocity",RootPart) | |
1350 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1351 | bv.velocity = CF(RootPart.Position,RootPart.Position+VT(0,100,0)).lookVector*350 | |
1352 | Debris:AddItem(bv,0.1) | |
1353 | end | |
1354 | end | |
1355 | ||
1356 | function Ravage() | |
1357 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
1358 | if HITFLOOR then | |
1359 | ATTACK = true | |
1360 | Rooted = false | |
1361 | for i=0, 0.3, 0.1 / Animation_Speed do | |
1362 | Swait() | |
1363 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 1 / Animation_Speed) | |
1364 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), 1 / Animation_Speed) | |
1365 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1366 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-15)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1367 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(55), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1368 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-100), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1369 | end | |
1370 | WaveParticles(RightArm.CFrame*CF(0,-1,0).p,4,C3(1,1,1)) | |
1371 | Rooted = true | |
1372 | CreateSound(217767125, RightArm, 5, 1, false) | |
1373 | for i=0, 0.15, 0.1 / Animation_Speed do | |
1374 | Swait() | |
1375 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 1 / Animation_Speed) | |
1376 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), 1 / Animation_Speed) | |
1377 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(145)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1378 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-15)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1379 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(55), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1380 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-100), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1381 | end | |
1382 | local HOLD = true | |
1383 | coroutine.resume(coroutine.create(function() | |
1384 | repeat | |
1385 | Swait() | |
1386 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
1387 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(15)), 1 / Animation_Speed) | |
1388 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.2) * ANGLES(RAD(145), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1389 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-15)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1390 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(100), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1391 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-55), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1392 | until HOLD == false | |
1393 | end)) | |
1394 | repeat | |
1395 | wait(0.3) | |
1396 | coroutine.resume(coroutine.create(function() | |
1397 | local HITFLOOR,HITPOS = Raycast(Mouse.Hit.p+VT(0,1,0), (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
1398 | if HITFLOOR then | |
1399 | if HITFLOOR.Anchored == true then | |
1400 | local ROCK = GetRock(HITFLOOR) | |
1401 | CreateSound(130972023, ROCK, 2, MRANDOM(8,12)/10, false) | |
1402 | ROCK.Size = VT(4,4,4)*(MRANDOM(8,12)/10) | |
1403 | ROCK.Core.Emit.Enabled = true | |
1404 | ROCK.CFrame = CF(HITPOS+VT(0,-6,0)) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0)) | |
1405 | local POS = ROCK.CFrame*CF(0,12,0) | |
1406 | for i = 1, 25 do | |
1407 | ROCK.Anchored = true | |
1408 | Swait() | |
1409 | ROCK.CFrame = Clerp(ROCK.CFrame, POS, 0.8 / Animation_Speed) | |
1410 | end | |
1411 | ROCK.Core.Emit.Enabled = false | |
1412 | wait(0.3) | |
1413 | RockExplosion(ROCK,1) | |
1414 | end | |
1415 | end | |
1416 | end)) | |
1417 | until KEYHOLD == false | |
1418 | wait(0.5) | |
1419 | HOLD = false | |
1420 | ATTACK = false | |
1421 | Rooted = false | |
1422 | end | |
1423 | end | |
1424 | ||
1425 | function Shield() | |
1426 | ATTACK = true | |
1427 | Rooted = false | |
1428 | local GYRO = IT("BodyGyro",RootPart) | |
1429 | GYRO.D = 2 | |
1430 | GYRO.P = 2000 | |
1431 | GYRO.MaxTorque = VT(40000000000,4000000,40000000000) | |
1432 | local GRAV = IT("BodyPosition",RootPart) | |
1433 | GRAV.D = 250 | |
1434 | GRAV.P = 20000 | |
1435 | GRAV.MaxForce = VT(math.huge,math.huge,math.huge) | |
1436 | GRAV.Position = RootPart.Position | |
1437 | coroutine.resume(coroutine.create(function() | |
1438 | repeat | |
1439 | Swait() | |
1440 | GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p) | |
1441 | until ATTACK == false | |
1442 | GYRO:Remove() | |
1443 | GRAV:Remove() | |
1444 | end)) | |
1445 | for i=0, 0.3, 0.1 / Animation_Speed do | |
1446 | Swait() | |
1447 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(80)), 1 / Animation_Speed) | |
1448 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-30)), 1 / Animation_Speed) | |
1449 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1450 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1451 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(60), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1452 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1453 | end | |
1454 | local Defence = GetShield() | |
1455 | Defence.Size = VT(0,2,0) | |
1456 | Defence.Parent = Effects | |
1457 | Defence.CFrame = RightArm.CFrame*CF(0,-6,0) * ANGLES(RAD(180), RAD(90), RAD(0)) | |
1458 | WaveParticles(Defence.Position,12,Defence.Color) | |
1459 | CreateSound(201858045, Defence, 2, MRANDOM(10,12)/10, false) | |
1460 | local FIX = Defence.AncestryChanged:Connect(function() | |
1461 | Defence.Parent = Effects | |
1462 | end) | |
1463 | for i = 1, 40 do | |
1464 | Swait() | |
1465 | Defence.Size = Defence.Size + VT(0.5,0,0.7) | |
1466 | Defence.CFrame = RightArm.CFrame*CF(0,-6,0) * ANGLES(RAD(180), RAD(90), RAD(0)) | |
1467 | end | |
1468 | repeat | |
1469 | Swait() | |
1470 | Defence.CFrame = RightArm.CFrame*CF(0,-6,0) * ANGLES(RAD(180), RAD(90), RAD(0)) | |
1471 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(80)), 1 / Animation_Speed) | |
1472 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-30)), 1 / Animation_Speed) | |
1473 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1474 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1475 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(60), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1476 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1477 | until KEYHOLD == false | |
1478 | FIX:Disconnect() | |
1479 | coroutine.resume(coroutine.create(function() | |
1480 | for i = 1, 40 do | |
1481 | Swait() | |
1482 | Defence.Size = Defence.Size - VT(0.5,0,0.7) | |
1483 | end | |
1484 | WaveParticles(Defence.Position,12,Defence.Color) | |
1485 | Defence:remove() | |
1486 | end)) | |
1487 | ATTACK = false | |
1488 | Rooted = false | |
1489 | end | |
1490 | ||
1491 | function TwinMeteor() | |
1492 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 100, Character) | |
1493 | if HITFLOOR == nil then | |
1494 | ATTACK = true | |
1495 | Rooted = false | |
1496 | local GYRO = IT("BodyGyro",RootPart) | |
1497 | GYRO.D = 2 | |
1498 | GYRO.P = 2000 | |
1499 | GYRO.MaxTorque = VT(40000000000,4000000,40000000000) | |
1500 | local GRAV = IT("BodyPosition",RootPart) | |
1501 | GRAV.D = 250 | |
1502 | GRAV.P = 20000 | |
1503 | GRAV.MaxForce = VT(math.huge,math.huge,math.huge) | |
1504 | GRAV.Position = RootPart.Position | |
1505 | coroutine.resume(coroutine.create(function() | |
1506 | repeat | |
1507 | Swait() | |
1508 | GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p) | |
1509 | until ATTACK == false | |
1510 | GYRO:Remove() | |
1511 | GRAV:Remove() | |
1512 | end)) | |
1513 | local CHARGED = false | |
1514 | coroutine.resume(coroutine.create(function() | |
1515 | repeat | |
1516 | Swait() | |
1517 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1518 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1519 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1520 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1521 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1522 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1523 | until CHARGED == true | |
1524 | end)) | |
1525 | local ROCK1 = GetRock() | |
1526 | local ROCK2 = GetRock() | |
1527 | local VORTEX1 = script.Vortex:Clone() | |
1528 | local VORTEX2 = script.Vortex:Clone() | |
1529 | VORTEX1.Parent = ROCK1.Core | |
1530 | VORTEX2.Parent = ROCK2.Core | |
1531 | ROCK1.Core.Emit.Enabled = true | |
1532 | ROCK2.Core.Emit.Enabled = true | |
1533 | ROCK1.CFrame = CF(RightArm.CFrame*CF(0,-1-ROCK1.Size.Y/2,0).p,Mouse.Hit.p) | |
1534 | ROCK2.CFrame = CF(LeftArm.CFrame*CF(0,-1-ROCK2.Size.Y/2,0).p,Mouse.Hit.p) | |
1535 | CreateSound(1664710821, ROCK1, 10, MRANDOM(8,12)/10, false) | |
1536 | CreateSound(1664710821, ROCK2, 10, MRANDOM(8,12)/10, false) | |
1537 | for i = 1, 70 do | |
1538 | Swait() | |
1539 | ROCK1.Size = ROCK1.Size + VT(0.3,0.3,0.3) | |
1540 | ROCK2.Size = ROCK2.Size + VT(0.3,0.3,0.3) | |
1541 | ROCK1.CFrame = CF(RightArm.CFrame*CF(0,-1-ROCK1.Size.Y/2,0).p,Mouse.Hit.p) | |
1542 | ROCK2.CFrame = CF(LeftArm.CFrame*CF(0,-1-ROCK2.Size.Y/2,0).p,Mouse.Hit.p) | |
1543 | VORTEX1.Size = NumberSequence.new(ROCK1.Size.Y*2,0) | |
1544 | VORTEX2.Size = NumberSequence.new(ROCK1.Size.Y*2,0) | |
1545 | VORTEX1:Emit(1) | |
1546 | VORTEX2:Emit(1) | |
1547 | end | |
1548 | CHARGED = true | |
1549 | for i=0, 1, 0.1 / Animation_Speed do | |
1550 | Swait() | |
1551 | ROCK1.CFrame = CF(RightArm.CFrame*CF(0,-1-ROCK1.Size.Y/2,0).p,Mouse.Hit.p) | |
1552 | ROCK2.CFrame = CF(LeftArm.CFrame*CF(0,-1-ROCK2.Size.Y/2,0).p,Mouse.Hit.p) | |
1553 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1554 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1555 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1556 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1557 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1558 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1559 | end | |
1560 | for i=0, 0.5, 0.1 / Animation_Speed do | |
1561 | Swait() | |
1562 | ROCK1.CFrame = CF(RightArm.CFrame*CF(0,-1-ROCK1.Size.Y/2,0).p,Mouse.Hit.p) | |
1563 | ROCK2.CFrame = CF(LeftArm.CFrame*CF(0,-1-ROCK2.Size.Y/2,0).p,Mouse.Hit.p) | |
1564 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-15)), 1 / Animation_Speed) | |
1565 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(5)), 1 / Animation_Speed) | |
1566 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1567 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1568 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1569 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1570 | end | |
1571 | coroutine.resume(coroutine.create(function() | |
1572 | local Rock = ROCK1 | |
1573 | WaveParticles(Rock.Position,30,C3(1,1,1)) | |
1574 | CreateSound(134012322, Rock, 2, MRANDOM(10,12)/10, false) | |
1575 | for i = 1, 200 do | |
1576 | Swait() | |
1577 | Rock.CFrame = Rock.CFrame * CF(0,0,-3.2) | |
1578 | local HIT = Raycast(Rock.Position, Rock.CFrame.lookVector, Rock.Size.X/2, Character) | |
1579 | if HIT then | |
1580 | RespondToImpact(HIT,Rock) | |
1581 | break | |
1582 | end | |
1583 | end | |
1584 | ApplyAoE(Rock.Position,ROCK.Size.Y,50,55,55,false) | |
1585 | for i = 1, 6 do | |
1586 | RockExplosion(Rock,1.5,true) | |
1587 | wait(1) | |
1588 | end | |
1589 | RockExplosion(Rock,1.5) | |
1590 | end)) | |
1591 | for i=0, 1, 0.1 / Animation_Speed do | |
1592 | Swait() | |
1593 | ROCK2.CFrame = CF(LeftArm.CFrame*CF(0,-1-ROCK2.Size.Y/2,0).p,Mouse.Hit.p) | |
1594 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(35)), 1 / Animation_Speed) | |
1595 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-5)), 1 / Animation_Speed) | |
1596 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * ANGLES(RAD(55), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1597 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1598 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1599 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1600 | end | |
1601 | for i=0, 0.5, 0.1 / Animation_Speed do | |
1602 | Swait() | |
1603 | ROCK2.CFrame = CF(LeftArm.CFrame*CF(0,-1-ROCK2.Size.Y/2,0).p,Mouse.Hit.p) | |
1604 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(15)), 1 / Animation_Speed) | |
1605 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(5)), 1 / Animation_Speed) | |
1606 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1607 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1608 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1609 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1610 | end | |
1611 | coroutine.resume(coroutine.create(function() | |
1612 | local Rock = ROCK2 | |
1613 | WaveParticles(Rock.Position,30,C3(1,1,1)) | |
1614 | CreateSound(134012322, Rock, 2, MRANDOM(10,12)/10, false) | |
1615 | for i = 1, 200 do | |
1616 | Swait() | |
1617 | Rock.CFrame = Rock.CFrame * CF(0,0,-3.2) | |
1618 | local HIT = Raycast(Rock.Position, Rock.CFrame.lookVector, Rock.Size.X/2, Character) | |
1619 | if HIT then | |
1620 | RespondToImpact(HIT,Rock) | |
1621 | break | |
1622 | end | |
1623 | end | |
1624 | ApplyAoE(Rock.Position,ROCK.Size.Y,50,55,55,false) | |
1625 | for i = 1, 6 do | |
1626 | RockExplosion(Rock,1.5,true) | |
1627 | wait(1) | |
1628 | end | |
1629 | RockExplosion(Rock,1.5) | |
1630 | end)) | |
1631 | for i=0, 1, 0.1 / Animation_Speed do | |
1632 | Swait() | |
1633 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-35)), 1 / Animation_Speed) | |
1634 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(5)), 1 / Animation_Speed) | |
1635 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1636 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * ANGLES(RAD(55), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1637 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1638 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1639 | end | |
1640 | ATTACK = false | |
1641 | Rooted = false | |
1642 | end | |
1643 | end | |
1644 | ||
1645 | function Spikes() | |
1646 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 12, Character) | |
1647 | if HITFLOOR then | |
1648 | ATTACK = true | |
1649 | Rooted = true | |
1650 | local GYRO = IT("BodyGyro",RootPart) | |
1651 | GYRO.D = 2 | |
1652 | GYRO.P = 2000 | |
1653 | GYRO.MaxTorque = VT(0,4000000,0) | |
1654 | coroutine.resume(coroutine.create(function() | |
1655 | repeat | |
1656 | Swait() | |
1657 | GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p) | |
1658 | until ATTACK == false | |
1659 | GYRO:Remove() | |
1660 | end)) | |
1661 | for i=0, 1, 0.1 / Animation_Speed do | |
1662 | Swait() | |
1663 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1664 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1665 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(125), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
1666 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(125), RAD(0), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1667 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.35, -0.75) * ANGLES(RAD(30), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1668 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-30), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1669 | end | |
1670 | for i=0, 0.25, 0.1 / Animation_Speed do | |
1671 | Swait() | |
1672 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.4, -0.1) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1673 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1674 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1675 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1676 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.9, -0.6) * ANGLES(RAD(35), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1677 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.1, 0) * ANGLES(RAD(35), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1678 | end | |
1679 | CreateSound(165970126, RightLeg, 1, MRANDOM(13,15)/10, false) | |
1680 | WaveParticles(RightLeg.CFrame*CF(0,-1,0).p,15,C3(1,1,1)) | |
1681 | coroutine.resume(coroutine.create(function() | |
1682 | local CFRAME = RootPart.CFrame*CF(0,-3,0) | |
1683 | for i = 1, 60 do | |
1684 | Swait() | |
1685 | local SPIKE = GetSpike(HITFLOOR) | |
1686 | SPIKE.CFrame = CFRAME*CF(0,-11,-i*2) | |
1687 | ApplyAoE(CFRAME*CF(0,0,-i*2).p,4,10,35,15,false) | |
1688 | coroutine.resume(coroutine.create(function() | |
1689 | local POS = SPIKE.CFrame*CF(0,11,0) | |
1690 | for i = 1, 25 do | |
1691 | Swait() | |
1692 | SPIKE.CFrame = Clerp(SPIKE.CFrame, POS, 0.8 / Animation_Speed) | |
1693 | end | |
1694 | wait(0.2) | |
1695 | for i = 1, 45 do | |
1696 | Swait() | |
1697 | SPIKE.Transparency = SPIKE.Transparency + 1/45 | |
1698 | SPIKE.CFrame = SPIKE.CFrame * CF(0,-2/15,0) | |
1699 | end | |
1700 | SPIKE:remove() | |
1701 | end)) | |
1702 | end | |
1703 | end)) | |
1704 | wait(0.3) | |
1705 | ATTACK = false | |
1706 | Rooted = false | |
1707 | end | |
1708 | end | |
1709 | ||
1710 | function TakeOnMe() | |
1711 | Speed = 5 | |
1712 | local MEME = CreateSound(288703954, Effects, 2, 1, false) | |
1713 | ATTACK = true | |
1714 | Rooted = false | |
1715 | local DANCE = true | |
1716 | local KEY = Mouse.KeyDown:connect(function(NEWKEY) | |
1717 | if NEWKEY == "p" then | |
1718 | DANCE = false | |
1719 | end | |
1720 | end) | |
1721 | PLAYSONG = false | |
1722 | while true do | |
1723 | for i = 1, 15 do | |
1724 | Swait() | |
1725 | MEME.Parent = Effects | |
1726 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.4+((15-i)/45)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1727 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1728 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(-10)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1729 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.55, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1730 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.6, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1731 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, 0, -1) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1732 | end | |
1733 | if DANCE == false then | |
1734 | break | |
1735 | end | |
1736 | for i = 1, 15 do | |
1737 | Swait() | |
1738 | MEME.Parent = Effects | |
1739 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.4+((15-i)/45)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1740 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1741 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1742 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.55, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(10)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1743 | RightHip.C0 = Clerp(RightHip.C0, CF(1, 0, -1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1744 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.6, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1745 | end | |
1746 | end | |
1747 | PLAYSONG = true | |
1748 | KEY:Disconnect() | |
1749 | MEME:remove() | |
1750 | Speed = 25 | |
1751 | ATTACK = false | |
1752 | Rooted = false | |
1753 | end | |
1754 | ||
1755 | function Noclip() | |
1756 | ATTACK = true | |
1757 | Rooted = true | |
1758 | UNANCHOR = false | |
1759 | RootPart.Anchored = true | |
1760 | local CLIPPING = true | |
1761 | local MOVEMENT = nil | |
1762 | CreateSound(96098241, Torso, 3, MRANDOM(9,12)/10, false) | |
1763 | for i = 1, 50 do | |
1764 | Swait() | |
1765 | EXTRATRANS = EXTRATRANS + 0.5/50 | |
1766 | RootPart.CFrame = RootPart.CFrame * CF(0,(1-(i/50))/4.3,0) | |
1767 | 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) | |
1768 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1769 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1770 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1771 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1772 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1773 | end | |
1774 | local AURA = CreateSound(1393698948, Torso, 3, 1, true) | |
1775 | local KEY = Mouse.KeyDown:connect(function(NEWKEY) | |
1776 | if NEWKEY == "w" then | |
1777 | MOVEMENT = "Forward" | |
1778 | repeat | |
1779 | Swait() | |
1780 | RootPart.CFrame = RootPart.CFrame * CF(0,0,-0.2) | |
1781 | until KEYHOLD == false | |
1782 | elseif NEWKEY == "s" then | |
1783 | MOVEMENT = "Backwards" | |
1784 | repeat | |
1785 | Swait() | |
1786 | RootPart.CFrame = RootPart.CFrame * CF(0,0,0.2) | |
1787 | until KEYHOLD == false | |
1788 | elseif NEWKEY == "a" then | |
1789 | MOVEMENT = "Strafe" | |
1790 | repeat | |
1791 | Swait() | |
1792 | RootPart.CFrame = RootPart.CFrame * CF(0.2,0,0) | |
1793 | until KEYHOLD == false | |
1794 | elseif NEWKEY == "d" then | |
1795 | MOVEMENT = "Strafe" | |
1796 | repeat | |
1797 | Swait() | |
1798 | RootPart.CFrame = RootPart.CFrame * CF(-0.2,0,0) | |
1799 | until KEYHOLD == false | |
1800 | elseif NEWKEY == "y" then | |
1801 | CLIPPING = false | |
1802 | end | |
1803 | MOVEMENT = nil | |
1804 | end) | |
1805 | local LOOP = 0 | |
1806 | repeat | |
1807 | Swait() | |
1808 | AURA.Parent = Torso | |
1809 | LOOP = LOOP + 1 | |
1810 | if LOOP >= 15 then | |
1811 | LOOP = 0 | |
1812 | WaveParticles(Torso.Position,15,C3(1,1,1)) | |
1813 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(15,1,15), Transparency = 0.7, Transparency2 = 1, CFrame = CF(RootPart.CFrame*CF(0,-3.5,0).p), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1814 | end | |
1815 | if MOVEMENT == nil then | |
1816 | 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) | |
1817 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1818 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1819 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1820 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3 - 0.1 * SIN(SINE / 12), -0.6) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1821 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * SIN(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1822 | elseif MOVEMENT == "Forward" then | |
1823 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1824 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1825 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1826 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1827 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3 - 0.1 * SIN(SINE / 12), -0.6) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1828 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * SIN(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1829 | elseif MOVEMENT == "Backwards" then | |
1830 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1831 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1832 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1833 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1834 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3 - 0.1 * SIN(SINE / 12), -0.6) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1835 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * SIN(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1836 | elseif MOVEMENT == "Strafe" then | |
1837 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1838 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(10 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1839 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1840 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1841 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3 - 0.1 * SIN(SINE / 12), -0.6) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1842 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * SIN(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1843 | end | |
1844 | until CLIPPING == false | |
1845 | KEY:Disconnect() | |
1846 | coroutine.resume(coroutine.create(function() | |
1847 | for i = 1, 20 do | |
1848 | Swait() | |
1849 | AURA.Volume = AURA.Volume - 3/20 | |
1850 | end | |
1851 | AURA:remove() | |
1852 | end)) | |
1853 | CreateSound(814168787, Torso, 1, MRANDOM(9,12)/10, false) | |
1854 | for i = 1, 50 do | |
1855 | Swait() | |
1856 | EXTRATRANS = EXTRATRANS - 0.5/50 | |
1857 | RootPart.CFrame = RootPart.CFrame * CF(0,-(1-(i/50))/4.3,0) | |
1858 | 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) | |
1859 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1860 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1861 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1862 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1863 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1864 | end | |
1865 | EXTRATRANS = 0 | |
1866 | UNANCHOR = true | |
1867 | ATTACK = false | |
1868 | Rooted = false | |
1869 | end | |
1870 | ||
1871 | function Taunt() | |
1872 | ATTACK = true | |
1873 | Rooted = true | |
1874 | local TAUNT = CreateSound(159882635, Torso, 7, 1, false) | |
1875 | repeat | |
1876 | Swait() | |
1877 | TAUNT.Parent = Torso | |
1878 | TAUNT.Playing = true | |
1879 | 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) | |
1880 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(-0.02, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(25), RAD(0)), 1 / Animation_Speed) | |
1881 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1882 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1883 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1884 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1885 | until TAUNT.TimePosition >= 1.25 | |
1886 | for i=0, 1.6, 0.1 / Animation_Speed do | |
1887 | Swait() | |
1888 | TAUNT.Parent = Torso | |
1889 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(5)), 1 / Animation_Speed) | |
1890 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed) | |
1891 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1892 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1893 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1894 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1895 | end | |
1896 | ATTACK = false | |
1897 | Rooted = false | |
1898 | end | |
1899 | ||
1900 | --//=================================\\ | |
1901 | --|| ASSIGN THINGS TO KEYS | |
1902 | --\\=================================// | |
1903 | ||
1904 | function MouseDown(Mouse) | |
1905 | if ATTACK == false then | |
1906 | end | |
1907 | end | |
1908 | ||
1909 | function MouseUp(Mouse) | |
1910 | HOLD = false | |
1911 | end | |
1912 | ||
1913 | function KeyDown(Key) | |
1914 | KEYHOLD = true | |
1915 | if Key == "z" and ATTACK == false then | |
1916 | Bullet() | |
1917 | end | |
1918 | ||
1919 | if Key == "b" and ATTACK == false then | |
1920 | Melee() | |
1921 | end | |
1922 | ||
1923 | if Key == "c" and ATTACK == false then | |
1924 | Launch() | |
1925 | end | |
1926 | ||
1927 | if Key == "v" and ATTACK == false then | |
1928 | Ravage() | |
1929 | end | |
1930 | ||
1931 | if Key == "e" and ATTACK == false then | |
1932 | Shield() | |
1933 | end | |
1934 | ||
1935 | if Key == "q" and ATTACK == false then | |
1936 | Spikes() | |
1937 | end | |
1938 | ||
1939 | if Key == "x" and ATTACK == false then | |
1940 | TwinMeteor() | |
1941 | end | |
1942 | ||
1943 | if Key == "y" and ATTACK == false then | |
1944 | Noclip() | |
1945 | end | |
1946 | ||
1947 | if Key == "p" and ATTACK == false then | |
1948 | TakeOnMe() | |
1949 | end | |
1950 | ||
1951 | if Key == "t" and ATTACK == false then | |
1952 | Taunt() | |
1953 | end | |
1954 | ||
1955 | if Key == "]" and ATTACK == false then | |
1956 | if PLAYSONG == true then | |
1957 | PLAYSONG = false | |
1958 | else | |
1959 | PLAYSONG = true | |
1960 | end | |
1961 | end | |
1962 | end | |
1963 | ||
1964 | function KeyUp(Key) | |
1965 | KEYHOLD = false | |
1966 | end | |
1967 | ||
1968 | Mouse.Button1Down:connect(function(NEWKEY) | |
1969 | MouseDown(NEWKEY) | |
1970 | end) | |
1971 | Mouse.Button1Up:connect(function(NEWKEY) | |
1972 | MouseUp(NEWKEY) | |
1973 | end) | |
1974 | Mouse.KeyDown:connect(function(NEWKEY) | |
1975 | KeyDown(NEWKEY) | |
1976 | end) | |
1977 | Mouse.KeyUp:connect(function(NEWKEY) | |
1978 | KeyUp(NEWKEY) | |
1979 | end) | |
1980 | ||
1981 | --//=================================\\ | |
1982 | --\\=================================// | |
1983 | ||
1984 | function AntiTimeStop() | |
1985 | for _, c in pairs(Character:GetChildren()) do | |
1986 | if c:IsA("BasePart") and c ~= RootPart then | |
1987 | c.Anchored = false | |
1988 | end | |
1989 | end | |
1990 | if UNANCHOR == true then | |
1991 | RootPart.Anchored = false | |
1992 | else | |
1993 | RootPart.Anchored = true | |
1994 | end | |
1995 | end | |
1996 | ||
1997 | --//=================================\\ | |
1998 | --|| WRAP THE WHOLE SCRIPT UP | |
1999 | --\\=================================// | |
2000 | ||
2001 | Humanoid.Changed:connect(function(Jump) | |
2002 | if Jump == "Jump" and (Disable_Jump == true) then | |
2003 | Humanoid.Jump = false | |
2004 | end | |
2005 | end) | |
2006 | ||
2007 | while true do | |
2008 | Swait() | |
2009 | Head:ClearAllChildren() | |
2010 | script.Parent = WEAPONGUI | |
2011 | ANIMATE.Parent = nil | |
2012 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
2013 | v:Stop(); | |
2014 | end | |
2015 | if Character:FindFirstChildOfClass("Humanoid") == nil then | |
2016 | Humanoid = IT("Humanoid",Character) | |
2017 | end | |
2018 | SINE = SINE + CHANGE | |
2019 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
2020 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
2021 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
2022 | local WALKSPEEDVALUE = 4 | |
2023 | Neck.C1 = Clerp(Neck.C1, CF(0, 0, 0.03) * ANGLES(RAD(90), RAD(180), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(180)) , 1 / Animation_Speed) | |
2024 | if ANIM == "Walk" and TORSOVELOCITY > 1 and PLAYSONG == true then | |
2025 | 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) | |
2026 | 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) | |
2027 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2- 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(65 * COS(SINE / WALKSPEEDVALUE))), 0.5 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2028 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(65 * COS(SINE / WALKSPEEDVALUE))), 0.5 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2029 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) or PLAYSONG == false then | |
2030 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2031 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2032 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2033 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2034 | end | |
2035 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
2036 | ANIM = "Jump" | |
2037 | if ATTACK == false then | |
2038 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2039 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2040 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(25 + 10 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2041 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(-25 - 10 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2042 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.4, -0.6) * ANGLES(RAD(1), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2043 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2044 | end | |
2045 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
2046 | ANIM = "Fall" | |
2047 | if ATTACK == false then | |
2048 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2049 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2050 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(35 - 4 * COS(SINE / 6)), RAD(0), RAD(45 + 10 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2051 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(35 - 4 * COS(SINE / 6)), RAD(0), RAD(-45 - 10 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2052 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -0.7) * ANGLES(RAD(-25 + 5 * SIN(SINE / 12)), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2053 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8, -0.3) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2054 | end | |
2055 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
2056 | ANIM = "Idle" | |
2057 | if ATTACK == false then | |
2058 | 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) | |
2059 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2060 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2061 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2062 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2063 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2064 | end | |
2065 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
2066 | ANIM = "Walk" | |
2067 | if ATTACK == false then | |
2068 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2069 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, -0.025, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2070 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(50 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(-15), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2071 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-50 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(15), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2072 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2073 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2074 | end | |
2075 | end | |
2076 | for _, c in pairs(Character:GetChildren()) do | |
2077 | if c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then | |
2078 | c:remove() | |
2079 | end | |
2080 | end | |
2081 | AntiTimeStop() | |
2082 | Humanoid.MaxHealth = 10e10 | |
2083 | Humanoid.Health = 10e10 | |
2084 | if Rooted == false then | |
2085 | Disable_Jump = false | |
2086 | Humanoid.WalkSpeed = Speed | |
2087 | elseif Rooted == true then | |
2088 | Disable_Jump = true | |
2089 | Humanoid.WalkSpeed = 0 | |
2090 | end | |
2091 | for E = 1, #TAIL do | |
2092 | TAIL[E].C1 = Clerp(TAIL[E].C1,CF(0, 0, 0) * ANGLES(RAD(5-1 * SIN(SINE / 12)), RAD(-2 * COS(SINE / 24)), RAD(4 * SIN(SINE / 24))), 1 / Animation_Speed) | |
2093 | end | |
2094 | sick.SoundId = "rbxassetid://0" | |
2095 | sick.Looped = true | |
2096 | sick.Pitch = 1 | |
2097 | sick.Volume = 2 | |
2098 | sick.Parent = Effects | |
2099 | sick.Playing = PLAYSONG | |
2100 | Humanoid.PlatformStand = false | |
2101 | Humanoid.Name = "I am the god of earth" | |
2102 | refit() | |
2103 | if Character:FindFirstChild("Pants") == nil then | |
2104 | script.Pants:Clone().Parent = Character | |
2105 | end | |
2106 | if Character:FindFirstChild("Shirt") == nil then | |
2107 | script.Shirt:Clone().Parent = Character | |
2108 | end | |
2109 | for _, c in pairs(Character:GetChildren()) do | |
2110 | if c:IsA("BasePart") and ATTACK == false then | |
2111 | for _, e in pairs(c:GetChildren()) do | |
2112 | if e:IsA("ParticleEmitter") or e:IsA("BodyPosition") or e:IsA("BodyGyro") then | |
2113 | e:remove() | |
2114 | end | |
2115 | end | |
2116 | end | |
2117 | end | |
2118 | end | |
2119 | ||
2120 | --//=================================\\ | |
2121 | --\\=================================// | |
2122 | ||
2123 | ||
2124 | ||
2125 | ||
2126 | ||
2127 | --//====================================================\\-- | |
2128 | --|| END OF SCRIPT | |
2129 | --\\====================================================//-- |