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,game,owner = owner,game | |
4 | local RealPlayer = Player | |
5 | do | |
6 | print("FE Compatibility code V2 by Mokiros") | |
7 | local RealPlayer = RealPlayer | |
8 | script.Parent = RealPlayer.Character | |
9 | ||
10 | --Fake event to make stuff like Mouse.KeyDown work | |
11 | local Disconnect_Function = function(this) | |
12 | this[1].Functions[this[2]] = nil | |
13 | end | |
14 | local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}} | |
15 | local FakeEvent_Metatable = {__index={ | |
16 | Connect = function(this,f) | |
17 | local i = tostring(math.random(0,10000)) | |
18 | while this.Functions[i] do | |
19 | i = tostring(math.random(0,10000)) | |
20 | end | |
21 | this.Functions[i] = f | |
22 | return setmetatable({this,i},Disconnect_Metatable) | |
23 | end | |
24 | }} | |
25 | FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect | |
26 | local function fakeEvent() | |
27 | return setmetatable({Functions={}},FakeEvent_Metatable) | |
28 | end | |
29 | ||
30 | --Creating fake input objects with fake variables | |
31 | local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()} | |
32 | FakeMouse.keyUp = FakeMouse.KeyUp | |
33 | FakeMouse.keyDown = FakeMouse.KeyDown | |
34 | - | sick.SoundId = "rbxassetid://1073360199" |
34 | + | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} |
35 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
36 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
37 | end} | |
38 | --Merged 2 functions into one by checking amount of arguments | |
39 | CAS.UnbindAction = CAS.BindAction | |
40 | ||
41 | --This function will trigger the events that have been :Connect()'ed | |
42 | local function TriggerEvent(self,ev,...) | |
43 | for _,f in pairs(self[ev].Functions) do | |
44 | f(...) | |
45 | end | |
46 | end | |
47 | FakeMouse.TriggerEvent = TriggerEvent | |
48 | UIS.TriggerEvent = TriggerEvent | |
49 | ||
50 | --Client communication | |
51 | local Event = Instance.new("RemoteEvent") | |
52 | Event.Name = "UserInput_Event" | |
53 | Event.OnServerEvent:Connect(function(plr,io) | |
54 | if plr~=RealPlayer then return end | |
55 | FakeMouse.Target = io.Target | |
56 | FakeMouse.Hit = io.Hit | |
57 | if not io.isMouse then | |
58 | local b = io.UserInputState == Enum.UserInputState.Begin | |
59 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
60 | return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up") | |
61 | end | |
62 | if io.UserInputType == Enum.UserInputType.MouseButton2 then | |
63 | return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up") | |
64 | end | |
65 | for _,t in pairs(CAS.Actions) do | |
66 | for _,k in pairs(t.Keys) do | |
67 | if k==io.KeyCode then | |
68 | t.Function(t.Name,io.UserInputState,io) | |
69 | end | |
70 | end | |
71 | end | |
72 | FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
73 | UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false) | |
74 | end | |
75 | end) | |
76 | Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event") | |
77 | local Mouse = owner:GetMouse() | |
78 | local UIS = game:GetService("UserInputService") | |
79 | local input = function(io,RobloxHandled) | |
80 | if RobloxHandled then return end | |
81 | --Since InputObject is a client-side instance, we create and pass table instead | |
82 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
83 | end | |
84 | UIS.InputBegan:Connect(input) | |
85 | UIS.InputEnded:Connect(input) | |
86 | ||
87 | local h,t | |
88 | --Give the server mouse data every second frame, but only if the values changed | |
89 | --If player is not moving their mouse, client won't fire events | |
90 | local HB = game:GetService("RunService").Heartbeat | |
91 | while true do | |
92 | if h~=Mouse.Hit or t~=Mouse.Target then | |
93 | h,t=Mouse.Hit,Mouse.Target | |
94 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
95 | end | |
96 | --Wait 2 frames | |
97 | for i=1,2 do | |
98 | HB:Wait() | |
99 | end | |
100 | end]==],script) | |
101 | ||
102 | ----Sandboxed game object that allows the usage of client-side methods and services | |
103 | --Real game object | |
104 | local RealGame = game | |
105 | ||
106 | --Metatable for fake service | |
107 | local FakeService_Metatable = { | |
108 | __index = function(self,k) | |
109 | local s = rawget(self,"_RealService") | |
110 | if s then | |
111 | return typeof(s[k])=="function" | |
112 | and function(_,...)return s[k](s,...)end or s[k] | |
113 | end | |
114 | end, | |
115 | __newindex = function(self,k,v) | |
116 | local s = rawget(self,"_RealService") | |
117 | if s then s[k]=v end | |
118 | end | |
119 | } | |
120 | local function FakeService(t,RealService) | |
121 | t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService | |
122 | return setmetatable(t,FakeService_Metatable) | |
123 | end | |
124 | ||
125 | --Fake game object | |
126 | local FakeGame = { | |
127 | GetService = function(self,s) | |
128 | return rawget(self,s) or RealGame:GetService(s) | |
129 | end, | |
130 | Players = FakeService({ | |
131 | LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player) | |
132 | },"Players"), | |
133 | UserInputService = FakeService(UIS,"UserInputService"), | |
134 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
135 | RunService = FakeService({ | |
136 | _btrs = {}, | |
137 | RenderStepped = RealGame:GetService("RunService").Heartbeat, | |
138 | BindToRenderStep = function(self,name,_,fun) | |
139 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
140 | end, | |
141 | UnbindFromRenderStep = function(self,name) | |
142 | self._btrs[name]:Disconnect() | |
143 | end, | |
144 | },"RunService") | |
145 | } | |
146 | rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer) | |
147 | FakeGame.service = FakeGame.GetService | |
148 | FakeService(FakeGame,game) | |
149 | --Changing owner to fake player object to support owner:GetMouse() | |
150 | game,owner = FakeGame,FakeGame.Players.LocalPlayer | |
151 | end | |
152 | --//====================================================\\-- | |
153 | --|| CREATED BY SHACKLUSTER | |
154 | --\\====================================================//-- | |
155 | ||
156 | ||
157 | ||
158 | wait(0.2) | |
159 | ||
160 | ||
161 | ||
162 | Player = game:GetService("Players").LocalPlayer | |
163 | PlayerGui = Player.PlayerGui | |
164 | Cam = workspace.CurrentCamera | |
165 | Backpack = Player.Backpack | |
166 | Character = Player.Character | |
167 | Humanoid = Character.Humanoid | |
168 | Mouse = Player:GetMouse() | |
169 | RootPart = Character["HumanoidRootPart"] | |
170 | Torso = Character["Torso"] | |
171 | Head = Character["Head"] | |
172 | RightArm = Character["Right Arm"] | |
173 | LeftArm = Character["Left Arm"] | |
174 | RightLeg = Character["Right Leg"] | |
175 | LeftLeg = Character["Left Leg"] | |
176 | RootJoint = RootPart["RootJoint"] | |
177 | Neck = Torso["Neck"] | |
178 | RightShoulder = Torso["Right Shoulder"] | |
179 | LeftShoulder = Torso["Left Shoulder"] | |
180 | RightHip = Torso["Right Hip"] | |
181 | LeftHip = Torso["Left Hip"] | |
182 | local sick = nil | |
183 | if sick == nil then | |
184 | sick = Instance.new("Sound",Character) | |
185 | sick.SoundId = "rbxassetid://2112819489" | |
186 | sick.Looped = true | |
187 | sick.Pitch = 1 | |
188 | sick.Volume = 0.5 | |
189 | sick:Play() | |
190 | end | |
191 | Taunts = {907330619,907332856,907329893} | |
192 | ALONE = 907328147 | |
193 | script.Parent = workspace | |
194 | HASDIED = false | |
195 | ||
196 | IT = Instance.new | |
197 | CF = CFrame.new | |
198 | VT = Vector3.new | |
199 | RAD = math.rad | |
200 | C3 = Color3.new | |
201 | UD2 = UDim2.new | |
202 | BRICKC = BrickColor.new | |
203 | ANGLES = CFrame.Angles | |
204 | EULER = CFrame.fromEulerAnglesXYZ | |
205 | COS = math.cos | |
206 | ACOS = math.acos | |
207 | SIN = math.sin | |
208 | ASIN = math.asin | |
209 | ABS = math.abs | |
210 | MRANDOM = math.random | |
211 | FLOOR = math.floor | |
212 | ||
213 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
214 | local NEWMESH = IT(MESH) | |
215 | if MESH == "SpecialMesh" then | |
216 | NEWMESH.MeshType = MESHTYPE | |
217 | if MESHID ~= "nil" and MESHID ~= "" then | |
218 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
219 | end | |
220 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
221 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
222 | end | |
223 | end | |
224 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
225 | NEWMESH.Scale = SCALE | |
226 | NEWMESH.Parent = PARENT | |
227 | return NEWMESH | |
228 | end | |
229 | ||
230 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
231 | local NEWPART = IT("Part") | |
232 | NEWPART.formFactor = FORMFACTOR | |
233 | NEWPART.Reflectance = REFLECTANCE | |
234 | NEWPART.Transparency = TRANSPARENCY | |
235 | NEWPART.CanCollide = false | |
236 | NEWPART.Locked = true | |
237 | NEWPART.Anchored = true | |
238 | if ANCHOR == false then | |
239 | NEWPART.Anchored = false | |
240 | end | |
241 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
242 | NEWPART.Name = NAME | |
243 | NEWPART.Size = SIZE | |
244 | NEWPART.Position = Torso.Position | |
245 | NEWPART.Material = MATERIAL | |
246 | NEWPART:BreakJoints() | |
247 | NEWPART.Parent = PARENT | |
248 | return NEWPART | |
249 | end | |
250 | ||
251 | --//=================================\\ | |
252 | --|| CUSTOMIZATION | |
253 | --\\=================================// | |
254 | ||
255 | Player_Size = 1 --Size of the player. | |
256 | Animation_Speed = 3 | |
257 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
258 | ||
259 | local Speed = 16 | |
260 | local Effects2 = {} | |
261 | ||
262 | --//=================================\\ | |
263 | --|| END OF CUSTOMIZATION | |
264 | --\\=================================// | |
265 | ||
266 | local function weldBetween(a, b) | |
267 | local weldd = Instance.new("ManualWeld") | |
268 | weldd.Part0 = a | |
269 | weldd.Part1 = b | |
270 | weldd.C0 = CFrame.new() | |
271 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
272 | weldd.Parent = a | |
273 | return weldd | |
274 | end | |
275 | ||
276 | function createaccessory(attachmentpart,mesh,texture,scale,offset,color) | |
277 | local acs = Instance.new("Part") | |
278 | acs.CanCollide = false | |
279 | acs.Anchored = false | |
280 | acs.Size = Vector3.new(0,0,0) | |
281 | acs.CFrame = attachmentpart.CFrame | |
282 | acs.Parent = Character | |
283 | acs.BrickColor = color | |
284 | local meshs = Instance.new("SpecialMesh") | |
285 | meshs.MeshId = mesh | |
286 | meshs.TextureId = texture | |
287 | meshs.Parent = acs | |
288 | meshs.Scale = scale | |
289 | meshs.Offset = offset | |
290 | weldBetween(attachmentpart,acs) | |
291 | end | |
292 | ||
293 | --//=================================\\ | |
294 | --|| USEFUL VALUES | |
295 | --\\=================================// | |
296 | ||
297 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
298 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
299 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
300 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
301 | local CHANGEDEFENSE = 0 | |
302 | local CHANGEDAMAGE = 0 | |
303 | local CHANGEMOVEMENT = 0 | |
304 | local ANIM = "Idle" | |
305 | local ATTACK = false | |
306 | local EQUIPPED = false | |
307 | local HOLD = false | |
308 | local COMBO = 1 | |
309 | local Rooted = false | |
310 | local SINE = 0 | |
311 | local KEYHOLD = false | |
312 | local CHANGE = 2 / Animation_Speed | |
313 | local WALKINGANIM = false | |
314 | local WALK = 0 | |
315 | local VALUE1 = false | |
316 | local VALUE2 = false | |
317 | local ROBLOXIDLEANIMATION = IT("Animation") | |
318 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
319 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
320 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
321 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
322 | WEAPONGUI.Name = "Weapon GUI" | |
323 | local Weapon = IT("Model") | |
324 | Weapon.Name = "Adds" | |
325 | local Tail = IT("Model",Weapon) | |
326 | Tail.Name = "Tail" | |
327 | local Minions = IT("Model",Character) | |
328 | Minions.Name = "MinionFolder" | |
329 | local Effects = IT("Folder", Weapon) | |
330 | Effects.Name = "Effects" | |
331 | local ANIMATOR = Humanoid.Animator | |
332 | local ANIMATE = Character.Animate | |
333 | local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"} | |
334 | local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"} | |
335 | local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"} | |
336 | local HITBLOCKSOUNDS = {"199148933", "199148947"} | |
337 | local UNANCHOR = true | |
338 | ||
339 | local SKILLTEXTCOLOR = C3(1,1,1) | |
340 | ||
341 | --//=================================\\ | |
342 | --\\=================================// | |
343 | ||
344 | ||
345 | --//=================================\\ | |
346 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
347 | --\\=================================// | |
348 | ||
349 | ArtificialHB = Instance.new("BindableEvent", script) | |
350 | ArtificialHB.Name = "ArtificialHB" | |
351 | ||
352 | script:WaitForChild("ArtificialHB") | |
353 | ||
354 | frame = Frame_Speed | |
355 | tf = 0 | |
356 | allowframeloss = false | |
357 | tossremainder = false | |
358 | lastframe = tick() | |
359 | script.ArtificialHB:Fire() | |
360 | ||
361 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
362 | tf = tf + s | |
363 | if tf >= frame then | |
364 | if allowframeloss then | |
365 | script.ArtificialHB:Fire() | |
366 | lastframe = tick() | |
367 | else | |
368 | for i = 1, math.floor(tf / frame) do | |
369 | script.ArtificialHB:Fire() | |
370 | end | |
371 | lastframe = tick() | |
372 | end | |
373 | if tossremainder then | |
374 | tf = 0 | |
375 | else | |
376 | tf = tf - frame * math.floor(tf / frame) | |
377 | end | |
378 | end | |
379 | end) | |
380 | ||
381 | --//=================================\\ | |
382 | --\\=================================// | |
383 | ||
384 | ||
385 | ||
386 | ||
387 | ||
388 | --//=================================\\ | |
389 | --|| SOME FUNCTIONS | |
390 | --\\=================================// | |
391 | ||
392 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
393 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
394 | end | |
395 | ||
396 | function PositiveAngle(NUMBER) | |
397 | if NUMBER >= 0 then | |
398 | NUMBER = 0 | |
399 | end | |
400 | return NUMBER | |
401 | end | |
402 | ||
403 | function NegativeAngle(NUMBER) | |
404 | if NUMBER <= 0 then | |
405 | NUMBER = 0 | |
406 | end | |
407 | return NUMBER | |
408 | end | |
409 | ||
410 | function Swait(NUMBER) | |
411 | if NUMBER == 0 or NUMBER == nil then | |
412 | ArtificialHB.Event:wait() | |
413 | else | |
414 | for i = 1, NUMBER do | |
415 | ArtificialHB.Event:wait() | |
416 | end | |
417 | end | |
418 | end | |
419 | ||
420 | function QuaternionFromCFrame(cf) | |
421 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
422 | local trace = m00 + m11 + m22 | |
423 | if trace > 0 then | |
424 | local s = math.sqrt(1 + trace) | |
425 | local recip = 0.5 / s | |
426 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
427 | else | |
428 | local i = 0 | |
429 | if m11 > m00 then | |
430 | i = 1 | |
431 | end | |
432 | if m22 > (i == 0 and m00 or m11) then | |
433 | i = 2 | |
434 | end | |
435 | if i == 0 then | |
436 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
437 | local recip = 0.5 / s | |
438 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
439 | elseif i == 1 then | |
440 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
441 | local recip = 0.5 / s | |
442 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
443 | elseif i == 2 then | |
444 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
445 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
446 | end | |
447 | end | |
448 | end | |
449 | ||
450 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
451 | local xs, ys, zs = x + x, y + y, z + z | |
452 | local wx, wy, wz = w * xs, w * ys, w * zs | |
453 | local xx = x * xs | |
454 | local xy = x * ys | |
455 | local xz = x * zs | |
456 | local yy = y * ys | |
457 | local yz = y * zs | |
458 | local zz = z * zs | |
459 | 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)) | |
460 | end | |
461 | ||
462 | function QuaternionSlerp(a, b, t) | |
463 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
464 | local startInterp, finishInterp; | |
465 | if cosTheta >= 0.0001 then | |
466 | if (1 - cosTheta) > 0.0001 then | |
467 | local theta = ACOS(cosTheta) | |
468 | local invSinTheta = 1 / SIN(theta) | |
469 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
470 | finishInterp = SIN(t * theta) * invSinTheta | |
471 | else | |
472 | startInterp = 1 - t | |
473 | finishInterp = t | |
474 | end | |
475 | else | |
476 | if (1 + cosTheta) > 0.0001 then | |
477 | local theta = ACOS(-cosTheta) | |
478 | local invSinTheta = 1 / SIN(theta) | |
479 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
480 | finishInterp = SIN(t * theta) * invSinTheta | |
481 | else | |
482 | startInterp = t - 1 | |
483 | finishInterp = t | |
484 | end | |
485 | end | |
486 | 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 | |
487 | end | |
488 | ||
489 | function Clerp(a, b, t) | |
490 | local qa = {QuaternionFromCFrame(a)} | |
491 | local qb = {QuaternionFromCFrame(b)} | |
492 | local ax, ay, az = a.x, a.y, a.z | |
493 | local bx, by, bz = b.x, b.y, b.z | |
494 | local _t = 1 - t | |
495 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
496 | end | |
497 | ||
498 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
499 | local frame = IT("Frame") | |
500 | frame.BackgroundTransparency = TRANSPARENCY | |
501 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
502 | frame.Position = POSITION | |
503 | frame.Size = SIZE | |
504 | frame.BackgroundColor3 = COLOR | |
505 | frame.BorderColor3 = BORDERCOLOR | |
506 | frame.Name = NAME | |
507 | frame.Parent = PARENT | |
508 | return frame | |
509 | end | |
510 | ||
511 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
512 | local label = IT("TextLabel") | |
513 | label.BackgroundTransparency = 1 | |
514 | label.Size = UD2(1, 0, 1, 0) | |
515 | label.Position = UD2(0, 0, 0, 0) | |
516 | label.TextColor3 = TEXTCOLOR | |
517 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
518 | label.TextTransparency = TRANSPARENCY | |
519 | label.FontSize = TEXTFONTSIZE | |
520 | label.Font = TEXTFONT | |
521 | label.BorderSizePixel = BORDERSIZEPIXEL | |
522 | label.TextScaled = false | |
523 | label.Text = TEXT | |
524 | label.Name = NAME | |
525 | label.Parent = PARENT | |
526 | return label | |
527 | end | |
528 | ||
529 | function NoOutlines(PART) | |
530 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
531 | end | |
532 | ||
533 | ||
534 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
535 | local NEWWELD = IT(TYPE) | |
536 | NEWWELD.Part0 = PART0 | |
537 | NEWWELD.Part1 = PART1 | |
538 | NEWWELD.C0 = C0 | |
539 | NEWWELD.C1 = C1 | |
540 | NEWWELD.Parent = PARENT | |
541 | return NEWWELD | |
542 | end | |
543 | ||
544 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
545 | local NEWSOUND = nil | |
546 | coroutine.resume(coroutine.create(function() | |
547 | NEWSOUND = IT("Sound", PARENT) | |
548 | NEWSOUND.Volume = VOLUME | |
549 | NEWSOUND.Pitch = PITCH | |
550 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
551 | Swait() | |
552 | NEWSOUND:play() | |
553 | game:GetService("Debris"):AddItem(NEWSOUND, 10) | |
554 | end)) | |
555 | return NEWSOUND | |
556 | end | |
557 | ||
558 | function CFrameFromTopBack(at, top, back) | |
559 | local right = top:Cross(back) | |
560 | 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) | |
561 | end | |
562 | ||
563 | function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
564 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
565 | local mesh = IT("SpecialMesh",wave) | |
566 | mesh.MeshType = "FileMesh" | |
567 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
568 | mesh.Scale = SIZE | |
569 | mesh.Offset = VT(0,0,-SIZE.X/8) | |
570 | wave.CFrame = CFRAME | |
571 | coroutine.resume(coroutine.create(function(PART) | |
572 | for i = 1, WAIT do | |
573 | Swait() | |
574 | mesh.Scale = mesh.Scale + GROW | |
575 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
576 | if DOESROT == true then | |
577 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
578 | end | |
579 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
580 | if wave.Transparency > 0.99 then | |
581 | wave:remove() | |
582 | end | |
583 | end | |
584 | end)) | |
585 | end | |
586 | ||
587 | function CreateCrown(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
588 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
589 | local mesh = IT("SpecialMesh",wave) | |
590 | mesh.MeshType = "FileMesh" | |
591 | mesh.MeshId = "http://www.roblox.com/asset/?id=1078075" | |
592 | mesh.Scale = SIZE | |
593 | mesh.Offset = VT(0,0,-SIZE.X/8) | |
594 | wave.CFrame = CFRAME | |
595 | coroutine.resume(coroutine.create(function(PART) | |
596 | for i = 1, WAIT do | |
597 | Swait() | |
598 | mesh.Scale = mesh.Scale + GROW | |
599 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
600 | if DOESROT == true then | |
601 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
602 | end | |
603 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
604 | if wave.Transparency > 0.99 then | |
605 | wave:remove() | |
606 | end | |
607 | end | |
608 | end)) | |
609 | end | |
610 | ||
611 | function CreateIceCrown(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
612 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
613 | local mesh = IT("SpecialMesh",wave) | |
614 | mesh.MeshType = "FileMesh" | |
615 | mesh.MeshId = "http://www.roblox.com/asset/?id=1323306" | |
616 | mesh.Scale = SIZE | |
617 | mesh.Offset = VT(0,0,-SIZE.X/8) | |
618 | wave.CFrame = CFRAME | |
619 | coroutine.resume(coroutine.create(function(PART) | |
620 | for i = 1, WAIT do | |
621 | Swait() | |
622 | mesh.Scale = mesh.Scale + GROW | |
623 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
624 | if DOESROT == true then | |
625 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
626 | end | |
627 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
628 | if wave.Transparency > 0.99 then | |
629 | wave:remove() | |
630 | end | |
631 | end | |
632 | end)) | |
633 | end | |
634 | ||
635 | function CreateSpikeball(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
636 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
637 | local mesh = IT("SpecialMesh",wave) | |
638 | mesh.MeshType = "FileMesh" | |
639 | mesh.MeshId = "http://www.roblox.com/asset/?id=9982590" | |
640 | mesh.Scale = SIZE | |
641 | mesh.Offset = VT(0,0,-SIZE.X/8) | |
642 | wave.CFrame = CFRAME | |
643 | coroutine.resume(coroutine.create(function(PART) | |
644 | for i = 1, WAIT do | |
645 | Swait() | |
646 | mesh.Scale = mesh.Scale + GROW | |
647 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
648 | if DOESROT == true then | |
649 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
650 | end | |
651 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
652 | if wave.Transparency > 0.99 then | |
653 | wave:remove() | |
654 | end | |
655 | end | |
656 | end)) | |
657 | end | |
658 | ||
659 | function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
660 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
661 | local mesh = IT("SpecialMesh",wave) | |
662 | mesh.MeshType = "FileMesh" | |
663 | mesh.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
664 | mesh.Scale = SIZE | |
665 | wave.CFrame = CFRAME | |
666 | coroutine.resume(coroutine.create(function(PART) | |
667 | for i = 1, WAIT do | |
668 | Swait() | |
669 | mesh.Scale = mesh.Scale + GROW | |
670 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
671 | if DOESROT == true then | |
672 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
673 | end | |
674 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
675 | if wave.Transparency > 0.99 then | |
676 | wave:remove() | |
677 | end | |
678 | end | |
679 | end)) | |
680 | end | |
681 | ||
682 | function CreateTornado(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW) | |
683 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
684 | local mesh = IT("SpecialMesh",wave) | |
685 | mesh.MeshType = "FileMesh" | |
686 | mesh.MeshId = "http://www.roblox.com/asset/?id=102638417" | |
687 | mesh.Scale = SIZE | |
688 | wave.CFrame = CFRAME | |
689 | coroutine.resume(coroutine.create(function(PART) | |
690 | for i = 1, WAIT do | |
691 | Swait() | |
692 | mesh.Scale = mesh.Scale + GROW | |
693 | if DOESROT == true then | |
694 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
695 | end | |
696 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
697 | if wave.Transparency > 0.99 then | |
698 | wave:remove() | |
699 | end | |
700 | end | |
701 | end)) | |
702 | end | |
703 | ||
704 | function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW) | |
705 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
706 | local mesh = IT("SpecialMesh",wave) | |
707 | mesh.MeshType = "FileMesh" | |
708 | mesh.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
709 | mesh.Scale = SIZE | |
710 | mesh.Offset = VT(0,0,0) | |
711 | wave.CFrame = CFRAME | |
712 | coroutine.resume(coroutine.create(function(PART) | |
713 | for i = 1, WAIT do | |
714 | Swait() | |
715 | mesh.Scale = mesh.Scale + GROW | |
716 | if DOESROT == true then | |
717 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
718 | end | |
719 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
720 | if wave.Transparency > 0.99 then | |
721 | wave:remove() | |
722 | end | |
723 | end | |
724 | end)) | |
725 | end | |
726 | ||
727 | function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW) | |
728 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
729 | local mesh = IT("SpecialMesh",wave) | |
730 | mesh.MeshType = "Sphere" | |
731 | mesh.Scale = SIZE | |
732 | mesh.Offset = VT(0,0,0) | |
733 | wave.CFrame = CFRAME | |
734 | coroutine.resume(coroutine.create(function(PART) | |
735 | for i = 1, WAIT do | |
736 | Swait() | |
737 | mesh.Scale = mesh.Scale + GROW | |
738 | wave.Transparency = wave.Transparency + (1/WAIT) | |
739 | if wave.Transparency > 0.99 then | |
740 | wave:remove() | |
741 | end | |
742 | end | |
743 | end)) | |
744 | end | |
745 | ||
746 | function MagicBlock(SIZE,WAIT,CFRAME,COLOR,GROW) | |
747 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(SIZE,SIZE,SIZE), true) | |
748 | local mesh = IT("BlockMesh",wave) | |
749 | wave.CFrame = CFRAME | |
750 | coroutine.resume(coroutine.create(function(PART) | |
751 | for i = 1, WAIT do | |
752 | Swait() | |
753 | mesh.Scale = mesh.Scale + GROW | |
754 | wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))) | |
755 | wave.Transparency = wave.Transparency + (1/WAIT) | |
756 | if wave.Transparency > 0.99 then | |
757 | wave:remove() | |
758 | end | |
759 | end | |
760 | end)) | |
761 | end | |
762 | ||
763 | function Slice(SIZE,WAIT,CFRAME,COLOR,GROW) | |
764 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
765 | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0)) | |
766 | wave.CFrame = CFRAME | |
767 | coroutine.resume(coroutine.create(function(PART) | |
768 | for i = 1, WAIT do | |
769 | Swait() | |
770 | mesh.Scale = mesh.Scale * GROW | |
771 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
772 | if wave.Transparency > 0.99 then | |
773 | wave:remove() | |
774 | end | |
775 | end | |
776 | end)) | |
777 | end | |
778 | ||
779 | function MakeForm(PART,TYPE) | |
780 | if TYPE == "Cyl" then | |
781 | local MSH = IT("CylinderMesh",PART) | |
782 | elseif TYPE == "Ball" then | |
783 | local MSH = IT("SpecialMesh",PART) | |
784 | MSH.MeshType = "Sphere" | |
785 | elseif TYPE == "Wedge" then | |
786 | local MSH = IT("SpecialMesh",PART) | |
787 | MSH.MeshType = "Wedge" | |
788 | end | |
789 | end | |
790 | ||
791 | function CheckTableForString(Table, String) | |
792 | for i, v in pairs(Table) do | |
793 | if string.find(string.lower(String), string.lower(v)) then | |
794 | return true | |
795 | end | |
796 | end | |
797 | return false | |
798 | end | |
799 | ||
800 | function CheckIntangible(Hit) | |
801 | local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"} | |
802 | if Hit and Hit.Parent then | |
803 | if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then | |
804 | return true | |
805 | end | |
806 | end | |
807 | return false | |
808 | end | |
809 | ||
810 | Debris = game:GetService("Debris") | |
811 | ||
812 | function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit) | |
813 | local Direction = CFrame.new(StartPos, Vec).lookVector | |
814 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore}) | |
815 | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore) | |
816 | if RayHit and CheckIntangible(RayHit) then | |
817 | if DelayIfHit then | |
818 | wait() | |
819 | end | |
820 | RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit) | |
821 | end | |
822 | return RayHit, RayPos, RayNormal | |
823 | end | |
824 | ||
825 | function turnto(position) | |
826 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
827 | end | |
828 | ||
829 | --//=================================\\ | |
830 | --|| WEAPON CREATION | |
831 | --\\=================================// | |
832 | ||
833 | local Claw1 = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Claw", VT(0,0,0),false) | |
834 | CreateWeldOrSnapOrMotor("Weld", Claw1, RightArm, Claw1, CF(0.2,-1.25,0) * ANGLES(RAD(-90), RAD(0), RAD(-90)), CF(0, 0, 0)) | |
835 | CreateMesh("SpecialMesh", Claw1, "FileMesh", "105262978", "", VT(1,1,1), VT(0,0,0)) | |
836 | ||
837 | local Claw2 = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Claw", VT(0,0,0),false) | |
838 | CreateWeldOrSnapOrMotor("Weld", Claw2, LeftArm, Claw2, CF(-0.2,-1.25,0) * ANGLES(RAD(-90), RAD(0), RAD(90)), CF(0, 0, 0)) | |
839 | CreateMesh("SpecialMesh", Claw2, "FileMesh", "105262978", "", VT(1,1,1), VT(0,0,0)) | |
840 | ||
841 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eye", VT(0.4,0.15,0.2),false) | |
842 | local weld = CreateWeldOrSnapOrMotor("Weld", part, Head, part, CF(0.15,0.28,-0.53) * ANGLES(RAD(15), RAD(0), RAD(25)), CF(0, 0, 0)) | |
843 | MakeForm(part,"Ball") | |
844 | local Eye = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Eye", VT(0.1,0.1,0.),false) | |
845 | local PupilWeld = CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0.13,0.24,-0.58) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(0, 0, 0)) | |
846 | MakeForm(Eye,"Ball") | |
847 | Eye.Color = C3(0,0,0) | |
848 | createaccessory(Head,"http://www.roblox.com/asset/?id=76056263","",Vector3.new(1,1,1),Vector3.new(0,0.18,0.2),BRICKC("Pearl")) | |
849 | local LASTPART = Torso | |
850 | for b = 1, 17 do | |
851 | local TAIL1 = CreatePart(3, Tail, "SmoothPlastic", 0, 0, "Insitutional white", "TailPart", VT(0.5,0.5,0.5)*(b/5),false) | |
852 | TAIL1.Color = C3(0,0,0) | |
853 | local weld = nil | |
854 | local WAG = -1*(b/15) | |
855 | if LASTPART == Torso then | |
856 | weld = CreateWeldOrSnapOrMotor("Weld", LASTPART, TAIL1, LASTPART, CF(0, 0.5, -0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
857 | local FRAME = IT("CFrameValue",TAIL1) | |
858 | FRAME.Name = "Frame" | |
859 | FRAME.Value = CF(0, 0.5, -0.2) | |
860 | else | |
861 | weld = CreateWeldOrSnapOrMotor("Weld", LASTPART, TAIL1, LASTPART, CF(0, 0, -1*(b/15)) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
862 | local FRAME = IT("CFrameValue",TAIL1) | |
863 | FRAME.Name = "Frame" | |
864 | FRAME.Value = CF(0, 0, WAG) | |
865 | end | |
866 | local FRAME = IT("NumberValue",TAIL1) | |
867 | FRAME.Name = "Time" | |
868 | FRAME.Value = b | |
869 | LASTPART = TAIL1 | |
870 | end | |
871 | ||
872 | Weapon.Parent = Character | |
873 | ||
874 | Humanoid.HealthChanged:connect(function() | |
875 | if Humanoid.Health == 0 then | |
876 | Humanoid.MaxHealth = "inf" | |
877 | Humanoid.Health = "inf" | |
878 | end | |
879 | end) | |
880 | ||
881 | Humanoid.Died:connect(function() | |
882 | ATTACK = true | |
883 | HASDIED = true | |
884 | Character.Parent = nil | |
885 | local corpse = Character | |
886 | local CFRAME = RootPart.CFrame | |
887 | Character = nil | |
888 | repeat Swait() until Player.Character ~= corpse | |
889 | Character = Player.Character | |
890 | repeat Swait() until Character:FindFirstChild("HumanoidRootPart") | |
891 | PlayerGui = Player.PlayerGui | |
892 | Cam = workspace.CurrentCamera | |
893 | Backpack = Player.Backpack | |
894 | RootPart = Character["HumanoidRootPart"] | |
895 | Torso = Character["Torso"] | |
896 | Head = Character["Head"] | |
897 | RightArm = Character["Right Arm"] | |
898 | LeftArm = Character["Left Arm"] | |
899 | RightLeg = Character["Right Leg"] | |
900 | LeftLeg = Character["Left Leg"] | |
901 | RootJoint = RootPart["RootJoint"] | |
902 | Neck = Torso["Neck"] | |
903 | RightShoulder = Torso["Right Shoulder"] | |
904 | LeftShoulder = Torso["Left Shoulder"] | |
905 | RightHip = Torso["Right Hip"] | |
906 | LeftHip = Torso["Left Hip"] | |
907 | Humanoid = Character.Humanoid | |
908 | RootPart.CFrame = CFRAME | |
909 | sick:remove() | |
910 | WEAPONGUI = IT("ScreenGui", PlayerGui) | |
911 | WEAPONGUI.Name = "Weapon GUI" | |
912 | Weapon = IT("Model",Character) | |
913 | Weapon.Name = "Adds" | |
914 | Minions = IT("Model",Character) | |
915 | Minions.Name = "MinionFolder" | |
916 | Effects = IT("Folder", Weapon) | |
917 | Effects.Name = "Effects" | |
918 | Tail = IT("Model",Weapon) | |
919 | Tail.Name = "Tail" | |
920 | wait() | |
921 | Claw1 = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Claw", VT(0,0,0),false) | |
922 | CreateWeldOrSnapOrMotor("Weld", Claw1, RightArm, Claw1, CF(0.2,-1.25,0) * ANGLES(RAD(-90), RAD(0), RAD(-90)), CF(0, 0, 0)) | |
923 | CreateMesh("SpecialMesh", Claw1, "FileMesh", "105262978", "", VT(1,1,1), VT(0,0,0)) | |
924 | ||
925 | Claw2 = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Claw", VT(0,0,0),false) | |
926 | CreateWeldOrSnapOrMotor("Weld", Claw2, LeftArm, Claw2, CF(-0.2,-1.25,0) * ANGLES(RAD(-90), RAD(0), RAD(90)), CF(0, 0, 0)) | |
927 | CreateMesh("SpecialMesh", Claw2, "FileMesh", "105262978", "", VT(1,1,1), VT(0,0,0)) | |
928 | createaccessory(Head,"http://www.roblox.com/asset/?id=76056263","",Vector3.new(1,1,1),Vector3.new(0,0.18,0.2),BRICKC("Pearl")) | |
929 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eye", VT(0.4,0.15,0.2),false) | |
930 | local weld = CreateWeldOrSnapOrMotor("Weld", part, Head, part, CF(0.15,0.28,-0.53) * ANGLES(RAD(15), RAD(0), RAD(25)), CF(0, 0, 0)) | |
931 | MakeForm(part,"Ball") | |
932 | local Eye = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Eye", VT(0.1,0.1,0.),false) | |
933 | PupilWeld = CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0.13,0.24,-0.58) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(0, 0, 0)) | |
934 | MakeForm(Eye,"Ball") | |
935 | Eye.Color = C3(0,0,0) | |
936 | local LASTPART = Torso | |
937 | for b = 1, 17 do | |
938 | local TAIL1 = CreatePart(3, Tail, "SmoothPlastic", 0, 0, "Insitutional white", "TailPart", VT(0.5,0.5,0.5)*(b/5),false) | |
939 | TAIL1.Color = C3(0,0,0) | |
940 | local weld = nil | |
941 | local WAG = -1*(b/15) | |
942 | if LASTPART == Torso then | |
943 | weld = CreateWeldOrSnapOrMotor("Weld", LASTPART, TAIL1, LASTPART, CF(0, 0.5, -0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
944 | local FRAME = IT("CFrameValue",TAIL1) | |
945 | FRAME.Name = "Frame" | |
946 | FRAME.Value = CF(0, 0.5, -0.2) | |
947 | else | |
948 | weld = CreateWeldOrSnapOrMotor("Weld", LASTPART, TAIL1, LASTPART, CF(0, 0, -1*(b/15)) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
949 | local FRAME = IT("CFrameValue",TAIL1) | |
950 | FRAME.Name = "Frame" | |
951 | FRAME.Value = CF(0, 0, WAG) | |
952 | end | |
953 | local FRAME = IT("NumberValue",TAIL1) | |
954 | FRAME.Name = "Time" | |
955 | FRAME.Value = b | |
956 | LASTPART = TAIL1 | |
957 | end | |
958 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.13, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
959 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.60, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
960 | 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") | |
961 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.02, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
962 | local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.1, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") | |
963 | local SKILL6FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.7, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame") | |
964 | ||
965 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Q-F-G] Claw strikes", SKILLTEXTCOLOR, 8, "Garamond", 0, 2, 1, "Text 1") | |
966 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] False Denial", SKILLTEXTCOLOR, 8, "Garamond", 0, 2, 1, "Text 2") | |
967 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[V-C] Denial Possession", SKILLTEXTCOLOR, 7, "Garamond", 0, 2, 1, "Text 4") | |
968 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[X] Defy the world", SKILLTEXTCOLOR, 8, "Garamond", 0, 2, 1, "Text 5") | |
969 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[P] Sprint", SKILLTEXTCOLOR, 8, "Garamond", 0, 2, 1, "Text 5") | |
970 | local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[K] Bulk dash", SKILLTEXTCOLOR, 8, "Garamond", 0, 2, 1, "Text 6") | |
971 | HASDIED = false | |
972 | ATTACK = false | |
973 | end) | |
974 | ||
975 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.13, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
976 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.60, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
977 | 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") | |
978 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.02, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
979 | local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.1, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") | |
980 | local SKILL6FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.7, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame") | |
981 | ||
982 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Q-F-G] Claw strikes", SKILLTEXTCOLOR, 8, "Garamond", 0, 2, 1, "Text 1") | |
983 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] False Denial", SKILLTEXTCOLOR, 8, "Garamond", 0, 2, 1, "Text 2") | |
984 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[V-C] Denial Possession", SKILLTEXTCOLOR, 7, "Garamond", 0, 2, 1, "Text 4") | |
985 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[X] Defy the world", SKILLTEXTCOLOR, 8, "Garamond", 0, 2, 1, "Text 5") | |
986 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[P] Sprint", SKILLTEXTCOLOR, 8, "Garamond", 0, 2, 1, "Text 5") | |
987 | local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[K] Bulk dash", SKILLTEXTCOLOR, 8, "Garamond", 0, 2, 1, "Text 6") | |
988 | ||
989 | --//=================================\\ | |
990 | --|| DAMAGE FUNCTIONS | |
991 | --\\=================================// | |
992 | ||
993 | function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR) | |
994 | local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT()) | |
995 | STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0)) | |
996 | local BODYGYRO = IT("BodyGyro", STATPART) | |
997 | local BODYPOSITION = IT("BodyPosition", STATPART) | |
998 | BODYPOSITION.P = 2000 | |
999 | BODYPOSITION.D = 100 | |
1000 | BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge) | |
1001 | BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2)) | |
1002 | game:GetService("Debris"):AddItem(STATPART ,5) | |
1003 | local BILLBOARDGUI = Instance.new("BillboardGui", STATPART) | |
1004 | BILLBOARDGUI.Adornee = STATPART | |
1005 | BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0) | |
1006 | BILLBOARDGUI.StudsOffset = VT(-2, 2, 0) | |
1007 | BILLBOARDGUI.AlwaysOnTop = false | |
1008 | local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI) | |
1009 | TEXTLABEL.BackgroundTransparency = 1 | |
1010 | TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0) | |
1011 | TEXTLABEL.Text = TEXT | |
1012 | TEXTLABEL.Font = "SciFi" | |
1013 | TEXTLABEL.FontSize="Size42" | |
1014 | TEXTLABEL.TextColor3 = COLOR | |
1015 | TEXTLABEL.TextStrokeTransparency = 1 | |
1016 | TEXTLABEL.TextScaled = true | |
1017 | TEXTLABEL.TextWrapped = true | |
1018 | coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL) | |
1019 | if LABELTYPE == "Normal" then | |
1020 | for i = 1, 30 do | |
1021 | Swait() | |
1022 | STATPART.Position = STATPART.Position + VT(0, (15-i)/10 ,0) | |
1023 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30) | |
1024 | end | |
1025 | elseif LABELTYPE == "Debuff" then | |
1026 | for i = 1, 30 do | |
1027 | Swait() | |
1028 | STATPART.Position = STATPART.Position - VT(0, i/10 ,0) | |
1029 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30) | |
1030 | end | |
1031 | elseif LABELTYPE == "Shock" then | |
1032 | local ORIGIN = STATPART.Position | |
1033 | for i = 1, 30 do | |
1034 | Swait() | |
1035 | STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2)) | |
1036 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30) | |
1037 | end | |
1038 | end | |
1039 | THEPART.Parent = nil | |
1040 | end),STATPART, BODYPOSITION, TEXTLABEL) | |
1041 | end | |
1042 | ||
1043 | --//=================================\\ | |
1044 | --|| DAMAGING | |
1045 | --\\=================================// | |
1046 | ||
1047 | function AoEDamage(position,radius,min,max,maxstrength,beserk,critrate,critmultiplier,CanBeDodgedByJumping) | |
1048 | local dmg = math.random(min,max) | |
1049 | for i,v in ipairs(workspace:GetChildren()) do | |
1050 | if v:FindFirstChild("HitBy"..Player.Name) == nil then | |
1051 | local body = v:GetChildren() | |
1052 | for part = 1, #body do | |
1053 | if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
1054 | if(body[part].Position - position).Magnitude < radius then | |
1055 | if v.ClassName == "Model" then | |
1056 | if v:FindFirstChild("Humanoid") then | |
1057 | if v.Humanoid.Health ~= 0 then | |
1058 | if CanBeDodgedByJumping == true then | |
1059 | if body[part].Position.Y < position.Y+5 then | |
1060 | if math.random(1,100) < critrate+1 then | |
1061 | v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier | |
1062 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0)) | |
1063 | else | |
1064 | v.Humanoid.Health = v.Humanoid.Health - dmg | |
1065 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0)) | |
1066 | end | |
1067 | local defence = Instance.new("BoolValue",v) | |
1068 | defence.Name = ("HitBy"..Player.Name) | |
1069 | game:GetService("Debris"):AddItem(defence, 0.01) | |
1070 | end | |
1071 | else | |
1072 | if beserk == true then | |
1073 | v.Humanoid.Health = 0 | |
1074 | end | |
1075 | if math.random(1,100) < critrate+1 then | |
1076 | v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier | |
1077 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0)) | |
1078 | else | |
1079 | v.Humanoid.Health = v.Humanoid.Health - dmg | |
1080 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0)) | |
1081 | end | |
1082 | local defence = Instance.new("BoolValue",v) | |
1083 | defence.Name = ("HitBy"..Player.Name) | |
1084 | game:GetService("Debris"):AddItem(defence, 0.01) | |
1085 | end | |
1086 | end | |
1087 | end | |
1088 | end | |
1089 | body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength | |
1090 | end | |
1091 | end | |
1092 | end | |
1093 | if v.ClassName == "Part" then | |
1094 | if v.Anchored == false and (v.Position - position).Magnitude < radius then | |
1095 | v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength | |
1096 | end | |
1097 | end | |
1098 | end | |
1099 | end | |
1100 | end | |
1101 | ||
1102 | function Sink(position,radius) | |
1103 | for i,v in ipairs(workspace:GetChildren()) do | |
1104 | if v:FindFirstChild("Hit2By"..Player.Name) == nil then | |
1105 | local body = v:GetChildren() | |
1106 | for part = 1, #body do | |
1107 | if(v:FindFirstChild("Hit2By"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
1108 | if(body[part].Position - position).Magnitude < radius then | |
1109 | if v.ClassName == "Model" then | |
1110 | if v:FindFirstChild("Humanoid") then | |
1111 | local defence = Instance.new("BoolValue",v) | |
1112 | defence.Name = ("Hit2By"..Player.Name) | |
1113 | if v.Humanoid.Health ~= 0 then | |
1114 | local TORS = v:FindFirstChild("HumanoidRootPart") or v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso") | |
1115 | if TORS ~= nil then | |
1116 | local HITFLOOR2, HITPOS2 = Raycast(TORS.Position, (CF(TORS.Position, TORS.Position + VT(0, -1, 0))).lookVector, 5 * TORS.Size.Y/2, v) | |
1117 | coroutine.resume(coroutine.create(function() | |
1118 | if HITFLOOR2 ~= nil then | |
1119 | TORS.Anchored = true | |
1120 | table.insert(Effects2,{v}) | |
1121 | repeat | |
1122 | Swait() | |
1123 | TORS.CFrame = TORS.CFrame * CF(0,-1,0) | |
1124 | until TORS.Position.Y<position.Y-4 | |
1125 | v:remove() | |
1126 | end | |
1127 | end)) | |
1128 | end | |
1129 | end | |
1130 | end | |
1131 | end | |
1132 | --body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength | |
1133 | end | |
1134 | end | |
1135 | end | |
1136 | end | |
1137 | end | |
1138 | end | |
1139 | ||
1140 | --//=================================\\ | |
1141 | --|| ATTACK FUNCTIONS AND STUFF | |
1142 | --\\=================================// | |
1143 | ||
1144 | local asd = Instance.new("ParticleEmitter") | |
1145 | asd.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0)) | |
1146 | asd.LightEmission = .1 | |
1147 | asd.Size = NumberSequence.new(0.2) | |
1148 | asd.Texture = "http://www.roblox.com/asset/?ID=291880914" | |
1149 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)}) | |
1150 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)}) | |
1151 | asd.Transparency = bbb | |
1152 | asd.Size = aaa | |
1153 | asd.ZOffset = .9 | |
1154 | asd.Acceleration = Vector3.new(0, -5, 0) | |
1155 | asd.LockedToPart = false | |
1156 | asd.EmissionDirection = "Back" | |
1157 | asd.Lifetime = NumberRange.new(1, 2) | |
1158 | asd.Rotation = NumberRange.new(-100, 100) | |
1159 | asd.RotSpeed = NumberRange.new(-100, 100) | |
1160 | asd.Speed = NumberRange.new(2) | |
1161 | asd.Enabled = false | |
1162 | asd.VelocitySpread = 10000 | |
1163 | ||
1164 | function getbloody(victim,amount) | |
1165 | local prtcl = asd:Clone() | |
1166 | prtcl.Parent = victim | |
1167 | prtcl:Emit(amount) | |
1168 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], victim, 10, (math.random(8,12)/10)) | |
1169 | end | |
1170 | ||
1171 | function Strike1() | |
1172 | ATTACK = true | |
1173 | Rooted = false | |
1174 | CreateSound(HITWEAPONSOUNDS[MRANDOM(1,#HITWEAPONSOUNDS)], Torso, 1, 1) | |
1175 | for i=0, 0.1, 0.1 / Animation_Speed do | |
1176 | Swait() | |
1177 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 3 / Animation_Speed) | |
1178 | 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) | |
1179 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(145), RAD(-45), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
1180 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(145), RAD(45), RAD(0)) * LEFTSHOULDERC0, 3 / Animation_Speed) | |
1181 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 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) | |
1182 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 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) | |
1183 | end | |
1184 | AoEDamage(CF(Torso.Position)*CF(0,0,-1).p,8,35,55,5,0,1,1.5,false) | |
1185 | CreateSound(HITWEAPONSOUNDS[MRANDOM(1,#HITWEAPONSOUNDS)], Torso, 1, 1) | |
1186 | Slice(1,5,LeftArm.CFrame*CF(0,-1,0) * ANGLES(RAD(0), RAD(0), RAD(0)),"Really black",1.01) | |
1187 | Slice(1,5,RightArm.CFrame*CF(0,-1,0) * ANGLES(RAD(0), RAD(0), RAD(0)),"Really black",1.01) | |
1188 | for i=0, 0.3, 0.1 / Animation_Speed do | |
1189 | Swait() | |
1190 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 3 / Animation_Speed) | |
1191 | 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) | |
1192 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(145), RAD(-45), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
1193 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(145), RAD(45), RAD(0)) * LEFTSHOULDERC0, 3 / Animation_Speed) | |
1194 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 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) | |
1195 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 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) | |
1196 | end | |
1197 | ATTACK = false | |
1198 | Rooted = false | |
1199 | end | |
1200 | ||
1201 | function Strike2() | |
1202 | ATTACK = true | |
1203 | Rooted = true | |
1204 | for i=1, 50 do | |
1205 | Swait() | |
1206 | VALUE1 = true | |
1207 | RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.6) | |
1208 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, (5-(3-i/50))) * ANGLES(RAD(0), RAD(65), RAD(i*50)), 2 / Animation_Speed) | |
1209 | 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) | |
1210 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
1211 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 3 / Animation_Speed) | |
1212 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 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) | |
1213 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 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) | |
1214 | AoEDamage(RightArm.CFrame*CF(0,-1,0).p,5,5,25,5,0,1,1.5,false) | |
1215 | AoEDamage(LeftArm.CFrame*CF(0,-1,0).p,5,5,25,5,0,1,1.5,false) | |
1216 | CreateSound(HITWEAPONSOUNDS[MRANDOM(1,#HITWEAPONSOUNDS)], Torso, 1, 1) | |
1217 | Slice(1,5,LeftArm.CFrame*CF(0,-1,0) * ANGLES(RAD(0), RAD(0), RAD(0)),"Really black",1.01) | |
1218 | Slice(1,5,RightArm.CFrame*CF(0,-1,0) * ANGLES(RAD(0), RAD(0), RAD(0)),"Really black",1.01) | |
1219 | end | |
1220 | ATTACK = false | |
1221 | Rooted = false | |
1222 | end | |
1223 | ||
1224 | function Strike3() | |
1225 | ATTACK = true | |
1226 | Rooted = false | |
1227 | for i = 1, 15 do | |
1228 | for i = 1, 2 do | |
1229 | Swait() | |
1230 | PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.17+MRANDOM(-2,2)/75,0.3+MRANDOM(-2,2)/75,-0.61) * ANGLES(RAD(0), RAD(0), RAD(0)), 3 / Animation_Speed) | |
1231 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)) * ANGLES(RAD(15), RAD(0), RAD(0)), 2.8 / Animation_Speed) | |
1232 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-10 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 2.8 / Animation_Speed) | |
1233 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(105+MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-45,-35))) * RIGHTSHOULDERC0, 2.8 / Animation_Speed) | |
1234 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) * ANGLES(RAD(105+MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15))) * LEFTSHOULDERC0, 2.8 / Animation_Speed) | |
1235 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 2.8 / Animation_Speed) | |
1236 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 2.8 / Animation_Speed) | |
1237 | end | |
1238 | AoEDamage(CF(Torso.Position)*CF(0,0,-1).p,8,5,25,5,0,1,1.5,false) | |
1239 | CreateSound(HITWEAPONSOUNDS[MRANDOM(1,#HITWEAPONSOUNDS)], Torso, 1, 1) | |
1240 | Slice(1,15,RightArm.CFrame*CF(0,-1,0) * ANGLES(RAD(MRANDOM(-45,45)), RAD(MRANDOM(-75,75)), RAD(0)),"Really black",1.01) | |
1241 | for i = 1, 2 do | |
1242 | Swait() | |
1243 | PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.17+MRANDOM(-2,2)/75,0.3+MRANDOM(-2,2)/75,-0.61) * ANGLES(RAD(0), RAD(0), RAD(0)), 3 / Animation_Speed) | |
1244 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)) * ANGLES(RAD(15), RAD(0), RAD(0)), 2.8 / Animation_Speed) | |
1245 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-10 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 2.8 / Animation_Speed) | |
1246 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 1) * ANGLES(RAD(105+MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15))) * RIGHTSHOULDERC0, 2.8 / Animation_Speed) | |
1247 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -1) * ANGLES(RAD(105+MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(35,45))) * LEFTSHOULDERC0, 2.8 / Animation_Speed) | |
1248 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 2.8 / Animation_Speed) | |
1249 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 2.8 / Animation_Speed) | |
1250 | end | |
1251 | AoEDamage(CF(Torso.Position)*CF(0,0,-1).p,8,5,25,5,0,1,1.5,false) | |
1252 | CreateSound(HITWEAPONSOUNDS[MRANDOM(1,#HITWEAPONSOUNDS)], Torso, 1, 1) | |
1253 | Slice(1,15,LeftArm.CFrame*CF(0,-1,0) * ANGLES(RAD(MRANDOM(-45,45)), RAD(MRANDOM(-75,75)), RAD(0)),"Really black",1.01) | |
1254 | end | |
1255 | if KEYHOLD == true then | |
1256 | repeat | |
1257 | for i = 1, 2 do | |
1258 | Swait() | |
1259 | PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.17+MRANDOM(-2,2)/75,0.3+MRANDOM(-2,2)/75,-0.61) * ANGLES(RAD(0), RAD(0), RAD(0)), 3 / Animation_Speed) | |
1260 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)) * ANGLES(RAD(15), RAD(0), RAD(0)), 2.8 / Animation_Speed) | |
1261 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-10 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 2.8 / Animation_Speed) | |
1262 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(105+MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-45,-35))) * RIGHTSHOULDERC0, 2.8 / Animation_Speed) | |
1263 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 1) * ANGLES(RAD(105+MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15))) * LEFTSHOULDERC0, 2.8 / Animation_Speed) | |
1264 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 2.8 / Animation_Speed) | |
1265 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 2.8 / Animation_Speed) | |
1266 | end | |
1267 | AoEDamage(CF(Torso.Position)*CF(0,0,-1).p,8,5,25,5,0,1,1.5,false) | |
1268 | CreateSound(HITWEAPONSOUNDS[MRANDOM(1,#HITWEAPONSOUNDS)], Torso, 1, 1) | |
1269 | Slice(1,15,RightArm.CFrame*CF(0,-1,0) * ANGLES(RAD(MRANDOM(-45,45)), RAD(MRANDOM(-75,75)), RAD(0)),"Really black",1.01) | |
1270 | for i = 1, 2 do | |
1271 | Swait() | |
1272 | PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.17+MRANDOM(-2,2)/75,0.3+MRANDOM(-2,2)/75,-0.61) * ANGLES(RAD(0), RAD(0), RAD(0)), 3 / Animation_Speed) | |
1273 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)) * ANGLES(RAD(15), RAD(0), RAD(0)), 2.8 / Animation_Speed) | |
1274 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-10 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 2.8 / Animation_Speed) | |
1275 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 1) * ANGLES(RAD(105+MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15))) * RIGHTSHOULDERC0, 2.8 / Animation_Speed) | |
1276 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -1) * ANGLES(RAD(105+MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(35,45))) * LEFTSHOULDERC0, 2.8 / Animation_Speed) | |
1277 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 2.8 / Animation_Speed) | |
1278 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 2.8 / Animation_Speed) | |
1279 | end | |
1280 | AoEDamage(CF(Torso.Position)*CF(0,0,-1).p,8,5,25,5,0,1,1.5,false) | |
1281 | CreateSound(HITWEAPONSOUNDS[MRANDOM(1,#HITWEAPONSOUNDS)], Torso, 1, 1) | |
1282 | Slice(1,15,LeftArm.CFrame*CF(0,-1,0) * ANGLES(RAD(MRANDOM(-45,45)), RAD(MRANDOM(-75,75)), RAD(0)),"Really black",1.01) | |
1283 | until KEYHOLD == false | |
1284 | end | |
1285 | ATTACK = false | |
1286 | Rooted = false | |
1287 | end | |
1288 | ||
1289 | function FalseDenial() | |
1290 | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
1291 | local HITBODY = Mouse.Target.Parent | |
1292 | local TORS = HITBODY:FindFirstChild("Torso") or HITBODY:FindFirstChild("UpperTorso") | |
1293 | local HUMAN = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") | |
1294 | if TORS ~= nil and HUMAN ~= nil then | |
1295 | ATTACK = true | |
1296 | Rooted = true | |
1297 | RootPart.CFrame = TORS.CFrame * CF(-1,0,8) | |
1298 | TORS.Anchored = true | |
1299 | CreateSound(ALONE, Head, 10, 1) | |
1300 | for i=0, 1, 0.1 / Animation_Speed do | |
1301 | Swait() | |
1302 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1303 | 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) | |
1304 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1305 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1306 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.5 / Animation_Speed) | |
1307 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.5 / Animation_Speed) | |
1308 | end | |
1309 | local HandlePart = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Insitutional white", "Handle", VT(0, 0, 0),false) | |
1310 | HandlePart.Color = C3(1,1,1) | |
1311 | local HandleMesh = CreateMesh("SpecialMesh", HandlePart, "FileMesh", "93180631", "", VT(1,1,1), VT(0, 3.1, 0)) | |
1312 | HandlePart.CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(180), RAD(90), RAD(0)) | |
1313 | local WELD = weldBetween(RightArm,HandlePart) | |
1314 | Rooted = true | |
1315 | CreateSound("289315275", HandlePart, 10, 1.5) | |
1316 | for i=1, 50 do | |
1317 | Swait() | |
1318 | MagicSphere(VT(0.2,0.2,i/5),35,CF(HandlePart.CFrame*CF(0,6,0)*CF(MRANDOM(-1,1),MRANDOM(-1,1),MRANDOM(-1,1)).p,HandlePart.CFrame*CF(0,6,0).p),C3(1,1,1),VT(0.001,0.001,0),0.5) | |
1319 | HandlePart.Transparency = HandlePart.Transparency - (0.01) | |
1320 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1321 | 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) | |
1322 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1323 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1324 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.5 / Animation_Speed) | |
1325 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.5 / Animation_Speed) | |
1326 | end | |
1327 | for i=0, 1, 0.1 / Animation_Speed do | |
1328 | Swait() | |
1329 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(-35)), 0.5 / Animation_Speed) | |
1330 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(35)), 0.5 / Animation_Speed) | |
1331 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.3) * ANGLES(RAD(105), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1332 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1333 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.5 / Animation_Speed) | |
1334 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.5 / Animation_Speed) | |
1335 | end | |
1336 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(45)), 3 / Animation_Speed) | |
1337 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 3 / Animation_Speed) | |
1338 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, -0.7) * ANGLES(RAD(110), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
1339 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 3 / Animation_Speed) | |
1340 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 3 / Animation_Speed) | |
1341 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 3 / Animation_Speed) | |
1342 | Swait() | |
1343 | WELD:remove() | |
1344 | HandlePart.CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(180), RAD(90), RAD(0)) | |
1345 | HandlePart.Anchored = true | |
1346 | local HEART = CreatePart(3, HITBODY, "Pebble", 0, 0, "Really red", "Heart", VT(1,1,1)) | |
1347 | MakeForm(HEART,"Ball") | |
1348 | HEART.CFrame = HandlePart.CFrame*CF(0,6,0) | |
1349 | getbloody(HEART,2) | |
1350 | Swait(15) | |
1351 | CreateSound("289315275", HEART, 10, 3) | |
1352 | for i = 1, 25 do | |
1353 | Swait() | |
1354 | MagicSphere(VT(0.2,0.2,i/5),35,CF(HandlePart.CFrame*CF(0,6.5,0)*CF(MRANDOM(-1,1),MRANDOM(-1,1),MRANDOM(-1,1)).p,HandlePart.CFrame*CF(0,6,0).p),C3(1,1,1),VT(0.001,0.001,0),0.5) | |
1355 | end | |
1356 | CreateSound("264486467", HEART, 10, 1) | |
1357 | getbloody(HEART,25) | |
1358 | HEART.Transparency = 1 | |
1359 | HITBODY:BreakJoints() | |
1360 | TORS.Anchored = false | |
1361 | ATTACK = false | |
1362 | Rooted = false | |
1363 | coroutine.resume(coroutine.create(function() | |
1364 | Swait(15) | |
1365 | CreateSound("2248511", HandlePart, 10, 1) | |
1366 | for i = 1, 50 do | |
1367 | Swait() | |
1368 | HandlePart.Transparency = HandlePart.Transparency + (0.01) | |
1369 | end | |
1370 | HandlePart:remove() | |
1371 | end)) | |
1372 | end | |
1373 | end | |
1374 | end | |
1375 | ||
1376 | function findNearestTorso(pos) | |
1377 | local list = game.Workspace:children() | |
1378 | local torso = nil | |
1379 | local dist = 1000 | |
1380 | local temp = nil | |
1381 | local human = nil | |
1382 | local temp2 = nil | |
1383 | for x = 1, #list do | |
1384 | temp2 = list[x] | |
1385 | if (temp2.className == "Model") and (temp2 ~= Character) and (temp2 ~= pos.Parent) then | |
1386 | temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso") | |
1387 | human = temp2:findFirstChildOfClass("Humanoid") | |
1388 | if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then | |
1389 | if (temp.Position - pos.Position).magnitude < dist then | |
1390 | torso = temp | |
1391 | dist = (temp.Position - pos.Position).magnitude | |
1392 | end | |
1393 | end | |
1394 | end | |
1395 | end | |
1396 | return torso,dist | |
1397 | end | |
1398 | ||
1399 | function CreateBody() | |
1400 | local zombie = IT("Model",Effects) | |
1401 | zombie.Name = "Possessed" | |
1402 | local tors = IT("Part",zombie) | |
1403 | tors.Name = "Torso" | |
1404 | tors.Size = Torso.Size | |
1405 | tors.CFrame = RootPart.CFrame * CF(math.random(-5,5),0,-5) | |
1406 | tors.Color = C3(0,0.5,0.5) | |
1407 | local heed = IT("Part",zombie) | |
1408 | heed.Size = Head.Size | |
1409 | heed.CFrame = tors.CFrame * CF(0,1.5,0) | |
1410 | heed.Name = "Head" | |
1411 | heed.Color = C3(255/255, 230/255, 194/255) | |
1412 | local face = IT("Decal",heed) | |
1413 | face.Texture = "http://www.roblox.com/asset/?id=149118644" | |
1414 | weldBetween(tors,heed) | |
1415 | local headmesh = IT("SpecialMesh",heed) | |
1416 | headmesh.Scale = VT(1.25,1.25,1.25) | |
1417 | local limb = IT("Part",zombie) | |
1418 | limb.Size = VT(1,2,1) | |
1419 | limb.Name = "Left Arm" | |
1420 | limb.CFrame = tors.CFrame * CF(-1.5,0,0) | |
1421 | limb.Color = C3(255/255, 230/255, 194/255) | |
1422 | weldBetween(tors,limb) | |
1423 | local limb = IT("Part",zombie) | |
1424 | limb.Size = VT(1,2,1) | |
1425 | limb.Name = "Right Arm" | |
1426 | limb.CFrame = tors.CFrame * CF(1.5,0,0) | |
1427 | limb.Color = C3(255/255, 230/255, 194/255) | |
1428 | weldBetween(tors,limb) | |
1429 | local limb = IT("Part",zombie) | |
1430 | limb.Size = VT(1,2,1) | |
1431 | limb.Name = "Right Leg" | |
1432 | limb.CFrame = tors.CFrame * CF(0.5,-2,0) | |
1433 | limb.Color = C3(0,0.5,0.5) | |
1434 | weldBetween(tors,limb) | |
1435 | local limb = IT("Part",zombie) | |
1436 | limb.Size = VT(1,2,1) | |
1437 | limb.Name = "Left Leg" | |
1438 | limb.CFrame = tors.CFrame * CF(-0.5,-2,0) | |
1439 | limb.Color = C3(0,0.5,0.5) | |
1440 | weldBetween(tors,limb) | |
1441 | local hooman = IT("Humanoid",zombie) | |
1442 | return zombie | |
1443 | end | |
1444 | ||
1445 | function DenialPossession() | |
1446 | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
1447 | local HITBODY = Mouse.Target.Parent | |
1448 | local TORS = HITBODY:FindFirstChild("Torso") or HITBODY:FindFirstChild("UpperTorso") | |
1449 | local HUMAN = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") | |
1450 | if TORS ~= nil and HUMAN ~= nil then | |
1451 | ATTACK = true | |
1452 | Rooted = true | |
1453 | TORS.Anchored = true | |
1454 | RootPart.CFrame = TORS.CFrame * CF(0,0,2) | |
1455 | for i=0, 1, 0.1 / Animation_Speed do | |
1456 | Swait() | |
1457 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1458 | 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) | |
1459 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1.2, -0.8) * ANGLES(RAD(125), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1460 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 1.2, -0.8) * ANGLES(RAD(125), RAD(0), RAD(12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1461 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.5 / Animation_Speed) | |
1462 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.5 / Animation_Speed) | |
1463 | end | |
1464 | CreateSound("289315275", TORS, 10, 3) | |
1465 | for i = 1, 25 do | |
1466 | if HITBODY:FindFirstChild("Head") then | |
1467 | Swait() | |
1468 | MagicSphere(VT(0.2,0.2,i/5),35,CF(HITBODY.Head.CFrame*CF(MRANDOM(-1,1),MRANDOM(-1,1),MRANDOM(-1,1)).p,HITBODY.Head.Position),C3(1,1,1),VT(0.001,0.001,0),0.5) | |
1469 | if HITBODY.Head:FindFirstChildOfClass("Decal") then | |
1470 | HITBODY.Head:FindFirstChildOfClass("Decal").Texture = "http://www.roblox.com/asset/?id=186465390" | |
1471 | end | |
1472 | end | |
1473 | end | |
1474 | local CLONE = HITBODY:Clone() | |
1475 | if CLONE ~= nil then | |
1476 | CLONE.Parent = Minions | |
1477 | CLONE:FindFirstChildOfClass("Humanoid").DisplayDistanceType = "None" | |
1478 | TORS = CLONE:FindFirstChild("Torso") or CLONE:FindFirstChild("UpperTorso") | |
1479 | TORS.Anchored = false | |
1480 | if CLONE.Head:FindFirstChildOfClass("Decal") then | |
1481 | CLONE.Head:FindFirstChildOfClass("Decal").Texture = "http://www.roblox.com/asset/?id=16904401" | |
1482 | end | |
1483 | coroutine.resume(coroutine.create(function() | |
1484 | while wait() do | |
1485 | local MAN = CLONE:FindFirstChildOfClass("Humanoid") | |
1486 | if MAN.Health ~= 0 then | |
1487 | local target,dist = findNearestTorso(TORS) | |
1488 | if target ~= nil then | |
1489 | MAN:MoveTo(target.Position) | |
1490 | if dist < 7 then | |
1491 | if MRANDOM(1,5) == 1 then | |
1492 | AoEDamage(TORS.Position,4,5,25,5,0,1,1.5,false) | |
1493 | end | |
1494 | end | |
1495 | end | |
1496 | else | |
1497 | CLONE.Parent = workspace | |
1498 | Debris:AddItem(CLONE,5) | |
1499 | end | |
1500 | end | |
1501 | end)) | |
1502 | HITBODY:BreakJoints() | |
1503 | HITBODY.Parent = nil | |
1504 | else | |
1505 | local CLONE = CreateBody() | |
1506 | CLONE.Torso.CFrame = TORS.CFrame | |
1507 | CLONE.Parent = Minions | |
1508 | CLONE:FindFirstChildOfClass("Humanoid").DisplayDistanceType = "None" | |
1509 | TORS = CLONE:FindFirstChild("Torso") or CLONE:FindFirstChild("UpperTorso") | |
1510 | TORS.Anchored = false | |
1511 | if CLONE.Head:FindFirstChildOfClass("Decal") then | |
1512 | CLONE.Head:FindFirstChildOfClass("Decal").Texture = "http://www.roblox.com/asset/?id=16904401" | |
1513 | end | |
1514 | for _, c in pairs(HITBODY:GetChildren()) do | |
1515 | if c.ClassName ~= "Part" and c.ClassName ~= "MeshPart" then | |
1516 | c.Parent = CLONE | |
1517 | end | |
1518 | end | |
1519 | coroutine.resume(coroutine.create(function() | |
1520 | while wait() do | |
1521 | local MAN = CLONE:FindFirstChildOfClass("Humanoid") | |
1522 | if MAN.Health ~= 0 then | |
1523 | local target,dist = findNearestTorso(TORS) | |
1524 | if target ~= nil then | |
1525 | MAN:MoveTo(target.Position) | |
1526 | if dist < 7 then | |
1527 | if MRANDOM(1,5) == 1 then | |
1528 | AoEDamage(TORS.Position,4,5,25,5,0,1,1.5,false) | |
1529 | end | |
1530 | end | |
1531 | end | |
1532 | else | |
1533 | CLONE.Parent = workspace | |
1534 | Debris:AddItem(CLONE,5) | |
1535 | end | |
1536 | end | |
1537 | end)) | |
1538 | HITBODY:BreakJoints() | |
1539 | HITBODY.Parent = nil | |
1540 | end | |
1541 | ATTACK = false | |
1542 | Rooted = false | |
1543 | end | |
1544 | end | |
1545 | end | |
1546 | ||
1547 | function ForbiddenGate() | |
1548 | ATTACK = true | |
1549 | Rooted = true | |
1550 | CreateSound(ALONE, Head, 10, 1) | |
1551 | for i=0, 2, 0.1 / Animation_Speed do | |
1552 | Swait() | |
1553 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1554 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1555 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0, -0.3) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1556 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1557 | RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1558 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
1559 | end | |
1560 | CreateSound("1075001850", RootPart, 10, 3) | |
1561 | UNANCHOR = false | |
1562 | RootPart.Anchored = true | |
1563 | local GATE = CreatePart(3, Effects, "SmoothPlastic", 0, 0, "Really black", "Heart", VT(1,0.2,1)) | |
1564 | MakeForm(GATE,"Cyl") | |
1565 | GATE.Color = C3(0,0,0) | |
1566 | GATE.CFrame = CF(RootPart.Position)*CF(0,-3,0) | |
1567 | for i=1, 250 do | |
1568 | Swait() | |
1569 | UNANCHOR = false | |
1570 | GATE.Size = GATE.Size + VT(1,0,1) | |
1571 | --AURA.Size = GATE.Size + VT(0.1,0.1,0.1) | |
1572 | RootPart.Anchored = true | |
1573 | Sink(GATE.Position,GATE.Size.Z/2.2) | |
1574 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -20) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.005 / Animation_Speed) | |
1575 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1576 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0, -0.3) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1577 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1578 | RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1579 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
1580 | end | |
1581 | repeat Swait() until #Effects2 == 0 | |
1582 | for i=1, 25 do | |
1583 | Swait() | |
1584 | GATE.Size = GATE.Size - VT(10,0,10) | |
1585 | --AURA.Size = GATE.Size + VT(0.1,0.1,0.1) | |
1586 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
1587 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1588 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0, -0.3) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1589 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1590 | RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1591 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
1592 | end | |
1593 | GATE:remove() | |
1594 | RootPart.Anchored = false | |
1595 | UNANCHOR = true | |
1596 | ATTACK = false | |
1597 | Rooted = false | |
1598 | end | |
1599 | ||
1600 | function MorphantDash() | |
1601 | ATTACK = true | |
1602 | Rooted = true | |
1603 | local CRAWL = true | |
1604 | for i=0, 1, 0.1 / Animation_Speed do | |
1605 | Swait() | |
1606 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1) * ANGLES(RAD(90), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1607 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-90), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1608 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -1) * ANGLES(RAD(135), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1609 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -1) * ANGLES(RAD(135), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1610 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(45)), 0.5 / Animation_Speed) | |
1611 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-45)), 0.5 / Animation_Speed) | |
1612 | end | |
1613 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eye", VT(0.4,0.15,0.2),false) | |
1614 | local weld = CreateWeldOrSnapOrMotor("Weld", part, Head, part, CF(0.15,0.28,-0.53) * ANGLES(RAD(15), RAD(0), RAD(25)), CF(0, 0, 0)) | |
1615 | MakeForm(part,"Ball") | |
1616 | UNANCHOR = false | |
1617 | RootPart.Anchored = true | |
1618 | local NEWTORS = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Body", Torso.Size,false) | |
1619 | MakeForm(NEWTORS,"Ball") | |
1620 | NEWTORS.Color = C3(0,0,0) | |
1621 | NEWTORS.CFrame = Torso.CFrame | |
1622 | weldBetween(Torso,NEWTORS) | |
1623 | for i = 1, 15 do | |
1624 | Swait() | |
1625 | NEWTORS.Size = NEWTORS.Size * 1.2 | |
1626 | weldBetween(Torso,NEWTORS) | |
1627 | end | |
1628 | for i = 1, 15 do | |
1629 | Swait() | |
1630 | weld.C0 = Clerp(weld.C0, CF(0.15,0.28,-14.15) * ANGLES(RAD(15), RAD(0), RAD(25)), 2 / Animation_Speed) | |
1631 | end | |
1632 | local boop = false | |
1633 | local OFFSET = 8 | |
1634 | for i = 1, 3 do | |
1635 | local LimbPart1 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Eye", VT(10,1,1),false) | |
1636 | local weld1 = CreateWeldOrSnapOrMotor("Weld", LimbPart1, Torso, LimbPart1, CF(15,OFFSET,2) * ANGLES(RAD(0), RAD(-45), RAD(OFFSET)), CF(0, 0, 0)) | |
1637 | local LimbPart2 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Eye", VT(12,1,1),false) | |
1638 | local weld2 = CreateWeldOrSnapOrMotor("Weld", LimbPart2, LimbPart1, LimbPart2, CF(5,0,0) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(-5, 0, 0)) | |
1639 | local LimbPart3 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Eye", VT(1,2,2),false) | |
1640 | local weld3 = CreateWeldOrSnapOrMotor("Weld", LimbPart3, LimbPart2, LimbPart3, CF(6,0,0) * ANGLES(RAD(0), RAD(45), RAD(0)), CF(0, 0, 0)) | |
1641 | local ECH = OFFSET | |
1642 | OFFSET = OFFSET - 8 | |
1643 | if boop == false then | |
1644 | boop = true | |
1645 | elseif boop == true then | |
1646 | boop = false | |
1647 | end | |
1648 | coroutine.resume(coroutine.create(function() | |
1649 | local twist = boop | |
1650 | while wait() do | |
1651 | if CRAWL == false then | |
1652 | LimbPart1:remove() | |
1653 | LimbPart2:remove() | |
1654 | LimbPart3:remove() | |
1655 | break | |
1656 | end | |
1657 | for i = 1, 3 do | |
1658 | wait() | |
1659 | if twist == false then | |
1660 | weld1.C0 = Clerp(weld1.C0, CF(12.5,ECH,4) * ANGLES(RAD(0), RAD(-85), RAD(ECH*2 + 25)), 1 / Animation_Speed) | |
1661 | elseif twist == true then | |
1662 | weld1.C0 = Clerp(weld1.C0, CF(12.5,ECH,4) * ANGLES(RAD(0), RAD(-25), RAD(ECH*2 -25)), 1 / Animation_Speed) | |
1663 | end | |
1664 | if CRAWL == false then | |
1665 | LimbPart1:remove() | |
1666 | LimbPart2:remove() | |
1667 | LimbPart3:remove() | |
1668 | break | |
1669 | end | |
1670 | end | |
1671 | for i = 1, 3 do | |
1672 | wait() | |
1673 | if twist == true then | |
1674 | weld1.C0 = Clerp(weld1.C0, CF(12.5,ECH,4) * ANGLES(RAD(0), RAD(-85), RAD(ECH*2 + 25)), 1 / Animation_Speed) | |
1675 | elseif twist == false then | |
1676 | weld1.C0 = Clerp(weld1.C0, CF(12.5,ECH,4) * ANGLES(RAD(0), RAD(-25), RAD(ECH*2 -25)), 1 / Animation_Speed) | |
1677 | end | |
1678 | if CRAWL == false then | |
1679 | LimbPart1:remove() | |
1680 | LimbPart2:remove() | |
1681 | LimbPart3:remove() | |
1682 | break | |
1683 | end | |
1684 | end | |
1685 | end | |
1686 | end)) | |
1687 | end | |
1688 | OFFSET = 8 | |
1689 | for i = 1, 3 do | |
1690 | local LimbPart1 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Eye", VT(10,1,1),false) | |
1691 | local weld1 = CreateWeldOrSnapOrMotor("Weld", LimbPart1, Torso, LimbPart1, CF(-15,-OFFSET,2) * ANGLES(RAD(0), RAD(45), RAD(OFFSET)), CF(0, 0, 0)) | |
1692 | local LimbPart2 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Eye", VT(12,1,1),false) | |
1693 | local weld2 = CreateWeldOrSnapOrMotor("Weld", LimbPart2, LimbPart1, LimbPart2, CF(-5,0,0) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(-5, 0, 0)) | |
1694 | local LimbPart3 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Eye", VT(1,2,2),false) | |
1695 | local weld3 = CreateWeldOrSnapOrMotor("Weld", LimbPart3, LimbPart2, LimbPart3, CF(6,0,0) * ANGLES(RAD(0), RAD(-45), RAD(0)), CF(0, 0, 0)) | |
1696 | local ECH = OFFSET | |
1697 | OFFSET = OFFSET - 8 | |
1698 | if boop == false then | |
1699 | boop = true | |
1700 | elseif boop == true then | |
1701 | boop = false | |
1702 | end | |
1703 | coroutine.resume(coroutine.create(function() | |
1704 | local twist = boop | |
1705 | while wait() do | |
1706 | if CRAWL == false then | |
1707 | LimbPart1:remove() | |
1708 | LimbPart2:remove() | |
1709 | LimbPart3:remove() | |
1710 | break | |
1711 | end | |
1712 | for i = 1, 3 do | |
1713 | wait() | |
1714 | if twist == false then | |
1715 | weld1.C0 = Clerp(weld1.C0, CF(-12.5,ECH,4) * ANGLES(RAD(0), RAD(85), RAD(ECH*2 + 25)), 1 / Animation_Speed) | |
1716 | elseif twist == true then | |
1717 | weld1.C0 = Clerp(weld1.C0, CF(-12.5,ECH,4) * ANGLES(RAD(0), RAD(25), RAD(ECH*2 -25)), 1 / Animation_Speed) | |
1718 | end | |
1719 | if CRAWL == false then | |
1720 | LimbPart1:remove() | |
1721 | LimbPart2:remove() | |
1722 | LimbPart3:remove() | |
1723 | break | |
1724 | end | |
1725 | end | |
1726 | for i = 1, 3 do | |
1727 | wait() | |
1728 | if twist == true then | |
1729 | weld1.C0 = Clerp(weld1.C0, CF(-12.5,ECH,4) * ANGLES(RAD(0), RAD(85), RAD(ECH*2 + 25)), 1 / Animation_Speed) | |
1730 | elseif twist == false then | |
1731 | weld1.C0 = Clerp(weld1.C0, CF(-12.5,ECH,4) * ANGLES(RAD(0), RAD(25), RAD(ECH*2 -25)), 1 / Animation_Speed) | |
1732 | end | |
1733 | if CRAWL == false then | |
1734 | LimbPart1:remove() | |
1735 | LimbPart2:remove() | |
1736 | LimbPart3:remove() | |
1737 | break | |
1738 | end | |
1739 | end | |
1740 | end | |
1741 | end)) | |
1742 | end | |
1743 | CreateSound("131060194", Head, 10, 1) | |
1744 | for i = 1, 350 do | |
1745 | Swait() | |
1746 | turnto(Mouse.Hit.p) | |
1747 | RootPart.CFrame = RootPart.CFrame * CF(0,0,-5) | |
1748 | AoEDamage(Torso.Position,15,35,55,5,0,1,1.5,false) | |
1749 | end | |
1750 | CRAWL = false | |
1751 | Swait(5) | |
1752 | for i = 1, 50 do | |
1753 | Swait() | |
1754 | NEWTORS.Size = NEWTORS.Size * 0.9 | |
1755 | weldBetween(Torso,NEWTORS) | |
1756 | weld.C0 = Clerp(weld.C0, CF(0.15,0.28,-0.53) * ANGLES(RAD(15), RAD(0), RAD(25)), 0.5 / Animation_Speed) | |
1757 | end | |
1758 | part:remove() | |
1759 | UNANCHOR = true | |
1760 | RootPart.Anchored = false | |
1761 | NEWTORS:remove() | |
1762 | ATTACK = false | |
1763 | Rooted = false | |
1764 | end | |
1765 | ||
1766 | --//=================================\\ | |
1767 | --|| ASSIGN THINGS TO KEYS | |
1768 | --\\=================================// | |
1769 | ||
1770 | function MouseDown(Mouse) | |
1771 | if ATTACK == false then | |
1772 | end | |
1773 | end | |
1774 | ||
1775 | function MouseUp(Mouse) | |
1776 | HOLD = false | |
1777 | end | |
1778 | ||
1779 | function KeyDown(Key) | |
1780 | KEYHOLD = true | |
1781 | if Key == "q" and ATTACK == false then | |
1782 | Strike1() | |
1783 | end | |
1784 | ||
1785 | if Key == "f" and ATTACK == false then | |
1786 | Strike2() | |
1787 | end | |
1788 | ||
1789 | if Key == "g" and ATTACK == false then | |
1790 | Strike3() | |
1791 | end | |
1792 | ||
1793 | if Key == "b" and ATTACK == false then | |
1794 | FalseDenial() | |
1795 | end | |
1796 | ||
1797 | if Key == "v" and ATTACK == false then | |
1798 | DenialPossession() | |
1799 | end | |
1800 | ||
1801 | if Key == "c" and ATTACK == false then | |
1802 | Minions:ClearAllChildren() | |
1803 | end | |
1804 | ||
1805 | if Key == "k" and ATTACK == false then | |
1806 | MorphantDash() | |
1807 | end | |
1808 | ||
1809 | if Key == "x" and ATTACK == false then | |
1810 | ForbiddenGate() | |
1811 | end | |
1812 | ||
1813 | if Key == "p" and ATTACK == false then | |
1814 | if Speed == 16 then | |
1815 | Speed = 60 | |
1816 | elseif Speed == 60 then | |
1817 | Speed = 16 | |
1818 | end | |
1819 | end | |
1820 | ||
1821 | if Key == "t" and ATTACK == false then | |
1822 | CreateSound(Taunts[MRANDOM(1, #Taunts)], Head, 10, 1) | |
1823 | end | |
1824 | end | |
1825 | ||
1826 | function KeyUp(Key) | |
1827 | KEYHOLD = false | |
1828 | end | |
1829 | ||
1830 | Mouse.Button1Down:connect(function(NEWKEY) | |
1831 | MouseDown(NEWKEY) | |
1832 | end) | |
1833 | Mouse.Button1Up:connect(function(NEWKEY) | |
1834 | MouseUp(NEWKEY) | |
1835 | end) | |
1836 | Mouse.KeyDown:connect(function(NEWKEY) | |
1837 | KeyDown(NEWKEY) | |
1838 | end) | |
1839 | Mouse.KeyUp:connect(function(NEWKEY) | |
1840 | KeyUp(NEWKEY) | |
1841 | end) | |
1842 | ||
1843 | --//=================================\\ | |
1844 | --\\=================================// | |
1845 | ||
1846 | ||
1847 | function unanchor() | |
1848 | if UNANCHOR == true then | |
1849 | g = Character:GetChildren() | |
1850 | for i = 1, #g do | |
1851 | if g[i].ClassName == "Part" then | |
1852 | g[i].Anchored = false | |
1853 | end | |
1854 | end | |
1855 | end | |
1856 | end | |
1857 | ||
1858 | ||
1859 | --//=================================\\ | |
1860 | --|| WRAP THE WHOLE SCRIPT UP | |
1861 | --\\=================================// | |
1862 | ||
1863 | Humanoid.Changed:connect(function(Jump) | |
1864 | if Jump == "Jump" and (Disable_Jump == true) then | |
1865 | Humanoid.Jump = false | |
1866 | end | |
1867 | end) | |
1868 | ||
1869 | local WAG = 20 | |
1870 | ||
1871 | coroutine.resume(coroutine.create(function() | |
1872 | while wait() do | |
1873 | for i = 1, 50 do | |
1874 | Swait() | |
1875 | WAG = WAG - 0.8 | |
1876 | end | |
1877 | for i = 1, 50 do | |
1878 | Swait() | |
1879 | WAG = WAG + 0.8 | |
1880 | end | |
1881 | end | |
1882 | end)) | |
1883 | ||
1884 | local LOOP = 0 | |
1885 | ||
1886 | while true do | |
1887 | Swait() | |
1888 | if HASDIED == false then | |
1889 | ANIMATE.Parent = nil | |
1890 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
1891 | IDLEANIMATION:Play() | |
1892 | SINE = SINE + CHANGE | |
1893 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
1894 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
1895 | local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position) | |
1896 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character) | |
1897 | local WALKSPEEDVALUE = 6 | |
1898 | if ATTACK == true then | |
1899 | PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.3,-0.61) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1900 | end | |
1901 | if ANIM ~= "Jump" and ANIM ~= "Fall" and VALUE1 == false then | |
1902 | for _, c in pairs(Tail:GetChildren()) do | |
1903 | if c.ClassName == "Part" then | |
1904 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1905 | c.Color = C3(0,0,0) | |
1906 | local WELD = c:FindFirstChild("Weld") | |
1907 | if WELD ~= nil then | |
1908 | coroutine.resume(coroutine.create(function() | |
1909 | local EGG = WAG | |
1910 | wait(c.Time.Value/25) | |
1911 | if VALUE1 == false then | |
1912 | WELD.C0 = Clerp(WELD.C0,c.Frame.Value * ANGLES(RAD(1.5), RAD(EGG), RAD(0)), 0.05 / Animation_Speed) | |
1913 | end | |
1914 | end)) | |
1915 | end | |
1916 | end | |
1917 | end | |
1918 | else | |
1919 | for _, c in pairs(Tail:GetChildren()) do | |
1920 | if c.ClassName == "Part" then | |
1921 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1922 | c.Color = C3(0,0,0) | |
1923 | local WELD = c:FindFirstChild("Weld") | |
1924 | if WELD ~= nil then | |
1925 | WELD.C0 = Clerp(WELD.C0,c.Frame.Value * ANGLES(RAD(8.5), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1926 | end | |
1927 | end | |
1928 | end | |
1929 | end | |
1930 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
1931 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (1) / Animation_Speed) | |
1932 | 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 * 1 / Animation_Speed) | |
1933 | 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(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1934 | 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(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1935 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
1936 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1937 | 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) | |
1938 | 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) | |
1939 | 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) | |
1940 | end | |
1941 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
1942 | if ANIM ~= "Jump" then | |
1943 | LOOP = 0 | |
1944 | end | |
1945 | ANIM = "Jump" | |
1946 | if ATTACK == false then | |
1947 | LOOP = LOOP + 1 | |
1948 | VALUE1 = false | |
1949 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(LOOP*45), RAD(0), RAD(0)), 2.5 / Animation_Speed) | |
1950 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1951 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
1952 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(90)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
1953 | RightHip.C0 = Clerp(RightHip.C0, CF(1, 0, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
1954 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, 0, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
1955 | PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.3,-0.61) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1956 | --PupilWeld2.C0 = Clerp(PupilWeld.C0, CF(-0.13,0.3,-0.61) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1957 | end | |
1958 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
1959 | ANIM = "Fall" | |
1960 | if ATTACK == false then | |
1961 | VALUE1 = false | |
1962 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1963 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1964 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(105), RAD(0), RAD(42)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1965 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(105), RAD(0), RAD(-42)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1966 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(15)), 0.5 / Animation_Speed) | |
1967 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.5 / Animation_Speed) | |
1968 | PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.3,-0.61) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1969 | --PupilWeld2.C0 = Clerp(PupilWeld.C0, CF(-0.13,0.3,-0.61) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1970 | end | |
1971 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
1972 | ANIM = "Idle" | |
1973 | if ATTACK == false then | |
1974 | VALUE1 = false | |
1975 | PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.17,0.3,-0.61) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1976 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(65)) * ANGLES(RAD(15), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1977 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-10 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 2 / Animation_Speed) | |
1978 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
1979 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1980 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 2 / Animation_Speed) | |
1981 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 2 / Animation_Speed) | |
1982 | end | |
1983 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
1984 | ANIM = "Walk" | |
1985 | WALK = WALK + 1 / Animation_Speed | |
1986 | if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then | |
1987 | WALK = 0 | |
1988 | if WALKINGANIM == true then | |
1989 | WALKINGANIM = false | |
1990 | elseif WALKINGANIM == false then | |
1991 | WALKINGANIM = true | |
1992 | end | |
1993 | end | |
1994 | --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) | |
1995 | --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) | |
1996 | if ATTACK == false then | |
1997 | if Speed < 30 then | |
1998 | VALUE1 = false | |
1999 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2000 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2001 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
2002 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
2003 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-15)), 2 / Animation_Speed) | |
2004 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(15)), 2 / Animation_Speed) | |
2005 | PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.3 - 0.005 * COS(SINE / WALKSPEEDVALUE*2),-0.61) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2006 | --PupilWeld2.C0 = Clerp(PupilWeld.C0, CF(-0.13,0.3 - 0.025 * COS(SINE / WALKSPEEDVALUE*2),-0.61) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2007 | elseif Speed >= 30 then | |
2008 | VALUE1 = true | |
2009 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(25), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2010 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 2 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2011 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
2012 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
2013 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-15)), 2 / Animation_Speed) | |
2014 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(15)), 2 / Animation_Speed) | |
2015 | PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.3 - 0.005 * COS(SINE / WALKSPEEDVALUE*2),-0.61) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2016 | --PupilWeld2.C0 = Clerp(PupilWeld.C0, CF(-0.13,0.3 - 0.025 * COS(SINE / WALKSPEEDVALUE*2),-0.61) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2017 | end | |
2018 | end | |
2019 | end | |
2020 | unanchor() | |
2021 | Humanoid.MaxHealth = "inf" | |
2022 | Humanoid.Health = "inf" | |
2023 | Humanoid.JumpPower = 150 | |
2024 | if Rooted == false then | |
2025 | Disable_Jump = false | |
2026 | if ANIM == "Jump" or ANIM == "Fall" then | |
2027 | Humanoid.WalkSpeed = Speed*5 | |
2028 | else | |
2029 | Humanoid.WalkSpeed = Speed | |
2030 | end | |
2031 | elseif Rooted == true then | |
2032 | Disable_Jump = true | |
2033 | Humanoid.WalkSpeed = 0 | |
2034 | end | |
2035 | q = Character:GetChildren() | |
2036 | for u = 1, #q do | |
2037 | if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then | |
2038 | q[u]:remove() | |
2039 | elseif q[u].ClassName == "Shirt" then | |
2040 | q[u]:Destroy() | |
2041 | elseif q[u].ClassName == "Pants" then | |
2042 | q[u]:Destroy() | |
2043 | elseif q[u].ClassName == "CharacterMesh" then | |
2044 | q[u]:remove() | |
2045 | elseif q[u].ClassName == "ShirtGraphic" then | |
2046 | q[u]:remove() | |
2047 | elseif q[u].ClassName == "Part" and q[u].Name ~= "HumanoidRootPart" then | |
2048 | q[u].Color = Color3.new(0/255, 0/255, 0/255) | |
2049 | if q[u]:FindFirstChildOfClass("ParticleEmitter")then | |
2050 | q[u]:FindFirstChildOfClass("ParticleEmitter"):remove() | |
2051 | end | |
2052 | end | |
2053 | end | |
2054 | if Head:FindFirstChild("face") then | |
2055 | Head.face:remove() | |
2056 | end | |
2057 | local MATHS = {"0","1"} | |
2058 | 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)] | |
2059 | Humanoid.PlatformStand = false | |
2060 | if sick ~= nil then | |
2061 | sick.Parent = Character | |
2062 | end | |
2063 | else | |
2064 | if sick ~= nil then | |
2065 | sick.Parent = workspace | |
2066 | end | |
2067 | end | |
2068 | script.Parent = workspace | |
2069 | if Character ~= nil then | |
2070 | Character.Parent = workspace | |
2071 | end | |
2072 | for _, c in pairs(Weapon:GetChildren()) do | |
2073 | if c.ClassName == "Part" then | |
2074 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
2075 | end | |
2076 | end | |
2077 | Humanoid.DisplayDistanceType = "None" | |
2078 | if #Effects2>0 then | |
2079 | for e=1,#Effects2 do | |
2080 | if Effects2[e]~=nil then | |
2081 | local Thing=Effects2[e] | |
2082 | if Thing~=nil then | |
2083 | local Part=Thing[1] | |
2084 | if Part.Parent == nil then | |
2085 | table.remove(Effects2,e) | |
2086 | end | |
2087 | end | |
2088 | end | |
2089 | end | |
2090 | end | |
2091 | end | |
2092 | ||
2093 | --//=================================\\ | |
2094 | --\\=================================// | |
2095 | ||
2096 | ||
2097 | ||
2098 | ||
2099 | ||
2100 | --//====================================================\\-- | |
2101 | --|| END OF SCRIPT | |
2102 | --\\====================================================//-- |