SHOW:
|
|
- or go back to the newest paste.
1 | --https://github.com/Mokiros/roblox-FE-compatibility | |
2 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
3 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
4 | local RealPlayer = Player | |
5 | 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(),Button2Up=c(),Button2Down=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;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")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 typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u 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 rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},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")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end | |
6 | -- [[[ | |
7 | --000000[[====================================================================================\\ | |
8 | --000000[[ DEIVIS97 EDIT | |
9 | --000000[[====================================================================================// | |
10 | -- [[[ | |
11 | ||
12 | wait(0.2) | |
13 | ||
14 | ||
15 | ||
16 | Player = game:GetService("Players").LocalPlayer | |
17 | PlayerGui = Player.PlayerGui | |
18 | Cam = workspace.CurrentCamera | |
19 | Backpack = Player.Backpack | |
20 | Character = Player.Character | |
21 | Humanoid = Character.Humanoid | |
22 | Mouse = Player:GetMouse() | |
23 | RootPart = Character["HumanoidRootPart"] | |
24 | Torso = Character["Torso"] | |
25 | Head = Character["Head"] | |
26 | RightArm = Character["Right Arm"] | |
27 | LeftArm = Character["Left Arm"] | |
28 | RightLeg = Character["Right Leg"] | |
29 | LeftLeg = Character["Left Leg"] | |
30 | RootJoint = RootPart["RootJoint"] | |
31 | Neck = Torso["Neck"] | |
32 | RightShoulder = Torso["Right Shoulder"] | |
33 | LeftShoulder = Torso["Left Shoulder"] | |
34 | RightHip = Torso["Right Hip"] | |
35 | LeftHip = Torso["Left Hip"] | |
36 | Torso.Transparency = 1 | |
37 | local sick = Instance.new("Sound",Character) | |
38 | sick.SoundId = "rbxassetid://196739738" | |
39 | sick.Looped = true | |
40 | sick.Pitch = 1 | |
41 | sick.Volume = 10 | |
42 | sick:Play() | |
43 | ||
44 | IT = Instance.new | |
45 | CF = CFrame.new | |
46 | VT = Vector3.new | |
47 | RAD = math.rad | |
48 | C3 = Color3.new | |
49 | UD2 = UDim2.new | |
50 | BRICKC = BrickColor.new | |
51 | ANGLES = CFrame.Angles | |
52 | EULER = CFrame.fromEulerAnglesXYZ | |
53 | COS = math.cos | |
54 | ACOS = math.acos | |
55 | SIN = math.sin | |
56 | ASIN = math.asin | |
57 | ABS = math.abs | |
58 | MRANDOM = math.random | |
59 | FLOOR = math.floor | |
60 | ||
61 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
62 | local NEWMESH = IT(MESH) | |
63 | if MESH == "SpecialMesh" then | |
64 | NEWMESH.MeshType = MESHTYPE | |
65 | if MESHID ~= "nil" and MESHID ~= "" then | |
66 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
67 | end | |
68 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
69 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
70 | end | |
71 | end | |
72 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
73 | NEWMESH.Scale = SCALE | |
74 | NEWMESH.Parent = PARENT | |
75 | return NEWMESH | |
76 | end | |
77 | ||
78 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
79 | local NEWPART = IT("Part") | |
80 | NEWPART.formFactor = FORMFACTOR | |
81 | NEWPART.Reflectance = REFLECTANCE | |
82 | NEWPART.Transparency = TRANSPARENCY | |
83 | NEWPART.CanCollide = false | |
84 | NEWPART.Locked = true | |
85 | NEWPART.Anchored = true | |
86 | if ANCHOR == false then | |
87 | NEWPART.Anchored = false | |
88 | end | |
89 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
90 | NEWPART.Name = NAME | |
91 | NEWPART.Size = SIZE | |
92 | NEWPART.Position = Torso.Position | |
93 | NEWPART.Material = MATERIAL | |
94 | NEWPART:BreakJoints() | |
95 | NEWPART.Parent = PARENT | |
96 | return NEWPART | |
97 | end | |
98 | ||
99 | --//=================================\\ | |
100 | --|| CUSTOMIZATION | |
101 | --\\=================================// | |
102 | ||
103 | Class_Name = "Template" | |
104 | Weapon_Name = "Add-ons" | |
105 | ||
106 | Custom_Colors = { | |
107 | Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon. | |
108 | Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon. | |
109 | ||
110 | Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities. | |
111 | Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar. | |
112 | Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar. | |
113 | Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar. | |
114 | Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar. | |
115 | ||
116 | Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar. | |
117 | Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar. | |
118 | Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar. | |
119 | Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar. | |
120 | Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities. | |
121 | } | |
122 | ||
123 | ||
124 | Player_Size = 1 --Size of the player. | |
125 | Animation_Speed = 3 | |
126 | Animation_Speed2 = 1 | |
127 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
128 | ||
129 | local Speed = 16 | |
130 | local Effects2 = {} | |
131 | ||
132 | --//=================================\\ | |
133 | --|| END OF CUSTOMIZATION | |
134 | --\\=================================// | |
135 | ||
136 | local function weldBetween(a, b) | |
137 | local weldd = Instance.new("ManualWeld") | |
138 | weldd.Part0 = a | |
139 | weldd.Part1 = b | |
140 | weldd.C0 = CFrame.new() | |
141 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
142 | weldd.Parent = a | |
143 | return weldd | |
144 | end | |
145 | ||
146 | function createaccessory(attachmentpart,mesh,texture,scale,offset,color) | |
147 | local acs = Instance.new("Part") | |
148 | acs.CanCollide = false | |
149 | acs.Anchored = false | |
150 | acs.Size = Vector3.new(0,0,0) | |
151 | acs.CFrame = attachmentpart.CFrame | |
152 | acs.Parent = Character | |
153 | acs.BrickColor = color | |
154 | local meshs = Instance.new("SpecialMesh") | |
155 | meshs.MeshId = mesh | |
156 | meshs.TextureId = texture | |
157 | meshs.Parent = acs | |
158 | meshs.Scale = scale | |
159 | meshs.Offset = offset | |
160 | weldBetween(attachmentpart,acs) | |
161 | end | |
162 | ||
163 | function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE) | |
164 | if TYPE == "Gem" then | |
165 | local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0)) | |
166 | acs.Anchored = false | |
167 | acs.CanCollide = false | |
168 | acs.CFrame = PART.CFrame | |
169 | local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET) | |
170 | weldBetween(PART,acs) | |
171 | elseif TYPE == "Skull" then | |
172 | local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0)) | |
173 | acs.Anchored = false | |
174 | acs.CanCollide = false | |
175 | acs.CFrame = PART.CFrame | |
176 | local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET) | |
177 | weldBetween(PART,acs) | |
178 | elseif TYPE == "Eye" then | |
179 | local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0)) | |
180 | acs.Anchored = false | |
181 | acs.CanCollide = false | |
182 | acs.CFrame = PART.CFrame | |
183 | local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET) | |
184 | weldBetween(PART,acs) | |
185 | end | |
186 | end | |
187 | ||
188 | --//=================================\\ | |
189 | --|| USEFUL VALUES | |
190 | --\\=================================// | |
191 | ||
192 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
193 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
194 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
195 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
196 | local CHANGEDEFENSE = 0 | |
197 | local CHANGEDAMAGE = 0 | |
198 | local CHANGEMOVEMENT = 0 | |
199 | local ANIM = "Idle" | |
200 | local ATTACK = false | |
201 | local EQUIPPED = false | |
202 | local HOLD = false | |
203 | local COMBO = 1 | |
204 | local Rooted = false | |
205 | local SINE = 0 | |
206 | local KEYHOLD = false | |
207 | local CHANGE = 2 / Animation_Speed | |
208 | local WALKINGANIM = false | |
209 | local WALK = 0 | |
210 | local VALUE1 = false | |
211 | local VALUE2 = false | |
212 | local ROBLOXIDLEANIMATION = IT("Animation") | |
213 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
214 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
215 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
216 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
217 | WEAPONGUI.Name = "Weapon GUI" | |
218 | local Weapon = IT("Model") | |
219 | Weapon.Name = Weapon_Name | |
220 | local Effects = IT("Folder", Weapon) | |
221 | Effects.Name = "Effects" | |
222 | local ANIMATOR = Humanoid.Animator | |
223 | local ANIMATE = Character.Animate | |
224 | local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"} | |
225 | local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"} | |
226 | local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"} | |
227 | local HITBLOCKSOUNDS = {"199148933", "199148947"} | |
228 | local CASTSOUNDS = {"1369158","2974000","2974249"} | |
229 | local BOLTSOUNDS = {"821439273","224339201","168586586"} | |
230 | local TORNADOSOUND = "362395087" | |
231 | local UNANCHOR = true | |
232 | ||
233 | local SKILLTEXTCOLOR = C3(0,255,255) | |
234 | ||
235 | --//=================================\\ | |
236 | --\\=================================// | |
237 | ||
238 | ||
239 | --//=================================\\ | |
240 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
241 | --\\=================================// | |
242 | ||
243 | ArtificialHB = Instance.new("BindableEvent", script) | |
244 | ArtificialHB.Name = "ArtificialHB" | |
245 | ||
246 | script:WaitForChild("ArtificialHB") | |
247 | ||
248 | frame = Frame_Speed | |
249 | tf = 0 | |
250 | allowframeloss = false | |
251 | tossremainder = false | |
252 | lastframe = tick() | |
253 | script.ArtificialHB:Fire() | |
254 | ||
255 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
256 | tf = tf + s | |
257 | if tf >= frame then | |
258 | if allowframeloss then | |
259 | script.ArtificialHB:Fire() | |
260 | lastframe = tick() | |
261 | else | |
262 | for i = 1, math.floor(tf / frame) do | |
263 | script.ArtificialHB:Fire() | |
264 | end | |
265 | lastframe = tick() | |
266 | end | |
267 | if tossremainder then | |
268 | tf = 0 | |
269 | else | |
270 | tf = tf - frame * math.floor(tf / frame) | |
271 | end | |
272 | end | |
273 | end) | |
274 | ||
275 | --//=================================\\ | |
276 | --\\=================================// | |
277 | ||
278 | ||
279 | ||
280 | ||
281 | ||
282 | --//=================================\\ | |
283 | --|| SOME FUNCTIONS | |
284 | --\\=================================// | |
285 | ||
286 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
287 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
288 | end | |
289 | ||
290 | function PositiveAngle(NUMBER) | |
291 | if NUMBER >= 0 then | |
292 | NUMBER = 0 | |
293 | end | |
294 | return NUMBER | |
295 | end | |
296 | ||
297 | function NegativeAngle(NUMBER) | |
298 | if NUMBER <= 0 then | |
299 | NUMBER = 0 | |
300 | end | |
301 | return NUMBER | |
302 | end | |
303 | ||
304 | function Swait(NUMBER) | |
305 | if NUMBER == 0 or NUMBER == nil then | |
306 | ArtificialHB.Event:wait() | |
307 | else | |
308 | for i = 1, NUMBER do | |
309 | ArtificialHB.Event:wait() | |
310 | end | |
311 | end | |
312 | end | |
313 | ||
314 | function QuaternionFromCFrame(cf) | |
315 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
316 | local trace = m00 + m11 + m22 | |
317 | if trace > 0 then | |
318 | local s = math.sqrt(1 + trace) | |
319 | local recip = 0.5 / s | |
320 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
321 | else | |
322 | local i = 0 | |
323 | if m11 > m00 then | |
324 | i = 1 | |
325 | end | |
326 | if m22 > (i == 0 and m00 or m11) then | |
327 | i = 2 | |
328 | end | |
329 | if i == 0 then | |
330 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
331 | local recip = 0.5 / s | |
332 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
333 | elseif i == 1 then | |
334 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
335 | local recip = 0.5 / s | |
336 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
337 | elseif i == 2 then | |
338 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
339 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
340 | end | |
341 | end | |
342 | end | |
343 | ||
344 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
345 | local xs, ys, zs = x + x, y + y, z + z | |
346 | local wx, wy, wz = w * xs, w * ys, w * zs | |
347 | local xx = x * xs | |
348 | local xy = x * ys | |
349 | local xz = x * zs | |
350 | local yy = y * ys | |
351 | local yz = y * zs | |
352 | local zz = z * zs | |
353 | 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)) | |
354 | end | |
355 | ||
356 | function QuaternionSlerp(a, b, t) | |
357 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
358 | local startInterp, finishInterp; | |
359 | if cosTheta >= 0.0001 then | |
360 | if (1 - cosTheta) > 0.0001 then | |
361 | local theta = ACOS(cosTheta) | |
362 | local invSinTheta = 1 / SIN(theta) | |
363 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
364 | finishInterp = SIN(t * theta) * invSinTheta | |
365 | else | |
366 | startInterp = 1 - t | |
367 | finishInterp = t | |
368 | end | |
369 | else | |
370 | if (1 + cosTheta) > 0.0001 then | |
371 | local theta = ACOS(-cosTheta) | |
372 | local invSinTheta = 1 / SIN(theta) | |
373 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
374 | finishInterp = SIN(t * theta) * invSinTheta | |
375 | else | |
376 | startInterp = t - 1 | |
377 | finishInterp = t | |
378 | end | |
379 | end | |
380 | 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 | |
381 | end | |
382 | ||
383 | function Clerp(a, b, t) | |
384 | local qa = {QuaternionFromCFrame(a)} | |
385 | local qb = {QuaternionFromCFrame(b)} | |
386 | local ax, ay, az = a.x, a.y, a.z | |
387 | local bx, by, bz = b.x, b.y, b.z | |
388 | local _t = 1 - t | |
389 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
390 | end | |
391 | ||
392 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
393 | local frame = IT("Frame") | |
394 | frame.BackgroundTransparency = TRANSPARENCY | |
395 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
396 | frame.Position = POSITION | |
397 | frame.Size = SIZE | |
398 | frame.BackgroundColor3 = COLOR | |
399 | frame.BorderColor3 = BORDERCOLOR | |
400 | frame.Name = NAME | |
401 | frame.Parent = PARENT | |
402 | return frame | |
403 | end | |
404 | ||
405 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
406 | local label = IT("TextLabel") | |
407 | label.BackgroundTransparency = 1 | |
408 | label.Size = UD2(1, 0, 1, 0) | |
409 | label.Position = UD2(0, 0, 0, 0) | |
410 | label.TextColor3 = TEXTCOLOR | |
411 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
412 | label.TextTransparency = TRANSPARENCY | |
413 | label.FontSize = TEXTFONTSIZE | |
414 | label.Font = TEXTFONT | |
415 | label.BorderSizePixel = BORDERSIZEPIXEL | |
416 | label.TextScaled = false | |
417 | label.Text = TEXT | |
418 | label.Name = NAME | |
419 | label.Parent = PARENT | |
420 | return label | |
421 | end | |
422 | ||
423 | function NoOutlines(PART) | |
424 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
425 | end | |
426 | ||
427 | ||
428 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
429 | local NEWWELD = IT(TYPE) | |
430 | NEWWELD.Part0 = PART0 | |
431 | NEWWELD.Part1 = PART1 | |
432 | NEWWELD.C0 = C0 | |
433 | NEWWELD.C1 = C1 | |
434 | NEWWELD.Parent = PARENT | |
435 | return NEWWELD | |
436 | end | |
437 | ||
438 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
439 | local NEWSOUND = nil | |
440 | coroutine.resume(coroutine.create(function() | |
441 | NEWSOUND = IT("Sound", PARENT) | |
442 | NEWSOUND.Volume = VOLUME | |
443 | NEWSOUND.Pitch = PITCH | |
444 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
445 | NEWSOUND:play() | |
446 | game:GetService("Debris"):AddItem(NEWSOUND, 20) | |
447 | end)) | |
448 | return NEWSOUND | |
449 | end | |
450 | ||
451 | function CFrameFromTopBack(at, top, back) | |
452 | local right = top:Cross(back) | |
453 | 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) | |
454 | end | |
455 | ||
456 | function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW,TRANS) | |
457 | local wave = CreatePart(3, Effects, "Neon", 0, TRANS, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
458 | local mesh = IT("SpecialMesh",wave) | |
459 | mesh.MeshType = "FileMesh" | |
460 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
461 | mesh.Scale = SIZE | |
462 | mesh.Offset = VT(0,0,-SIZE.X/8) | |
463 | wave.CFrame = CFRAME | |
464 | coroutine.resume(coroutine.create(function(PART) | |
465 | for i = 1, WAIT do | |
466 | Swait() | |
467 | mesh.Scale = mesh.Scale + GROW | |
468 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
469 | if DOESROT == true then | |
470 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
471 | end | |
472 | wave.Transparency = wave.Transparency + ((1-TRANS)/WAIT) | |
473 | if wave.Transparency > 0.99 then | |
474 | wave:remove() | |
475 | end | |
476 | end | |
477 | end)) | |
478 | end | |
479 | ||
480 | function CreateCrown(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW,TRANS) | |
481 | local wave = CreatePart(3, Effects, "Neon", 0, TRANS, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
482 | local mesh = IT("SpecialMesh",wave) | |
483 | mesh.MeshType = "FileMesh" | |
484 | mesh.MeshId = "http://www.roblox.com/asset/?id=1078075" | |
485 | mesh.Scale = SIZE | |
486 | mesh.Offset = VT(0,0,-SIZE.X/8) | |
487 | wave.CFrame = CFRAME | |
488 | coroutine.resume(coroutine.create(function(PART) | |
489 | for i = 1, WAIT do | |
490 | Swait() | |
491 | mesh.Scale = mesh.Scale + GROW | |
492 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
493 | if DOESROT == true then | |
494 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
495 | end | |
496 | wave.Transparency = wave.Transparency + ((1-TRANS)/WAIT) | |
497 | if wave.Transparency > 0.99 then | |
498 | wave:remove() | |
499 | end | |
500 | end | |
501 | end)) | |
502 | end | |
503 | ||
504 | function CreateIceCrown(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW,TRANS) | |
505 | local wave = CreatePart(3, Effects, "Neon", 0, TRANS, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
506 | local mesh = IT("SpecialMesh",wave) | |
507 | mesh.MeshType = "FileMesh" | |
508 | mesh.MeshId = "http://www.roblox.com/asset/?id=1323306" | |
509 | mesh.Scale = SIZE | |
510 | mesh.Offset = VT(0,0,-SIZE.X/8) | |
511 | wave.CFrame = CFRAME | |
512 | coroutine.resume(coroutine.create(function(PART) | |
513 | for i = 1, WAIT do | |
514 | Swait() | |
515 | mesh.Scale = mesh.Scale + GROW | |
516 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
517 | if DOESROT == true then | |
518 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
519 | end | |
520 | wave.Transparency = wave.Transparency + ((1-TRANS)/WAIT) | |
521 | if wave.Transparency > 0.99 then | |
522 | wave:remove() | |
523 | end | |
524 | end | |
525 | end)) | |
526 | end | |
527 | ||
528 | function CreateSpikeball(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW,TRANS) | |
529 | local wave = CreatePart(3, Effects, "Neon", 0, TRANS, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
530 | local mesh = IT("SpecialMesh",wave) | |
531 | mesh.MeshType = "FileMesh" | |
532 | mesh.MeshId = "http://www.roblox.com/asset/?id=9982590" | |
533 | mesh.Scale = SIZE | |
534 | mesh.Offset = VT(0,0,-SIZE.X/8) | |
535 | wave.CFrame = CFRAME | |
536 | coroutine.resume(coroutine.create(function(PART) | |
537 | for i = 1, WAIT do | |
538 | Swait() | |
539 | mesh.Scale = mesh.Scale + GROW | |
540 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
541 | if DOESROT == true then | |
542 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
543 | end | |
544 | wave.Transparency = wave.Transparency + ((1-TRANS)/WAIT) | |
545 | if wave.Transparency > 0.99 then | |
546 | wave:remove() | |
547 | end | |
548 | end | |
549 | end)) | |
550 | end | |
551 | ||
552 | function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW,TRANS) | |
553 | local wave = CreatePart(3, Effects, "Neon", 0, TRANS, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
554 | local mesh = IT("SpecialMesh",wave) | |
555 | mesh.MeshType = "FileMesh" | |
556 | mesh.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
557 | mesh.Scale = SIZE | |
558 | wave.CFrame = CFRAME | |
559 | coroutine.resume(coroutine.create(function(PART) | |
560 | for i = 1, WAIT do | |
561 | Swait() | |
562 | mesh.Scale = mesh.Scale + GROW | |
563 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
564 | if DOESROT == true then | |
565 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
566 | end | |
567 | wave.Transparency = wave.Transparency + ((1-TRANS)/WAIT) | |
568 | if wave.Transparency > 0.99 then | |
569 | wave:remove() | |
570 | end | |
571 | end | |
572 | end)) | |
573 | end | |
574 | ||
575 | function CreateTornado(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW,TRANS) | |
576 | local wave = CreatePart(3, Effects, "Neon", 0, TRANS, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
577 | local mesh = IT("SpecialMesh",wave) | |
578 | mesh.MeshType = "FileMesh" | |
579 | mesh.MeshId = "http://www.roblox.com/asset/?id=102638417" | |
580 | mesh.Scale = SIZE | |
581 | wave.CFrame = CFRAME | |
582 | coroutine.resume(coroutine.create(function(PART) | |
583 | for i = 1, WAIT do | |
584 | Swait() | |
585 | mesh.Scale = mesh.Scale + GROW | |
586 | if DOESROT == true then | |
587 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
588 | end | |
589 | wave.Transparency = wave.Transparency + ((1-TRANS)/WAIT) | |
590 | if wave.Transparency > 0.99 then | |
591 | wave:remove() | |
592 | end | |
593 | end | |
594 | end)) | |
595 | end | |
596 | ||
597 | function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW,TRANS) | |
598 | local wave = CreatePart(3, Effects, "Neon", 0, TRANS, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
599 | local mesh = IT("SpecialMesh",wave) | |
600 | mesh.MeshType = "FileMesh" | |
601 | mesh.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
602 | mesh.Scale = SIZE | |
603 | mesh.Offset = VT(0,0,0) | |
604 | wave.CFrame = CFRAME | |
605 | coroutine.resume(coroutine.create(function(PART) | |
606 | for i = 1, WAIT do | |
607 | Swait() | |
608 | mesh.Scale = mesh.Scale + GROW | |
609 | if DOESROT == true then | |
610 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
611 | end | |
612 | wave.Transparency = wave.Transparency + ((1-TRANS)/WAIT) | |
613 | if wave.Transparency > 0.99 then | |
614 | wave:remove() | |
615 | end | |
616 | end | |
617 | end)) | |
618 | end | |
619 | ||
620 | function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW,TRANS) | |
621 | local wave = CreatePart(3, Effects, "Neon", 0, TRANS, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
622 | local mesh = IT("SpecialMesh",wave) | |
623 | mesh.MeshType = "Sphere" | |
624 | mesh.Scale = SIZE | |
625 | mesh.Offset = VT(0,0,0) | |
626 | wave.CFrame = CFRAME | |
627 | coroutine.resume(coroutine.create(function(PART) | |
628 | for i = 1, WAIT do | |
629 | Swait() | |
630 | mesh.Scale = mesh.Scale + GROW | |
631 | wave.Transparency = wave.Transparency + ((1-TRANS)/WAIT) | |
632 | if wave.Transparency > 0.99 then | |
633 | wave:remove() | |
634 | end | |
635 | end | |
636 | end)) | |
637 | end | |
638 | ||
639 | function MagicBlock(SIZE,WAIT,CFRAME,COLOR,GROW,TRANS) | |
640 | local wave = CreatePart(3, Effects, "Neon", 0, TRANS, BRICKC(COLOR), "Effect", VT(SIZE,SIZE,SIZE), true) | |
641 | wave.CFrame = CFRAME | |
642 | coroutine.resume(coroutine.create(function(PART) | |
643 | for i = 1, WAIT do | |
644 | Swait() | |
645 | wave.Size = wave.Size + GROW | |
646 | wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))) | |
647 | wave.Transparency = wave.Transparency + ((1-TRANS)/WAIT) | |
648 | if wave.Transparency > 0.99 then | |
649 | wave:remove() | |
650 | end | |
651 | end | |
652 | end)) | |
653 | end | |
654 | ||
655 | function MakeForm(PART,TYPE) | |
656 | if TYPE == "Cyl" then | |
657 | local MSH = IT("CylinderMesh",PART) | |
658 | elseif TYPE == "Ball" then | |
659 | local MSH = IT("SpecialMesh",PART) | |
660 | MSH.MeshType = "Sphere" | |
661 | elseif TYPE == "Wedge" then | |
662 | local MSH = IT("SpecialMesh",PART) | |
663 | MSH.MeshType = "Wedge" | |
664 | end | |
665 | end | |
666 | ||
667 | function CheckTableForString(Table, String) | |
668 | for i, v in pairs(Table) do | |
669 | if string.find(string.lower(String), string.lower(v)) then | |
670 | return true | |
671 | end | |
672 | end | |
673 | return false | |
674 | end | |
675 | ||
676 | function CheckIntangible(Hit) | |
677 | local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"} | |
678 | if Hit and Hit.Parent then | |
679 | if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then | |
680 | return true | |
681 | end | |
682 | end | |
683 | return false | |
684 | end | |
685 | ||
686 | Debris = game:GetService("Debris") | |
687 | ||
688 | function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit) | |
689 | local Direction = CFrame.new(StartPos, Vec).lookVector | |
690 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore}) | |
691 | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore) | |
692 | if RayHit and CheckIntangible(RayHit) then | |
693 | if DelayIfHit then | |
694 | wait() | |
695 | end | |
696 | RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit) | |
697 | end | |
698 | return RayHit, RayPos, RayNormal | |
699 | end | |
700 | ||
701 | function turnto(position) | |
702 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
703 | end | |
704 | ||
705 | --//=================================\\ | |
706 | --|| SPEECH | |
707 | --\\=================================// | |
708 | ||
709 | function chatfunc(text,waitt) | |
710 | local chat = coroutine.wrap(function() | |
711 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
712 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
713 | end | |
714 | local naeeym2 = Instance.new("BillboardGui",Character) | |
715 | naeeym2.Size = UDim2.new(0,100,0,40) | |
716 | naeeym2.StudsOffset = Vector3.new(0,5,0) | |
717 | naeeym2.Adornee = Character.Head | |
718 | naeeym2.Name = "TalkingBillBoard" | |
719 | naeeym2.AlwaysOnTop = true | |
720 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
721 | tecks2.BackgroundTransparency = 1 | |
722 | tecks2.BorderSizePixel = 0 | |
723 | tecks2.Text = "" | |
724 | tecks2.Font = "SciFi" | |
725 | tecks2.TextSize = 30 | |
726 | tecks2.TextStrokeTransparency = 1 | |
727 | tecks2.TextColor3 = SKILLTEXTCOLOR | |
728 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
729 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
730 | for i = 1,string.len(text),1 do | |
731 | tecks2.Text = string.sub(text,1,i) | |
732 | Swait() | |
733 | end | |
734 | wait(waitt) | |
735 | coroutine.resume(coroutine.create(function() | |
736 | for i = 1, 10 do | |
737 | tecks2.TextTransparency = tecks2.TextTransparency + 0.1 | |
738 | Swait() | |
739 | end | |
740 | naeeym2:Destroy() | |
741 | end)) | |
742 | end) | |
743 | chat() | |
744 | end | |
745 | ||
746 | --//=================================\\ | |
747 | --|| WEAPON CREATION | |
748 | --\\=================================// | |
749 | ||
750 | function CreateGauntlet(LIMB,ROT,OFFSET) | |
751 | local FIST = CreatePart(3, Weapon, "Granite", 0, 0, "Pearl", "01-Type", VT(1.025,2.025,1.025),false) | |
752 | local weld = CreateWeldOrSnapOrMotor("Weld", FIST, LIMB, FIST, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
753 | FIST.CanCollide = true | |
754 | local part = CreatePart(3, Weapon, "Metal", 0, 0, "Pearl", "02-Type", VT(1.075,0.25,1.075),false) | |
755 | local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(0, -1, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
756 | local part = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "03-Type", VT(1.1,0.15,1.1),false) | |
757 | local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(0, -1, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
758 | --ALL OF THE 04-- | |
759 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Pearl", "04-Type", VT(0.5,0.5,0.5),false) | |
760 | local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(OFFSET, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
761 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Pearl", "04-Type", VT(0.5,0.25,0.25),false) | |
762 | local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(OFFSET, -0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
763 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Pearl", "04-Type", VT(0.5,0.25,0.25),false) | |
764 | local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(OFFSET, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
765 | ||
766 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Pearl", "04-Type", VT(1.065,0.025,1.065),false) | |
767 | local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
768 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Pearl", "04-Type", VT(1.065,0.025,1.065),false) | |
769 | local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(0, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
770 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Pearl", "04-Type", VT(1.065,0.025,1.065),false) | |
771 | local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(0, -0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
772 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Pearl", "04-Type", VT(1.065,2.065,1.065),false) | |
773 | local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(-OFFSET/4, 0, 0) * ANGLES(RAD(0), RAD(90+ROT), RAD(180)), CF(0, 0, 0)) | |
774 | MakeForm(part,"Wedge") | |
775 | ----------------- | |
776 | local part = CreatePart(3, Weapon, "Metal", 0, 0, "Pearl", "02-Type", VT(0.55,0.45,0.45),false) | |
777 | local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(OFFSET, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
778 | local part = CreatePart(3, Weapon, "Metal", 0, 0, "Pearl", "02-Type", VT(0.55,0.2,0.2),false) | |
779 | local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(OFFSET, -0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
780 | local part = CreatePart(3, Weapon, "Metal", 0, 0, "Pearl", "02-Type", VT(0.55,0.2,0.2),false) | |
781 | local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(OFFSET, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
782 | ||
783 | local part = CreatePart(3, Weapon, "Granite", 0, 0, "Pearl", "01-Type", VT(1.075,2.075,1.075),false) | |
784 | local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(-OFFSET/3.5, 0, 0) * ANGLES(RAD(0), RAD(90+ROT), RAD(180)), CF(0, 0, 0)) | |
785 | MakeForm(part,"Wedge") | |
786 | local part = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "03-Type", VT(1.1,2.1,1.1),false) | |
787 | local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(-OFFSET/3, 0.1, 0) * ANGLES(RAD(0), RAD(90+ROT), RAD(180)), CF(0, 0, 0)) | |
788 | MakeForm(part,"Wedge") | |
789 | end | |
790 | ||
791 | CreateGauntlet(RightArm,180,0.3) | |
792 | CreateGauntlet(LeftArm,0,-0.3) | |
793 | CreateGauntlet(RightLeg,180,0.3) | |
794 | CreateGauntlet(LeftLeg,0,-0.3) | |
795 | ||
796 | function CreateTorso(LIMB,ROT,OFFSET) | |
797 | local FIST = CreatePart(3, Weapon, "Granite", 0, 0, "Pearl", "01-Type", VT(2,2,1),false) | |
798 | local weld = CreateWeldOrSnapOrMotor("Weld", FIST, LIMB, FIST, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
799 | FIST.CanCollide = true | |
800 | ||
801 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Pearl", "04-Type", VT(0.5,0.5,1.2),false) | |
802 | local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(0.01, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
803 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Pearl", "04-Type", VT(0.5,0.25,1.2),false) | |
804 | local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(0.01, -0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
805 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Pearl", "04-Type", VT(0.5,0.25,1.2),false) | |
806 | local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(0.01, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
807 | ||
808 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Pearl", "04-Type", VT(2.065,0.025,1.065),false) | |
809 | local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
810 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Pearl", "04-Type", VT(2.065,0.025,1.065),false) | |
811 | local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(0, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
812 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Pearl", "04-Type", VT(2.065,0.025,1.065),false) | |
813 | local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(0, -0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
814 | ----------------- | |
815 | local part = CreatePart(3, Weapon, "Metal", 0, 0, "Pearl", "02-Type", VT(1.25,0.45,0.45),false) | |
816 | local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(0.01, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0)) | |
817 | local part = CreatePart(3, Weapon, "Metal", 0, 0, "Pearl", "02-Type", VT(1.25,0.2,0.2),false) | |
818 | local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(0.01, -0.5, 0) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0)) | |
819 | local part = CreatePart(3, Weapon, "Metal", 0, 0, "Pearl", "02-Type", VT(1.25,0.2,0.2),false) | |
820 | local weld = CreateWeldOrSnapOrMotor("Weld", part, LIMB, part, CF(0.01, 0.5, 0) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0)) | |
821 | ||
822 | end | |
823 | ||
824 | CreateTorso(Torso,360,-0.3) | |
825 | ||
826 | ||
827 | for _, c in pairs(Weapon:GetChildren()) do | |
828 | if c.ClassName == "Part" then | |
829 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
830 | end | |
831 | end | |
832 | ||
833 | Weapon.Parent = Character | |
834 | ||
835 | Humanoid.Died:connect(function() | |
836 | ATTACK = true | |
837 | end) | |
838 | ||
839 | print(Class_Name.." loaded.") | |
840 | ||
841 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.23, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
842 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.50, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
843 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.93, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
844 | ||
845 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Turret cannon", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 1") | |
846 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[X] Shield pulse", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 2") | |
847 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[1-8] Switch stance", C3(255,0,0), 6, "SciFi", 0, 2, 1, "Text 3") | |
848 | ||
849 | --//=================================\\ | |
850 | --|| DAMAGE FUNCTIONS | |
851 | --\\=================================// | |
852 | ||
853 | function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR) | |
854 | local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT()) | |
855 | STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0)) | |
856 | local BODYGYRO = IT("BodyGyro", STATPART) | |
857 | local BODYPOSITION = IT("BodyPosition", STATPART) | |
858 | BODYPOSITION.P = 2000 | |
859 | BODYPOSITION.D = 100 | |
860 | BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge) | |
861 | BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2)) | |
862 | game:GetService("Debris"):AddItem(STATPART ,5) | |
863 | local BILLBOARDGUI = Instance.new("BillboardGui", STATPART) | |
864 | BILLBOARDGUI.Adornee = STATPART | |
865 | BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0) | |
866 | BILLBOARDGUI.StudsOffset = VT(-2, 2, 0) | |
867 | BILLBOARDGUI.AlwaysOnTop = true | |
868 | local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI) | |
869 | TEXTLABEL.BackgroundTransparency = 1 | |
870 | TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0) | |
871 | TEXTLABEL.Text = TEXT | |
872 | TEXTLABEL.Font = "SciFi" | |
873 | TEXTLABEL.FontSize="Size42" | |
874 | TEXTLABEL.TextColor3 = COLOR | |
875 | TEXTLABEL.TextStrokeTransparency = 1 | |
876 | TEXTLABEL.TextScaled = true | |
877 | TEXTLABEL.TextWrapped = true | |
878 | coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL) | |
879 | if LABELTYPE == "Normal" then | |
880 | for i = 1, 20 do | |
881 | Swait() | |
882 | STATPART.Position = STATPART.Position + VT(0, (10-i)/10 ,0) | |
883 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/20) | |
884 | end | |
885 | elseif LABELTYPE == "Debuff" then | |
886 | for i = 1, 20 do | |
887 | Swait() | |
888 | STATPART.Position = STATPART.Position - VT(0, i/10 ,0) | |
889 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/20) | |
890 | end | |
891 | elseif LABELTYPE == "Shock" then | |
892 | local ORIGIN = STATPART.Position | |
893 | for i = 1, 20 do | |
894 | Swait() | |
895 | STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2)) | |
896 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/20) | |
897 | end | |
898 | end | |
899 | THEPART.Parent = nil | |
900 | end),STATPART, BODYPOSITION, TEXTLABEL) | |
901 | end | |
902 | ||
903 | ||
904 | --//=================================\\ | |
905 | --|| DAMAGING | |
906 | --\\=================================// | |
907 | ||
908 | function dealdamage(hit,min,max,maxstrength,beserk,critrate,critmultiplier) | |
909 | if hit.Parent ~= Character and hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChild("HitBy"..Player.Name) == nil then | |
910 | local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid") | |
911 | local dmg = math.random(min,max) | |
912 | if humanoid.Health > 0 then | |
913 | if beserk == true then | |
914 | humanoid.Health = 0 | |
915 | else | |
916 | CreateSound("260430060", hit, 1.2, MRANDOM(7, 12) / 10) | |
917 | hit.Velocity = CFrame.new(Torso.Position,hit.Position).lookVector*5*maxstrength | |
918 | if math.random(1,100) < critrate+1 then | |
919 | humanoid.Health = humanoid.Health - dmg*critmultiplier | |
920 | StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0)) | |
921 | else | |
922 | humanoid.Health = humanoid.Health - dmg | |
923 | StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), dmg, C3(0, 0, 0)) | |
924 | end | |
925 | local defence = Instance.new("BoolValue",hit.Parent) | |
926 | defence.Name = ("HitBy"..Player.Name) | |
927 | game:GetService("Debris"):AddItem(defence, 0.1) | |
928 | end | |
929 | end | |
930 | end | |
931 | end | |
932 | ||
933 | function AoEWarp(position,radius) | |
934 | for i,v in ipairs(workspace:GetChildren()) do | |
935 | if v:FindFirstChild("HitBy"..Player.Name) == nil then | |
936 | local body = v:GetChildren() | |
937 | for part = 1, #body do | |
938 | if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
939 | if(body[part].Position - position).Magnitude < radius then | |
940 | if v.ClassName == "Model" then | |
941 | if v:FindFirstChild("Humanoid") then | |
942 | if v.Humanoid.Health ~= 0 then | |
943 | if body[part].Position.Y < position.Y+12 then | |
944 | print("Got "..v.Name) | |
945 | local defence = Instance.new("BoolValue",v) | |
946 | defence.Name = ("HitBy"..Player.Name) | |
947 | game:GetService("Debris"):AddItem(defence, 0.01) | |
948 | local TORSO = v:FindFirstChild("HumanoidRootPart") or v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso") | |
949 | Warp(TORSO) | |
950 | end | |
951 | end | |
952 | end | |
953 | end | |
954 | --body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength | |
955 | end | |
956 | end | |
957 | end | |
958 | end | |
959 | end | |
960 | end | |
961 | ||
962 | function AoEDamage(position,radius,min,max,maxstrength,beserk,critrate,critmultiplier,CanBeDodgedByJumping) | |
963 | local dmg = math.random(min,max) | |
964 | for i,v in ipairs(workspace:GetChildren()) do | |
965 | if v:FindFirstChild("HitBy"..Player.Name) == nil then | |
966 | local body = v:GetChildren() | |
967 | for part = 1, #body do | |
968 | if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
969 | if(body[part].Position - position).Magnitude < radius then | |
970 | if v.ClassName == "Model" then | |
971 | if v:FindFirstChild("Humanoid") then | |
972 | if v.Humanoid.Health ~= 0 then | |
973 | if CanBeDodgedByJumping == true then | |
974 | if body[part].Position.Y < position.Y+5 then | |
975 | if math.random(1,100) < critrate+1 then | |
976 | v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier | |
977 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0)) | |
978 | else | |
979 | v.Humanoid.Health = v.Humanoid.Health - dmg | |
980 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0)) | |
981 | end | |
982 | local defence = Instance.new("BoolValue",v) | |
983 | defence.Name = ("HitBy"..Player.Name) | |
984 | game:GetService("Debris"):AddItem(defence, 0.1) | |
985 | end | |
986 | else | |
987 | if beserk == true then | |
988 | v.Humanoid.Health = 0 | |
989 | end | |
990 | if math.random(1,100) < critrate+1 then | |
991 | v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier | |
992 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0)) | |
993 | else | |
994 | v.Humanoid.Health = v.Humanoid.Health - dmg | |
995 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0)) | |
996 | end | |
997 | local defence = Instance.new("BoolValue",v) | |
998 | defence.Name = ("HitBy"..Player.Name) | |
999 | game:GetService("Debris"):AddItem(defence, 0.1) | |
1000 | end | |
1001 | end | |
1002 | end | |
1003 | end | |
1004 | body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength | |
1005 | end | |
1006 | end | |
1007 | end | |
1008 | if v.ClassName == "Part" then | |
1009 | if v.Anchored == false and (v.Position - position).Magnitude < radius then | |
1010 | v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength | |
1011 | end | |
1012 | end | |
1013 | end | |
1014 | end | |
1015 | end | |
1016 | ||
1017 | function AoEStun(POS,RANGE,LAST,TYPE) | |
1018 | for i,v in ipairs(workspace:GetChildren()) do | |
1019 | if v:FindFirstChild("StunnedBy"..Player.Name) == nil then | |
1020 | local body = v:GetChildren() | |
1021 | for part = 1, #body do | |
1022 | if(v:FindFirstChild("StunnedBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
1023 | if(body[part].Position - POS).Magnitude < RANGE then | |
1024 | if v.ClassName == "Model" then | |
1025 | if v:FindFirstChild("Humanoid") then | |
1026 | if v.Humanoid.Health ~= 0 then | |
1027 | if TYPE == "Stun" then | |
1028 | Stun(v.Humanoid,LAST) | |
1029 | elseif TYPE == "Freeze" then | |
1030 | Freeze(v.Humanoid,LAST) | |
1031 | end | |
1032 | local defence = Instance.new("BoolValue",v) | |
1033 | defence.Name = ("StunnedBy"..Player.Name) | |
1034 | game:GetService("Debris"):AddItem(defence, 0.1) | |
1035 | end | |
1036 | end | |
1037 | end | |
1038 | end | |
1039 | end | |
1040 | end | |
1041 | end | |
1042 | end | |
1043 | end | |
1044 | ||
1045 | function Warp(Victim) | |
1046 | print("Warping "..Victim.Name.."...") | |
1047 | Victim.Anchored = true | |
1048 | coroutine.resume(coroutine.create(function() | |
1049 | local GUI,GUI2 = CreateGUICircle(Victim) | |
1050 | CreateSound("1208650519", Victim, 10, 1) | |
1051 | for i = 1, 200 do | |
1052 | Swait() | |
1053 | GUI.Size = GUI.Size + UDim2.new(0.1,0,0.1,0) | |
1054 | GUI2.Rotation = GUI2.Rotation + 2 | |
1055 | end | |
1056 | CastWarpOutlines(Victim.Parent) | |
1057 | Victim.CFrame = Victim.CFrame * CF(MRANDOM(-65,65),0,MRANDOM(-65,65)) | |
1058 | CreateSound("1177785010", Victim, 10, 1) | |
1059 | local HUMANOID = Victim.Parent:FindFirstChildOfClass("Humanoid") | |
1060 | if HUMANOID ~= nil then | |
1061 | local dmg = MRANDOM(75,95) | |
1062 | HUMANOID.Health = HUMANOID.Health - dmg | |
1063 | StatLabel("Normal", Victim.CFrame * CF(0, 0 + (Victim.Size.z - 1), 0), "WARPED/"..dmg, C3(0.3, 0, 0.3)) | |
1064 | end | |
1065 | for i = 1, 50 do | |
1066 | Swait() | |
1067 | GUI.Size = GUI.Size - UDim2.new(0.4,0,0.4,0) | |
1068 | GUI2.Rotation = GUI2.Rotation - 8 | |
1069 | end | |
1070 | Victim.Anchored = false | |
1071 | GUI:remove() | |
1072 | end)) | |
1073 | end | |
1074 | ||
1075 | function Stun(HUMANOID,LAST) | |
1076 | if HUMANOID.Parent:FindFirstChild("StunnedBy"..Player.Name) == nil then | |
1077 | HUMANOID.PlatformStand = true | |
1078 | local defence = Instance.new("BoolValue",HUMANOID.Parent) | |
1079 | defence.Name = ("StunnedBy"..Player.Name) | |
1080 | game:GetService("Debris"):AddItem(defence, LAST) | |
1081 | if HUMANOID.Parent:FindFirstChild("Head") then | |
1082 | StatLabel("Shock", HUMANOID.Parent.Head.CFrame * CF(0, 0 + (HUMANOID.Parent.Head.Size.z - 1), 0), "Stunned!", C3(0.3, 0.3, 0.3)) | |
1083 | end | |
1084 | coroutine.resume(coroutine.create(function() | |
1085 | Swait(LAST*100) | |
1086 | HUMANOID.PlatformStand = false | |
1087 | end)) | |
1088 | end | |
1089 | end | |
1090 | ||
1091 | function Freeze(HUMANOID,LAST) | |
1092 | if HUMANOID.Parent:FindFirstChild("StunnedBy"..Player.Name) == nil then | |
1093 | local q = HUMANOID.Parent:GetChildren() | |
1094 | for i = 1, #q do | |
1095 | local bob = q[i] | |
1096 | if bob.ClassName == "Part" or bob.ClassName == "MeshPart" then | |
1097 | if bob.Transparency < 1 then | |
1098 | bob.Anchored = true | |
1099 | local icelayer = bob:Clone() | |
1100 | icelayer.Parent = bob | |
1101 | icelayer.Material = "Ice" | |
1102 | icelayer.CanCollide = false | |
1103 | icelayer.BrickColor = BRICKC"Steel blue" | |
1104 | icelayer.Transparency = 0.5 | |
1105 | icelayer.CFrame = bob.CFrame | |
1106 | icelayer.Name = "Ice" | |
1107 | icelayer.Size = icelayer.Size + VT(0.1,0.1,0.1) | |
1108 | if icelayer:FindFirstChildOfClass("Decal") then | |
1109 | icelayer:FindFirstChildOfClass("Decal"):remove() | |
1110 | end | |
1111 | end | |
1112 | end | |
1113 | end | |
1114 | local defence = Instance.new("BoolValue",HUMANOID.Parent) | |
1115 | defence.Name = ("StunnedBy"..Player.Name) | |
1116 | game:GetService("Debris"):AddItem(defence, LAST) | |
1117 | if HUMANOID.Parent:FindFirstChild("Head") then | |
1118 | StatLabel("Normal", HUMANOID.Parent.Head.CFrame * CF(0, 0 + (HUMANOID.Parent.Head.Size.z - 1), 0), "Frozen!", C3(0.3, 0.3, 0.3)) | |
1119 | end | |
1120 | coroutine.resume(coroutine.create(function() | |
1121 | Swait(LAST*100) | |
1122 | local q = HUMANOID.Parent:GetChildren() | |
1123 | for i = 1, #q do | |
1124 | local bob = q[i] | |
1125 | if bob.ClassName == "Part" or bob.ClassName == "MeshPart" then | |
1126 | if bob.Transparency < 1 then | |
1127 | bob.Anchored = false | |
1128 | bob.Ice:remove() | |
1129 | end | |
1130 | end | |
1131 | end | |
1132 | end)) | |
1133 | end | |
1134 | end | |
1135 | ||
1136 | function killnearest(position,range,maxstrength) | |
1137 | for i,v in ipairs(workspace:GetChildren()) do | |
1138 | local body = v:GetChildren() | |
1139 | for part = 1, #body do | |
1140 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
1141 | if(body[part].Position - position).Magnitude < range then | |
1142 | table.insert(Effects2,{body[part],"Evaporate",0.005,2,2,2,2}) | |
1143 | body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength | |
1144 | end | |
1145 | end | |
1146 | end | |
1147 | if v.ClassName == "Part" then | |
1148 | if v.Anchored == false and (v.Position - position).Magnitude < range then | |
1149 | table.insert(Effects2,{v,"Evaporate",0.005,2,2,2,2}) | |
1150 | v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength | |
1151 | end | |
1152 | end | |
1153 | end | |
1154 | end | |
1155 | ||
1156 | --//=================================\\ | |
1157 | --|| ATTACK FUNCTIONS AND STUFF | |
1158 | --\\=================================// | |
1159 | ||
1160 | function Stance1() | |
1161 | VALUE1 = 1 | |
1162 | SKILL1TEXT.Text = "[Z] Turret cannon" | |
1163 | SKILL2TEXT.Text = "[X] Shield pulse" | |
1164 | sick.SoundId = "rbxassetid://196739738" | |
1165 | local wep = Weapon:GetChildren() | |
1166 | for part = 1, #wep do | |
1167 | if wep[part].ClassName == "Part" then | |
1168 | local P = wep[part] | |
1169 | if P.Name == "01-Type" then | |
1170 | P.Material = "Granite" | |
1171 | P.BrickColor = BRICKC"Pearl" | |
1172 | elseif P.Name == "02-Type" then | |
1173 | P.Material = "Metal" | |
1174 | P.BrickColor = BRICKC"Pearl" | |
1175 | elseif P.Name == "03-Type" then | |
1176 | P.Material = "Metal" | |
1177 | P.BrickColor = BRICKC"Really black" | |
1178 | elseif P.Name == "04-Type" then | |
1179 | P.Material = "Neon" | |
1180 | P.BrickColor = BRICKC"Pearl" | |
1181 | end | |
1182 | end | |
1183 | end | |
1184 | end | |
1185 | ||
1186 | function Stance2() | |
1187 | VALUE1 = 2 | |
1188 | SKILL1TEXT.Text = "[Z] Fireball" | |
1189 | SKILL2TEXT.Text = "[X] Fire field" | |
1190 | sick.SoundId = "rbxassetid://253050461" | |
1191 | local wep = Weapon:GetChildren() | |
1192 | for part = 1, #wep do | |
1193 | if wep[part].ClassName == "Part" then | |
1194 | local P = wep[part] | |
1195 | if P.Name == "01-Type" then | |
1196 | P.Material = "Granite" | |
1197 | P.BrickColor = BRICKC"Deep orange" | |
1198 | elseif P.Name == "02-Type" then | |
1199 | P.Material = "Metal" | |
1200 | P.BrickColor = BRICKC"Maroon" | |
1201 | elseif P.Name == "03-Type" then | |
1202 | P.Material = "Metal" | |
1203 | P.BrickColor = BRICKC"Really black" | |
1204 | elseif P.Name == "04-Type" then | |
1205 | P.Material = "Neon" | |
1206 | P.BrickColor = BRICKC"CGA brown" | |
1207 | end | |
1208 | end | |
1209 | end | |
1210 | end | |
1211 | ||
1212 | function Stance3() | |
1213 | VALUE1 = 3 | |
1214 | SKILL1TEXT.Text = "[Z] Icicle storm" | |
1215 | SKILL2TEXT.Text = "[X] Frost breath" | |
1216 | sick.SoundId = "rbxassetid://306681534" | |
1217 | local wep = Weapon:GetChildren() | |
1218 | for part = 1, #wep do | |
1219 | if wep[part].ClassName == "Part" then | |
1220 | local P = wep[part] | |
1221 | if P.Name == "01-Type" then | |
1222 | P.Material = "Marble" | |
1223 | P.BrickColor = BRICKC"Medium stone grey" | |
1224 | elseif P.Name == "02-Type" then | |
1225 | P.Material = "Neon" | |
1226 | P.BrickColor = BRICKC"Cyan" | |
1227 | elseif P.Name == "03-Type" then | |
1228 | P.Material = "Metal" | |
1229 | P.BrickColor = BRICKC"Cyan" | |
1230 | elseif P.Name == "04-Type" then | |
1231 | P.Material = "Ice" | |
1232 | P.BrickColor = BRICKC"Steel blue" | |
1233 | end | |
1234 | end | |
1235 | end | |
1236 | end | |
1237 | ||
1238 | function Stance4() | |
1239 | VALUE1 = 4 | |
1240 | SKILL1TEXT.Text = "[Z] Shriek" | |
1241 | SKILL2TEXT.Text = "[X] Bloodbath" | |
1242 | sick.SoundId = "rbxassetid://866334508" | |
1243 | local wep = Weapon:GetChildren() | |
1244 | for part = 1, #wep do | |
1245 | if wep[part].ClassName == "Part" then | |
1246 | local P = wep[part] | |
1247 | if P.Name == "01-Type" then | |
1248 | P.Material = "Cobblestone" | |
1249 | P.BrickColor = BRICKC"Really black" | |
1250 | elseif P.Name == "02-Type" then | |
1251 | P.Material = "Metal" | |
1252 | P.BrickColor = BRICKC"Maroon" | |
1253 | elseif P.Name == "03-Type" then | |
1254 | P.Material = "Metal" | |
1255 | P.BrickColor = BRICKC"Black" | |
1256 | elseif P.Name == "04-Type" then | |
1257 | P.Material = "Neon" | |
1258 | P.BrickColor = BRICKC"Really red" | |
1259 | end | |
1260 | end | |
1261 | end | |
1262 | end | |
1263 | ||
1264 | function Stance5() | |
1265 | VALUE1 = 5 | |
1266 | SKILL1TEXT.Text = "[Z] Rock throw" | |
1267 | SKILL2TEXT.Text = "[X] Earth tremor" | |
1268 | sick.SoundId = "rbxassetid://395520245" | |
1269 | local wep = Weapon:GetChildren() | |
1270 | for part = 1, #wep do | |
1271 | if wep[part].ClassName == "Part" then | |
1272 | local P = wep[part] | |
1273 | if P.Name == "01-Type" then | |
1274 | P.Material = "Cobblestone" | |
1275 | P.BrickColor = BRICKC"Rust" | |
1276 | elseif P.Name == "02-Type" then | |
1277 | P.Material = "Cobblestone" | |
1278 | P.BrickColor = BRICKC"CGA brown" | |
1279 | elseif P.Name == "03-Type" then | |
1280 | P.Material = "Marble" | |
1281 | P.BrickColor = BRICKC"Black" | |
1282 | elseif P.Name == "04-Type" then | |
1283 | P.Material = "Slate" | |
1284 | P.BrickColor = BRICKC"Pine cone" | |
1285 | end | |
1286 | end | |
1287 | end | |
1288 | end | |
1289 | ||
1290 | function Stance6() | |
1291 | VALUE1 = 6 | |
1292 | SKILL1TEXT.Text = "[Z] Radiant void" | |
1293 | SKILL2TEXT.Text = "[X] Void warp" | |
1294 | sick.SoundId = "rbxassetid://601021377" | |
1295 | local wep = Weapon:GetChildren() | |
1296 | for part = 1, #wep do | |
1297 | if wep[part].ClassName == "Part" then | |
1298 | local P = wep[part] | |
1299 | if P.Name == "01-Type" then | |
1300 | P.Material = "Granite" | |
1301 | P.BrickColor = BRICKC"Royal purple" | |
1302 | elseif P.Name == "02-Type" then | |
1303 | P.Material = "Slate" | |
1304 | P.BrickColor = BRICKC"Really black" | |
1305 | elseif P.Name == "03-Type" then | |
1306 | P.Material = "Metal" | |
1307 | P.BrickColor = BRICKC"Black" | |
1308 | elseif P.Name == "04-Type" then | |
1309 | P.Material = "Neon" | |
1310 | P.BrickColor = BRICKC"Royal purple" | |
1311 | end | |
1312 | end | |
1313 | end | |
1314 | end | |
1315 | ||
1316 | function Stance7() | |
1317 | VALUE1 = 7 | |
1318 | SKILL1TEXT.Text = "[Z] Divine glow" | |
1319 | SKILL2TEXT.Text = "[X] Divine evaporation" | |
1320 | sick.SoundId = "rbxassetid://965804171" | |
1321 | local wep = Weapon:GetChildren() | |
1322 | for part = 1, #wep do | |
1323 | if wep[part].ClassName == "Part" then | |
1324 | local P = wep[part] | |
1325 | if P.Name == "01-Type" then | |
1326 | P.Material = "Neon" | |
1327 | P.BrickColor = BRICKC"Stone grey" | |
1328 | elseif P.Name == "02-Type" then | |
1329 | P.Material = "Granite" | |
1330 | P.BrickColor = BRICKC"Gold" | |
1331 | elseif P.Name == "03-Type" then | |
1332 | P.Material = "Metal" | |
1333 | P.BrickColor = BRICKC"Gold" | |
1334 | elseif P.Name == "04-Type" then | |
1335 | P.Material = "Granite" | |
1336 | P.BrickColor = BRICKC"New Yeller" | |
1337 | end | |
1338 | end | |
1339 | end | |
1340 | end | |
1341 | ||
1342 | function Stance8() | |
1343 | VALUE1 = 8 | |
1344 | SKILL1TEXT.Text = "[Z] Leaf Storm" | |
1345 | SKILL2TEXT.Text = "[X] Leaf Field" | |
1346 | sick.SoundId = "rbxassetid://630020632" | |
1347 | local wep = Weapon:GetChildren() | |
1348 | for part = 1, #wep do | |
1349 | if wep[part].ClassName == "Part" then | |
1350 | local P = wep[part] | |
1351 | if P.Name == "01-Type" then | |
1352 | P.Material = "Granite" | |
1353 | P.BrickColor = BRICKC"1020" | |
1354 | elseif P.Name == "02-Type" then | |
1355 | P.Material = "Slate" | |
1356 | P.BrickColor = BRICKC"Really black" | |
1357 | elseif P.Name == "03-Type" then | |
1358 | P.Material = "Metal" | |
1359 | P.BrickColor = BRICKC"Shamrock" | |
1360 | elseif P.Name == "04-Type" then | |
1361 | P.Material = "Neon" | |
1362 | P.BrickColor = BRICKC"1020" | |
1363 | end | |
1364 | end | |
1365 | end | |
1366 | end | |
1367 | ||
1368 | function Stance9() | |
1369 | VALUE1 = 9 | |
1370 | SKILL1TEXT.Text = "[Z] Meteor" | |
1371 | SKILL2TEXT.Text = "[X] Selfexplosion" | |
1372 | sick.SoundId = "rbxassetid://1384301003" | |
1373 | local wep = Weapon:GetChildren() | |
1374 | for part = 1, #wep do | |
1375 | if wep[part].ClassName == "Part" then | |
1376 | local P = wep[part] | |
1377 | if P.Name == "01-Type" then | |
1378 | P.Material = "Granite" | |
1379 | P.BrickColor = BRICKC"Really black" | |
1380 | elseif P.Name == "02-Type" then | |
1381 | P.Material = "Neon" | |
1382 | P.BrickColor = BRICKC"Toothpaste" | |
1383 | elseif P.Name == "03-Type" then | |
1384 | P.Material = "Metal" | |
1385 | P.BrickColor = BRICKC"Really black" | |
1386 | elseif P.Name == "04-Type" then | |
1387 | P.Material = "Neon" | |
1388 | P.BrickColor = BRICKC"Toothpaste" | |
1389 | end | |
1390 | end | |
1391 | end | |
1392 | end | |
1393 | ||
1394 | ||
1395 | function createfireball(size,explosionsize,pos,velocity) | |
1396 | local FIREBALLCOLORS = {"Bright red", "Bright orange", "Bright yellow"} | |
1397 | local FIREBALLHITSOUNDS = {"522282998", "527535379", "304448425"} | |
1398 | local FIREBALL = IT("Part",Effects) | |
1399 | FIREBALL.Shape = "Ball" | |
1400 | FIREBALL.Size = VT(size,size,size) | |
1401 | FIREBALL.Material = "Neon" | |
1402 | FIREBALL.CFrame = CF(pos) | |
1403 | FIREBALL.Transparency = 1 | |
1404 | local bv = Instance.new("BodyVelocity") | |
1405 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1406 | bv.velocity = velocity | |
1407 | bv.Parent = FIREBALL | |
1408 | bv.Name = "MOVE" | |
1409 | local HIT = false | |
1410 | local harm = FIREBALL.Touched:Connect(function(hit) | |
1411 | if HIT == false and hit.Parent.ClassName ~= "Accessory" and hit.Parent ~= Character and hit.Parent ~= Weapon and hit.Parent ~= FIREBALL.Parent then | |
1412 | HIT = true | |
1413 | coroutine.resume(coroutine.create(function() | |
1414 | FIREBALL.Anchored = true | |
1415 | FIREBALL.CanCollide = false | |
1416 | CreateSound(FIREBALLHITSOUNDS[MRANDOM(1, #FIREBALLHITSOUNDS)], FIREBALL, 3, 1) | |
1417 | AoEDamage(FIREBALL.Position,explosionsize*2,45,65,25,false,3,2,false,true) | |
1418 | MagicSphere(VT(2,2,2),15,FIREBALL.CFrame,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)],VT(3,3,3),0) | |
1419 | MagicSphere(VT(2,2,2),15,FIREBALL.CFrame,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)],VT(3.5,3.5,3.5),0) | |
1420 | Swait(250) | |
1421 | FIREBALL:remove() | |
1422 | end)) | |
1423 | end | |
1424 | end) | |
1425 | coroutine.resume(coroutine.create(function() | |
1426 | repeat | |
1427 | Swait() | |
1428 | MagicSphere(VT(size,size,size),15,FIREBALL.CFrame,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)],VT(-size/15,-size/15,-size/15),0) | |
1429 | until HIT == true | |
1430 | end)) | |
1431 | return FIREBALL | |
1432 | end | |
1433 | ||
1434 | function AttackTemplate() | |
1435 | ATTACK = true | |
1436 | Rooted = false | |
1437 | for i=0, 1, 0.1 / Animation_Speed do | |
1438 | Swait() | |
1439 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1440 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1441 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1442 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1443 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1444 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1445 | end | |
1446 | ATTACK = false | |
1447 | Rooted = false | |
1448 | end | |
1449 | ||
1450 | local asd = Instance.new("ParticleEmitter") | |
1451 | asd.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0)) | |
1452 | asd.LightEmission = .1 | |
1453 | asd.Size = NumberSequence.new(0.2) | |
1454 | asd.Texture = "http://www.roblox.com/asset/?ID=291880914" | |
1455 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)}) | |
1456 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)}) | |
1457 | asd.Transparency = bbb | |
1458 | asd.Size = aaa | |
1459 | asd.ZOffset = .9 | |
1460 | asd.Acceleration = Vector3.new(0, -15, 0) | |
1461 | asd.LockedToPart = false | |
1462 | asd.EmissionDirection = "Back" | |
1463 | asd.Lifetime = NumberRange.new(1, 2) | |
1464 | asd.Rotation = NumberRange.new(-100, 100) | |
1465 | asd.RotSpeed = NumberRange.new(-100, 100) | |
1466 | asd.Speed = NumberRange.new(25,35) | |
1467 | asd.Enabled = false | |
1468 | asd.VelocitySpread = 15 | |
1469 | ||
1470 | function getbloody(victim,amount) | |
1471 | local PART = IT("Part",Effects) | |
1472 | PART.Transparency = 1 | |
1473 | PART.Size = victim.Size | |
1474 | PART.Anchored = true | |
1475 | PART.CanCollide = false | |
1476 | PART.CFrame = CF(victim.Position,Torso.Position) | |
1477 | local HITPLAYERSOUNDS = {"356551938","264486467"} | |
1478 | Debris:AddItem(PART,5) | |
1479 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
1480 | local prtcl = asd:Clone() | |
1481 | prtcl.Parent = PART | |
1482 | prtcl:Emit(amount*10) | |
1483 | end | |
1484 | ||
1485 | function CreateMagicCircle() | |
1486 | local sinkhole = IT("Part") | |
1487 | sinkhole.Size = VT(0,0,0) | |
1488 | sinkhole.Parent = Effects | |
1489 | sinkhole.Material = "Neon" | |
1490 | sinkhole.Color = C3(0,0,0) | |
1491 | sinkhole.Anchored = true | |
1492 | sinkhole.CanCollide = false | |
1493 | sinkhole.Transparency = 1 | |
1494 | local decal = IT("Decal",sinkhole) | |
1495 | decal.Face = "Top" | |
1496 | decal.Texture = "http://www.roblox.com/asset/?id=1260793696" | |
1497 | local decal2 = IT("Decal",sinkhole) | |
1498 | decal2.Face = "Bottom" | |
1499 | decal2.Texture = "http://www.roblox.com/asset/?id=1260793696" | |
1500 | return sinkhole | |
1501 | end | |
1502 | ||
1503 | function CreateLeafMagicCircle() | |
1504 | local sinkhole = IT("Part") | |
1505 | sinkhole.Size = VT(0,0,0) | |
1506 | sinkhole.Parent = Effects | |
1507 | sinkhole.Material = "Neon" | |
1508 | sinkhole.Color = C3(0,0,0) | |
1509 | sinkhole.Anchored = true | |
1510 | sinkhole.CanCollide = false | |
1511 | sinkhole.Transparency = 1 | |
1512 | local decal = IT("Decal",sinkhole) | |
1513 | decal.Face = "Top" | |
1514 | decal.Texture = "http://www.roblox.com/asset/?id=332014171" | |
1515 | local decal2 = IT("Decal",sinkhole) | |
1516 | decal2.Face = "Bottom" | |
1517 | decal2.Texture = "http://www.roblox.com/asset/?id=332014171" | |
1518 | return sinkhole | |
1519 | end | |
1520 | ||
1521 | function CreateGUICircle(TARGET) | |
1522 | local GUI = Instance.new("BillboardGui",Character) | |
1523 | GUI.Size = UDim2.new(0,0,0,0) | |
1524 | GUI.Adornee = TARGET | |
1525 | local GUI2 = IT("ImageLabel",GUI) | |
1526 | GUI2.BackgroundTransparency = 1 | |
1527 | GUI2.BorderSizePixel = 0 | |
1528 | GUI2.Size = UDim2.new(1,0,1,0) | |
1529 | GUI2.SizeConstraint = "RelativeYY" | |
1530 | GUI.AlwaysOnTop = true | |
1531 | GUI2.Image = "http://www.roblox.com/asset/?id=1260793696" | |
1532 | return GUI,GUI2 | |
1533 | end | |
1534 | ||
1535 | function CastWarpOutlines(TARGET) | |
1536 | coroutine.resume(coroutine.create(function() | |
1537 | local T = TARGET:GetChildren() | |
1538 | for i = 1, # T do | |
1539 | local child = T[i] | |
1540 | if child.ClassName == "Part" or child.ClassName == "MeshPart" then | |
1541 | local clone = child:Clone() | |
1542 | clone.Parent = Effects | |
1543 | clone.Anchored = true | |
1544 | clone.CanCollide = false | |
1545 | clone:ClearAllChildren() | |
1546 | clone.CFrame = child.CFrame | |
1547 | if clone.Name == "Head" then | |
1548 | if TARGET:FindFirstChildOfClass("MeshPart") == nil then | |
1549 | clone.Size = VT(clone.Size.Y,clone.Size.Y,clone.Size.Y) | |
1550 | end | |
1551 | end | |
1552 | if clone.ClassName == "MeshPart" then | |
1553 | clone.TextureID = "" | |
1554 | end | |
1555 | clone.BrickColor = BRICKC"Black" | |
1556 | clone.Material = "Neon" | |
1557 | coroutine.resume(coroutine.create(function() | |
1558 | for i = 1, 200 do | |
1559 | Swait() | |
1560 | clone.Transparency = clone.Transparency + 0.005 | |
1561 | clone.Size = clone.Size + VT(0.001,0.001,0.001) | |
1562 | end | |
1563 | clone:remove() | |
1564 | end)) | |
1565 | end | |
1566 | end | |
1567 | end)) | |
1568 | end | |
1569 | ||
1570 | --Z MOVES-- | |
1571 | ||
1572 | function TurretCannon() | |
1573 | ATTACK = true | |
1574 | Rooted = false | |
1575 | for i=0, 2, 0.1 / Animation_Speed do | |
1576 | Swait() | |
1577 | turnto(Mouse.Hit.p) | |
1578 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1579 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1580 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1581 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1582 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1583 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1584 | end | |
1585 | Rooted = true | |
1586 | local TURRETS = {RightArm,LeftArm} | |
1587 | local soundeffect = IT("Sound",Torso) | |
1588 | soundeffect.SoundId = "rbxassetid://337638956" | |
1589 | soundeffect.Looped = true | |
1590 | soundeffect.Volume = 1 | |
1591 | soundeffect.Playing = true | |
1592 | repeat | |
1593 | Swait() | |
1594 | turnto(Mouse.Hit.p) | |
1595 | local TURRET = TURRETS[MRANDOM(1,#TURRETS)] | |
1596 | MagicSphere(VT(0,0,0),7,TURRET.CFrame*CF(0,-1,0),"New Yeller",VT(0.3,0.3,0.3),0) | |
1597 | local BULLET = CreatePart(3, Effects, "Neon", 0, 0, "New Yeller", "Bullet", VT(0.2*Player_Size,0.2*Player_Size,4*Player_Size),false) | |
1598 | BULLET.CFrame = CF(TURRET.CFrame*CF(0,-2,0).p,Mouse.Hit.p) | |
1599 | local bv = Instance.new("BodyVelocity") | |
1600 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1601 | bv.velocity = CF(TURRET.Position,Mouse.Hit.p).lookVector*300 | |
1602 | bv.Parent = BULLET | |
1603 | bv.Name = "PROJECTILEVELOCITY" | |
1604 | MakeForm(BULLET,"Ball") | |
1605 | local BOO = BULLET.Touched:Connect(function(hit) | |
1606 | dealdamage(hit,5,8,5,false,2,3) | |
1607 | end) | |
1608 | table.insert(Effects2,{BULLET,"Disappear",0.02,1,0,0,2}) | |
1609 | until KEYHOLD == false | |
1610 | soundeffect:remove() | |
1611 | ATTACK = false | |
1612 | Rooted = false | |
1613 | end | |
1614 | ||
1615 | function Meteor() | |
1616 | ATTACK = true | |
1617 | Rooted = false | |
1618 | for i=0, 2, 0.1 / Animation_Speed do | |
1619 | Swait() | |
1620 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.15 / Animation_Speed) | |
1621 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.15 / Animation_Speed) | |
1622 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(160), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1623 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1624 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1625 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1626 | end | |
1627 | local ROCK = IT("Part",Effects) | |
1628 | ROCK.CFrame = RightArm.CFrame * CF(0,-1.3,0) | |
1629 | ROCK.Size = VT(25,25,25) | |
1630 | ROCK.Material = "Neon" | |
1631 | ROCK.Transparency = 1 | |
1632 | ROCK.BrickColor = BRICKC"Crimson" | |
1633 | local WELD = weldBetween(RightArm,ROCK) | |
1634 | ROCK.CanCollide = false | |
1635 | for i = 1, 10 do | |
1636 | Swait() | |
1637 | ROCK.Transparency = ROCK.Transparency - 0.1 | |
1638 | end | |
1639 | for i=0, 0.2, 0.1 / Animation_Speed do | |
1640 | Swait() | |
1641 | turnto(Mouse.Hit.p) | |
1642 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0.2, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(25)), 0.5 / Animation_Speed) | |
1643 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-5)), 0.5 / Animation_Speed) | |
1644 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1645 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1646 | 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) | |
1647 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1648 | end | |
1649 | WELD:remove() | |
1650 | coroutine.resume(coroutine.create(function() | |
1651 | local POS = ROCK.Position | |
1652 | ROCK.Anchored = true | |
1653 | local onefourth = POS:Lerp(Mouse.Hit.p, 0.25) + Vector3.new(0, math.random(25, 55),0) | |
1654 | local threefourths = POS:Lerp(Mouse.Hit.p, 0.75) + Vector3.new(0, math.random(25, 55),0) | |
1655 | for i = 0, 1, 0.07 do | |
1656 | Swait() | |
1657 | ROCK.CFrame = CFrame.new(newBezier(POS, onefourth, threefourths, Mouse.Hit.p, i)) | |
1658 | end | |
1659 | ROCK.Anchored = false | |
1660 | ROCK.CanCollide = true | |
1661 | CreateWave(VT(40,40,40),25,CF(ROCK.Position),false,0,"Really black",VT(60,60,60),0.5) | |
1662 | AoEDamage(ROCK.Position,9999,9999,9999,9999,false,12,3,true) | |
1663 | Swait(500) | |
1664 | ROCK.Anchored = true | |
1665 | ROCK.CanCollide = false | |
1666 | for i = 1, 10 do | |
1667 | Swait() | |
1668 | ROCK.Transparency = ROCK.Transparency + 0.5 | |
1669 | end | |
1670 | ROCK:remove() | |
1671 | end)) | |
1672 | for i=0, 1.6, 0.1 / Animation_Speed do | |
1673 | Swait() | |
1674 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0.2, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(25)), 0.5 / Animation_Speed) | |
1675 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-5)), 0.5 / Animation_Speed) | |
1676 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1677 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1678 | 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) | |
1679 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1680 | end | |
1681 | ATTACK = false | |
1682 | Rooted = false | |
1683 | end | |
1684 | ||
1685 | function Fireball() | |
1686 | ATTACK = true | |
1687 | Rooted = true | |
1688 | local FIREBALLCOLORS = {"Bright red", "Bright orange", "Bright yellow"} | |
1689 | CreateSound("169445572", RightArm, 2, 1.6) | |
1690 | for i=0, 5, 0.1 / Animation_Speed2 do | |
1691 | Swait() | |
1692 | MagicSphere(VT(2,2,2),35,RightArm.CFrame*CF(0,-1,0),FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)],VT(-2/35,-2/35,-2/35),0.6) | |
1693 | turnto(Mouse.Hit.p) | |
1694 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.4 / Animation_Speed2) | |
1695 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(-75)), 0.2 / Animation_Speed2) | |
1696 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(140)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed2) | |
1697 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(25), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2) | |
1698 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed2) | |
1699 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed2) | |
1700 | end | |
1701 | local aimpos = Mouse.Hit.p | |
1702 | createfireball(2,8,RightArm.CFrame * CF(0,-2,0).p,CF(RightArm.CFrame * CF(0,-2,0).p,aimpos).lookVector*100) | |
1703 | for i=0, 1.5, 0.1 / Animation_Speed2 do | |
1704 | Swait() | |
1705 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-15)), 0.4 / Animation_Speed2) | |
1706 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(10)), 0.2 / Animation_Speed2) | |
1707 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed2) | |
1708 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(25), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2) | |
1709 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed2) | |
1710 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed2) | |
1711 | end | |
1712 | ATTACK = false | |
1713 | Rooted = false | |
1714 | end | |
1715 | ||
1716 | function IcicleStorm() | |
1717 | ATTACK = true | |
1718 | Rooted = false | |
1719 | local BulletHolder = IT("Folder",Weapon) | |
1720 | BulletHolder.Name = "Bullets" | |
1721 | game:GetService("Debris"):AddItem(BulletHolder, 30) | |
1722 | for i=0, 3, 0.1 / Animation_Speed do | |
1723 | Swait() | |
1724 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1725 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1726 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1727 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1728 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1729 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1730 | end | |
1731 | CreateSound("333476017", Torso, 10, 1) | |
1732 | for i = 1, 25 do | |
1733 | Swait() | |
1734 | RootPart.CFrame = CF(RootPart.Position,Mouse.Hit.p) | |
1735 | coroutine.resume(coroutine.create(function() | |
1736 | local gem = IT("Part",BulletHolder) | |
1737 | gem.Size = VT(0.2,0.2,0.2) | |
1738 | gem.CFrame = Torso.CFrame * CF(math.random(-25,25),math.random(25,50),math.random(-25,25)) | |
1739 | gem.Anchored = true | |
1740 | gem.BrickColor = BRICKC"Steel blue" | |
1741 | local Cys = Instance.new("SpecialMesh", gem) | |
1742 | Cys.MeshType = "FileMesh" | |
1743 | Cys.MeshId = "rbxassetid://9756362" | |
1744 | Cys.Scale = Vector3.new(2,2,2) | |
1745 | end)) | |
1746 | end | |
1747 | local IceHitSounds = { | |
1748 | "338594737", | |
1749 | "338594687", | |
1750 | "338594666", | |
1751 | "338594648", | |
1752 | "338594606", | |
1753 | "338594574", | |
1754 | "338594556", | |
1755 | "338594524", | |
1756 | "338594467" | |
1757 | } | |
1758 | coroutine.resume(coroutine.create(function() | |
1759 | q = BulletHolder:GetChildren() | |
1760 | for i = 1, #q do | |
1761 | Swait() | |
1762 | turnto(Mouse.Hit.p) | |
1763 | local bullet = q[i] | |
1764 | local bv = Instance.new("BodyVelocity") | |
1765 | bullet.Mesh.Scale = VT(2,2,5) | |
1766 | bullet.CFrame = CF(bullet.Position,Mouse.Hit.p) | |
1767 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1768 | bv.velocity = CF(bullet.Position,Mouse.Hit.p).lookVector*500 | |
1769 | bv.Parent = bullet | |
1770 | bv.Name = "DASH" | |
1771 | bullet.Anchored = false | |
1772 | local paw = bullet.Touched:Connect(function(hit) | |
1773 | if bullet.Anchored == false then | |
1774 | CreateSound(IceHitSounds[math.random(1, #IceHitSounds)], bullet, 3, 1) | |
1775 | local cframe = bullet.CFrame | |
1776 | bullet.Anchored = true | |
1777 | table.insert(Effects2,{bullet,"Block1",0.015,0,0,0,2}) | |
1778 | AoEDamage(bullet.Position,5,15,15,0,false,5,3,false) | |
1779 | if MRANDOM(1,45) == 1 then | |
1780 | AoEStun(bullet.Position,5,5,"Freeze") | |
1781 | end | |
1782 | end | |
1783 | end) | |
1784 | end | |
1785 | end)) | |
1786 | ATTACK = false | |
1787 | Rooted = false | |
1788 | end | |
1789 | ||
1790 | function Shriek() | |
1791 | ATTACK = true | |
1792 | Rooted = false | |
1793 | for i=0, 1, 0.1 / Animation_Speed do | |
1794 | Swait() | |
1795 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2) * ANGLES(RAD(10), RAD(0), RAD(20)), 0.4 / Animation_Speed) | |
1796 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(10), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1797 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.45, 0.5, -1) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
1798 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.2, -0.5) * ANGLES(RAD(25), RAD(0), RAD(55)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
1799 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8, -0.2) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(15)), 0.4 / Animation_Speed) | |
1800 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 , -0.8, -0.2) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.4 / Animation_Speed) | |
1801 | end | |
1802 | Rooted = true | |
1803 | CreateSound("439369949", Effects, 10, 1) | |
1804 | for i=0, 3, 0.1 / Animation_Speed do | |
1805 | Swait() | |
1806 | MagicSphere(VT(2,2,2),5,Head.CFrame,"Pearl",VT(35,35,35),0.97) | |
1807 | AoEDamage(Head.Position,65,3,5,4,false,12,3,false) | |
1808 | AoEStun(Head.Position,65,2,"Stun") | |
1809 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2) * ANGLES(RAD(10), RAD(0), RAD(-30)), 1 / Animation_Speed) | |
1810 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)),1 / Animation_Speed) | |
1811 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1812 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1813 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8, -0.2) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(5)), 1 / Animation_Speed) | |
1814 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8, -0.2) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-15)), 1 / Animation_Speed) | |
1815 | end | |
1816 | ATTACK = false | |
1817 | Rooted = false | |
1818 | end | |
1819 | ||
1820 | function clerp(a, b, t) | |
1821 | return a:lerp(b, t) | |
1822 | end | |
1823 | ||
1824 | function newBezier(startpos, pos2, pos3, endpos, t) | |
1825 | local A = clerp(startpos, pos2, t) | |
1826 | local B = clerp(pos2, pos3, t) | |
1827 | local C = clerp(pos3, endpos, t) | |
1828 | local lerp1 = clerp(A, B, t) | |
1829 | local lerp2 = clerp(B, C, t) | |
1830 | local cubic = clerp(lerp1, lerp2, t) | |
1831 | return cubic | |
1832 | end | |
1833 | ||
1834 | function RockThrow() | |
1835 | ATTACK = true | |
1836 | Rooted = false | |
1837 | for i=0, 2, 0.1 / Animation_Speed do | |
1838 | Swait() | |
1839 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.15 / Animation_Speed) | |
1840 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.15 / Animation_Speed) | |
1841 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(160), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1842 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1843 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1844 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1845 | end | |
1846 | local ROCK = IT("Part",Effects) | |
1847 | ROCK.CFrame = RightArm.CFrame * CF(0,-1.3,0) | |
1848 | ROCK.Size = VT(1.2,1.2,1.2) | |
1849 | ROCK.Material = "Cobblestone" | |
1850 | ROCK.Transparency = 1 | |
1851 | ROCK.BrickColor = BRICKC"Pine Cone" | |
1852 | local WELD = weldBetween(RightArm,ROCK) | |
1853 | ROCK.CanCollide = false | |
1854 | for i = 1, 10 do | |
1855 | Swait() | |
1856 | ROCK.Transparency = ROCK.Transparency - 0.1 | |
1857 | end | |
1858 | for i=0, 0.2, 0.1 / Animation_Speed do | |
1859 | Swait() | |
1860 | turnto(Mouse.Hit.p) | |
1861 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0.2, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(25)), 0.5 / Animation_Speed) | |
1862 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-5)), 0.5 / Animation_Speed) | |
1863 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1864 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1865 | 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) | |
1866 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1867 | end | |
1868 | WELD:remove() | |
1869 | coroutine.resume(coroutine.create(function() | |
1870 | local POS = ROCK.Position | |
1871 | ROCK.Anchored = true | |
1872 | local onefourth = POS:Lerp(Mouse.Hit.p, 0.25) + Vector3.new(0, math.random(25, 55),0) | |
1873 | local threefourths = POS:Lerp(Mouse.Hit.p, 0.75) + Vector3.new(0, math.random(25, 55),0) | |
1874 | for i = 0, 1, 0.07 do | |
1875 | Swait() | |
1876 | ROCK.CFrame = CFrame.new(newBezier(POS, onefourth, threefourths, Mouse.Hit.p, i)) | |
1877 | end | |
1878 | ROCK.Anchored = false | |
1879 | ROCK.CanCollide = true | |
1880 | CreateWave(VT(1,1,1),25,CF(ROCK.Position),false,0,"Pearl",VT(1,0.2,1),0.5) | |
1881 | AoEDamage(ROCK.Position,5,35,55,4,false,12,3,true) | |
1882 | Swait(500) | |
1883 | ROCK.Anchored = true | |
1884 | ROCK.CanCollide = false | |
1885 | for i = 1, 10 do | |
1886 | Swait() | |
1887 | ROCK.Transparency = ROCK.Transparency + 0.1 | |
1888 | end | |
1889 | ROCK:remove() | |
1890 | end)) | |
1891 | for i=0, 1.6, 0.1 / Animation_Speed do | |
1892 | Swait() | |
1893 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0.2, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(25)), 0.5 / Animation_Speed) | |
1894 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-5)), 0.5 / Animation_Speed) | |
1895 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1896 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1897 | 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) | |
1898 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1899 | end | |
1900 | ATTACK = false | |
1901 | Rooted = false | |
1902 | end | |
1903 | ||
1904 | function RadiantVoid() | |
1905 | ATTACK = true | |
1906 | Rooted = true | |
1907 | for i=0, 1, 0.1 / Animation_Speed do | |
1908 | Swait() | |
1909 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1910 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1911 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1912 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1913 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1914 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1915 | end | |
1916 | local RING = CreateMagicCircle() | |
1917 | RING.CFrame = CF(RootPart.Position)*CF(0,-2.8,0) | |
1918 | CreateSound("1208650519", Torso, 10, 1) | |
1919 | for i = 1, 200 do | |
1920 | Swait() | |
1921 | RING.CFrame = RING.CFrame * ANGLES(RAD(0),RAD(i/15),RAD(0)) | |
1922 | RING.Size = RING.Size + VT(1,0,1) | |
1923 | end | |
1924 | AoEWarp(RING.Position,RING.Size.X/2) | |
1925 | coroutine.resume(coroutine.create(function() | |
1926 | Swait(75) | |
1927 | for i = 1, 50 do | |
1928 | Swait() | |
1929 | RING.CFrame = RING.CFrame * ANGLES(RAD(0),RAD(-i/2),RAD(0)) | |
1930 | RING.Size = RING.Size - VT(4,0,4) | |
1931 | end | |
1932 | RING:remove() | |
1933 | end)) | |
1934 | ATTACK = false | |
1935 | Rooted = false | |
1936 | end | |
1937 | ||
1938 | function DivineGlow() | |
1939 | ATTACK = true | |
1940 | Rooted = true | |
1941 | for i=0, 2, 0.1 / Animation_Speed do | |
1942 | Swait() | |
1943 | MagicSphere(VT(0.2,0.2,0.2),15,CF(Torso.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,Torso.Position),"New Yeller",VT(0.001,0.001,0.5),0.5) | |
1944 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.15 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1945 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1946 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(170), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1947 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(170), RAD(0), RAD(12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1948 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1949 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1950 | end | |
1951 | CreateSound("3264923", Torso, 10, 3) | |
1952 | coroutine.resume(coroutine.create(function() | |
1953 | local FRAME = Torso.CFrame | |
1954 | MagicSphere(VT(3,3,3),450,FRAME,"New Yeller",VT(-3/550,-3/550,-3/550),0) | |
1955 | for i = 1, 450 do | |
1956 | Swait() | |
1957 | MagicSphere(VT(0.2,0.2,0.2),15,CF(FRAME*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,FRAME.p),"New Yeller",VT(0.001,0.001,2.5),0.5) | |
1958 | AoEDamage(FRAME.p,35,3,5,-5,false,12,3,false) | |
1959 | end | |
1960 | MagicSphere(VT(6,6,6),70,FRAME,"New Yeller",VT(1,1,1),0) | |
1961 | MagicSphere(VT(5,5,5),70,FRAME,"Pearl",VT(1,1,1),0.5) | |
1962 | AoEDamage(FRAME.p,55,45,45,-5,false,2,30,false) | |
1963 | end)) | |
1964 | ATTACK = false | |
1965 | Rooted = false | |
1966 | end | |
1967 | ||
1968 | ||
1969 | --X MOVES-- | |
1970 | ||
1971 | function ShieldPulse() | |
1972 | ATTACK = true | |
1973 | Rooted = false | |
1974 | for i=0, 1, 0.1 / Animation_Speed do | |
1975 | Swait() | |
1976 | turnto(Mouse.Hit.p) | |
1977 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1978 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1979 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(170), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1980 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(170), RAD(0), RAD(12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1981 | 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) | |
1982 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1983 | end | |
1984 | local shield = IT("Part",Effects) | |
1985 | shield.CFrame = RootPart.CFrame * CF(0,0,-3) | |
1986 | shield.Size = VT(0.2,0.2,0.2) | |
1987 | shield.Anchored = true | |
1988 | shield.Material = "Neon" | |
1989 | shield.Color = C3(1,1,1) | |
1990 | shield.Transparency = 0.5 | |
1991 | repeat | |
1992 | Swait() | |
1993 | turnto(Mouse.Hit.p) | |
1994 | shield.CFrame = RootPart.CFrame * CF(0,0,-3) | |
1995 | shield.Size = shield.Size + VT(0.07,0.07,0) | |
1996 | until KEYHOLD == false | |
1997 | local bv = Instance.new("BodyVelocity") | |
1998 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1999 | bv.velocity = RootPart.CFrame.lookVector*300 | |
2000 | bv.Parent = shield | |
2001 | shield.Anchored = false | |
2002 | shield.CanCollide = false | |
2003 | bv.Name = "PROJECTILEVELOCITY" | |
2004 | local BOO = shield.Touched:Connect(function(hit) | |
2005 | dealdamage(hit,55,75,5,false,2,3) | |
2006 | end) | |
2007 | Debris:AddItem(shield,5) | |
2008 | ATTACK = false | |
2009 | Rooted = false | |
2010 | end | |
2011 | ||
2012 | function FireField() | |
2013 | ATTACK = true | |
2014 | Rooted = true | |
2015 | for i=0, 1.5, 0.1 / Animation_Speed*3 do | |
2016 | Swait() | |
2017 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-40)), 0.4 / Animation_Speed) | |
2018 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(15)) * ANGLES(RAD(2.5), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
2019 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(20), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
2020 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.75 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(50)) * ANGLES(RAD(80), RAD(-20), RAD(-30)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
2021 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2022 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2023 | end | |
2024 | CreateSound("217767125", LeftArm, 10, 1) | |
2025 | local FIREBALLCOLORS = {"Bright red", "Bright orange", "Bright yellow"} | |
2026 | coroutine.resume(coroutine.create(function() | |
2027 | local CFRAME = RootPart.CFrame * CF(0,-3.4,0) | |
2028 | for i = 1, 450 do | |
2029 | Swait() | |
2030 | AoEDamage(CFRAME.p,35,3,5,4,false,12,3,true) | |
2031 | MagicSphere(VT(0,0,0),35,CFRAME,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)],VT(2.5,0.1,2.5),0.8) | |
2032 | end | |
2033 | end)) | |
2034 | for i=0, 1.5, 0.1 / Animation_Speed do | |
2035 | Swait() | |
2036 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-40)), 0.4 / Animation_Speed) | |
2037 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(35)) * ANGLES(RAD(2.5), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
2038 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.35 * Player_Size, 0 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
2039 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.75 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(30)) * ANGLES(RAD(80), RAD(-10), RAD(-20)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
2040 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2041 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2042 | end | |
2043 | ATTACK = false | |
2044 | Rooted = false | |
2045 | end | |
2046 | ||
2047 | function FrostBreath() | |
2048 | ATTACK = true | |
2049 | Rooted = true | |
2050 | for i=0, 2, 0.1 / Animation_Speed do | |
2051 | Swait() | |
2052 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2053 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2054 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(170), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2055 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(170), RAD(0), RAD(12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2056 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2057 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2058 | end | |
2059 | CreateSound("976606790", Head, 10, 2) | |
2060 | local IceColors = {"Steel blue","Cyan","Pastel blue-green"} | |
2061 | for i=0, 4, 0.1 / Animation_Speed do | |
2062 | Swait() | |
2063 | for i = 1, 6 do | |
2064 | AoEStun(Head.CFrame * CF(0,-0.4,-i*3).p,i*3,35,"Freeze") | |
2065 | CreateSwirl(VT(0,0,0),25,Head.CFrame * CF(0,-0.4,-i*3)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-0.05,IceColors[MRANDOM(1,#IceColors)],VT(i/15,i/10,i/15),0.7) | |
2066 | CreateSwirl(VT(0,0,0),25,Head.CFrame * CF(0,-0.4,-i*3)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,0.05,IceColors[MRANDOM(1,#IceColors)],VT(i/10,i/10,i/10),0.7) | |
2067 | end | |
2068 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2069 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2070 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(22)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2071 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-22)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2072 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(15), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2073 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(15), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2074 | end | |
2075 | ATTACK = false | |
2076 | Rooted = false | |
2077 | end | |
2078 | ||
2079 | function Bloodbath() | |
2080 | local HASSTARTED = false | |
2081 | local target = nil | |
2082 | local targettorso = nil | |
2083 | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then | |
2084 | if Mouse.Target.Parent.Humanoid.PlatformStand == false then | |
2085 | target = Mouse.Target.Parent.Humanoid | |
2086 | targettorso = Mouse.Target.Parent:FindFirstChild("Torso") or Mouse.Target.Parent:FindFirstChild("UpperTorso") | |
2087 | end | |
2088 | end | |
2089 | if target ~= nil then | |
2090 | CreateSound("305685800", Head, 10, 1) | |
2091 | targettorso.Anchored = true | |
2092 | HASSTARTED = true | |
2093 | ATTACK = true | |
2094 | Rooted = true | |
2095 | CastWarpOutlines(Character) | |
2096 | RootPart.CFrame = targettorso.CFrame * CF(0,0,2) | |
2097 | coroutine.resume(coroutine.create(function() | |
2098 | Swait(10*100) | |
2099 | if HASSTARTED == true then | |
2100 | ATTACK = false | |
2101 | Rooted = false | |
2102 | UNANCHOR = true | |
2103 | end | |
2104 | end)) | |
2105 | UNANCHOR = false | |
2106 | RootPart.Anchored = true | |
2107 | coroutine.resume(coroutine.create(function() | |
2108 | for i=0, 3, 0.1 / Animation_Speed do | |
2109 | Swait() | |
2110 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.05 / Animation_Speed) | |
2111 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.05 / Animation_Speed) | |
2112 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.05 / Animation_Speed) | |
2113 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.05 / Animation_Speed) | |
2114 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.05 / Animation_Speed) | |
2115 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.05 / Animation_Speed) | |
2116 | end | |
2117 | for i=0, 3, 0.1 / Animation_Speed do | |
2118 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(85)), 0.5 / Animation_Speed) | |
2119 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-85)), 0.5 / Animation_Speed) | |
2120 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(85)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2121 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2122 | 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) | |
2123 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2124 | end | |
2125 | getbloody(targettorso,25) | |
2126 | Swait(5) | |
2127 | targettorso:remove() | |
2128 | Swait(15) | |
2129 | ATTACK = false | |
2130 | Rooted = false | |
2131 | HASSTARTED = false | |
2132 | UNANCHOR = true | |
2133 | end)) | |
2134 | end | |
2135 | end | |
2136 | ||
2137 | function EarthTremor() | |
2138 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character) | |
2139 | if HITFLOOR ~= nil then | |
2140 | ATTACK = true | |
2141 | Rooted = true | |
2142 | for i=0, 2, 0.1 / Animation_Speed do | |
2143 | Swait() | |
2144 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.5, -0.1 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.3 / Animation_Speed) | |
2145 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.3 / Animation_Speed) | |
2146 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(160), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed) | |
2147 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(160), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.3 / Animation_Speed) | |
2148 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.2, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed) | |
2149 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 0.3 / Animation_Speed) | |
2150 | end | |
2151 | for i=0, 0.3, 0.1 / Animation_Speed do | |
2152 | Swait() | |
2153 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.5, -0.1 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
2154 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
2155 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
2156 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.75 / Animation_Speed) | |
2157 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 0.75 / Animation_Speed) | |
2158 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 0.75 / Animation_Speed) | |
2159 | end | |
2160 | CreateSound("438666141", RightLeg, 5, 1) | |
2161 | local sinkhole = IT("Part") | |
2162 | sinkhole.Size = VT(35,0,35) | |
2163 | sinkhole.Parent = Effects | |
2164 | sinkhole.Material = "Neon" | |
2165 | sinkhole.Color = C3(0,0,0) | |
2166 | sinkhole.Anchored = true | |
2167 | sinkhole.CanCollide = false | |
2168 | sinkhole.Transparency = 1 | |
2169 | local decal = IT("Decal",sinkhole) | |
2170 | decal.Face = "Top" | |
2171 | decal.Texture = "http://www.roblox.com/asset/?id=29268434" | |
2172 | decal.Transparency = 1 | |
2173 | sinkhole.CFrame = CF(RightLeg.Position)*CF(0,-0.75,0) | |
2174 | AoEDamage(RightLeg.Position,35,15,25,4,false,32,7,true) | |
2175 | coroutine.resume(coroutine.create(function() | |
2176 | for i = 1, 5 do | |
2177 | Swait() | |
2178 | decal.Transparency = decal.Transparency - 0.2 | |
2179 | end | |
2180 | Swait(500) | |
2181 | for i = 1, 5 do | |
2182 | Swait() | |
2183 | decal.Transparency = decal.Transparency + 0.2 | |
2184 | end | |
2185 | sinkhole:remove() | |
2186 | end)) | |
2187 | for i=0, 1, 0.1 / Animation_Speed do | |
2188 | Swait() | |
2189 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.5, -0.1 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
2190 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
2191 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
2192 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.75 / Animation_Speed) | |
2193 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 0.75 / Animation_Speed) | |
2194 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 0.75 / Animation_Speed) | |
2195 | end | |
2196 | ATTACK = false | |
2197 | Rooted = false | |
2198 | end | |
2199 | end | |
2200 | ||
2201 | function VoidWarp() | |
2202 | local HASSTARTED = false | |
2203 | local target = nil | |
2204 | local targettorso = nil | |
2205 | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then | |
2206 | if Mouse.Target.Parent.Humanoid.PlatformStand == false then | |
2207 | target = Mouse.Target.Parent.Humanoid | |
2208 | targettorso = Mouse.Target.Parent:FindFirstChild("HumanoidRootPart") or Mouse.Target.Parent:FindFirstChild("Torso") or Mouse.Target.Parent:FindFirstChild("UpperTorso") | |
2209 | end | |
2210 | end | |
2211 | if target ~= nil then | |
2212 | ATTACK = true | |
2213 | Rooted = true | |
2214 | for i=0, 1.5, 0.1 / Animation_Speed do | |
2215 | Swait() | |
2216 | if targettorso ~= nil then | |
2217 | turnto(targettorso.Position) | |
2218 | end | |
2219 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2220 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2221 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0-45), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2222 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2223 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2224 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2225 | end | |
2226 | if targettorso ~= nil then | |
2227 | local GUI,GUI3 = CreateGUICircle(targettorso) | |
2228 | local GUI2,GUI4 = CreateGUICircle(Torso) | |
2229 | CreateSound("1208650519", targettorso, 10, 1) | |
2230 | CreateSound("1208650519", Torso, 10, 1) | |
2231 | targettorso.Anchored = true | |
2232 | for i = 1, 200 do | |
2233 | Swait() | |
2234 | GUI.Size = GUI.Size + UDim2.new(0.1,0,0.1,0) | |
2235 | GUI2.Size = GUI.Size | |
2236 | GUI3.Rotation = GUI3.Rotation + 2 | |
2237 | GUI4.Rotation = GUI4.Rotation - 2 | |
2238 | end | |
2239 | if targettorso ~= nil then | |
2240 | CastWarpOutlines(targettorso.Parent) | |
2241 | CastWarpOutlines(Character) | |
2242 | local TFrame = Torso.CFrame | |
2243 | local TTFrame = targettorso.CFrame | |
2244 | Torso.CFrame = TTFrame | |
2245 | targettorso.CFrame = TFrame | |
2246 | local HUMANOID = targettorso.Parent:FindFirstChildOfClass("Humanoid") | |
2247 | local dmg = MRANDOM(75,95) | |
2248 | HUMANOID.Health = HUMANOID.Health - dmg | |
2249 | StatLabel("Normal", targettorso.CFrame * CF(0, 0 + (targettorso.Size.z - 1), 0), "WARPED/"..dmg, C3(0.3, 0, 0.3)) | |
2250 | CreateSound("1177785010", targettorso, 10, 1) | |
2251 | CreateSound("1177785010", Torso, 10, 1) | |
2252 | HASSTARTED = true | |
2253 | coroutine.resume(coroutine.create(function() | |
2254 | for i = 1, 50 do | |
2255 | Swait() | |
2256 | GUI.Size = GUI.Size - UDim2.new(0.4,0,0.4,0) | |
2257 | GUI2.Size = GUI.Size | |
2258 | GUI3.Rotation = GUI3.Rotation - 8 | |
2259 | GUI4.Rotation = GUI4.Rotation + 8 | |
2260 | end | |
2261 | GUI:remove() | |
2262 | GUI2:remove() | |
2263 | targettorso.Anchored = false | |
2264 | end)) | |
2265 | end | |
2266 | if HASSTARTED == false then | |
2267 | GUI:remove() | |
2268 | GUI2:remove() | |
2269 | end | |
2270 | end | |
2271 | ATTACK = false | |
2272 | Rooted = false | |
2273 | end | |
2274 | end | |
2275 | ||
2276 | function DivineEvaporation() | |
2277 | ATTACK = true | |
2278 | Rooted = false | |
2279 | for i=0, 6, 0.1 / Animation_Speed do | |
2280 | Swait() | |
2281 | MagicSphere(VT(0.2,0.2,0.2),15,CF(Torso.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,Torso.Position),"New Yeller",VT(0.001,0.001,1),0) | |
2282 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.15 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2283 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2284 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(170), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2285 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(170), RAD(0), RAD(12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2286 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2287 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2288 | end | |
2289 | CreateSound("3264923", Torso, 10, 1) | |
2290 | for i = 1, 50 do | |
2291 | MagicSphere(VT(0.2,0.2,0.2),50,CF(Torso.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,Torso.Position),"New Yeller",VT(0.005,0.005,0.1),0) | |
2292 | end | |
2293 | MagicSphere(VT(20,20,20),50,Torso.CFrame,"New Yeller",VT(0,0,0),0.9) | |
2294 | killnearest(Torso.Position,15,5) | |
2295 | ATTACK = false | |
2296 | Rooted = false | |
2297 | end | |
2298 | ||
2299 | function Selfexplosion() | |
2300 | ATTACK = true | |
2301 | Rooted = false | |
2302 | for i=0, 6, 0.1 / Animation_Speed do | |
2303 | Swait() | |
2304 | MagicSphere(VT(0.2,0.2,0.2),15,CF(Torso.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,Torso.Position),"Toothpaste",VT(0.001,0.001,1),0) | |
2305 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.15 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2306 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2307 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(170), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2308 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(170), RAD(0), RAD(12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2309 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2310 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2311 | end | |
2312 | CreateSound("3264923", Torso, 10, 1) | |
2313 | for i = 99, 100 do | |
2314 | MagicSphere(VT(5,5,5),50,CF(Torso.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,Torso.Position),"Really black",VT(0.005,0.005,0.1),0) | |
2315 | end | |
2316 | MagicSphere(VT(10,10,10),50,Torso.CFrame,"Really red",VT(0,0,0),0.9) | |
2317 | killnearest(Torso.Position,1000,10000) | |
2318 | ATTACK = false | |
2319 | Rooted = false | |
2320 | end | |
2321 | ||
2322 | function LeafField() | |
2323 | ATTACK = true | |
2324 | Rooted = true | |
2325 | for i=0, 1.5, 0.1 / Animation_Speed*3 do | |
2326 | Swait() | |
2327 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-40)), 0.4 / Animation_Speed) | |
2328 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(15)) * ANGLES(RAD(2.5), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
2329 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(20), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
2330 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.75 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(50)) * ANGLES(RAD(80), RAD(-20), RAD(-30)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
2331 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2332 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2333 | end | |
2334 | CreateSound("217767125", LeftArm, 10, 1) | |
2335 | local FIREBALLCOLORS = {"Lime green", "Mint", "Forest green"} | |
2336 | coroutine.resume(coroutine.create(function() | |
2337 | local CFRAME = RootPart.CFrame * CF(0,-3.4,0) | |
2338 | for i = 1, 450 do | |
2339 | Swait() | |
2340 | AoEDamage(CFRAME.p,35,3,5,4,false,12,3,true) | |
2341 | MagicSphere(VT(0,0,0),35,CFRAME,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)],VT(2.5,0.1,2.5),0.8) | |
2342 | end | |
2343 | end)) | |
2344 | for i=0, 1.5, 0.1 / Animation_Speed do | |
2345 | Swait() | |
2346 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-40)), 0.4 / Animation_Speed) | |
2347 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(35)) * ANGLES(RAD(2.5), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
2348 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.35 * Player_Size, 0 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
2349 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.75 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(30)) * ANGLES(RAD(80), RAD(-10), RAD(-20)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
2350 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2351 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2352 | end | |
2353 | ATTACK = false | |
2354 | Rooted = false | |
2355 | end | |
2356 | ||
2357 | ||
2358 | function LeafStorm() | |
2359 | ATTACK = true | |
2360 | ATTACK = true | |
2361 | Rooted = false | |
2362 | for i=0, 2, 0.1 / Animation_Speed do | |
2363 | Swait() | |
2364 | turnto(Mouse.Hit.p) | |
2365 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2366 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2367 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2368 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2369 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2370 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2371 | end | |
2372 | Rooted = true | |
2373 | local TURRETS = {RightArm,LeftArm} | |
2374 | local soundeffect = IT("Sound",Torso) | |
2375 | soundeffect.SoundId = "rbxassetid://337638956" | |
2376 | soundeffect.Looped = true | |
2377 | soundeffect.Volume = 1 | |
2378 | soundeffect.Playing = true | |
2379 | repeat | |
2380 | Swait() | |
2381 | turnto(Mouse.Hit.p) | |
2382 | local TURRET = TURRETS[MRANDOM(1,#TURRETS)] | |
2383 | MagicSphere(VT(0,0,0),7,TURRET.CFrame*CF(0,-1,0),"Shamrock",VT(0.3,0.3,0.3),0) | |
2384 | local BULLET = CreatePart(3, Effects, "Grass", 0, 0, "Shamrock", "Bullet", VT(0.2*Player_Size,0.2*Player_Size,4*Player_Size),false) | |
2385 | BULLET.CFrame = CF(TURRET.CFrame*CF(0,-2,0).p,Mouse.Hit.p) | |
2386 | local bv = Instance.new("BodyVelocity") | |
2387 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
2388 | bv.velocity = CF(TURRET.Position,Mouse.Hit.p).lookVector*300 | |
2389 | bv.Parent = BULLET | |
2390 | bv.Name = "PROJECTILEVELOCITY" | |
2391 | MakeForm(BULLET,"Ball") | |
2392 | local BOO = BULLET.Touched:Connect(function(hit) | |
2393 | dealdamage(hit,5,8,5,false,2,3) | |
2394 | end) | |
2395 | table.insert(Effects2,{BULLET,"Disappear",0.02,1,0,0,2}) | |
2396 | until KEYHOLD == false | |
2397 | soundeffect:remove() | |
2398 | ATTACK = false | |
2399 | Rooted = false | |
2400 | end | |
2401 | ||
2402 | ||
2403 | --//=================================\\ | |
2404 | --|| ASSIGN THINGS TO KEYS | |
2405 | --\\=================================// | |
2406 | ||
2407 | function ChineseEarthquake() | |
2408 | Rooted = true | |
2409 | local icri = CreateSound("1177999394", Torso, 10, 1) | |
2410 | Swait(130) | |
2411 | local FRAME = Torso.CFrame | |
2412 | repeat | |
2413 | Swait() | |
2414 | Torso.CFrame = FRAME * CF(0,1,0) | |
2415 | Swait() | |
2416 | Torso.CFrame = FRAME | |
2417 | until icri.Playing == false | |
2418 | Rooted = false | |
2419 | end | |
2420 | ||
2421 | function MouseDown(Mouse) | |
2422 | if ATTACK == false then | |
2423 | end | |
2424 | end | |
2425 | ||
2426 | function MouseUp(Mouse) | |
2427 | HOLD = false | |
2428 | end | |
2429 | ||
2430 | function KeyDown(Key) | |
2431 | KEYHOLD = true | |
2432 | if Rooted == false then | |
2433 | if Key == "z" and ATTACK == false then | |
2434 | if VALUE1 == 1 then | |
2435 | TurretCannon() | |
2436 | elseif VALUE1 == 2 then | |
2437 | Fireball() | |
2438 | elseif VALUE1 == 3 then | |
2439 | IcicleStorm() | |
2440 | elseif VALUE1 == 4 then | |
2441 | Shriek() | |
2442 | elseif VALUE1 == 5 then | |
2443 | RockThrow() | |
2444 | elseif VALUE1 == 6 then | |
2445 | RadiantVoid() | |
2446 | elseif VALUE1 == 7 then | |
2447 | DivineGlow() | |
2448 | elseif VALUE1 == 8 then | |
2449 | LeafStorm() | |
2450 | elseif VALUE1 == 9 then | |
2451 | Meteor() | |
2452 | end | |
2453 | end | |
2454 | ||
2455 | if Key == "x" and ATTACK == false then | |
2456 | if VALUE1 == 1 then | |
2457 | ShieldPulse() | |
2458 | elseif VALUE1 == 2 then | |
2459 | FireField() | |
2460 | elseif VALUE1 == 3 then | |
2461 | FrostBreath() | |
2462 | elseif VALUE1 == 4 then | |
2463 | Bloodbath() | |
2464 | elseif VALUE1 == 5 then | |
2465 | EarthTremor() | |
2466 | elseif VALUE1 == 6 then | |
2467 | VoidWarp() | |
2468 | elseif VALUE1 == 7 then | |
2469 | DivineEvaporation() | |
2470 | elseif VALUE1 == 8 then | |
2471 | LeafField() | |
2472 | elseif VALUE1 == 9 then | |
2473 | Selfexplosion() | |
2474 | end | |
2475 | end | |
2476 | ||
2477 | if Key == "1" and ATTACK == false then | |
2478 | Stance1() | |
2479 | end | |
2480 | ||
2481 | if Key == "2" and ATTACK == false then | |
2482 | Stance2() | |
2483 | end | |
2484 | ||
2485 | if Key == "3" and ATTACK == false then | |
2486 | Stance3() | |
2487 | end | |
2488 | ||
2489 | if Key == "4" and ATTACK == false then | |
2490 | Stance4() | |
2491 | end | |
2492 | ||
2493 | if Key == "5" and ATTACK == false then | |
2494 | Stance5() | |
2495 | end | |
2496 | ||
2497 | if Key == "6" and ATTACK == false then | |
2498 | Stance6() | |
2499 | end | |
2500 | ||
2501 | if Key == "7" and ATTACK == false then | |
2502 | Stance7() | |
2503 | end | |
2504 | ||
2505 | if Key == "9" and ATTACK == false then | |
2506 | Stance9() | |
2507 | end | |
2508 | ||
2509 | if Key == "8" and ATTACK == false then | |
2510 | Stance8() | |
2511 | end | |
2512 | ||
2513 | if Key == "t" and ATTACK == false and VALUE1 == 5 then | |
2514 | ChineseEarthquake() | |
2515 | end | |
2516 | end | |
2517 | end | |
2518 | ||
2519 | function KeyUp(Key) | |
2520 | KEYHOLD = false | |
2521 | end | |
2522 | ||
2523 | Mouse.Button1Down:connect(function(NEWKEY) | |
2524 | MouseDown(NEWKEY) | |
2525 | end) | |
2526 | Mouse.Button1Up:connect(function(NEWKEY) | |
2527 | MouseUp(NEWKEY) | |
2528 | end) | |
2529 | Mouse.KeyDown:connect(function(NEWKEY) | |
2530 | KeyDown(NEWKEY) | |
2531 | end) | |
2532 | Mouse.KeyUp:connect(function(NEWKEY) | |
2533 | KeyUp(NEWKEY) | |
2534 | end) | |
2535 | ||
2536 | --//=================================\\ | |
2537 | --\\=================================// | |
2538 | ||
2539 | ||
2540 | function unanchor() | |
2541 | if UNANCHOR == true then | |
2542 | g = Character:GetChildren() | |
2543 | for i = 1, #g do | |
2544 | if g[i].ClassName == "Part" then | |
2545 | g[i].Anchored = false | |
2546 | end | |
2547 | end | |
2548 | end | |
2549 | end | |
2550 | ||
2551 | ||
2552 | --//=================================\\ | |
2553 | --|| WRAP THE WHOLE SCRIPT UP | |
2554 | --\\=================================// | |
2555 | ||
2556 | Humanoid.Changed:connect(function(Jump) | |
2557 | if Jump == "Jump" and (Disable_Jump == true) then | |
2558 | Humanoid.Jump = false | |
2559 | end | |
2560 | end) | |
2561 | ||
2562 | VALUE1 = 1 | |
2563 | Speed = 25 | |
2564 | ||
2565 | while true do | |
2566 | Swait() | |
2567 | ANIMATE.Parent = nil | |
2568 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
2569 | IDLEANIMATION:Play() | |
2570 | SINE = SINE + CHANGE | |
2571 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
2572 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
2573 | local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position) | |
2574 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character) | |
2575 | local WALKSPEEDVALUE = 12 / (Humanoid.WalkSpeed / 16) | |
2576 | if ANIM == "Walk" and TORSOVELOCITY > 1 and VALUE1 ~= 7 and VALUE1 ~= 9 then | |
2577 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2578 | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * 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) | |
2579 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
2580 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2581 | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2582 | --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2583 | --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2584 | end | |
2585 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
2586 | ANIM = "Jump" | |
2587 | if ATTACK == false then | |
2588 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2589 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2590 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
2591 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2592 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
2593 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
2594 | end | |
2595 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
2596 | ANIM = "Fall" | |
2597 | if ATTACK == false then | |
2598 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2599 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2600 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
2601 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2602 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
2603 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
2604 | end | |
2605 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
2606 | ANIM = "Idle" | |
2607 | if ATTACK == false then | |
2608 | if VALUE1 == 1 then | |
2609 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12) ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2610 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2611 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75, 0.5, -1) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
2612 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.2, -0.5) * ANGLES(RAD(25), RAD(0), RAD(85)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
2613 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2614 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12) , -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2615 | elseif VALUE1 == 2 then | |
2616 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.15 / Animation_Speed) | |
2617 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.15 / Animation_Speed) | |
2618 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.2, -0.3) * ANGLES(RAD(160), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2619 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2620 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2621 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2622 | elseif VALUE1 == 3 then | |
2623 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2624 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2625 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2626 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2627 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2628 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2629 | elseif VALUE1 == 4 then | |
2630 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2631 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2632 | if MRANDOM(1,15) == 1 then | |
2633 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(MRANDOM(-15,15)), RAD(MRANDOM(-15,15)), RAD(MRANDOM(-15,15))), 1) | |
2634 | end | |
2635 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(MRANDOM(-15,15)), RAD(12)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
2636 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(MRANDOM(-15,15)), RAD(-12)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
2637 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2638 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2639 | elseif VALUE1 == 5 then | |
2640 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2641 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2642 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.65, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2643 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.65, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(90)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2644 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2645 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2646 | elseif VALUE1 == 6 then | |
2647 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2648 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2649 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2650 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2651 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2652 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2653 | elseif VALUE1 == 7 then | |
2654 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.15 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2655 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2656 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2657 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2658 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2659 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2660 | elseif VALUE1 == 8 then | |
2661 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + -0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-25)), 0.15 / Animation_Speed) | |
2662 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2663 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2664 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(50)) * ANGLES(RAD(-2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2665 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2666 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2667 | elseif VALUE1 == 9 then | |
2668 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.15 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2669 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2670 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2671 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2672 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2673 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2674 | end | |
2675 | end | |
2676 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
2677 | ANIM = "Walk" | |
2678 | WALK = WALK + 1 / Animation_Speed | |
2679 | if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then | |
2680 | WALK = 0 | |
2681 | if WALKINGANIM == true then | |
2682 | WALKINGANIM = false | |
2683 | elseif WALKINGANIM == false then | |
2684 | WALKINGANIM = true | |
2685 | end | |
2686 | end | |
2687 | --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2688 | --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2689 | if ATTACK == false then | |
2690 | if VALUE1 < 4 or VALUE1 == 6 then | |
2691 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12) ) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2692 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2693 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(15+80 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed) | |
2694 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(15-80 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.25 / Animation_Speed) | |
2695 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-80 * COS(SINE / WALKSPEEDVALUE))), 0.15 / Animation_Speed) | |
2696 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12) , -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-80 * COS(SINE / WALKSPEEDVALUE))), 0.15 / Animation_Speed) | |
2697 | elseif VALUE1 == 4 then | |
2698 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12) ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2699 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2700 | if MRANDOM(1,15) == 1 then | |
2701 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(MRANDOM(-15,15)), RAD(MRANDOM(-15,15)), RAD(MRANDOM(-15,15))), 1) | |
2702 | end | |
2703 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(MRANDOM(-15,15)), RAD(12)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
2704 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(MRANDOM(-15,15)), RAD(-12)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
2705 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-40 * COS(SINE / WALKSPEEDVALUE))), 0.35 / Animation_Speed) | |
2706 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12) , -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-40 * COS(SINE / WALKSPEEDVALUE))), 0.35 / Animation_Speed) | |
2707 | elseif VALUE1 == 7 then | |
2708 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.15 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2709 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2710 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2711 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2712 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2713 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2714 | elseif VALUE1 == 5 then | |
2715 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12) ) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2716 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2717 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.65, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2718 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.65, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(90)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2719 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-80 * COS(SINE / WALKSPEEDVALUE))), 0.15 / Animation_Speed) | |
2720 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12) , -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-80 * COS(SINE / WALKSPEEDVALUE))), 0.15 / Animation_Speed) | |
2721 | elseif VALUE1 == 8 then | |
2722 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12) ) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2723 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2724 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(15+80 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed) | |
2725 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(15-80 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.25 / Animation_Speed) | |
2726 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-80 * COS(SINE / WALKSPEEDVALUE))), 0.15 / Animation_Speed) | |
2727 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12) , -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-80 * COS(SINE / WALKSPEEDVALUE))), 0.15 / Animation_Speed) | |
2728 | end | |
2729 | end | |
2730 | end | |
2731 | if #Effects2>0 then | |
2732 | for e=1,#Effects2 do | |
2733 | if Effects2[e]~=nil then | |
2734 | local Thing=Effects2[e] | |
2735 | if Thing~=nil then | |
2736 | local Part=Thing[1] | |
2737 | local Mode=Thing[2] | |
2738 | local Delay=Thing[3] | |
2739 | local IncX=Thing[4] | |
2740 | local IncY=Thing[5] | |
2741 | local IncZ=Thing[6] | |
2742 | local Part2=Thing[8] | |
2743 | if Thing[1].Transparency<=1 then | |
2744 | if Thing[2]=="Block1" then | |
2745 | Thing[1].CFrame=Thing[1].CFrame | |
2746 | Mesh=Thing[1].Mesh | |
2747 | Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6]) | |
2748 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
2749 | elseif Thing[2]=="Cylinder" then | |
2750 | Mesh=Thing[1].Mesh | |
2751 | Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6]) | |
2752 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
2753 | elseif Thing[2]=="Blood" then | |
2754 | Mesh=Thing[7] | |
2755 | Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0) | |
2756 | Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6]) | |
2757 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
2758 | elseif Thing[2]=="Elec" then | |
2759 | Mesh=Thing[1].Mesh | |
2760 | Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9]) | |
2761 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
2762 | elseif Thing[2]=="Disappear" then | |
2763 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
2764 | elseif Thing[2]=="Evaporate" then | |
2765 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
2766 | local C = {-5,-2,2,5} | |
2767 | MagicSphere(VT(0,0,0),15,CF(Thing[1].CFrame*CF(C[MRANDOM(1,#C)],C[MRANDOM(1,#C)],C[MRANDOM(1,#C)]).p,Thing[1].Position),"New Yeller",VT(0.01,0.01,0.5),0.8) | |
2768 | end | |
2769 | else | |
2770 | Part.Parent=nil | |
2771 | table.remove(Effects2,e) | |
2772 | end | |
2773 | end | |
2774 | end | |
2775 | end | |
2776 | end | |
2777 | unanchor() | |
2778 | Humanoid.MaxHealth = "inf" | |
2779 | Humanoid.Health = "inf" | |
2780 | if Rooted == false then | |
2781 | Disable_Jump = false | |
2782 | Humanoid.WalkSpeed = Speed | |
2783 | elseif Rooted == true then | |
2784 | Disable_Jump = true | |
2785 | Humanoid.WalkSpeed = 0 | |
2786 | end | |
2787 | local MATHS = {"0","1"} | |
2788 | Humanoid.Name = MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)] | |
2789 | Humanoid.PlatformStand = false | |
2790 | end | |
2791 | ||
2792 | --//=================================\\ | |
2793 | --\\=================================// | |
2794 | ||
2795 | ||
2796 | ||
2797 | ||
2798 | ||
2799 | --//====================================================\\-- | |
2800 | --|| END OF SCRIPT | |
2801 | --\\====================================================//-- |