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