SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
2 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
3 | local RealPlayer = Player | |
4 | do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer end | |
5 | ||
6 | wait(0.2) | |
7 | - | Player = game:GetService("Players").LocalPlayer |
7 | + | |
8 | ||
9 | ||
10 | Player = owner | |
11 | PlayerGui = Player.PlayerGui | |
12 | Cam = workspace.CurrentCamera | |
13 | Backpack = Player.Backpack | |
14 | Character = Player.Character | |
15 | Humanoid = Character.Humanoid | |
16 | Mouse = Player:GetMouse() | |
17 | RootPart = Character["HumanoidRootPart"] | |
18 | Torso = Character["Torso"] | |
19 | Head = Character["Head"] | |
20 | RightArm = Character["Right Arm"] | |
21 | LeftArm = Character["Left Arm"] | |
22 | RightLeg = Character["Right Leg"] | |
23 | LeftLeg = Character["Left Leg"] | |
24 | RootJoint = RootPart["RootJoint"] | |
25 | Neck = Torso["Neck"] | |
26 | RightShoulder = Torso["Right Shoulder"] | |
27 | LeftShoulder = Torso["Left Shoulder"] | |
28 | RightHip = Torso["Right Hip"] | |
29 | LeftHip = Torso["Left Hip"] | |
30 | local sick = Instance.new("Sound",Character) | |
31 | sick.SoundId = "rbxassetid://1244332148" | |
32 | sick.Looped = true | |
33 | sick.Pitch = 1 | |
34 | sick.Volume = 5 | |
35 | sick:Play() | |
36 | ||
37 | IT = Instance.new | |
38 | CF = CFrame.new | |
39 | VT = Vector3.new | |
40 | RAD = math.rad | |
41 | C3 = Color3.new | |
42 | UD2 = UDim2.new | |
43 | BRICKC = BrickColor.new | |
44 | ANGLES = CFrame.Angles | |
45 | EULER = CFrame.fromEulerAnglesXYZ | |
46 | COS = math.cos | |
47 | ACOS = math.acos | |
48 | SIN = math.sin | |
49 | ASIN = math.asin | |
50 | ABS = math.abs | |
51 | MRANDOM = math.random | |
52 | FLOOR = math.floor | |
53 | ||
54 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
55 | local NEWMESH = IT(MESH) | |
56 | if MESH == "SpecialMesh" then | |
57 | NEWMESH.MeshType = MESHTYPE | |
58 | if MESHID ~= "nil" and MESHID ~= "" then | |
59 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
60 | end | |
61 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
62 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
63 | end | |
64 | end | |
65 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
66 | NEWMESH.Scale = SCALE | |
67 | NEWMESH.Parent = PARENT | |
68 | return NEWMESH | |
69 | end | |
70 | ||
71 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
72 | local NEWPART = IT("Part") | |
73 | NEWPART.formFactor = FORMFACTOR | |
74 | NEWPART.Reflectance = REFLECTANCE | |
75 | NEWPART.Transparency = TRANSPARENCY | |
76 | NEWPART.CanCollide = false | |
77 | NEWPART.Locked = true | |
78 | NEWPART.Anchored = true | |
79 | if ANCHOR == false then | |
80 | NEWPART.Anchored = false | |
81 | end | |
82 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
83 | NEWPART.Name = NAME | |
84 | NEWPART.Size = SIZE | |
85 | NEWPART.Position = Torso.Position | |
86 | NEWPART.Material = MATERIAL | |
87 | NEWPART:BreakJoints() | |
88 | NEWPART.Parent = PARENT | |
89 | return NEWPART | |
90 | end | |
91 | ||
92 | --//=================================\\ | |
93 | --|| CUSTOMIZATION | |
94 | --\\=================================// | |
95 | ||
96 | Player_Size = 1 --Size of the player. | |
97 | Animation_Speed = 3 | |
98 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
99 | ||
100 | local Speed = 16 | |
101 | local Effects2 = {} | |
102 | ||
103 | --//=================================\\ | |
104 | --|| END OF CUSTOMIZATION | |
105 | --\\=================================// | |
106 | ||
107 | local function weldBetween(a, b) | |
108 | local weldd = Instance.new("ManualWeld") | |
109 | weldd.Part0 = a | |
110 | weldd.Part1 = b | |
111 | weldd.C0 = CFrame.new() | |
112 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
113 | weldd.Parent = a | |
114 | return weldd | |
115 | end | |
116 | ||
117 | --//=================================\\ | |
118 | --|| USEFUL VALUES | |
119 | --\\=================================// | |
120 | ||
121 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
122 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
123 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
124 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
125 | local CHANGEDEFENSE = 0 | |
126 | local CHANGEDAMAGE = 0 | |
127 | local CHANGEMOVEMENT = 0 | |
128 | local ANIM = "Idle" | |
129 | local ATTACK = false | |
130 | local EQUIPPED = false | |
131 | local HOLD = false | |
132 | local COMBO = 1 | |
133 | local Rooted = false | |
134 | local SINE = 0 | |
135 | local KEYHOLD = false | |
136 | local CHANGE = 2 / Animation_Speed | |
137 | local WALKINGANIM = false | |
138 | local WALK = 0 | |
139 | local VALUE1 = false | |
140 | local VALUE2 = false | |
141 | local ROBLOXIDLEANIMATION = IT("Animation") | |
142 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
143 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
144 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
145 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
146 | WEAPONGUI.Name = "Weapon GUI" | |
147 | local Effects = IT("Folder", Character) | |
148 | Effects.Name = "Effects" | |
149 | local ANIMATOR = Humanoid.Animator | |
150 | local ANIMATE = Character.Animate | |
151 | local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"} | |
152 | local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"} | |
153 | local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"} | |
154 | local HITBLOCKSOUNDS = {"199148933", "199148947"} | |
155 | local UNANCHOR = true | |
156 | ||
157 | local SKILLTEXTCOLOR = C3(0,0,0) | |
158 | ||
159 | local naeeym2 = Instance.new("BillboardGui",Character) | |
160 | naeeym2.AlwaysOnTop = true | |
161 | naeeym2.Size = UDim2.new(5,35,2,35) | |
162 | - | naeeym2.PlayerToHideFrom = Player |
162 | + | |
163 | naeeym2.Adornee = Character.Head | |
164 | naeeym2.Name = "Name" | |
165 | naeeym2.PlayerToHideFrom = nutta1258 | |
166 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
167 | tecks2.BackgroundTransparency = 1 | |
168 | tecks2.TextScaled = true | |
169 | tecks2.BorderSizePixel = 0 | |
170 | tecks2.Text = Player.Name..", The Ultimate Edgelord" | |
171 | tecks2.Font = "Antique" | |
172 | tecks2.TextSize = 30 | |
173 | tecks2.TextStrokeTransparency = 0 | |
174 | tecks2.TextColor3 = Color3.new(0,0,0) | |
175 | tecks2.TextStrokeColor3 = Color3.new(0.2,0.2,0.2) | |
176 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
177 | tecks2.Parent = naeeym2 | |
178 | ||
179 | --Hair-- | |
180 | local Hair = Instance.new("Part", char) | |
181 | Hair.Name = "Hair" | |
182 | Hair.CanCollide = false | |
183 | Hair.BrickColor = BrickColor.new("Institutional white") | |
184 | Hair.Transparency = 0 | |
185 | Hair.Material = "Plastic" | |
186 | Hair.Size = Vector3.new(1, 1, 2) | |
187 | Hair.TopSurface = Enum.SurfaceType.Smooth | |
188 | Hair.BottomSurface = Enum.SurfaceType.Smooth | |
189 | ||
190 | local Weld = Instance.new("Weld", Hair) | |
191 | Weld.Part0 = hed | |
192 | Weld.Part1 = Hair | |
193 | Weld.C1 = CFrame.new(0, -.5, 0) | |
194 | Weld.C0 = CFrame.Angles(math.rad(0),math.rad(0),0) | |
195 | ||
196 | local M2 = Instance.new("SpecialMesh") | |
197 | M2.Parent = Hair | |
198 | M2.MeshId = "http://www.roblox.com/asset/?id=346578029" | |
199 | M2.Scale = Vector3.new(1.2, 1.1, 1.1) | |
200 | ||
201 | --Hood-- | |
202 | local Hood = Instance.new("Part", char) | |
203 | Hood.Name = "Hood" | |
204 | Hood.CanCollide = false | |
205 | Hood.BrickColor = BrickColor.new("Institutional white") | |
206 | Hood.Transparency = 0 | |
207 | Hood.Material = "Plastic" | |
208 | Hood.Size = Vector3.new(1, 1, 2) | |
209 | Hood.TopSurface = Enum.SurfaceType.Smooth | |
210 | Hood.BottomSurface = Enum.SurfaceType.Smooth | |
211 | ||
212 | local Weld = Instance.new("Weld", Hood) | |
213 | Weld.Part0 = tors | |
214 | Weld.Part1 = Hood | |
215 | Weld.C1 = CFrame.new(0, .4, -.9) | |
216 | Weld.C0 = CFrame.Angles(math.rad(-0),math.rad(0),math.rad(180)) | |
217 | ||
218 | local M2 = Instance.new("SpecialMesh") | |
219 | M2.Parent = Hood | |
220 | M2.MeshId = "http://www.roblox.com/asset/?id=18010902" | |
221 | M2.Scale = Vector3.new(0.922, 0.922, 0.922) | |
222 | ||
223 | local LEye = Part(Char,C3.N(1,0,0),Enum.Material.Neon,V3.N(.15,.25,.2),CF.N(),false,false) | |
224 | local LEyeM = Mesh(LEye,Enum.MeshType.Sphere,"","",V3.N(1,1,1),V3.N()) | |
225 | local LEyeW = NewInstance("Weld",LEye,{Part0=Head,Part1=LEye,C0=CF.N(-.2,.2,-.49)}) | |
226 | --//=================================\\ | |
227 | --\\=================================// | |
228 | ||
229 | ||
230 | --//=================================\\ | |
231 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
232 | --\\=================================// | |
233 | ||
234 | ArtificialHB = Instance.new("BindableEvent", script) | |
235 | ArtificialHB.Name = "ArtificialHB" | |
236 | ||
237 | script:WaitForChild("ArtificialHB") | |
238 | ||
239 | frame = Frame_Speed | |
240 | tf = 0 | |
241 | allowframeloss = false | |
242 | tossremainder = false | |
243 | lastframe = tick() | |
244 | script.ArtificialHB:Fire() | |
245 | ||
246 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
247 | tf = tf + s | |
248 | if tf >= frame then | |
249 | if allowframeloss then | |
250 | script.ArtificialHB:Fire() | |
251 | lastframe = tick() | |
252 | else | |
253 | for i = 1, math.floor(tf / frame) do | |
254 | script.ArtificialHB:Fire() | |
255 | end | |
256 | lastframe = tick() | |
257 | end | |
258 | if tossremainder then | |
259 | tf = 0 | |
260 | else | |
261 | tf = tf - frame * math.floor(tf / frame) | |
262 | end | |
263 | end | |
264 | end) | |
265 | ||
266 | --//=================================\\ | |
267 | --\\=================================// | |
268 | ||
269 | ||
270 | ||
271 | ||
272 | ||
273 | --//=================================\\ | |
274 | --|| SOME FUNCTIONS | |
275 | --\\=================================// | |
276 | ||
277 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
278 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
279 | end | |
280 | ||
281 | for i = 1, 35 do | |
282 | local FACE = Part(Char,C3.N(0,0,0),Enum.Material.Neon,V3.N(1.01,.5,1.01),CF.N(),false,false) | |
283 | FACE.Transparency = 0+(i-1)/35.2 | |
284 | FACE.Name = 'ShadowFace' | |
285 | Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE | |
286 | NewInstance("Weld",Head,{Part0=Head,Part1=FACE,C0=CF.N(0,.35-(i-1)/75,0)}) | |
287 | --CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0)) | |
288 | end | |
289 | ||
290 | function PositiveAngle(NUMBER) | |
291 | if NUMBER >= 0 then | |
292 | NUMBER = 0 | |
293 | end | |
294 | return NUMBER | |
295 | end | |
296 | ||
297 | function NegativeAngle(NUMBER) | |
298 | if NUMBER <= 0 then | |
299 | NUMBER = 0 | |
300 | end | |
301 | return NUMBER | |
302 | end | |
303 | ||
304 | function Swait(NUMBER) | |
305 | if NUMBER == 0 or NUMBER == nil then | |
306 | ArtificialHB.Event:wait() | |
307 | else | |
308 | for i = 1, NUMBER do | |
309 | ArtificialHB.Event:wait() | |
310 | end | |
311 | end | |
312 | end | |
313 | ||
314 | function QuaternionFromCFrame(cf) | |
315 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
316 | local trace = m00 + m11 + m22 | |
317 | if trace > 0 then | |
318 | local s = math.sqrt(1 + trace) | |
319 | local recip = 0.5 / s | |
320 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
321 | else | |
322 | local i = 0 | |
323 | if m11 > m00 then | |
324 | i = 1 | |
325 | end | |
326 | if m22 > (i == 0 and m00 or m11) then | |
327 | i = 2 | |
328 | end | |
329 | if i == 0 then | |
330 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
331 | local recip = 0.5 / s | |
332 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
333 | elseif i == 1 then | |
334 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
335 | local recip = 0.5 / s | |
336 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
337 | elseif i == 2 then | |
338 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
339 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
340 | end | |
341 | end | |
342 | end | |
343 | ||
344 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
345 | local xs, ys, zs = x + x, y + y, z + z | |
346 | local wx, wy, wz = w * xs, w * ys, w * zs | |
347 | local xx = x * xs | |
348 | local xy = x * ys | |
349 | local xz = x * zs | |
350 | local yy = y * ys | |
351 | local yz = y * zs | |
352 | local zz = z * zs | |
353 | return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy)) | |
354 | end | |
355 | ||
356 | function QuaternionSlerp(a, b, t) | |
357 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
358 | local startInterp, finishInterp; | |
359 | if cosTheta >= 0.0001 then | |
360 | if (1 - cosTheta) > 0.0001 then | |
361 | local theta = ACOS(cosTheta) | |
362 | local invSinTheta = 1 / SIN(theta) | |
363 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
364 | finishInterp = SIN(t * theta) * invSinTheta | |
365 | else | |
366 | startInterp = 1 - t | |
367 | finishInterp = t | |
368 | end | |
369 | else | |
370 | if (1 + cosTheta) > 0.0001 then | |
371 | local theta = ACOS(-cosTheta) | |
372 | local invSinTheta = 1 / SIN(theta) | |
373 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
374 | finishInterp = SIN(t * theta) * invSinTheta | |
375 | else | |
376 | startInterp = t - 1 | |
377 | finishInterp = t | |
378 | end | |
379 | end | |
380 | return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp | |
381 | end | |
382 | ||
383 | function Clerp(a, b, t) | |
384 | local qa = {QuaternionFromCFrame(a)} | |
385 | local qb = {QuaternionFromCFrame(b)} | |
386 | local ax, ay, az = a.x, a.y, a.z | |
387 | local bx, by, bz = b.x, b.y, b.z | |
388 | local _t = 1 - t | |
389 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
390 | end | |
391 | ||
392 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
393 | local frame = IT("Frame") | |
394 | frame.BackgroundTransparency = TRANSPARENCY | |
395 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
396 | frame.Position = POSITION | |
397 | frame.Size = SIZE | |
398 | frame.BackgroundColor3 = COLOR | |
399 | frame.BorderColor3 = BORDERCOLOR | |
400 | frame.Name = NAME | |
401 | frame.Parent = PARENT | |
402 | return frame | |
403 | end | |
404 | ||
405 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
406 | local label = IT("TextLabel") | |
407 | label.BackgroundTransparency = 1 | |
408 | label.Size = UD2(1, 0, 1, 0) | |
409 | label.Position = UD2(0, 0, 0, 0) | |
410 | label.TextColor3 = TEXTCOLOR | |
411 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
412 | label.TextTransparency = TRANSPARENCY | |
413 | label.FontSize = TEXTFONTSIZE | |
414 | label.Font = TEXTFONT | |
415 | label.BorderSizePixel = BORDERSIZEPIXEL | |
416 | label.TextScaled = false | |
417 | label.Text = TEXT | |
418 | label.Name = NAME | |
419 | label.Parent = PARENT | |
420 | return label | |
421 | end | |
422 | ||
423 | function NoOutlines(PART) | |
424 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
425 | end | |
426 | ||
427 | ||
428 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
429 | local NEWWELD = IT(TYPE) | |
430 | NEWWELD.Part0 = PART0 | |
431 | NEWWELD.Part1 = PART1 | |
432 | NEWWELD.C0 = C0 | |
433 | NEWWELD.C1 = C1 | |
434 | NEWWELD.Parent = PARENT | |
435 | return NEWWELD | |
436 | end | |
437 | ||
438 | local S = IT("Sound") | |
439 | ||
440 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
441 | local NEWSOUND = nil | |
442 | coroutine.resume(coroutine.create(function() | |
443 | NEWSOUND = S:Clone() | |
444 | NEWSOUND.Parent = PARENT | |
445 | NEWSOUND.Volume = VOLUME | |
446 | NEWSOUND.Pitch = PITCH | |
447 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
448 | Swait() | |
449 | NEWSOUND:play() | |
450 | game:GetService("Debris"):AddItem(NEWSOUND, 10) | |
451 | end)) | |
452 | return NEWSOUND | |
453 | end | |
454 | ||
455 | function CFrameFromTopBack(at, top, back) | |
456 | local right = top:Cross(back) | |
457 | 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) | |
458 | end | |
459 | ||
460 | function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
461 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
462 | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
463 | wave.CFrame = CFRAME | |
464 | coroutine.resume(coroutine.create(function(PART) | |
465 | for i = 1, WAIT do | |
466 | Swait() | |
467 | mesh.Scale = mesh.Scale + GROW | |
468 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
469 | if DOESROT == true then | |
470 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
471 | end | |
472 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
473 | if wave.Transparency > 0.99 then | |
474 | wave:remove() | |
475 | end | |
476 | end | |
477 | end)) | |
478 | end | |
479 | ||
480 | function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW) | |
481 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
482 | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "559831844", "", SIZE, VT(0,0,0)) | |
483 | wave.CFrame = CFRAME | |
484 | coroutine.resume(coroutine.create(function(PART) | |
485 | for i = 1, WAIT do | |
486 | Swait() | |
487 | mesh.Scale = mesh.Scale + GROW | |
488 | if DOESROT == true then | |
489 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
490 | end | |
491 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
492 | if wave.Transparency > 0.99 then | |
493 | wave:remove() | |
494 | end | |
495 | end | |
496 | end)) | |
497 | end | |
498 | ||
499 | function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW) | |
500 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
501 | local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0,0,0)) | |
502 | wave.CFrame = CFRAME | |
503 | coroutine.resume(coroutine.create(function(PART) | |
504 | for i = 1, WAIT do | |
505 | Swait() | |
506 | mesh.Scale = mesh.Scale + GROW | |
507 | wave.Transparency = wave.Transparency + (1/WAIT) | |
508 | if wave.Transparency > 0.99 then | |
509 | wave:remove() | |
510 | end | |
511 | end | |
512 | end)) | |
513 | end | |
514 | ||
515 | function Slice(KIND,SIZE,WAIT,CFRAME,COLOR,GROW) | |
516 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
517 | local mesh = nil | |
518 | if KIND == "Base" then | |
519 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0)) | |
520 | elseif KIND == "Thin" then | |
521 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0)) | |
522 | elseif KIND == "Round" then | |
523 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0)) | |
524 | end | |
525 | wave.CFrame = CFRAME | |
526 | coroutine.resume(coroutine.create(function(PART) | |
527 | for i = 1, WAIT do | |
528 | Swait() | |
529 | mesh.Scale = mesh.Scale + GROW/10 | |
530 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
531 | if wave.Transparency > 0.99 then | |
532 | wave:remove() | |
533 | end | |
534 | end | |
535 | end)) | |
536 | end | |
537 | ||
538 | function MakeForm(PART,TYPE) | |
539 | if TYPE == "Cyl" then | |
540 | local MSH = IT("CylinderMesh",PART) | |
541 | elseif TYPE == "Ball" then | |
542 | local MSH = IT("SpecialMesh",PART) | |
543 | MSH.MeshType = "Sphere" | |
544 | elseif TYPE == "Wedge" then | |
545 | local MSH = IT("SpecialMesh",PART) | |
546 | MSH.MeshType = "Wedge" | |
547 | end | |
548 | end | |
549 | ||
550 | function SpawnKnife(SIZE,ISGRABBED,LIMB,ROT,ROT2,DOESDODAMAGE,DAMAGE) | |
551 | SIZE = SIZE / 2 | |
552 | local WELD = nil | |
553 | local KNIFEMODEL = IT("Model",Effects) | |
554 | KNIFEMODEL.Name = "Knife" | |
555 | local HandlePart = CreatePart(3, KNIFEMODEL, "Neon", 0,0, "Really red", "Handle", VT(0.2,1.5,0.2)*SIZE,false) | |
556 | MakeForm(HandlePart,"Cyl") | |
557 | if ISGRABBED == true then | |
558 | WELD = CreateWeldOrSnapOrMotor("Weld", HandlePart, LIMB, HandlePart, CF(0, -1, 0) * ANGLES(RAD(ROT), RAD(ROT2), RAD(0)), CF(0, 0, 0)) | |
559 | end | |
560 | local BladePart = CreatePart(3, KNIFEMODEL, "Neon", 0,1, "Really red", "BladeHolder", VT(0.2,2.8+(3.25/1.5),0.2)*SIZE,false) | |
561 | BladePart.CFrame = HandlePart.CFrame*CF(0,-2.8*SIZE,-0.05*SIZE) | |
562 | weldBetween(HandlePart,BladePart) | |
563 | local Part = CreatePart(3, KNIFEMODEL, "Neon", 0,0, "Really red", "Blade", VT(0,2.8,1)*SIZE,false) | |
564 | MakeForm(Part,"Wedge") | |
565 | Part.CFrame = BladePart.CFrame*CF(0,-1.475*SIZE,0.45*SIZE) * ANGLES(RAD(180), RAD(0), RAD(0)) | |
566 | weldBetween(BladePart,Part) | |
567 | local Part = CreatePart(3, KNIFEMODEL, "Neon", 0,0, "Really red", "Blade", VT(0,3.25/1.5,0.5)*SIZE,false) | |
568 | MakeForm(Part,"Wedge") | |
569 | Part.CFrame = BladePart.CFrame*CF(0,1*SIZE,1.2*SIZE) * ANGLES(RAD(180), RAD(0), RAD(0)) | |
570 | weldBetween(BladePart,Part) | |
571 | local Part = CreatePart(3, KNIFEMODEL, "Neon", 0,0, "Really red", "Blade", VT(0,3.25/1.5,1)*SIZE,false) | |
572 | Part.CFrame = BladePart.CFrame*CF(0,1*SIZE,0.45*SIZE) * ANGLES(RAD(180), RAD(0), RAD(0)) | |
573 | weldBetween(BladePart,Part) | |
574 | local A = IT("Attachment",BladePart) | |
575 | A.Position = VT(0,BladePart.Size.Y/2,0) | |
576 | local B = IT("Attachment",BladePart) | |
577 | B.Position = VT(0,-BladePart.Size.Y/2,0) | |
578 | local Trail = IT("Trail",BladePart) | |
579 | Trail.Attachment0 = A | |
580 | Trail.Attachment1 = B | |
581 | Trail.Lifetime = 0.2 | |
582 | Trail.Color = ColorSequence.new(BRICKC"Really red".Color) | |
583 | Trail.Transparency = NumberSequence.new(0, 1) | |
584 | for _, c in pairs(KNIFEMODEL:GetChildren()) do | |
585 | if c.ClassName == "Part" then | |
586 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
587 | end | |
588 | end | |
589 | if DOESDODAMAGE == true then | |
590 | local HIT = false | |
591 | BladePart.CanCollide = true | |
592 | local TOUCHED = BladePart.Touched:Connect(function(hit) | |
593 | if HIT == false then | |
594 | if hit ~= nil then | |
595 | if hit.Parent ~= nil then | |
596 | if hit.Parent ~= Character and hit.Parent:FindFirstChildOfClass("Humanoid") then | |
597 | HIT = true | |
598 | ApplyDamage(hit.Parent:FindFirstChildOfClass("Humanoid"),DAMAGE,2,2) | |
599 | wait(0.1) | |
600 | HIT = false | |
601 | end | |
602 | end | |
603 | end | |
604 | end | |
605 | end) | |
606 | end | |
607 | return KNIFEMODEL,WELD,BladePart | |
608 | end | |
609 | ||
610 | function PuddleOfBlood(Position,MaxDrop,Model,MaxSize) | |
611 | local HITFLOOR, HITPOS, NORMAL = Raycast(Position, (CF(Position, Position + VT(0, -1, 0))).lookVector, MaxDrop, Model) | |
612 | if HITFLOOR ~= nil then | |
613 | if HITFLOOR.Parent ~= Effects and HITFLOOR.Parent ~= Character then | |
614 | if HITFLOOR.Name == "BloodPuddle" then | |
615 | local DIST = (Position - HITFLOOR.Position).Magnitude | |
616 | if (HITFLOOR.Size.Z <= 5 and HITFLOOR.Size.Z < MaxSize) or (HITFLOOR.Size.Z > 5 and HITFLOOR.Size.Z < MaxSize and DIST < HITFLOOR.Size.Z/3) then | |
617 | HITFLOOR.Size = HITFLOOR.Size + VT(0.1,0,0.1) | |
618 | end | |
619 | else | |
620 | if HITFLOOR.Anchored == true then | |
621 | local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(2,0,2)) | |
622 | BLOOD.CFrame = CF(HITPOS,HITPOS+NORMAL)*ANGLES(RAD(90),RAD(0),RAD(0)) | |
623 | MakeForm(BLOOD,"Cyl") | |
624 | coroutine.resume(coroutine.create(function() | |
625 | Swait(75) | |
626 | while true do | |
627 | Swait() | |
628 | BLOOD.Size = BLOOD.Size - VT(0.02,0,0.02) | |
629 | if BLOOD.Size.Z < 0.051 then | |
630 | BLOOD:remove() | |
631 | break | |
632 | end | |
633 | end | |
634 | end)) | |
635 | end | |
636 | end | |
637 | end | |
638 | end | |
639 | end | |
640 | ||
641 | function SprayBlood(POSITION,DIRECTION,BloodSize,DoesTable,Table) | |
642 | local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(0.5,0.5,0.5),false) | |
643 | BLOOD.CFrame = CF(POSITION) | |
644 | MakeForm(BLOOD,"Ball") | |
645 | local bv = Instance.new("BodyVelocity",BLOOD) | |
646 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
647 | bv.velocity = CF(POSITION,DIRECTION+VT(MRANDOM(-3,3),MRANDOM(-3,3)/30,MRANDOM(-3,3))).lookVector*65 | |
648 | bv.Name = "MOVE" | |
649 | Debris:AddItem(bv,0.05) | |
650 | coroutine.resume(coroutine.create(function() | |
651 | local HASTOUCHEDGROUND = false | |
652 | local HIT = BLOOD.Touched:Connect(function(hit) | |
653 | if hit.Anchored == true then | |
654 | HASTOUCHEDGROUND = true | |
655 | if DoesTable == true then | |
656 | AddChildrenToTable(BLOOD.Position,workspace,15,Table) | |
657 | end | |
658 | PuddleOfBlood(BLOOD.Position+VT(0,1,0),2,BLOOD,BloodSize) | |
659 | end | |
660 | end) | |
661 | for i = 1, 75 do | |
662 | Swait() | |
663 | if i > 5 then | |
664 | BLOOD.CanCollide = true | |
665 | end | |
666 | if HASTOUCHEDGROUND == true then | |
667 | break | |
668 | end | |
669 | end | |
670 | BLOOD:remove() | |
671 | end)) | |
672 | end | |
673 | ||
674 | function CheckTableForString(Table, String) | |
675 | for i, v in pairs(Table) do | |
676 | if string.find(string.lower(String), string.lower(v)) then | |
677 | return true | |
678 | end | |
679 | end | |
680 | return false | |
681 | end | |
682 | ||
683 | function CheckIntangible(Hit) | |
684 | local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"} | |
685 | if Hit and Hit.Parent then | |
686 | if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then | |
687 | return true | |
688 | end | |
689 | end | |
690 | return false | |
691 | end | |
692 | ||
693 | Debris = game:GetService("Debris") | |
694 | ||
695 | function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit) | |
696 | local Direction = CFrame.new(StartPos, Vec).lookVector | |
697 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore}) | |
698 | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore) | |
699 | if RayHit and CheckIntangible(RayHit) then | |
700 | if DelayIfHit then | |
701 | wait() | |
702 | end | |
703 | RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit) | |
704 | end | |
705 | return RayHit, RayPos, RayNormal | |
706 | end | |
707 | ||
708 | function turnto(position) | |
709 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
710 | end | |
711 | ||
712 | --//=================================\\ | |
713 | --|| WEAPON CREATION | |
714 | --\\=================================// | |
715 | ||
716 | Humanoid.Died:connect(function() | |
717 | ATTACK = true | |
718 | end) | |
719 | ||
720 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.23, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
721 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.50, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
722 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
723 | --local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.50, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
724 | 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") | |
725 | ||
726 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Blade Dance", SKILLTEXTCOLOR, 7, "Antique", 0, 2, 0.5, "Text 1") | |
727 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Reaper Dash", SKILLTEXTCOLOR, 7, "Antique", 0, 2, 0.5, "Text 2") | |
728 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Blossoming Blood", SKILLTEXTCOLOR, 7, "Antique", 0, 2, 0.5, "Text 3") | |
729 | --local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Blood Ram", SKILLTEXTCOLOR, 7, "Antique", 0, 2, 0.5, "Text 4") | |
730 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Suffering Prison", SKILLTEXTCOLOR, 7, "Antique", 0, 2, 0.5, "Text 5") | |
731 | ||
732 | --//=================================\\ | |
733 | --|| DAMAGE FUNCTIONS | |
734 | --\\=================================// | |
735 | ||
736 | function StatLabel(CFRAME, TEXT, COLOR) | |
737 | local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT()) | |
738 | STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5))) | |
739 | local BODYGYRO = IT("BodyGyro", STATPART) | |
740 | game:GetService("Debris"):AddItem(STATPART ,5) | |
741 | local BILLBOARDGUI = Instance.new("BillboardGui", STATPART) | |
742 | BILLBOARDGUI.Adornee = STATPART | |
743 | BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0) | |
744 | BILLBOARDGUI.StudsOffset = VT(-2, 2, 0) | |
745 | BILLBOARDGUI.AlwaysOnTop = false | |
746 | local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI) | |
747 | TEXTLABEL.BackgroundTransparency = 1 | |
748 | TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0) | |
749 | TEXTLABEL.Text = TEXT | |
750 | TEXTLABEL.Font = "Fantasy" | |
751 | TEXTLABEL.FontSize="Size42" | |
752 | TEXTLABEL.TextColor3 = COLOR | |
753 | TEXTLABEL.TextStrokeTransparency = 0 | |
754 | TEXTLABEL.TextScaled = true | |
755 | TEXTLABEL.TextWrapped = true | |
756 | coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL) | |
757 | for i = 1, 50 do | |
758 | Swait() | |
759 | STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2) | |
760 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/50) | |
761 | TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency | |
762 | end | |
763 | THEPART.Parent = nil | |
764 | end),STATPART, TEXTLABEL) | |
765 | end | |
766 | ||
767 | --//=================================\\ | |
768 | --|| DAMAGING | |
769 | --\\=================================// | |
770 | ||
771 | function ApplyDamage(Humanoid,Damage,CritRate,CritMultiplier) | |
772 | local defence = Instance.new("BoolValue",Humanoid.Parent) | |
773 | defence.Name = ("HitBy"..Player.Name) | |
774 | game:GetService("Debris"):AddItem(defence, 0.001) | |
775 | if Humanoid.Health ~= 0 then | |
776 | local CritChance = MRANDOM(1,100) | |
777 | if CritChance < CritRate + 1 then | |
778 | Damage = Damage*CritMultiplier | |
779 | end | |
780 | if Damage > Humanoid.Health then | |
781 | Damage = math.ceil(Humanoid.Health) | |
782 | if Damage == 0 then | |
783 | Damage = 0.1 | |
784 | end | |
785 | end | |
786 | Humanoid.Health = Humanoid.Health - Damage | |
787 | if Humanoid.Parent:FindFirstChild("Head") then | |
788 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1,#HITPLAYERSOUNDS)], Humanoid.Parent.Head, 5, 1) | |
789 | if CritChance < CritRate + 1 then | |
790 | StatLabel(Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), "CRIT//"..Damage, C3(1, 0, 0)) | |
791 | else | |
792 | StatLabel(Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), Damage, SKILLTEXTCOLOR) | |
793 | end | |
794 | end | |
795 | end | |
796 | end | |
797 | ||
798 | function AoEDamage(position,radius,min,max,maxstrength,critrate,critmultiplier,CanBeDodgedByJumping) | |
799 | local dmg = math.random(min,max) | |
800 | for i,v in ipairs(workspace:GetChildren()) do | |
801 | if v:FindFirstChild("HitBy"..Player.Name) == nil then | |
802 | local body = v:GetChildren() | |
803 | for part = 1, #body do | |
804 | if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
805 | if(body[part].Position - position).Magnitude < radius then | |
806 | if v.ClassName == "Model" then | |
807 | if v:FindFirstChildOfClass("Humanoid") then | |
808 | if CanBeDodgedByJumping == true then | |
809 | if body[part].Position.Y < position.Y+5 then | |
810 | ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier) | |
811 | end | |
812 | else | |
813 | ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier) | |
814 | end | |
815 | local bv = Instance.new("BodyVelocity") | |
816 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
817 | bv.velocity = RootPart.CFrame.lookVector*maxstrength | |
818 | bv.Parent = body[part] | |
819 | Debris:AddItem(bv,0.2) | |
820 | end | |
821 | end | |
822 | end | |
823 | end | |
824 | end | |
825 | end | |
826 | if v:FindFirstChild("HitBy"..Player.Name) then | |
827 | v:FindFirstChild("HitBy"..Player.Name):remove() | |
828 | end | |
829 | end | |
830 | end | |
831 | ||
832 | --//=================================\\ | |
833 | --|| ATTACK FUNCTIONS AND STUFF | |
834 | --\\=================================// | |
835 | ||
836 | function Stab() | |
837 | ATTACK = true | |
838 | Rooted = false | |
839 | local KNIFE,WELD,BLADE = SpawnKnife(1,true,RightArm,0,90,true,5) | |
840 | CreateSound("92597369", BLADE, 5, 2) | |
841 | for i=0, 0.3, 0.1 / Animation_Speed do | |
842 | Swait() | |
843 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(90)), 2 / Animation_Speed) | |
844 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-90)), 2 / Animation_Speed) | |
845 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
846 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
847 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
848 | 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)), 2 / Animation_Speed) | |
849 | end | |
850 | KNIFE:remove() | |
851 | ATTACK = false | |
852 | Rooted = false | |
853 | end | |
854 | ||
855 | function BladeDance() | |
856 | ATTACK = true | |
857 | Rooted = false | |
858 | for i=0, 1, 0.1 / Animation_Speed do | |
859 | Swait() | |
860 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
861 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
862 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
863 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.65, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
864 | 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) | |
865 | 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) | |
866 | end | |
867 | Rooted = true | |
868 | local I = 0 | |
869 | local KNIFE1,WELD1,BLADE1 = SpawnKnife(MRANDOM(8,25)/10,true,RightArm,90,0,true,10) | |
870 | local KNIFE2,WELD2,BLADE2 = SpawnKnife(MRANDOM(8,25)/10,true,LeftArm,-90,180,true,10) | |
871 | for i=0, 1.5, 0.1 / Animation_Speed do | |
872 | Swait() | |
873 | I = I + 1 | |
874 | CreateSound("92597369", BLADE1, 5, 1.5) | |
875 | CreateSound("92597369", BLADE2, 5, 1.5) | |
876 | RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.3) | |
877 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(I*30)), 2 / Animation_Speed) | |
878 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
879 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
880 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.65, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
881 | 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) | |
882 | 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) | |
883 | end | |
884 | for i=0, 0.3, 0.1 / Animation_Speed do | |
885 | Swait() | |
886 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.75 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)) * ANGLES(RAD(45), RAD(0), RAD(45)), 2 / Animation_Speed) | |
887 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-45 - 2.5 * SIN(SINE / 12)), RAD(20), RAD(-45)), 2 / Animation_Speed) | |
888 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.51, 0) * ANGLES(RAD(0), RAD(90), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
889 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-90)) * ANGLES(RAD(0), RAD(90), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
890 | RightHip.C0 = Clerp(RightHip.C0, CF(1.2, -0.4 - 0.05 * COS(SINE / 12), -0.3) * ANGLES(RAD(65), RAD(45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 2 / Animation_Speed) | |
891 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-0.8, -0.9 - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(0), RAD(-45), RAD(-25)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
892 | end | |
893 | KNIFE1:remove() | |
894 | KNIFE2:remove() | |
895 | ATTACK = false | |
896 | Rooted = false | |
897 | end | |
898 | ||
899 | function AddChildrenToTable(FROM,PARENT,DIST,TABLE) | |
900 | for _, c in pairs(PARENT:GetChildren()) do | |
901 | if c.ClassName == "Model" then | |
902 | if c ~= Character and c:FindFirstChildOfClass("Humanoid") and (c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")) then | |
903 | local HUMANOID = c:FindFirstChildOfClass("Humanoid") | |
904 | local TORSO = (c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")) | |
905 | if (TORSO.Position - FROM).Magnitude < DIST then | |
906 | table.insert(TABLE,c) | |
907 | end | |
908 | AddChildrenToTable(FROM,c,DIST,TABLE) | |
909 | elseif c.ClassName == "Folder" then | |
910 | AddChildrenToTable(FROM,c,DIST,TABLE) | |
911 | end | |
912 | end | |
913 | end | |
914 | end | |
915 | ||
916 | function ReaperDash() | |
917 | ATTACK = true | |
918 | Rooted = false | |
919 | local KNIFE,WELD,BLADE = SpawnKnife(2,true,RightArm,90,0,false,15) | |
920 | for i=0, 1, 0.1 / Animation_Speed do | |
921 | Swait() | |
922 | WELD.C0 = Clerp(WELD.C0,CF(0, -1, 0) * ANGLES(RAD(90), RAD(-25), RAD(0)), 2 / Animation_Speed) | |
923 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 2 / Animation_Speed) | |
924 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 2 / Animation_Speed) | |
925 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
926 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
927 | 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)), 2 / Animation_Speed) | |
928 | 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)), 2 / Animation_Speed) | |
929 | end | |
930 | CreateSound("92597369", BLADE, 10, 0.7) | |
931 | local HITBODIES = {} | |
932 | local HASHITBODY = false | |
933 | Rooted = true | |
934 | BLADE.CanCollide = true | |
935 | local TOUCHED = BLADE.Touched:Connect(function(hit) | |
936 | if hit ~= nil then | |
937 | if hit.Parent:FindFirstChildOfClass("Humanoid") then | |
938 | local HITBOD = hit.Parent | |
939 | if HITBOD:FindFirstChild("IsHitBy"..Player.Name) == nil then | |
940 | local E = IT("Beam",HITBOD) | |
941 | E.Name = ("IsHitBy"..Player.Name) | |
942 | Debris:AddItem(E,1) | |
943 | table.insert(HITBODIES,HITBOD) | |
944 | HASHITBODY = true | |
945 | end | |
946 | end | |
947 | end | |
948 | end) | |
949 | for i=0, 0.8, 0.1 / Animation_Speed do | |
950 | Swait() | |
951 | if HASHITBODY == true then | |
952 | break | |
953 | end | |
954 | CreateWave(VT(0,0,0),15,BLADE.CFrame*CF(0,-BLADE.Size.Y/1.8,0),true,2,"Really red",VT(0.6,0.1,0.6)) | |
955 | RootPart.CFrame = RootPart.CFrame*CF(0,0,-1) | |
956 | WELD.C0 = Clerp(WELD.C0,CF(0, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)), 2 / Animation_Speed) | |
957 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(90)), 2 / Animation_Speed) | |
958 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-90)), 2 / Animation_Speed) | |
959 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
960 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
961 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
962 | 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)), 2 / Animation_Speed) | |
963 | end | |
964 | if HASHITBODY == true then | |
965 | AddChildrenToTable(Torso.Position,workspace,10,HITBODIES) | |
966 | BLADE.CanCollide = false | |
967 | CreateSound("511715134", BLADE, 10, 1) | |
968 | for i=0, 1.5, 0.1 / Animation_Speed do | |
969 | Swait() | |
970 | for e=1,#HITBODIES do | |
971 | if HITBODIES[e]~=nil then | |
972 | local BOD = HITBODIES[e] | |
973 | local TORS = BOD:FindFirstChild("Torso") or BOD:FindFirstChild("UpperTorso") | |
974 | if TORS then | |
975 | TORS.Anchored = true | |
976 | Slice("Round",0.5,15,TORS.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really red",VT(-0.01,0,-0.01)) | |
977 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1,#HITPLAYERSOUNDS)], TORS, 5, 1) | |
978 | end | |
979 | end | |
980 | end | |
981 | WELD.C0 = Clerp(WELD.C0,CF(0, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)), 2 / Animation_Speed) | |
982 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, MRANDOM(-15,15)/15, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 2 / Animation_Speed) | |
983 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-90)), 2 / Animation_Speed) | |
984 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
985 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
986 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
987 | 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)), 2 / Animation_Speed) | |
988 | end | |
989 | TOUCHED:disconnect() | |
990 | for e=1,#HITBODIES do | |
991 | if HITBODIES[e]~=nil then | |
992 | local BOD = HITBODIES[e] | |
993 | local TORS = BOD:FindFirstChild("Torso") or BOD:FindFirstChild("UpperTorso") | |
994 | if TORS then | |
995 | TORS.Anchored = false | |
996 | local HUM = BOD:FindFirstChildOfClass("Humanoid") | |
997 | if HUM then | |
998 | ApplyDamage(HUM,25,2,1.3) | |
999 | end | |
1000 | end | |
1001 | end | |
1002 | end | |
1003 | for i=0, 0.3, 0.1 / Animation_Speed do | |
1004 | Swait() | |
1005 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.75 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)) * ANGLES(RAD(45), RAD(0), RAD(45)), 2 / Animation_Speed) | |
1006 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-45 - 2.5 * SIN(SINE / 12)), RAD(20), RAD(-45)), 2 / Animation_Speed) | |
1007 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.51, 0) * ANGLES(RAD(0), RAD(90), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
1008 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-90)) * ANGLES(RAD(0), RAD(90), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1009 | RightHip.C0 = Clerp(RightHip.C0, CF(1.2, -0.4 - 0.05 * COS(SINE / 12), -0.3) * ANGLES(RAD(65), RAD(45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 2 / Animation_Speed) | |
1010 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-0.8, -0.9 - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(0), RAD(-45), RAD(-25)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1011 | end | |
1012 | HITBODIES = {} | |
1013 | end | |
1014 | KNIFE:remove() | |
1015 | ATTACK = false | |
1016 | Rooted = false | |
1017 | end | |
1018 | ||
1019 | function BlossomingBlood() | |
1020 | ATTACK = true | |
1021 | Rooted = true | |
1022 | local HITBODIES = {} | |
1023 | local KNIFE,WELD,BLADE = SpawnKnife(4,true,RightArm,90,0,false,15) | |
1024 | for i=0, 1, 0.1 / Animation_Speed do | |
1025 | Swait() | |
1026 | WELD.C0 = Clerp(WELD.C0,CF(0, -1, 0) * ANGLES(RAD(10), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1027 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(25)), 1 / Animation_Speed) | |
1028 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
1029 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1030 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1031 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1032 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1033 | end | |
1034 | for i = 1, 150 do | |
1035 | Swait() | |
1036 | if MRANDOM(1,3) == 1 then | |
1037 | MagicSphere(VT(1,1,1),15,BLADE.CFrame*CF(0,-BLADE.Size.Y/2,0),"Really red",VT(1,1,1)) | |
1038 | MagicSphere(VT(1,1,1),15,CF(BLADE.CFrame*CF(MRANDOM(-25,25),-BLADE.Size.Y/2,MRANDOM(-25,25)).p,BLADE.Position),"Really red",VT(1,0,0)) | |
1039 | end | |
1040 | SprayBlood(BLADE.CFrame*CF(0,-BLADE.Size.Y,0).p,BLADE.CFrame*CF(MRANDOM(-15,15),-BLADE.Size.Y*2,MRANDOM(-15,15)).p,25,true,HITBODIES) | |
1041 | end | |
1042 | for i = 1, 25 do | |
1043 | AddChildrenToTable(Torso.Position,workspace,20,HITBODIES) | |
1044 | end | |
1045 | if #HITBODIES ~= 0 then | |
1046 | for i=0, 0.1, 0.1 / Animation_Speed do | |
1047 | Swait() | |
1048 | WELD.C0 = Clerp(WELD.C0,CF(0, -1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), 2.5 / Animation_Speed) | |
1049 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.75 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)) * ANGLES(RAD(45), RAD(0), RAD(45)), 2 / Animation_Speed) | |
1050 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-45 - 2.5 * SIN(SINE / 12)), RAD(20), RAD(-45)), 2 / Animation_Speed) | |
1051 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.51, 0) * ANGLES(RAD(0), RAD(90), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
1052 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-90)) * ANGLES(RAD(0), RAD(90), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1053 | RightHip.C0 = Clerp(RightHip.C0, CF(1.2, -0.4 - 0.05 * COS(SINE / 12), -0.3) * ANGLES(RAD(65), RAD(45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(25)), 2 / Animation_Speed) | |
1054 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-0.8, -0.9 - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(0), RAD(-45), RAD(-25)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1055 | end | |
1056 | coroutine.resume(coroutine.create(function() | |
1057 | for e=1,#HITBODIES do | |
1058 | Swait() | |
1059 | if HITBODIES[e]~=nil then | |
1060 | local BOD = HITBODIES[e] | |
1061 | local TORS = BOD:FindFirstChild("Torso") or BOD:FindFirstChild("UpperTorso") | |
1062 | if TORS then | |
1063 | Slice("Thin",0.5,35,CF(TORS.Position,Torso.Position)*ANGLES(RAD(0),RAD(-90),RAD(0)),"Really red",VT(0.01,0,0.01)) | |
1064 | local HUM = BOD:FindFirstChildOfClass("Humanoid") | |
1065 | if HUM then | |
1066 | ApplyDamage(HUM,3,2,1.3) | |
1067 | end | |
1068 | end | |
1069 | end | |
1070 | end | |
1071 | HITBODIES = {} | |
1072 | end)) | |
1073 | for i=0, 0.6, 0.1 / Animation_Speed do | |
1074 | Swait() | |
1075 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 2 / Animation_Speed) | |
1076 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 2 / Animation_Speed) | |
1077 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
1078 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(-42)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1079 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1080 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1081 | end | |
1082 | end | |
1083 | KNIFE:remove() | |
1084 | ATTACK = false | |
1085 | Rooted = false | |
1086 | end | |
1087 | ||
1088 | function SufferingPrison() | |
1089 | ATTACK = true | |
1090 | Rooted = true | |
1091 | local INNERKNIFES = {} | |
1092 | local OUTERKNIFES = {} | |
1093 | for i=0, 2, 0.1 / Animation_Speed do | |
1094 | Swait() | |
1095 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1096 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1097 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1098 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.65, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1099 | 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) | |
1100 | 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) | |
1101 | end | |
1102 | local RELEASE = false | |
1103 | local LOOP = 0 | |
1104 | for i = 1, 25 do | |
1105 | local PART = CreatePart(3, Effects, "Glass", 0, 1, "Maroon", "Hold", VT(0,0,0),false) | |
1106 | local KNIFE,WELD,BLADE = SpawnKnife(2,true,PART,0,0,true,75) | |
1107 | table.insert(INNERKNIFES,{KNIFE,BLADE,PART}) | |
1108 | end | |
1109 | for i = 1, 25 do | |
1110 | local PART = CreatePart(3, Effects, "Glass", 0, 1, "Maroon", "Hold", VT(0,0,0),false) | |
1111 | local KNIFE,WELD,BLADE = SpawnKnife(3,true,PART,0,0,true,75) | |
1112 | table.insert(OUTERKNIFES,{KNIFE,BLADE,PART}) | |
1113 | end | |
1114 | CreateSound("1368605755", Torso, 10, 1) | |
1115 | coroutine.resume(coroutine.create(function() | |
1116 | repeat | |
1117 | for e=1,#INNERKNIFES do | |
1118 | if INNERKNIFES[e]~=nil then | |
1119 | local STUFF = INNERKNIFES[e] | |
1120 | local KNIFE = STUFF[1] | |
1121 | local PART = STUFF[3] | |
1122 | PART.Velocity = VT(0,0,0) | |
1123 | PART.CFrame = CF(RootPart.Position,RootPart.Position+VT(0,0,1))*ANGLES(RAD(0),RAD(5+(e*(360/#INNERKNIFES)+LOOP)),RAD(0))*CF(0,0,-10)*ANGLES(RAD(-90),RAD(90),RAD(0)) | |
1124 | end | |
1125 | end | |
1126 | for q=1,#OUTERKNIFES do | |
1127 | if OUTERKNIFES[q]~=nil then | |
1128 | local STUFF = OUTERKNIFES[q] | |
1129 | local KNIFE = STUFF[1] | |
1130 | local PART = STUFF[3] | |
1131 | PART.Velocity = VT(0,0,0) | |
1132 | PART.CFrame = CF(RootPart.Position,RootPart.Position+VT(0,0,1))*ANGLES(RAD(0),RAD(q*(360/#OUTERKNIFES)+LOOP),RAD(0))*CF(0,0,-25)*ANGLES(RAD(-90),RAD(90),RAD(0)) | |
1133 | end | |
1134 | end | |
1135 | Swait() | |
1136 | LOOP = LOOP + 1 | |
1137 | if LOOP == 360 then | |
1138 | LOOP = 0 | |
1139 | end | |
1140 | until RELEASE == true | |
1141 | end)) | |
1142 | for i=0, 2, 0.1 / Animation_Speed do | |
1143 | Swait() | |
1144 | Slice("Round",0.5,15,Torso.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really red",VT(-0.01,0,-0.01)) | |
1145 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1146 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1147 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1148 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.65, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1149 | 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) | |
1150 | 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) | |
1151 | end | |
1152 | CreateSound("1368637781", Torso, 10, 1) | |
1153 | RELEASE = true | |
1154 | MagicSphere(VT(5,5,5),35,Torso.CFrame,C3(1,0,0),VT(1,1,1)) | |
1155 | CreateRing(VT(0,0,0),false,0,45,CF(Torso.Position)*ANGLES(RAD(90),RAD(0),RAD(0)),C3(1,0,0),VT(0.5,0.5,0)) | |
1156 | for e=1,#INNERKNIFES do | |
1157 | if INNERKNIFES[e]~=nil then | |
1158 | local STUFF = INNERKNIFES[e] | |
1159 | local KNIFE = STUFF[1] | |
1160 | local BLADE = STUFF[2] | |
1161 | local PART = STUFF[3] | |
1162 | BLADE.CanCollide = false | |
1163 | PART.Velocity = VT(0,0,0) | |
1164 | local bv = Instance.new("BodyVelocity") | |
1165 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1166 | bv.velocity = CF(PART.CFrame.p,PART.CFrame*CF(0,-1,0).p).lookVector*400 | |
1167 | bv.Parent = PART | |
1168 | Debris:AddItem(KNIFE,1) | |
1169 | end | |
1170 | end | |
1171 | for q=1,#OUTERKNIFES do | |
1172 | if OUTERKNIFES[q]~=nil then | |
1173 | local STUFF = OUTERKNIFES[q] | |
1174 | local KNIFE = STUFF[1] | |
1175 | local BLADE = STUFF[2] | |
1176 | local PART = STUFF[3] | |
1177 | BLADE.CanCollide = false | |
1178 | PART.Velocity = VT(0,0,0) | |
1179 | local bv = Instance.new("BodyVelocity") | |
1180 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1181 | bv.velocity = CF(PART.CFrame.p,PART.CFrame*CF(0,-1,0).p).lookVector*200 | |
1182 | bv.Parent = PART | |
1183 | Debris:AddItem(KNIFE,1) | |
1184 | end | |
1185 | end | |
1186 | ATTACK = false | |
1187 | Rooted = false | |
1188 | end | |
1189 | ||
1190 | --//=================================\\ | |
1191 | --|| ASSIGN THINGS TO KEYS | |
1192 | --\\=================================// | |
1193 | ||
1194 | if Head:FindFirstChild("face") then | |
1195 | Head.face.Texture = "rbxassetid://900134257" | |
1196 | end | |
1197 | ||
1198 | function MouseDown(Mouse) | |
1199 | if ATTACK == false then | |
1200 | Stab() | |
1201 | end | |
1202 | end | |
1203 | ||
1204 | function MouseUp(Mouse) | |
1205 | HOLD = false | |
1206 | end | |
1207 | ||
1208 | function KeyDown(Key) | |
1209 | KEYHOLD = true | |
1210 | if Key == "z" and ATTACK == false then | |
1211 | BladeDance() | |
1212 | end | |
1213 | ||
1214 | if Key == "b" and ATTACK == false then | |
1215 | ReaperDash() | |
1216 | end | |
1217 | ||
1218 | if Key == "c" and ATTACK == false then | |
1219 | BlossomingBlood() | |
1220 | end | |
1221 | ||
1222 | if Key == "x" and ATTACK == false then | |
1223 | SufferingPrison() | |
1224 | end | |
1225 | end | |
1226 | ||
1227 | function KeyUp(Key) | |
1228 | KEYHOLD = false | |
1229 | end | |
1230 | ||
1231 | Mouse.Button1Down:connect(function(NEWKEY) | |
1232 | MouseDown(NEWKEY) | |
1233 | end) | |
1234 | Mouse.Button1Up:connect(function(NEWKEY) | |
1235 | MouseUp(NEWKEY) | |
1236 | end) | |
1237 | Mouse.KeyDown:connect(function(NEWKEY) | |
1238 | KeyDown(NEWKEY) | |
1239 | end) | |
1240 | Mouse.KeyUp:connect(function(NEWKEY) | |
1241 | KeyUp(NEWKEY) | |
1242 | end) | |
1243 | ||
1244 | --//=================================\\ | |
1245 | --\\=================================// | |
1246 | ||
1247 | local top = Instance.new("Shirt") | |
1248 | top.ShirtTemplate = "rbxassetid://831629350" | |
1249 | top.Parent = char | |
1250 | local bottom = Instance.new("Pants") | |
1251 | bottom.PantsTemplate = "rbxassetid://227915108" | |
1252 | bottom.Parent = char | |
1253 | ||
1254 | ||
1255 | function unanchor() | |
1256 | if UNANCHOR == true then | |
1257 | g = Character:GetChildren() | |
1258 | for i = 1, #g do | |
1259 | if g[i].ClassName == "Part" then | |
1260 | g[i].Anchored = false | |
1261 | end | |
1262 | end | |
1263 | end | |
1264 | end | |
1265 | ||
1266 | ||
1267 | --//=================================\\ | |
1268 | --|| WRAP THE WHOLE SCRIPT UP | |
1269 | --\\=================================// | |
1270 | ||
1271 | Humanoid.Changed:connect(function(Jump) | |
1272 | if Jump == "Jump" and (Disable_Jump == true) then | |
1273 | Humanoid.Jump = false | |
1274 | end | |
1275 | end) | |
1276 | ||
1277 | while true do | |
1278 | Swait() | |
1279 | ANIMATE.Parent = nil | |
1280 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
1281 | IDLEANIMATION:Play() | |
1282 | SINE = SINE + CHANGE | |
1283 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
1284 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
1285 | local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position) | |
1286 | local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character) | |
1287 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
1288 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
1289 | 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) | |
1290 | 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) | |
1291 | 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) | |
1292 | 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) | |
1293 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
1294 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1295 | 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) | |
1296 | 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) | |
1297 | 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) | |
1298 | end | |
1299 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
1300 | ANIM = "Jump" | |
1301 | if ATTACK == false then | |
1302 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1303 | 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) | |
1304 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
1305 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
1306 | 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) | |
1307 | 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) | |
1308 | end | |
1309 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
1310 | ANIM = "Fall" | |
1311 | if ATTACK == false then | |
1312 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1313 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1314 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
1315 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
1316 | 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) | |
1317 | 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) | |
1318 | end | |
1319 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
1320 | ANIM = "Idle" | |
1321 | if ATTACK == false then | |
1322 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 - 0.15 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1323 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(15), RAD(0)), 0.15 / Animation_Speed) | |
1324 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 - 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1325 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 - 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1326 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.15 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1327 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 + 0.15 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1328 | end | |
1329 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
1330 | ANIM = "Walk" | |
1331 | WALK = WALK + 1 / Animation_Speed | |
1332 | if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then | |
1333 | WALK = 0 | |
1334 | if WALKINGANIM == true then | |
1335 | WALKINGANIM = false | |
1336 | elseif WALKINGANIM == false then | |
1337 | WALKINGANIM = true | |
1338 | end | |
1339 | end | |
1340 | --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) | |
1341 | --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) | |
1342 | if ATTACK == false then | |
1343 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1344 | 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) | |
1345 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 0.35 / Animation_Speed) | |
1346 | 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) | |
1347 | 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) | |
1348 | 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) | |
1349 | end | |
1350 | end | |
1351 | if HITFLOOR ~= nil then | |
1352 | if MRANDOM(1,2) == 1 then | |
1353 | local HITFLOOR,HITPOS,NORMAL = Raycast(LeftLeg.Position, (CF(LeftLeg.Position, LeftLeg.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character) | |
1354 | Slice("Round",0.1,35,CF(HITPOS+VT(0,0.1,0),HITPOS+VT(0,0.1,0)+NORMAL)*ANGLES(RAD(90),RAD(0),RAD(0))*ANGLES(RAD(MRANDOM(-18,18)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-18,18))),"Really black",VT(0.001,0,0.001)) | |
1355 | Slice("Round",0.1,45,CF(HITPOS+VT(0,0.1,0),HITPOS+VT(0,0.1,0)+NORMAL)*ANGLES(RAD(90),RAD(MRANDOM(-180,180)),RAD(0)),"Really black",VT(0,0,0)) | |
1356 | local HITFLOOR,HITPOS,NORMAL = Raycast(RightLeg.Position, (CF(RightLeg.Position, RightLeg.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character) | |
1357 | Slice("Round",0.1,35,CF(HITPOS+VT(0,0.1,0),HITPOS+VT(0,0.1,0)+NORMAL)*ANGLES(RAD(90),RAD(0),RAD(0))*ANGLES(RAD(MRANDOM(-18,18)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-18,18))),"Really black",VT(0.001,0,0.001)) | |
1358 | Slice("Round",0.1,45,CF(HITPOS+VT(0,0.1,0),HITPOS+VT(0,0.1,0)+NORMAL)*ANGLES(RAD(90),RAD(MRANDOM(-180,180)),RAD(0)),"Really black",VT(0,0,0)) | |
1359 | end | |
1360 | end | |
1361 | unanchor() | |
1362 | Humanoid.MaxHealth = "inf" | |
1363 | Humanoid.Health = "inf" | |
1364 | if Rooted == false then | |
1365 | Disable_Jump = false | |
1366 | Humanoid.WalkSpeed = Speed | |
1367 | elseif Rooted == true then | |
1368 | Disable_Jump = true | |
1369 | Humanoid.WalkSpeed = 0 | |
1370 | end | |
1371 | sick.Parent = Character | |
1372 | local MATHS = {"0","1"} | |
1373 | 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)] | |
1374 | Humanoid.PlatformStand = false | |
1375 | end | |
1376 | ||
1377 | --//=================================\\ | |
1378 | --\\=================================// | |
1379 | ||
1380 | ||
1381 | ||
1382 | ||
1383 | ||
1384 | --//====================================================\\-- | |
1385 | --|| END OF SCRIPT | |
1386 | --\\====================================================//-- |