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