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