SHOW:
|
|
- or go back to the newest paste.
1 | --[[ | |
2 | req list | |
3 | ||
4 | heart control (the force) | |
5 | ||
6 | teleport | |
7 | ||
8 | bone zone | |
9 | ||
10 | throw bones | |
11 | --]] | |
12 | ||
13 | local Level=50 | |
14 | local function RiseLevel(hum,dmg) | |
15 | if tonumber(Level)then | |
16 | if hum.Health>0 and hum.Health-dmg<=0 then Level=Level+1 | |
17 | local s=Instance.new("Sound")end--s. end | |
18 | else warn'String is not able to level up , or having issure to level.'end | |
19 | end | |
20 | ||
21 | local Tired={n=0,m=10000,d=false}local DefAble=true | |
22 | local p = game:service'Players'.LocalPlayer | |
23 | local char = p.Character | |
24 | local mouse = p:GetMouse() | |
25 | local larm = char["Left Arm"] | |
26 | local rarm = char["Right Arm"] | |
27 | local lleg = char["Left Leg"] | |
28 | local rleg = char["Right Leg"] | |
29 | local hed = char.Head | |
30 | local Torso = char.Torso | |
31 | local hum = char.Humanoid | |
32 | local cam = workspace.CurrentCamera | |
33 | local root = char.HumanoidRootPart | |
34 | local deb = false | |
35 | local shot = 0 | |
36 | local potential = false | |
37 | local debris=game:service"Debris" | |
38 | local l = game:GetService("Lighting") | |
39 | local rs = game:GetService("RunService").RenderStepped | |
40 | ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1} | |
41 | math.randomseed(os.time()) | |
42 | for i,v in pairs(char:children()) do | |
43 | if v:IsA("Accessory") then | |
44 | v:Destroy() | |
45 | end | |
46 | end | |
47 | for i,v in pairs (hed:GetChildren()) do | |
48 | if v:IsA("Sound") then | |
49 | v:Destroy() | |
50 | end | |
51 | end | |
52 | music = Instance.new("Sound",c) | |
53 | music2 = Instance.new("Sound",c) | |
54 | local pl = game:service'Players'.LocalPlayer | |
55 | local chara = pl.Character | |
56 | local hum = chara:FindFirstChildOfClass("Humanoid") | |
57 | hum.MaxHealth = 10000000000000000000 | |
58 | hum.Health = 10000000000000000000 | |
59 | maincol = "White" | |
60 | increment = 20 | |
61 | if 1 then | |
62 | local MovesGui=Instance.new("ScreenGui",p:FindFirstChildOfClass("PlayerGui")) | |
63 | local Frm=Instance.new("Frame",MovesGui)Frm.BackgroundColor3=Color3.new()Frm.BorderSizePixel=0 | |
64 | Frm.BackgroundTransparency=.5 Frm.Size=UDim2.new(.3,0,.5,0)local Show=true Frm.Position=UDim2.new(.7,0,.5,0) | |
65 | local idk=Instance.new("TextButton",Frm)idk.Size=UDim2.new(.5,0,.1,0)idk.Position=UDim2.new(-.5,0,.8,0) | |
66 | idk.Text="Hide"idk.TextStrokeTransparency=0 idk.BackgroundTransparency=.5 idk.BackgroundColor3=Color3.new() | |
67 | idk.BorderSizePixel=0 idk.TextColor3=Color3.new(1,1,1) | |
68 | idk.MouseButton1Click:connect(function()Show=not Show idk.Text=Show and "Hide"or"Show"end) | |
69 | local normal=Instance.new("TextLabel",Frm)normal.Size=UDim2.new(1,0,1,0)normal.TextStrokeTransparency=0 | |
70 | normal.BackgroundTransparency=1 normal.TextColor3=Color3.new(1,1,1) | |
71 | normal.TextXAlignment="Left"normal.TextYAlignment="Top" | |
72 | normal.Text=[[* Able to hold | |
73 | ! It changes function when sprint | |
74 | ---------------------------------- | |
75 | K: Passive | |
76 | !*Q :Gaster Blaster (quick) | |
77 | ! E :Gaster Blaster (high damage) | |
78 | T :Teleport | |
79 | F :Bone Zone | |
80 | *G :Bone Throw | |
81 | *C :Heart Control | |
82 | Shift : Sprint | |
83 | ||
84 | This is Edited So | |
85 | ]] | |
86 | spawn(function() | |
87 | while game:service'RunService'.RenderStepped:wait()do | |
88 | Frm.Position=Frm.Position:lerp(UDim2.new(not Show and 1 or .7,0,.5,0),.1) | |
89 | end end) | |
90 | end | |
91 | -------------------------------------------------------- | |
92 | hed.face.Texture = "rbxassetid://871052201" | |
93 | chara:WaitForChild"Body Colors" | |
94 | char["Body Colors"].HeadColor = BrickColor.new("Institutional white") | |
95 | char["Body Colors"].LeftArmColor = BrickColor.new("Institutional white") | |
96 | char["Body Colors"].RightArmColor = BrickColor.new("Institutional white") | |
97 | char["Body Colors"].TorsoColor = BrickColor.new("Institutional white") | |
98 | char["Body Colors"].RightLegColor = BrickColor.new("Institutional white") | |
99 | char["Body Colors"].LeftLegColor = BrickColor.new("Institutional white") | |
100 | --------------------------------------- | |
101 | ||
102 | ||
103 | -------------------------------------------------------- | |
104 | CV="Eggplant" | |
105 | p = game.Players.LocalPlayer | |
106 | char = p.Character | |
107 | local txt = Instance.new("BillboardGui", char) | |
108 | txt.Adornee = char .Head | |
109 | txt.Name = "_status" | |
110 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
111 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
112 | local text = Instance.new("TextLabel", txt) | |
113 | text.Size = UDim2.new(10, 0, 7, 0) | |
114 | text.FontSize = "Size24" | |
115 | text.TextScaled = true | |
116 | text.TextTransparency = 0 | |
117 | text.BackgroundTransparency = 1 | |
118 | text.TextTransparency = 0 | |
119 | text.TextStrokeTransparency = 0 | |
120 | text.Font = "Arcade" | |
121 | text.TextStrokeColor3 = Color3.new(255,255,255) | |
122 | ||
123 | v=Instance.new("Part") | |
124 | v.Name = "ColorBrick" | |
125 | v.Parent=p.Character | |
126 | v.FormFactor="Symmetric" | |
127 | v.Anchored=true | |
128 | v.CanCollide=false | |
129 | v.BottomSurface="Smooth" | |
130 | v.TopSurface="Smooth" | |
131 | v.Size=Vector3.new(10,5,3) | |
132 | v.Transparency=1 | |
133 | v.CFrame=char.Torso.CFrame | |
134 | v.BrickColor=BrickColor.new(CV) | |
135 | v.Transparency=1 | |
136 | text.TextColor3 = Color3.new(0,0,0) | |
137 | v.Shape="Block" | |
138 | wait() | |
139 | text.Text = "Do You Wanna Have A Mad Time?" | |
140 | wait(2) | |
141 | text.Text = "Any last words? Kiddo"; | |
142 | wait(3) | |
143 | text.TextColor3 = Color3.new(0,0,0) | |
144 | spawn(function()while wait()do text.Text = "Dust Sans LV"..tostring(Level)end end) | |
145 | hed.face.Texture = "rbxassetid://871052201" | |
146 | -------------------------------------------------------- | |
147 | pls = game:GetService'Players' | |
148 | rs = game:GetService'RunService' | |
149 | uinps = game:GetService'UserInputService' | |
150 | lp = pls.LocalPlayer | |
151 | mouse = lp:GetMouse() | |
152 | c = lp.Character | |
153 | human = c.Humanoid | |
154 | human.MaxHealth = 1/0 | |
155 | wait() | |
156 | human.Health = 0/0 | |
157 | c.Health:Destroy() | |
158 | -------------------------------------------------------- | |
159 | Hulmet = Instance.new("Part") | |
160 | Hulmet.Position = Hulmet.Position + Vector3.new(0,10,0) | |
161 | Hulmet.Parent = game.Players.LocalPlayer.Character | |
162 | Hulmet.Name = "Helmet" | |
163 | Hulmet.Size = Vector3.new(1.643, 1.157, 1.696) | |
164 | Hulmet.Material = Enum.Material.Metal | |
165 | Hulmet.BrickColor = BrickColor.new("Grey") | |
166 | MSHE = Instance.new("SpecialMesh") | |
167 | MSHE.Parent = Hulmet | |
168 | MSHE.MeshId = "rbxassetid://101203373" | |
169 | WULD = Instance.new("Weld") | |
170 | WULD.Parent = Hulmet | |
171 | WULD.Part0 = Hulmet | |
172 | WULD.Part1 = game.Players.LocalPlayer.Character.Head | |
173 | WULD.C1 = CFrame.Angles(0,0,0) | |
174 | WULD.C0 = CFrame.new(0,0,0) | |
175 | -------------------------------------------------------- | |
176 | ||
177 | Debounces = { | |
178 | AnimationCycles = 0; | |
179 | FPS = 0; | |
180 | scalingDamage = false; | |
181 | damageLevel = 0; | |
182 | attackNumber = 0; | |
183 | isAttacking = false; | |
184 | isMoving = false; | |
185 | isSprinting = false; | |
186 | isBoosting = false; | |
187 | isPassive = false; | |
188 | isTyping = false; | |
189 | } | |
190 | ||
191 | -------------------------------------------------------- | |
192 | ||
193 | numLerp = function(start, goal, alpha) | |
194 | return(((goal - start) * alpha) + start) | |
195 | end | |
196 | ||
197 | CFrameZero = function() | |
198 | return CFrame.new(Vector3.new()) | |
199 | end | |
200 | ||
201 | rad = function(value) | |
202 | return math.rad(value) | |
203 | end | |
204 | ||
205 | CFAngles = function(Vector) | |
206 | return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z)) | |
207 | end | |
208 | ||
209 | -------------------------------------------------------- | |
210 | ||
211 | AnimStat = { | |
212 | lerpSpeed = .2; | |
213 | lerpSpeed2 = .35; | |
214 | lerpTween = 0; | |
215 | } | |
216 | ||
217 | Joints = { | |
218 | c.HumanoidRootPart.RootJoint; | |
219 | c.Torso.Neck; | |
220 | c.Torso['Left Shoulder']; | |
221 | c.Torso['Right Shoulder']; | |
222 | c.Torso['Left Hip']; | |
223 | c.Torso['Right Hip']; | |
224 | } | |
225 | ||
226 | JointTargets = { | |
227 | CFrameZero(); | |
228 | CFrameZero(); | |
229 | CFrameZero(); | |
230 | CFrameZero(); | |
231 | CFrameZero(); | |
232 | CFrameZero(); | |
233 | } | |
234 | ||
235 | -------------------------------------------------------- | |
236 | ||
237 | BodyColors = { | |
238 | HeadColor = BrickColor.new("Institutional white"); | |
239 | LeftArmColor = BrickColor.new("Institutional white"); | |
240 | RightArmColor = BrickColor.new("Institutional white"); | |
241 | LeftLegColor = BrickColor.new("Institutional white"); | |
242 | RightLegColor = BrickColor.new("Institutional white"); | |
243 | TorsoColor = BrickColor.new("Mid gray"); | |
244 | } | |
245 | ||
246 | Customs = { | |
247 | Face = "http://www.roblox.com/asset/?id=871052201"; | |
248 | Shirt = "http://www.roblox.com/asset/?id=357134155"; | |
249 | Pants = "http://www.roblox.com/asset/?id=343128366"; | |
250 | } | |
251 | ||
252 | -------------------------------------------------------- | |
253 | ||
254 | prepareCharacter = function() | |
255 | local transPoints = { | |
256 | NumberSequenceKeypoint.new(0,.819,.0375), | |
257 | NumberSequenceKeypoint.new(.207,.594,.0187), | |
258 | NumberSequenceKeypoint.new(.4,.55,.031), | |
259 | NumberSequenceKeypoint.new(.57,.619,.05), | |
260 | NumberSequenceKeypoint.new(.76,.8,.0375), | |
261 | NumberSequenceKeypoint.new(1,1,0), | |
262 | } | |
263 | local sizePoints = { | |
264 | NumberSequenceKeypoint.new(0,.687,0), | |
265 | NumberSequenceKeypoint.new(.111,.875,0), | |
266 | NumberSequenceKeypoint.new(.327,1.19,0), | |
267 | NumberSequenceKeypoint.new(.646,1.56,0), | |
268 | NumberSequenceKeypoint.new(.805,1.37,0), | |
269 | NumberSequenceKeypoint.new(.905,1.06,0), | |
270 | NumberSequenceKeypoint.new(.968,.938,0), | |
271 | NumberSequenceKeypoint.new(.984,1.13,0), | |
272 | NumberSequenceKeypoint.new(1,1.62,0), | |
273 | } | |
274 | local Size = NumberSequence.new(sizePoints) | |
275 | local Transparency = NumberSequence.new(transPoints) | |
276 | rayModel = Instance.new("Model",c) | |
277 | efcModel = Instance.new("Model",c) | |
278 | efxBlock = Instance.new("Part",c) | |
279 | efxBlock.BrickColor = BrickColor.new("Bright violet") | |
280 | efxBlock.Material = "Neon" | |
281 | efxBlock.FormFactor = "Custom" | |
282 | efxBlock.Transparency = .3 | |
283 | efxBlock.Size = Vector3.new(.3,.3,.3) | |
284 | local mesh = Instance.new("SpecialMesh",efxBlock) | |
285 | mesh.MeshType = Enum.MeshType.Sphere | |
286 | mesh.Scale = Vector3.new(1,1,1) | |
287 | light = Instance.new("PointLight",c.Head) | |
288 | light.Range = 10 | |
289 | light.Color = Color3.new(0,200/255,1) | |
290 | light.Shadows = false | |
291 | local particles = Instance.new("ParticleEmitter",efxBlock) | |
292 | particles.Color = ColorSequence.new(Color3.fromRGB(48,17,109)) | |
293 | particles.LightEmission = .5 | |
294 | particles.Size = Size | |
295 | particles.Name = "Fire" | |
296 | particles.Transparency = Transparency | |
297 | particles.LockedToPart = true | |
298 | particles.VelocityInheritance = .5 | |
299 | particles.LockedToPart = true | |
300 | particles.Rate = 70 | |
301 | particles.Texture = "rbxassetid://170478388" | |
302 | particles.Lifetime = NumberRange.new(2,2) | |
303 | particles.RotSpeed = NumberRange.new(100,100) | |
304 | particles.Speed = NumberRange.new(7,7) | |
305 | script.Parent = efxBlock | |
306 | fire = particles | |
307 | local offset = Vector3.new(-0.11, .23, -0.5) | |
308 | local weld = Instance.new("Weld",c.Head) | |
309 | weld.Part0 = c.Head | |
310 | weld.Part1 = efxBlock | |
311 | weld.C0 = CFrame.new(offset) * CFrame.Angles(math.rad(-40),math.rad(10),math.rad(40)) | |
312 | efxBlock.Parent = c | |
313 | music.SoundId = "rbxassetid://316012176" | |
314 | music.Looped = true | |
315 | music.Volume = 0 | |
316 | fight = music | |
317 | music2.SoundId = "rbxassetid://316014309" | |
318 | music2.Looped = true | |
319 | music2.Volume = 0 | |
320 | sans = music2 | |
321 | pointGyro = Instance.new("BodyGyro",c.HumanoidRootPart) | |
322 | pointGyro.P = 1e7 | |
323 | pointGyro.D = 1e3 | |
324 | pointGyro.MaxTorque = Vector3.new(0,1e7,0) | |
325 | animator = c.Humanoid:FindFirstChild("Animator") | |
326 | if animator then | |
327 | animator:Destroy() | |
328 | end | |
329 | c.Torso.roblox:Destroy() | |
330 | for i,v in pairs (c.Head:children()) do | |
331 | if v.ClassName == "Sound" then | |
332 | v:Destroy() | |
333 | end | |
334 | end | |
335 | for i = 1,#Joints do | |
336 | Joints[i].C1 = CFrame.new(Vector3.new()) | |
337 | end | |
338 | human.WalkSpeed = 0 | |
339 | human.JumpPower = 0 | |
340 | end | |
341 | ||
342 | uinps.InputBegan:connect(function(InputObject) | |
343 | if InputObject.KeyCode == Enum.KeyCode.K and Debounces.isTyping == false then | |
344 | Debounces.isPassive = not Debounces.isPassive | |
345 | end | |
346 | end) | |
347 | ||
348 | setJointCFrames = function(table) | |
349 | for i = 1,#table do | |
350 | JointTargets[i] = table[i] | |
351 | end | |
352 | AnimationCycles = 0 | |
353 | end | |
354 | ||
355 | setLerp = function(speed) | |
356 | AnimStat.lerpSpeed = speed | |
357 | end | |
358 | ||
359 | setTween = function(tween) | |
360 | AnimStat.lerpTween = tween | |
361 | end | |
362 | ||
363 | takeDamage = function(position,damage,distance,platformStand) | |
364 | for i,v in pairs (pls:children()) do | |
365 | if v.ClassName == "Player" and v:FindFirstChild("Character") then | |
366 | local torso = v.Character:FindFirstChild("Torso") | |
367 | if torso and (torso.Position - position).magnitude < distance then | |
368 | RiseLevel(v.Character.Humanoid,damage) | |
369 | v.Character.Humanoid:TakeDamage(damage) | |
370 | if platformStand == true then | |
371 | v.Character.PlatformStand = platformStand | |
372 | end | |
373 | end | |
374 | end | |
375 | end | |
376 | end | |
377 | ||
378 | -------------------------------------------------------- | |
379 | ||
380 | prepareCharacter() | |
381 | ||
382 | -------------------------------------------------------- | |
383 | hldng={}Player=p | |
384 | function chatfunc(text) | |
385 | spawn(function()local function lerp(a,b,t)return a*(1-t)+(b*t)end | |
386 | local rs=game:service'RunService'.RenderStepped | |
387 | local function sw(n)if n==nil then rs:wait()else for i=1,n do rs:wait()end end return true end | |
388 | local Character=game:service'Players'.LocalPlayer.Character local RootPart=Character.HumanoidRootPart | |
389 | local se=Instance.new("Sound",root)se.Volume=5 se.SoundId="rbxassetid://417445954" | |
390 | if Character:FindFirstChild("cht")then Character.cht:Destroy()end | |
391 | local b=Instance.new("BillboardGui",Character)b.AlwaysOnTop=true b.Adornee=RootPart b.StudsOffsetWorldSpace=Vector3.new(0,4,0)b.Name="cht" | |
392 | local snum=text:len()b.Size=UDim2.new(snum/1.7,0,2,0) | |
393 | local texts={} | |
394 | for i=1,snum do | |
395 | texts[i]=Instance.new("TextButton",b) | |
396 | texts[i].Size=UDim2.new(1/snum,0,1,0)texts[i].Name=text:sub(i,i)--texts[i].TextSize=30 | |
397 | texts[i].Text=text:sub(i,i)texts[i].Position=UDim2.new((i-1)/snum,0,.3,0) | |
398 | texts[i].BackgroundTransparency=1 texts[i].TextColor3=Color3.new(1) | |
399 | texts[i].TextStrokeTransparency=1 texts[i].Font="Cartoon"texts[i].TextScaled=1 texts[i].TextTransparency=1 | |
400 | end | |
401 | local DoOpt=function(Set,Val,LerpB)for i=1,#texts do if texts[i].Parent and b.Parent then if LerpB~=nil then | |
402 | if typeof(texts[i][Set])=="UDim2"then texts[i][Set]=texts[i][Set]:lerp(Val,LerpB)else texts[i][Set]=lerp(texts[i][Set],Val,LerpB)end | |
403 | else texts[i][Set]=Val end end end end | |
404 | for i=1,#texts do | |
405 | if texts[i].Parent then | |
406 | texts[i].TextTransparency=0 texts[i].TextStrokeTransparency=0 | |
407 | end | |
408 | if texts[i].Text~=" "then se.TimePosition=.06 se:Play()end | |
409 | sw(3) | |
410 | end | |
411 | sw(180) | |
412 | for i=1,0,-.025 do | |
413 | DoOpt("TextTransparency",1-i)--DoOpt("TextStrokeTransparency",1-i) | |
414 | sw() | |
415 | end | |
416 | b:Destroy() | |
417 | end) | |
418 | end Player.Chatted:connect(function(m)chatfunc(game:service'Chat':FilterStringAsync(m,Player,Player))end) | |
419 | mouse.KeyUp:connect(function(k) | |
420 | hldng[k]=nil | |
421 | end) | |
422 | ||
423 | local function doit() | |
424 | if DefAble then | |
425 | return | |
426 | else | |
427 | if human.Health~=human.MaxHealth then | |
428 | DefAble=false | |
429 | human:Destroy() | |
430 | human=Instance.new("Humanoid",chara)Instance.new("Model",human).Name="Status" | |
431 | human.MaxHealth=1 human.Health=1 | |
432 | human.HealthChanged:connect(doit) | |
433 | root.CFrame=root.CFrame*CFrame.new(0,0,10) | |
434 | hldng.r=nil warn"Dodged" | |
435 | Tired.n=Tired.n+10 | |
436 | end | |
437 | end | |
438 | end | |
439 | dodge=human.HealthChanged:connect(doit) | |
440 | local sw=function(n)if n then for i=1,n do rs.RenderStepped:wait()end else rs.RenderStepped:wait()end end | |
441 | spawn(function() | |
442 | local sine = 0 | |
443 | local idk=Instance.new("ScreenGui",p:FindFirstChildOfClass'PlayerGui') | |
444 | local frm=Instance.new("Frame",idk)frm.BorderSizePixel=0 | |
445 | frm.BackgroundTransparency=.5 frm.Size=UDim2.new(.4,0,.03,0) | |
446 | frm.Position=UDim2.new(.3,0,.7,0) | |
447 | ||
448 | local t=Instance.new("TextLabel",frm)t.Text="wait"t.BorderSizePixel=0 | |
449 | t.TextColor3=Color3.new(1,1,1)t.TextStrokeTransparency=0-- t.TextScaled=1 | |
450 | t.BackgroundTransparency=0 t.TextXAlignment="Left" t.BackgroundColor3=Color3.new(1) | |
451 | while wait()do | |
452 | t.Size=UDim2.new(Tired.n/Tired.m,0,1,0) | |
453 | if Tired.n>=Tired.m then | |
454 | Tired.n=Tired.m | |
455 | Tired.d=true | |
456 | end | |
457 | if Tired.d then | |
458 | Tired.n=Tired.n-5 DefAble=true hldng.r=nil | |
459 | end t.Text=tostring(math.floor(Tired.n*10)/10).."/"..tostring(Tired.m) | |
460 | if Tired.n<=0 then Tired.n=0 Tired.d=false end | |
461 | if DefAble then human.MaxHealth=1 human.Health=1 human.Name="Humanoid"else | |
462 | dodge:disconnect()human.MaxHealth=1 human.Health=1 dodge=human.HealthChanged:connect(doit) | |
463 | ||
464 | end | |
465 | ||
466 | if hldng.r then DefAble=false else DefAble=1 end | |
467 | ||
468 | pointGyro.CFrame = CFrame.new(Vector3.new(),(mouse.Hit.p - c.HumanoidRootPart.CFrame.p).unit * 100) | |
469 | if Debounces.isAttacking == false and Debounces.isMoving == false and Debounces.isBoosting == false then | |
470 | setLerp(.1) | |
471 | if Debounces.isPassive == true then --walk | |
472 | setJointCFrames({ | |
473 | CFrame.new(Vector3.new(0, -0.901 + math.sin(tick() * 1.5)/45, 0)) * CFAngles(Vector3.new(-22.001, 0, 0)); | |
474 | CFrame.new(Vector3.new(-0.001, 1.52 + math.sin(tick() * -1.5)/35, math.sin(tick() * 1.5)/35)) * CFAngles(Vector3.new(-10.861 + math.sin((-tick() + 2) * 1.5) * 5, 13.765, -1.658)); | |
475 | CFrame.new(Vector3.new(-1.5, -0.1 + math.sin(tick() * 1.5)/15, -0.801)) * CFAngles(Vector3.new(44.999, 0, 0)); | |
476 | CFrame.new(Vector3.new(1.7, 0.2 + math.sin(tick() * 1.5)/15, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 15)); | |
477 | CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.511, 3.84, 0.489)); | |
478 | CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, -0.001)); | |
479 | }) | |
480 | else | |
481 | setJointCFrames({ | |
482 | CFrame.new(Vector3.new(0, 0 + math.sin(tick() * 1.5)/25, 0)) * CFAngles(Vector3.new(0, 0, 0)); | |
483 | CFrame.new(Vector3.new(0, 1.5 + math.sin(tick() * -1.5)/35, math.sin(tick() * 1.5)/35)) * CFAngles(Vector3.new(1.554 + math.sin((-tick() + 2) * 1.5) * 5, -0.001, -0.001)); | |
484 | CFrame.new(Vector3.new(-1.06, -0.03 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, 0, 29.51)); | |
485 | CFrame.new(Vector3.new(1.059, -0.031 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, -3.842, -29.511)); | |
486 | CFrame.new(Vector3.new(-0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(0, 8.885, 0)); | |
487 | CFrame.new(Vector3.new(0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(-0.001, -8.886, 0)); | |
488 | }) | |
489 | end | |
490 | elseif Debounces.isAttacking == false and Debounces.isMoving == true and Debounces.isBoosting == false then | |
491 | sine = sine + math.rad(12) --else jump | |
492 | human.WalkSpeed = 15 | |
493 | setLerp(.15) | |
494 | setJointCFrames({ | |
495 | CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, math.sin(sine) * -2.5, 0)); | |
496 | CFrame.new(Vector3.new(0, 1.499, -0.04)) * CFAngles(Vector3.new(-5.676, -0.001 - math.sin(sine) * 3, -0.001)); | |
497 | CFrame.new(Vector3.new(-1.97, 0 + math.sin(sine + .5)/20, 0.1 + math.sin(-sine)/2)/1.3) * CFAngles(Vector3.new(-5 + math.sin(sine) * 23, 0, 0)); | |
498 | CFrame.new(Vector3.new(1.97, 0 - math.sin(sine + .5)/20, 0.1 + math.sin(sine)/2)/1.3) * CFAngles(Vector3.new(-5 + math.sin(-sine) * 23, 0, 0)); | |
499 | CFrame.new(Vector3.new(-0.5, -1.93 - math.cos(sine)/8.7, 0.2 + math.sin(sine)/2)) * CFAngles(Vector3.new(-15 + math.sin(-sine) * 30, 0, 0)); | |
500 | CFrame.new(Vector3.new(0.5, -1.93 + math.cos(sine)/8.7, 0.2 + math.sin(-sine)/2)) * CFAngles(Vector3.new(-15 + math.sin(sine) * 30, 0, 0)); | |
501 | }) | |
502 | end | |
503 | if Debounces.scalingDamage == true then | |
504 | takeDamage(c.HumanoidRootPart.Position,Debounces.damageLevel,8,true) | |
505 | end | |
506 | end | |
507 | end) | |
508 | human.Changed:connect(function(prop) | |
509 | if prop == "MoveDirection" then | |
510 | if human.MoveDirection.magnitude > .02 then | |
511 | Debounces.isMoving = true | |
512 | else | |
513 | Debounces.isMoving = false | |
514 | end | |
515 | end | |
516 | end) | |
517 | local dunkedon=false | |
518 | mouse.KeyDown:connect(function(k) | |
519 | hldng[k]=true | |
520 | if not Debounces.isAttacking then | |
521 | if k=="c"and not Tired.d and Debounces.isPassive then | |
522 | local GrabObj=mouse.Target | |
523 | local hum=nil | |
524 | if GrabObj then | |
525 | if not GrabObj.Anchored then | |
526 | if GrabObj.Parent then | |
527 | if GrabObj.Parent:FindFirstChild'Humanoid'then | |
528 | hum=GrabObj.Parent.Humanoid | |
529 | end | |
530 | end | |
531 | local jet=Instance.new("BodyPosition",GrabObj) | |
532 | if not hum then jet.D=2000 jet.P=2000 end | |
533 | while hldng.c and not Tired.d do | |
534 | jet.MaxForce=Vector3.new(10,10,10)*10000000 | |
535 | jet.Position=mouse.Target~=nil and mouse.Hit.p or jet.Position | |
536 | Tired.n=Tired.n+((not hum or hum.Health==0) and 1 or 2) | |
537 | local vel=GrabObj.Velocity.x+GrabObj.Velocity.y+GrabObj.Velocity.z | |
538 | if hum and vel>20 then RiseLevel(hum,vel/400)hum.Health=hum.Health-vel/400 end | |
539 | sw() | |
540 | end | |
541 | jet:Destroy() | |
542 | else | |
543 | warn'The object is anchored!' | |
544 | end | |
545 | end | |
546 | end | |
547 | if k=="t"and not Tired.d then -- TELEPORT | |
548 | if mouse.Target then Debounces.isAttacking=true | |
549 | local pos=mouse.Hit KG:Pause() | |
550 | root.Anchored=1 root.CFrame=CFrame.new(9999,9999,109999) | |
551 | local jam=Instance.new("ScreenGui",p:FindFirstChildOfClass("PlayerGui")) | |
552 | jam.DisplayOrder=12 local j=Instance.new("Frame",jam)j.BackgroundColor3=Color3.new() | |
553 | j.BorderSizePixel=0 j.Size=UDim2.new(1,0,1,0) | |
554 | wait(1)Debounces.isAttacking=false KG:Resume() | |
555 | root.CFrame=pos+Vector3.new(0,3,0) | |
556 | jam:Destroy()root.Anchored=false | |
557 | end | |
558 | Tired.n=Tired.n+50 | |
559 | end | |
560 | if k=="f"and not Tired.d and not dunkedon and Debounces.isPassive then | |
561 | dunkedon=true local pos=mouse.Hit.p | |
562 | Tired.n=Tired.n+100 | |
563 | local idk=Instance.new("Part",efcModel) | |
564 | idk.Size=Vector3.new(2,80,80)local sp=Instance.new("SpecialMesh",idk)idk.Anchored=1 idk.CanCollide=nil | |
565 | sp.Scale=idk.Size*20 idk.Size=Vector3.new()idk.Color=Color3.new(1,.1,.1)sp.MeshType="Cylinder" | |
566 | idk.Transparency=.5 idk.CFrame=CFrame.new(pos)*CFrame.Angles(0,0,math.rad(90)) | |
567 | idk.Material="SmoothPlastic" | |
568 | idk.Transparency=.5 sw(20)idk:Destroy() | |
569 | spawn(function()for i=1,300 do | |
570 | local pos=CFrame.new(pos)*CFrame.Angles(0,math.rad(math.random(360)),0)*CFrame.new(0,0,math.random(380)/10)*CFrame.Angles(0,math.rad(math.random(180)),0)+Vector3.new(0,-6,0) | |
571 | spawn(function() | |
572 | local p=Instance.new("Part",efcModel) | |
573 | p.Touched:connect(function(p)if p.Parent:FindFirstChild("Humanoid")then if p.Parent.Humanoid~=human then RiseLevel(p.Parent.Humanoid,1)p.Parent.Humanoid.Health=p.Parent.Humanoid.Health-1 end end end) | |
574 | p.Color=Color3.new(1,1,1)p.Size=Vector3.new(10,1,10)p.CFrame=pos | |
575 | local j=Instance.new("BodyVelocity",p)j.MaxForce=Vector3.new(1,1,1)/0 j.Velocity=Vector3.new()p.CanCollide=nil | |
576 | local m=Instance.new("SpecialMesh",p)m.MeshId="rbxassetid://465130937" | |
577 | m.Scale=Vector3.new(.05,.08,.05)/1.2 | |
578 | spawn(function() | |
579 | for i=0,1,.05 do p.CFrame=p.CFrame+Vector3.new(0,.6,0)sw()end | |
580 | sw(10)for i=0,1,.05 do p.Transparency=i sw()end p:Destroy() | |
581 | end) | |
582 | end) | |
583 | sw() | |
584 | end | |
585 | end) | |
586 | wait(5) | |
587 | ||
588 | dunkedon=false | |
589 | end | |
590 | end | |
591 | if Debounces.isPassive and k=="g"then | |
592 | while hldng.g and not Tired.d do | |
593 | sw(10) | |
594 | Tired.n=Tired.n+1 | |
595 | local pos=CFrame.new((root.CFrame+Vector3.new(0,4,0))*CFrame.new(math.random(-70,70)/10,math.random(-10,10)/10,math.random(-70,70)/10).p,mouse.Hit.p) | |
596 | spawn(function() | |
597 | local p=Instance.new("Part",efcModel) | |
598 | p.Touched:connect(function(p)if p.Parent:FindFirstChild("Humanoid")then if p.Parent.Humanoid~=human then RiseLevel(p.Parent.Humanoid,1)p.Parent.Humanoid.Health=p.Parent.Humanoid.Health-1 end end end) | |
599 | p.Color=Color3.new(1,1,1)p.Size=Vector3.new(4,4,4)p.CFrame=pos | |
600 | local j=Instance.new("BodyVelocity",p)j.MaxForce=Vector3.new(1,1,1)/0 j.Velocity=Vector3.new()p.CanCollide=nil | |
601 | local m=Instance.new("SpecialMesh",p)m.MeshId="rbxassetid://465130937" | |
602 | m.Scale=Vector3.new(.05,.08,.05)/2.5 | |
603 | spawn(function() | |
604 | for i=0,1,.005 do p.CFrame=pos*CFrame.new(0,0,-i*300)*CFrame.Angles(math.rad(90),0,0)sw()end | |
605 | sw(10)for i=0,1,.05 do p.Transparency=i sw()end p:Destroy() | |
606 | end) | |
607 | end) | |
608 | end | |
609 | end | |
610 | ||
611 | end) | |
612 | uinps.InputBegan:connect(function(InputObject) | |
613 | if InputObject.KeyCode == Enum.KeyCode.A and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then | |
614 | Debounces.isBoosting = true | |
615 | Debounces.damageLevel = 10 | |
616 | Debounces.scalingDamage = true | |
617 | local vel = Instance.new("BodyVelocity",c.HumanoidRootPart) | |
618 | setLerp(.15) | |
619 | setJointCFrames({ | |
620 | CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 20)); | |
621 | CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-10.372, 28.758, -1.837)); | |
622 | CFrame.new(Vector3.new(-0.7, -0.2, -0.801)) * CFAngles(Vector3.new(45, 0, 45)); | |
623 | CFrame.new(Vector3.new(1.7, 0.2, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 45)); | |
624 | CFrame.new(Vector3.new(-0.3, -2, 0.2)) * CFAngles(Vector3.new(-11.283, -17.801, 19.495)); | |
625 | CFrame.new(Vector3.new(0.9, -2, -0.201)) * CFAngles(Vector3.new(15, -15, 29.999)); | |
626 | }) | |
627 | local boostSpeed = 250 | |
628 | local efx = Instance.new("Sound",c.Head) | |
629 | efx.SoundId = "rbxassetid://200632875" | |
630 | efx.Pitch = math.random(1100,1300)/1000 | |
631 | efx.Volume = .5 | |
632 | efx:Play() | |
633 | spawn(function() | |
634 | wait(5) | |
635 | efx:Destroy() | |
636 | end) | |
637 | vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(1,0,0)).p).unit * boostSpeed | |
638 | vel.P = 1e3 | |
639 | vel.MaxForce = Vector3.new(math.huge,0,math.huge) | |
640 | wait(.15) | |
641 | vel.P = 1000 | |
642 | vel.MaxForce = Vector3.new(3000,0,3000) | |
643 | vel.Velocity = Vector3.new() | |
644 | wait(.3) | |
645 | setLerp(.3) | |
646 | setJointCFrames({ | |
647 | CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 13)); | |
648 | CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-30.239, 42.47, 11.879)); | |
649 | CFrame.new(Vector3.new(-1.9, -0.2, -0.401)) * CFAngles(Vector3.new(44.999, 0, -45)); | |
650 | CFrame.new(Vector3.new(1.5, 0.4, 0.599)) * CFAngles(Vector3.new(-62.058, -21.088, -15.383)); | |
651 | CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.239, -26.158, -14.457)); | |
652 | CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(-0.505, -14.478, -18.968)); | |
653 | }) | |
654 | wait(.2) | |
655 | vel:Destroy() | |
656 | Debounces.damageLevel = 0 | |
657 | Debounces.scalingDamage = false | |
658 | Debounces.isBoosting = false | |
659 | end | |
660 | end) | |
661 | ||
662 | uinps.InputBegan:connect(function(InputObject) | |
663 | if InputObject.KeyCode == Enum.KeyCode.D and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then | |
664 | Debounces.isBoosting = true | |
665 | Debounces.damageLevel = 10 | |
666 | Debounces.scalingDamage = true | |
667 | local vel = Instance.new("BodyVelocity",c.HumanoidRootPart) | |
668 | setLerp(.15) | |
669 | setJointCFrames({ | |
670 | CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -15)); | |
671 | CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-13.603, -45.662, -6.645)); | |
672 | CFrame.new(Vector3.new(-1.9, 0, -0.201)) * CFAngles(Vector3.new(31.935, -7.436, -60.853)); | |
673 | CFrame.new(Vector3.new(1.9, 0, 0.399)) * CFAngles(Vector3.new(-3.644, -23.448, 59.102)); | |
674 | CFrame.new(Vector3.new(-1.1, -1.8, 0)) * CFAngles(Vector3.new(-3.616, -11.936, -29.566)); | |
675 | CFrame.new(Vector3.new(0.1, -1.6, -0.601)) * CFAngles(Vector3.new(1.943, -7.181, -32.528)); | |
676 | }) | |
677 | local boostSpeed = 250 | |
678 | local efx = Instance.new("Sound",c.Head) | |
679 | efx.SoundId = "rbxassetid://200632875" | |
680 | efx.Pitch = math.random(1100,1300)/1000 | |
681 | efx.Volume = .5 | |
682 | efx:Play() | |
683 | spawn(function() | |
684 | wait(5) | |
685 | efx:Destroy() | |
686 | end) | |
687 | vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(-1,0,0)).p).unit * boostSpeed | |
688 | vel.P = 1e3 | |
689 | vel.MaxForce = Vector3.new(math.huge,0,math.huge) | |
690 | wait(.15) | |
691 | vel.P = 1000 | |
692 | vel.MaxForce = Vector3.new(3000,0,3000) | |
693 | vel.Velocity = Vector3.new() | |
694 | wait(.3) | |
695 | setLerp(.3) | |
696 | setJointCFrames({ | |
697 | CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -13)); | |
698 | CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327)); | |
699 | CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60)); | |
700 | CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342)); | |
701 | CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729)); | |
702 | CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999)); | |
703 | }) | |
704 | wait(.2) | |
705 | vel:Destroy() | |
706 | Debounces.damageLevel = 0 | |
707 | Debounces.scalingDamage = false | |
708 | Debounces.isBoosting = false | |
709 | end | |
710 | end) | |
711 | ||
712 | uinps.InputBegan:connect(function(InputObject) | |
713 | if InputObject.KeyCode == Enum.KeyCode.W and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then | |
714 | Debounces.isBoosting = true | |
715 | Debounces.damageLevel = 10 | |
716 | Debounces.scalingDamage = true | |
717 | local vel = Instance.new("BodyVelocity",c.HumanoidRootPart) | |
718 | setLerp(.15) | |
719 | setJointCFrames({ | |
720 | CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-40.001, 0, 5)); | |
721 | CFrame.new(Vector3.new(-0.001, 1.429, 0.2)) * CFAngles(Vector3.new(25.141, -8.347, 0.878)); | |
722 | CFrame.new(Vector3.new(-1.5, 0, .101)) * CFAngles(Vector3.new(14.999, -0.001, 0)); | |
723 | CFrame.new(Vector3.new(1.7, 0.199, -0.401)) * CFAngles(Vector3.new(28.08, -0.358, 21.087)); | |
724 | CFrame.new(Vector3.new(-0.5, -1.8, 0.6)) * CFAngles(Vector3.new(-29.448, 3.57, -1.5)); | |
725 | CFrame.new(Vector3.new(0.499, -1.6, -0.401)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968)); | |
726 | }) | |
727 | local boostSpeed = 250 | |
728 | local efx = Instance.new("Sound",c.Head) | |
729 | efx.SoundId = "rbxassetid://200632875" | |
730 | efx.Pitch = math.random(1100,1300)/1000 | |
731 | efx.Volume = .5 | |
732 | efx:Play() | |
733 | spawn(function() | |
734 | wait(5) | |
735 | efx:Destroy() | |
736 | end) | |
737 | vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,1)).p).unit * boostSpeed | |
738 | vel.P = 1e3 | |
739 | vel.MaxForce = Vector3.new(math.huge,0,math.huge) | |
740 | wait(.15) | |
741 | vel.P = 1000 | |
742 | vel.MaxForce = Vector3.new(3000,0,3000) | |
743 | vel.Velocity = Vector3.new() | |
744 | wait(.3) | |
745 | setLerp(.3) | |
746 | setJointCFrames({ | |
747 | CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 40, -13)); | |
748 | CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327)); | |
749 | CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60)); | |
750 | CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342)); | |
751 | CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729)); | |
752 | CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999)); | |
753 | }) | |
754 | wait(.2) | |
755 | vel:Destroy() | |
756 | Debounces.damageLevel = 0 | |
757 | Debounces.scalingDamage = false | |
758 | Debounces.isBoosting = false | |
759 | end | |
760 | end) | |
761 | ||
762 | uinps.InputBegan:connect(function(InputObject) | |
763 | if InputObject.KeyCode == Enum.KeyCode.S and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then | |
764 | Debounces.isBoosting = true | |
765 | Debounces.damageLevel = 10 | |
766 | Debounces.scalingDamage = true | |
767 | local vel = Instance.new("BodyVelocity",c.HumanoidRootPart) | |
768 | setLerp(.15) | |
769 | setJointCFrames({ | |
770 | CFrame.new(Vector3.new(0, -.3, 0)) * CFAngles(Vector3.new(15, 0, 0)); | |
771 | CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-5.298, -1.305, -4.093)); | |
772 | CFrame.new(Vector3.new(-1.7, 0, -0.201)) * CFAngles(Vector3.new(12.112, -6.562, -16.939)); | |
773 | CFrame.new(Vector3.new(1.7, 0, -0.201)) * CFAngles(Vector3.new(8.817, 8.378, 20.465)); | |
774 | CFrame.new(Vector3.new(-0.7, -1.8, 0.2)) * CFAngles(Vector3.new(-14.432, 3.06, -2.373)); | |
775 | CFrame.new(Vector3.new(0.5, -1.8, -0.201)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968)); | |
776 | }) | |
777 | local boostSpeed = 150 | |
778 | local boostSpeed = 250 | |
779 | local efx = Instance.new("Sound",c.Head) | |
780 | efx.SoundId = "rbxassetid://200632875" | |
781 | efx.Pitch = math.random(1100,1300)/1000 | |
782 | efx.Volume = .5 | |
783 | efx:Play() | |
784 | spawn(function() | |
785 | wait(5) | |
786 | efx:Destroy() | |
787 | end) | |
788 | vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-1)).p).unit * boostSpeed | |
789 | vel.P = 1e3 | |
790 | vel.MaxForce = Vector3.new(math.huge,0,math.huge) | |
791 | wait(.15) | |
792 | vel.P = 1000 | |
793 | vel.MaxForce = Vector3.new(3000,0,3000) | |
794 | vel.Velocity = Vector3.new() | |
795 | wait(.3) | |
796 | setLerp(.3) | |
797 | setJointCFrames({ | |
798 | CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(4, 0, 0)); | |
799 | CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-20.081, 28.752, 3.598)); | |
800 | CFrame.new(Vector3.new(-1.7, 0.2, -0.601)) * CFAngles(Vector3.new(59.51, -3.841, -14.511)); | |
801 | CFrame.new(Vector3.new(1.7, 0.2, 0.399)) * CFAngles(Vector3.new(-47.597, -13.104, 17.887)); | |
802 | CFrame.new(Vector3.new(-0.7, -1.4, 0.2)) * CFAngles(Vector3.new(-44.477, 3.836, -0.524)); | |
803 | CFrame.new(Vector3.new(0.5, -1.4, -0.601)) * CFAngles(Vector3.new(-15.868, -12.953, -7.631)); | |
804 | }) | |
805 | wait(.2) | |
806 | vel:Destroy() | |
807 | Debounces.damageLevel = 0 | |
808 | Debounces.scalingDamage = false | |
809 | Debounces.isBoosting = false | |
810 | end | |
811 | end) | |
812 | ||
813 | uinps.InputBegan:connect(function(InputObject) | |
814 | if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false and not Tired.d then | |
815 | local isLooping = true | |
816 | uinps.InputEnded:connect(function(InputObject2) | |
817 | if InputObject2.KeyCode == Enum.KeyCode.Q then | |
818 | isLooping = false | |
819 | end | |
820 | end) | |
821 | while not Tired.d do | |
822 | if isLooping == false then | |
823 | break | |
824 | end | |
825 | Debounces.attackNumber = Debounces.attackNumber + 1 | |
826 | local aimPos = mouse.Hit.p | |
827 | local head = Instance.new("Part",c) | |
828 | head.Size = Vector3.new(12,.2,12) | |
829 | head.CanCollide = false | |
830 | head.Anchored = true | |
831 | head.Transparency = 1 | |
832 | local mesh=Instance.new("SpecialMesh",head)mesh.MeshType="FileMesh"mesh.MeshId="rbxassetid://431908407" | |
833 | mesh.Scale=Vector3.new(.05,.05,.05) | |
834 | local decal = Instance.new("Decal",head) | |
835 | decal.Texture = "rbxassetid://441975828" | |
836 | if Debounces.attackNumber%2 == 1 then | |
837 | head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos) | |
838 | else | |
839 | head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos) | |
840 | end head.CFrame=head.CFrame*CFrame.Angles(0,math.rad(180),0) | |
841 | spawn(function() | |
842 | local timer = 0 | |
843 | while rs.RenderStepped:wait() do | |
844 | if timer >= 1.55 then | |
845 | break | |
846 | end | |
847 | head.CFrame = head.CFrame * CFrame.new(0,0,-timer/10) | |
848 | timer = timer + 1/30/(Debounces.FPS/60) | |
849 | end | |
850 | head.CFrame = CFrame.new(head.CFrame.p,aimPos) | |
851 | local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999) | |
852 | local hit, pos = workspace:FindPartOnRay(ray,c) | |
853 | local dis = (head.CFrame.p - pos).magnitude | |
854 | local rayPart = Instance.new("Part",rayModel) | |
855 | rayPart.Material = "Neon" | |
856 | rayPart.FormFactor = "Custom" | |
857 | rayPart.BrickColor = BrickColor.new"Royal purple" | |
858 | rayPart.Anchored = true | |
859 | rayPart.CanCollide = false | |
860 | rayPart.Size = Vector3.new(7,7,dis + 400) | |
861 | local rayCFrame = CFrame.new(head.CFrame.p + (aimPos - head.CFrame.p).unit * (dis/2 + 200),head.CFrame.p + (aimPos - head.CFrame.p).unit * dis * 2) | |
862 | rayPart.CFrame = rayCFrame | |
863 | head:Destroy() | |
864 | end) | |
865 | wait() | |
866 | local s = Instance.new("Sound",head) | |
867 | s.Volume = 1 | |
868 | s.SoundId = "rbxassetid://332223043" | |
869 | s:Play() | |
870 | wait(.04) | |
871 | Tired.n=Tired.n+2 | |
872 | end | |
873 | end | |
874 | end) | |
875 | ||
876 | uinps.InputBegan:connect(function(InputObj) | |
877 | if InputObj.KeyCode == Enum.KeyCode.E and not Debounces.isAttacking and not Debounces.isSprinting and Debounces.isPassive and not Debounces.isTyping and not Tired.d then | |
878 | Debounces.isAttacking = true | |
879 | local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p | |
880 | local head = Instance.new("Part",c) | |
881 | head.Size = Vector3.new(18,.2,18) | |
882 | head.CanCollide = false | |
883 | head.Anchored = true | |
884 | head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos) | |
885 | head.Transparency = 1 head.CFrame=head.CFrame*CFrame.Angles(0,math.rad(180),0) | |
886 | local mesh=Instance.new("SpecialMesh",head)mesh.MeshType="FileMesh"mesh.MeshId="rbxassetid://431908407" | |
887 | mesh.Scale=Vector3.new(.1,.1,.1) | |
888 | local decal = Instance.new("Decal",head) | |
889 | decal.Texture = "rbxassetid://441975828" | |
890 | setLerp(.1) | |
891 | setJointCFrames({ | |
892 | CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0)); | |
893 | CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001)); | |
894 | CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502)); | |
895 | CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928)); | |
896 | CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001)); | |
897 | CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0)); | |
898 | }) | |
899 | spawn(function() | |
900 | local timer = 0 | |
901 | while rs.RenderStepped:wait() do | |
902 | if timer >= 1.55/.8 then | |
903 | break | |
904 | end | |
905 | head.CFrame = head.CFrame * CFrame.new(0,0,-timer/10) | |
906 | timer = timer + 1/30/(Debounces.FPS/60) | |
907 | end | |
908 | head.CFrame = CFrame.new(head.CFrame.p,aimPos) | |
909 | local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999) | |
910 | local hit, pos = workspace:FindPartOnRay(ray,c) | |
911 | local dis = (head.CFrame.p - pos).magnitude | |
912 | local rayPart = Instance.new("Part",rayModel) | |
913 | rayPart.Material = "Neon" | |
914 | rayPart.FormFactor = "Custom" | |
915 | rayPart.Name = "Punch" | |
916 | rayPart.BrickColor = BrickColor.new"Royal purple" | |
917 | rayPart.Anchored = true | |
918 | rayPart.CanCollide = false | |
919 | rayPart.Size = Vector3.new(28,28,dis + 400) | |
920 | local rayCFrame = CFrame.new(head.CFrame.p + (aimPos - head.CFrame.p).unit * (dis/2 + 200),head.CFrame.p + (aimPos - head.CFrame.p).unit * dis * 2) | |
921 | rayPart.CFrame = rayCFrame | |
922 | head:Destroy() | |
923 | end) | |
924 | wait() | |
925 | local s = Instance.new("Sound",head) | |
926 | s.Volume = 1 | |
927 | s.SoundId = "rbxassetid://332223043" | |
928 | s.Pitch = .8 | |
929 | s:Play() | |
930 | wait(.75) | |
931 | setLerp(.17) | |
932 | setJointCFrames({ | |
933 | CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0)); | |
934 | CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001)); | |
935 | CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76)); | |
936 | CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155)); | |
937 | CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001)); | |
938 | CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0)); | |
939 | }) | |
940 | Tired.n=Tired.n+15 | |
941 | wait(.5) | |
942 | Debounces.isAttacking = false | |
943 | end | |
944 | end) | |
945 | ||
946 | reflect = function(d,n) | |
947 | local i, n = -1 * d.unit, n.unit | |
948 | local dot = n:Dot(i) | |
949 | return 2*dot*n - i | |
950 | end | |
951 | ||
952 | makeReflectionBeam = function(pos,look,isCrit) | |
953 | local ray = Ray.new(pos,look) | |
954 | local hit,hitpos,norm = workspace:FindPartOnRay(ray,c) | |
955 | local e = Instance.new("Part",rayModel) | |
956 | e.Anchored = true | |
957 | e.CanCollide = false | |
958 | e.BrickColor = BrickColor.new("Bright violet") | |
959 | e.Material = "Neon" | |
960 | e.FormFactor = "Custom" | |
961 | e.Size = Vector3.new(6,6,(pos - hitpos).magnitude) | |
962 | if isCrit == true then | |
963 | e.Size = Vector3.new(16,16,(pos - hitpos).magnitude) | |
964 | e.Name = "Punch" | |
965 | end | |
966 | e.CFrame = CFrame.new(pos + (hitpos - pos)/2, pos) | |
967 | local e = Instance.new("Sound",c) | |
968 | if isCrit == true then | |
969 | e.Volume = .5 | |
970 | else | |
971 | e.Volume = .3 | |
972 | e.Pitch = 1.5 | |
973 | end | |
974 | e.SoundId = "rbxassetid://200632875" | |
975 | e:Play() | |
976 | spawn(function() | |
977 | wait(6) | |
978 | e:Destroy() | |
979 | end) | |
980 | wait(.05) | |
981 | if hit ~= nil then | |
982 | newDir = reflect(look.unit,norm,isCrit) | |
983 | makeReflectionBeam(hitpos,newDir * 999,isCrit) | |
984 | end | |
985 | end | |
986 | ||
987 | uinps.InputBegan:connect(function(InputObject) | |
988 | if InputObject.KeyCode == Enum.KeyCode.Q and not Debounces.isAttacking and Debounces.isSprinting and Debounces.isPassive and not Debounces.isTyping and not Tired.d then | |
989 | local isLooping = true | |
990 | uinps.InputEnded:connect(function(InputObject2) | |
991 | if InputObject2.KeyCode == Enum.KeyCode.Q then | |
992 | isLooping = false | |
993 | end | |
994 | end) | |
995 | while not Tired.d do | |
996 | if isLooping == false then | |
997 | break | |
998 | end | |
999 | Debounces.attackNumber = Debounces.attackNumber + 1 | |
1000 | local aimPos = mouse.Hit.p | |
1001 | local head = Instance.new("Part",c) | |
1002 | head.Size = Vector3.new(12,.2,12) | |
1003 | head.CanCollide = false | |
1004 | head.Anchored = true | |
1005 | head.Transparency=1 | |
1006 | local mesh=Instance.new("SpecialMesh",head)mesh.MeshType="FileMesh"mesh.MeshId="rbxassetid://431908407" | |
1007 | mesh.Scale=Vector3.new(.05,.05,.05) | |
1008 | local decal = Instance.new("Decal",head) | |
1009 | decal.Texture = "rbxassetid://441975828" | |
1010 | ||
1011 | if Debounces.attackNumber%2 == 1 then | |
1012 | head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos) | |
1013 | else | |
1014 | head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos) | |
1015 | end | |
1016 | head.CFrame=head.CFrame*CFrame.Angles(0,math.rad(180),0) | |
1017 | spawn(function() | |
1018 | local timer = 0 | |
1019 | while rs.RenderStepped:wait() do | |
1020 | if timer >= 1.55 then | |
1021 | break | |
1022 | end | |
1023 | head.CFrame = head.CFrame * CFrame.new(0,0,-timer/10) | |
1024 | timer = timer + 1/30/(Debounces.FPS/60) | |
1025 | end | |
1026 | head.CFrame = CFrame.new(head.CFrame.p,aimPos) | |
1027 | head:Destroy() | |
1028 | makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,false) | |
1029 | end) | |
1030 | ||
1031 | wait() | |
1032 | local s = Instance.new("Sound",head) | |
1033 | s.Volume = 1 | |
1034 | s.SoundId = "rbxassetid://332223043" | |
1035 | s.Pitch = 1.02 | |
1036 | s:Play() | |
1037 | Tired.n=Tired.n+15 | |
1038 | wait(.2) | |
1039 | end | |
1040 | end | |
1041 | end) | |
1042 | ||
1043 | uinps.InputBegan:connect(function(InputObj) | |
1044 | if InputObj.KeyCode == Enum.KeyCode.E and not Debounces.isAttacking and Debounces.isSprinting and Debounces.isPassive and not Debounces.isTyping and not Tired.d then | |
1045 | Debounces.isAttacking = true | |
1046 | local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p | |
1047 | local head = Instance.new("Part",c) | |
1048 | head.Size = Vector3.new(18,.2,18) | |
1049 | head.CanCollide = false | |
1050 | head.Anchored = true | |
1051 | head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos) | |
1052 | head.Transparency = 1 | |
1053 | local mesh=Instance.new("SpecialMesh",head)mesh.MeshType="FileMesh"mesh.MeshId="rbxassetid://431908407" | |
1054 | mesh.Scale=Vector3.new(.1,.1,.1) | |
1055 | local decal = Instance.new("Decal",head) | |
1056 | decal.Texture = "rbxassetid://441975828" | |
1057 | head.CFrame=head.CFrame*CFrame.Angles(0,math.rad(180),0) | |
1058 | setLerp(.1) | |
1059 | setJointCFrames({ | |
1060 | CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0)); | |
1061 | CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001)); | |
1062 | CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502)); | |
1063 | CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928)); | |
1064 | CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001)); | |
1065 | CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0)); | |
1066 | }) | |
1067 | spawn(function() | |
1068 | local timer = 0 | |
1069 | while rs.RenderStepped:wait() do | |
1070 | if timer >= 1.55/.8 then | |
1071 | break | |
1072 | end | |
1073 | head.CFrame = head.CFrame --* CFrame.new(0,0,-timer/10) | |
1074 | timer = timer + 1/30/(Debounces.FPS/60) | |
1075 | end | |
1076 | head.CFrame = CFrame.new(head.CFrame.p,aimPos) | |
1077 | head:Destroy() | |
1078 | makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,true) | |
1079 | end) | |
1080 | wait() | |
1081 | local s = Instance.new("Sound",head) | |
1082 | s.Volume = 2 | |
1083 | s.SoundId = "rbxassetid://332223043" | |
1084 | s.Pitch = .8 | |
1085 | s:Play() | |
1086 | wait(.75) | |
1087 | setLerp(.17) | |
1088 | setJointCFrames({ | |
1089 | CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0)); | |
1090 | CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001)); | |
1091 | CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76)); | |
1092 | CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155)); | |
1093 | CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001)); | |
1094 | CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0)); | |
1095 | }) | |
1096 | Tired.n=Tired.n+30 | |
1097 | wait(.5) | |
1098 | Debounces.isAttacking = false | |
1099 | end | |
1100 | end) | |
1101 | ||
1102 | uinps.InputBegan:connect(function(InputObj) | |
1103 | if InputObj.KeyCode == Enum.KeyCode.Slash then | |
1104 | local finishEvent = nil | |
1105 | Debounces.isTyping = true | |
1106 | finishEvent = uinps.InputBegan:connect(function(InputObj) | |
1107 | if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then | |
1108 | Debounces.isTyping = false | |
1109 | finishEvent:disconnect() | |
1110 | end | |
1111 | end) | |
1112 | end | |
1113 | end) | |
1114 | ||
1115 | uinps.InputBegan:connect(function(InputObj) | |
1116 | if InputObj.KeyCode == Enum.KeyCode.LeftShift then | |
1117 | Debounces.isSprinting = true | |
1118 | end | |
1119 | end) | |
1120 | ||
1121 | uinps.InputEnded:connect(function(InputObj) | |
1122 | if InputObj.KeyCode == Enum.KeyCode.LeftShift then | |
1123 | Debounces.isSprinting = false | |
1124 | end | |
1125 | end) | |
1126 | uinps.InputBegan:connect(function(InputObj) | |
1127 | ||
1128 | end) | |
1129 | ||
1130 | rs.RenderStepped:connect(function() | |
1131 | Debounces.FPS = 1/rs.RenderStepped:wait() | |
1132 | local FPSLerp = AnimStat.lerpSpeed/(Debounces.FPS/60) | |
1133 | if Debounces.isPassive == false then | |
1134 | fire.Enabled = false | |
1135 | light.Range = 0 | |
1136 | fight:Pause() | |
1137 | sans:Resume() | |
1138 | efxBlock.Transparency = 1 | |
1139 | else | |
1140 | fire.Enabled = true | |
1141 | light.Range = 10 | |
1142 | fight:Resume() | |
1143 | sans:Pause() | |
1144 | efxBlock.Transparency = 0 | |
1145 | end local tD=3 | |
1146 | for i,v in pairs (rayModel:children()) do | |
1147 | if v.Transparency >= 1 then | |
1148 | v:Destroy() | |
1149 | else | |
1150 | v.CanCollide = true | |
1151 | local parts = v:GetTouchingParts() | |
1152 | v.CanCollide = false | |
1153 | for i = 1,#parts do | |
1154 | if parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name ~= "Punch" then | |
1155 | RiseLevel(parts[i].Parent.Humanoid,.5/(Debounces.FPS/60))parts[i].Parent.Humanoid:TakeDamage(.5/(Debounces.FPS/60)) | |
1156 | elseif parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name == "Punch" then | |
1157 | RiseLevel(parts[i].Parent.Humanoid,3.1/(Debounces.FPS/60))parts[i].Parent.Humanoid:TakeDamage(3.1/(Debounces.FPS/60)) | |
1158 | end | |
1159 | end | |
1160 | v.Size = v.Size / Vector3.new(1+(v.Transparency/tD),1+(v.Transparency/tD),1)--- Vector3.new(1/(Debounces.FPS/60),1/(Debounces.FPS/60),0) | |
1161 | v.Transparency = v.Transparency + .05/(Debounces.FPS/60) | |
1162 | end | |
1163 | end | |
1164 | for i = 1,#Joints do | |
1165 | Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp) | |
1166 | end | |
1167 | local sineval = math.sin(tick() * 2) * 3 | |
1168 | fire.Acceleration = Vector3.new(sineval,1,sineval) | |
1169 | light.Brightness = math.sin(math.cos(tick() * 2) * 1.5) | |
1170 | end) | |
1171 | -- Created by GuestBilmemKac -- | |
1172 | ||
1173 | ||
1174 | --// Initializing \\-- | |
1175 | local S = setmetatable({},{__index = function(s,i) return game:service(i) end}) | |
1176 | local Plrs = S.Players | |
1177 | local Plr = Plrs.LocalPlayer | |
1178 | local Char = Plr.Character | |
1179 | local Hum = Char:FindFirstChildOfClass'Humanoid' | |
1180 | local RArm = Char["Right Arm"] | |
1181 | local LArm = Char["Left Arm"] | |
1182 | local RLeg = Char["Right Leg"] | |
1183 | local LLeg = Char["Left Leg"] | |
1184 | local Root = Char:FindFirstChild'HumanoidRootPart' | |
1185 | local Torso = Char.Torso | |
1186 | local Head = Char.Head | |
1187 | local NeutralAnims = true | |
1188 | local Attack = false | |
1189 | local BloodPuddles = {} | |
1190 | local Effects = {} | |
1191 | local Debounces = {Debounces={}} | |
1192 | local Mouse = Plr:GetMouse() | |
1193 | local Hit = {} | |
1194 | local Sine = 0 | |
1195 | local Change = 1 | |
1196 | local Souls = 0 | |
1197 | --// Debounce System \\-- | |
1198 | ||
1199 | ||
1200 | function Debounces:New(name,cooldown) | |
1201 | local aaaaa = {Usable=true,Cooldown=cooldown or 2,CoolingDown=false,LastUse=0} | |
1202 | setmetatable(aaaaa,{__index = Debounces}) | |
1203 | Debounces.Debounces[name] = aaaaa | |
1204 | return aaaaa | |
1205 | end | |
1206 | ||
1207 | function Debounces:Use(overrideUsable) | |
1208 | assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use") | |
1209 | if(self.Usable or overrideUsable)then | |
1210 | self.Usable = false | |
1211 | self.CoolingDown = true | |
1212 | local LastUse = time() | |
1213 | self.LastUse = LastUse | |
1214 | delay(self.Cooldown or 2,function() | |
1215 | if(self.LastUse == LastUse)then | |
1216 | self.CoolingDown = false | |
1217 | self.Usable = true | |
1218 | end | |
1219 | end) | |
1220 | end | |
1221 | end | |
1222 | ||
1223 | function Debounces:Get(name) | |
1224 | assert(typeof(name) == 'string',("bad argument #1 to 'get' (string expected, got %s)"):format(typeof(name) == nil and "no value" or typeof(name))) | |
1225 | for i,v in next, Debounces.Debounces do | |
1226 | if(i == name)then | |
1227 | return v; | |
1228 | end | |
1229 | end | |
1230 | end | |
1231 | ||
1232 | function Debounces:GetProgressPercentage() | |
1233 | assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use") | |
1234 | if(self.CoolingDown and not self.Usable)then | |
1235 | return math.max( | |
1236 | math.floor( | |
1237 | ( | |
1238 | (time()-self.LastUse)/self.Cooldown or 2 | |
1239 | )*100 | |
1240 | ) | |
1241 | ) | |
1242 | else | |
1243 | return 100 | |
1244 | end | |
1245 | end | |
1246 | ||
1247 | --// Shortcut Variables \\-- | |
1248 | local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ} | |
1249 | local C3 = {N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV} | |
1250 | local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis} | |
1251 | local M = {C=math.cos,R=math.rad,S=math.sin,P=math.pi,RNG=math.random,MRS=math.randomseed,H=math.huge,RRNG = function(min,max,div) return math.rad(math.random(min,max)/(div or 1)) end} | |
1252 | local R3 = {N=Region3.new} | |
1253 | local De = S.Debris | |
1254 | local WS = workspace | |
1255 | local Lght = S.Lighting | |
1256 | local RepS = S.ReplicatedStorage | |
1257 | local IN = Instance.new | |
1258 | local CSK = ColorSequenceKeypoint.new | |
1259 | local CS = ColorSequence.new | |
1260 | --// Instance Creation Functions \\-- | |
1261 | ||
1262 | function Sound(parent,id,pitch,volume,looped,effect,autoPlay) | |
1263 | local Sound = IN("Sound") | |
1264 | Sound.SoundId = "rbxassetid://".. tostring(id or 0) | |
1265 | Sound.Pitch = pitch or 1 | |
1266 | Sound.Volume = volume or 1 | |
1267 | Sound.Looped = looped or false | |
1268 | if(autoPlay)then | |
1269 | coroutine.wrap(function() | |
1270 | repeat wait() until Sound.IsLoaded | |
1271 | Sound.Playing = autoPlay or false | |
1272 | end)() | |
1273 | end | |
1274 | if(not looped and effect)then | |
1275 | Sound.Stopped:connect(function() | |
1276 | Sound.Volume = 0 | |
1277 | Sound:destroy() | |
1278 | end) | |
1279 | elseif(effect)then | |
1280 | warn("Sound can't be looped and a sound effect!") | |
1281 | end | |
1282 | Sound.Parent =parent or Torso | |
1283 | return Sound | |
1284 | end | |
1285 | function Part(parent,color,material,size,cframe,anchored,cancollide) | |
1286 | local part = IN("Part") | |
1287 | part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3.N(0,0,0) | |
1288 | part.Material = (material or Enum.Material.SmoothPlastic) | |
1289 | part.TopSurface,part.BottomSurface=10,10 | |
1290 | part.Size = (size or V3.N(1,1,1)) | |
1291 | part.CFrame = (cframe or CF.N(0,0,0)) | |
1292 | part.Anchored = (anchored or false) | |
1293 | part.CanCollide = (cancollide or false) | |
1294 | part.Parent = (parent or Char) | |
1295 | return part | |
1296 | end | |
1297 | function Mesh(parent,meshtype,meshid,textid,scale,offset) | |
1298 | local part = IN("SpecialMesh") | |
1299 | part.MeshId = meshid or "" | |
1300 | part.TextureId = textid or "" | |
1301 | part.Scale = scale or V3.N(1,1,1) | |
1302 | part.Offset = offset or V3.N(0,0,0) | |
1303 | part.MeshType = meshtype or Enum.MeshType.Sphere | |
1304 | part.Parent = parent | |
1305 | return part | |
1306 | end | |
1307 | ||
1308 | NewInstance = function(instance,parent,properties) | |
1309 | local inst = Instance.new(instance,parent) | |
1310 | if(properties)then | |
1311 | for i,v in next, properties do | |
1312 | pcall(function() inst[i] = v end) | |
1313 | end | |
1314 | end | |
1315 | return inst; | |
1316 | end | |
1317 | ||
1318 | ||
1319 | ||
1320 | --// Extended ROBLOX tables \\-- | |
1321 | local Instance = setmetatable({ClearChildrenOfClass = function(where,class,recursive) local children = (recursive and where:GetDescendants() or where:GetChildren()) for _,v in next, children do if(v:IsA(class))then v:destroy();end;end;end},{__index = Instance}) | |
1322 | --// Customization \\-- | |
1323 | ||
1324 | local Frame_Speed = 60 -- The frame speed for swait. 1 is automatically divided by this | |
1325 | local Remove_Hats = false | |
1326 | local Remove_Clothing = true | |
1327 | local PlayerSize = 1 | |
1328 | local DamageColor = BrickColor.new'Really red' | |
1329 | local MusicID = 250634910 | |
1330 | - | local WalkSpeed = 8 |
1330 | + | local WalkSpeed = 200 |
1331 | local MaxSouls = 100 | |
1332 | local MaxHealth = 500 | |
1333 | ||
1334 | ||
1335 | if(_G.RefusedAnimation == nil) then _G.RefusedAnimation = false end | |
1336 | ||
1337 | --// Weapon and GUI creation, and Character Customization \\-- | |
1338 | ||
1339 | if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end | |
1340 | if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end | |
1341 | local Effects = IN("Folder",Char) | |
1342 | Effects.Name = "Effects" | |
1343 | ||
1344 | Hum.MaxHealth = MaxHealth | |
1345 | Hum.Health = MaxHealth | |
1346 | ||
1347 | local Knife = NewInstance("Part",Char,{Name='Knife',Size=V3.N(.4,3,.7),Anchored=false,CanCollide=false,Locked=true,Archivable=false,Reflectance=.01,Color=C3.N(0,0,0)}) | |
1348 | local KnifeMesh = Mesh(Knife,Enum.MeshType.FileMesh,"rbxassetid://121944778","rbxassetid://121944805",V3.N(1,1,1),V3.N()) | |
1349 | local AuraEmitter = NewInstance("ParticleEmitter",Knife,{EmissionDirection='Back',Color=CS{CSK(0,C3.N(1,0,0)),CSK(0.5,C3.N(1,1,0)),CSK(1,C3.RGB(255,191,0))},LightEmission=.5,LightInfluence=0,Size=NumberSequence.new(0.3),Texture="rbxassetid://141116476",Transparency=NumberSequence.new(0,1),LockedToPart=true,Lifetime=NumberRange.new(1),Rate=150,Speed=NumberRange.new(0)}) | |
1350 | local FireEmitter = NewInstance("ParticleEmitter",Knife,{EmissionDirection='Back',Color=CS(C3.N(1,0,0),C3.N(1,0,0)),LightEmission=.5,LightInfluence=0,Size=NumberSequence.new{NumberSequenceKeypoint.new(0,.5,0),NumberSequenceKeypoint.new(0.755,0,0),NumberSequenceKeypoint.new(1,0,0)},Texture="rbxassetid://141116476",Transparency=NumberSequence.new(0.35,1),Lifetime=NumberRange.new(1,2),Rate=150,Speed=NumberRange.new(3)}) | |
1351 | ||
1352 | local KTrail = NewInstance("Trail",Knife,{ | |
1353 | Attachment0=NewInstance("Attachment",Knife,{Position=V3.N(0,-.4,0)}), | |
1354 | Attachment1=NewInstance("Attachment",Knife,{Position=V3.N(0,1.2,0)}), | |
1355 | Color=CS(C3.N(1,0,0)), | |
1356 | Enabled=false, | |
1357 | Transparency=NumberSequence.new(0,1), | |
1358 | Lifetime=1.25, | |
1359 | }) | |
1360 | local Hair = Part(Char,C3.N(0,0,0),Enum.Material.SmoothPlastic,V3.N(1,1,1),CF.N(),false,false) | |
1361 | local HairMesh = Mesh(Hair,Enum.MeshType.FileMesh,"rbxassetid://16627529","rbxassetid://16627494",V3.N(1.05,1.05,1.05),V3.N()) | |
1362 | ||
1363 | NewInstance("PointLight",Knife,{Color=C3.N(1,0,0),Range=10,Brightness=3}) | |
1364 | ||
1365 | ||
1366 | Hum.DisplayDistanceType = 'None' | |
1367 | ||
1368 | local naeeym2 = IN("BillboardGui",Char) | |
1369 | naeeym2.AlwaysOnTop = true | |
1370 | naeeym2.Size = UDim2.new(5,35,2,15) | |
1371 | naeeym2.StudsOffset = V3.N(0,2.5,0) | |
1372 | naeeym2.Adornee = Char.Head | |
1373 | naeeym2.Name = "Name" | |
1374 | naeeym2.PlayerToHideFrom = Nobody | |
1375 | local tecks2 = IN("TextLabel",naeeym2) | |
1376 | tecks2.BackgroundTransparency = 1 | |
1377 | tecks2.TextScaled = true | |
1378 | tecks2.BorderSizePixel = 0 | |
1379 | - | tecks2.Text = "Purple Guy" |
1379 | + | tecks2.Text = "" |
1380 | tecks2.Font = Enum.Font.Bodoni | |
1381 | tecks2.TextSize = 30 | |
1382 | tecks2.TextStrokeTransparency = 0 | |
1383 | tecks2.TextColor3 = C3.N(0,0,0) | |
1384 | tecks2.TextStrokeColor3 = C3.N(.7,0,0) | |
1385 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
1386 | tecks2.Parent = naeeym2 | |
1387 | ||
1388 | ||
1389 | IN("Shirt",Char) | |
1390 | IN("Pants",Char) | |
1391 | ||
1392 | Hum.WalkSpeed = WalkSpeed | |
1393 | if(PlayerSize ~= 1)then | |
1394 | for _,v in next, Char:GetDescendats() do | |
1395 | if(v:IsA'BasePart')then | |
1396 | v.Size = v.Size * PlayerSize | |
1397 | end | |
1398 | end | |
1399 | end | |
1400 | ||
1401 | ||
1402 | for i = 1, 35 do | |
1403 | local FACE = Part(Char,C3.N(0,0,0),Enum.Material.Neon,V3.N(1.01,.5,1.01),CF.N(),false,false) | |
1404 | FACE.Transparency = 0+(i-1)/35.2 | |
1405 | FACE.Name = 'ShadowFace' | |
1406 | Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE | |
1407 | NewInstance("Weld",Head,{Part0=Head,Part1=FACE,C0=CF.N(0,.35-(i-1)/75,0)}) | |
1408 | --CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0)) | |
1409 | end | |
1410 | ||
1411 | local LEye = Part(Char,C3.N(1,0,0),Enum.Material.Neon,V3.N(.15,.25,.2),CF.N(),false,false) | |
1412 | local LEyeM = Mesh(LEye,Enum.MeshType.Sphere,"","",V3.N(1,1,1),V3.N()) | |
1413 | local LEyeW = NewInstance("Weld",LEye,{Part0=Head,Part1=LEye,C0=CF.N(-.2,.2,-.49)}) | |
1414 | ||
1415 | local REye = Part(Char,C3.N(1,0,0),Enum.Material.Neon,V3.N(.15,.25,.2),CF.N(),false,false) | |
1416 | local REyeM = Mesh(REye,Enum.MeshType.Sphere,"","",V3.N(1,1,1),V3.N()) | |
1417 | local REyeW = NewInstance("Weld",REye,{Part0=Head,Part1=REye,C0=CF.N(.2,.2,-.49)}) | |
1418 | ||
1419 | ||
1420 | pcall(function() | |
1421 | Char.LeftWing:destroy() | |
1422 | Char.ReaperShadowHead:destroy() | |
1423 | end) | |
1424 | ||
1425 | ||
1426 | local Music = Sound(Torso,MusicID,1,3,true,false,true) | |
1427 | Music.Name = 'Music' | |
1428 | ||
1429 | --// Stop animations \\-- | |
1430 | for _,v in next, Hum:GetPlayingAnimationTracks() do | |
1431 | v:Stop(); | |
1432 | end | |
1433 | ||
1434 | pcall(game.Destroy,Char:FindFirstChild'Animate') | |
1435 | pcall(game.Destroy,Hum:FindFirstChild'Animator') | |
1436 | ||
1437 | --// Joints \\-- | |
1438 | ||
1439 | local LS = NewInstance('Motor',Char,{Part0=Torso,Part1=LArm,C0 = CF.N(-1.5 * PlayerSize,0.5 * PlayerSize,0),C1 = CF.N(0,.5 * PlayerSize,0)}) | |
1440 | local RS = NewInstance('Motor',Char,{Part0=Torso,Part1=RArm,C0 = CF.N(1.5 * PlayerSize,0.5 * PlayerSize,0),C1 = CF.N(0,.5 * PlayerSize,0)}) | |
1441 | local NK = NewInstance('Motor',Char,{Part0=Torso,Part1=Head,C0 = CF.N(0,1.5 * PlayerSize,0)}) | |
1442 | local LH = NewInstance('Motor',Char,{Part0=Torso,Part1=LLeg,C0 = CF.N(-.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)}) | |
1443 | local RH = NewInstance('Motor',Char,{Part0=Torso,Part1=RLeg,C0 = CF.N(.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)}) | |
1444 | local RJ = NewInstance('Motor',Char,{Part0=Root,Part1=Torso}) | |
1445 | local HW = NewInstance('Motor',Char,{Part0=RArm,Part1=Knife,C0=CF.N(0,-1,-1)*CF.A(M.R(-90),0,0)}) | |
1446 | local HW2 = NewInstance('Motor',Char,{Part0=Head,Part1=Hair,C0=CF.N(0,.44,0)}) | |
1447 | ||
1448 | local LSC0 = LS.C0 | |
1449 | local RSC0 = RS.C0 | |
1450 | local NKC0 = NK.C0 | |
1451 | local LHC0 = LH.C0 | |
1452 | local RHC0 = RH.C0 | |
1453 | local RJC0 = RJ.C0 | |
1454 | ||
1455 | --// Artificial HB \\-- | |
1456 | ||
1457 | local ArtificialHB = IN("BindableEvent", script) | |
1458 | ArtificialHB.Name = "Heartbeat" | |
1459 | ||
1460 | script:WaitForChild("Heartbeat") | |
1461 | ||
1462 | local tf = 0 | |
1463 | local allowframeloss = false | |
1464 | local tossremainder = false | |
1465 | local lastframe = tick() | |
1466 | local frame = 1/Frame_Speed | |
1467 | ArtificialHB:Fire() | |
1468 | ||
1469 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
1470 | tf = tf + s | |
1471 | if tf >= frame then | |
1472 | if allowframeloss then | |
1473 | script.Heartbeat:Fire() | |
1474 | lastframe = tick() | |
1475 | else | |
1476 | for i = 1, math.floor(tf / frame) do | |
1477 | ArtificialHB:Fire() | |
1478 | end | |
1479 | lastframe = tick() | |
1480 | end | |
1481 | if tossremainder then | |
1482 | tf = 0 | |
1483 | else | |
1484 | tf = tf - frame * math.floor(tf / frame) | |
1485 | end | |
1486 | end | |
1487 | end) | |
1488 | ||
1489 | function swait(num) | |
1490 | if num == 0 or num == nil then | |
1491 | ArtificialHB.Event:wait() | |
1492 | else | |
1493 | for i = 0, num do | |
1494 | ArtificialHB.Event:wait() | |
1495 | end | |
1496 | end | |
1497 | end | |
1498 | ||
1499 | ||
1500 | --// Effect Function(s) \\-- | |
1501 | ||
1502 | function Bezier(startpos, pos2, pos3, endpos, t) | |
1503 | local A = startpos:lerp(pos2, t) | |
1504 | local B = pos2:lerp(pos3, t) | |
1505 | local C = pos3:lerp(endpos, t) | |
1506 | local lerp1 = A:lerp(B, t) | |
1507 | local lerp2 = B:lerp(C, t) | |
1508 | local cubic = lerp1:lerp(lerp2, t) | |
1509 | return cubic | |
1510 | end | |
1511 | ||
1512 | function Tween(obj,props,time,easing,direction,repeats,backwards) | |
1513 | local info = TweenInfo.new(time or .5, easing or Enum.EasingStyle.Quad, direction or Enum.EasingDirection.Out, repeats or 0, backwards or false) | |
1514 | local tween = S.TweenService:Create(obj, info, props) | |
1515 | ||
1516 | tween:Play() | |
1517 | end | |
1518 | ||
1519 | local FXTable = {} | |
1520 | ||
1521 | coroutine.resume(coroutine.create(function() | |
1522 | while true do | |
1523 | for i = 1, #FXTable do | |
1524 | local data = FXTable[i] | |
1525 | if(data)then | |
1526 | local Frame = data.Frame | |
1527 | local FX = data.Effect or 'ResizeAndFade' | |
1528 | local Parent = data.Parent or Effects | |
1529 | local Color = data.Color or C3.N(0,0,0) | |
1530 | local Size = data.Size or V3.N(1,1,1) | |
1531 | local MoveDir = data.MoveDirection or nil | |
1532 | local MeshData = data.Mesh or nil | |
1533 | local SndData = data.Sound or nil | |
1534 | local Frames = data.Frames or 45 | |
1535 | local CFra = data.CFrame or Torso.CFrame | |
1536 | local Settings = data.FXSettings or {} | |
1537 | local Prt,Msh,Snd = data.Part,data.Mesh,data.Sound | |
1538 | local grow = data.Grow | |
1539 | ||
1540 | local MoveSpeed = nil; | |
1541 | if(MoveDir)then | |
1542 | MoveSpeed = (CFra.p - MoveDir).magnitude/Frames | |
1543 | end | |
1544 | if(FX ~= 'Arc')then | |
1545 | Frame = Frame + 1 | |
1546 | if(FX == "Fade")then | |
1547 | Prt.Transparency = (Frame/Frames) | |
1548 | elseif(FX == "Resize")then | |
1549 | if(not Settings.EndSize)then | |
1550 | Settings.EndSize = V3.N(0,0,0) | |
1551 | end | |
1552 | if(Settings.EndIsIncrement)then | |
1553 | if(Msh)then | |
1554 | Msh.Scale = Msh.Scale + Settings.EndSize | |
1555 | else | |
1556 | Prt.Size = Prt.Size + Settings.EndSize | |
1557 | end | |
1558 | else | |
1559 | if(Msh)then | |
1560 | Msh.Scale = Msh.Scale - grow/Frames | |
1561 | else | |
1562 | Prt.Size = Prt.Size - grow/Frames | |
1563 | end | |
1564 | end | |
1565 | elseif(FX == "ResizeAndFade")then | |
1566 | if(not Settings.EndSize)then | |
1567 | Settings.EndSize = V3.N(0,0,0) | |
1568 | end | |
1569 | if(Settings.EndIsIncrement)then | |
1570 | if(Msh)then | |
1571 | Msh.Scale = Msh.Scale + Settings.EndSize | |
1572 | else | |
1573 | Prt.Size = Prt.Size + Settings.EndSize | |
1574 | end | |
1575 | else | |
1576 | if(Msh)then | |
1577 | Msh.Scale = Msh.Scale - grow/Frames | |
1578 | else | |
1579 | Prt.Size = Prt.Size - grow/Frames | |
1580 | end | |
1581 | end | |
1582 | Prt.Transparency = (Frame/Frames) | |
1583 | end | |
1584 | if(Settings.RandomizeCFrame)then | |
1585 | Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360)) | |
1586 | end | |
1587 | if(MoveDir and MoveSpeed)then | |
1588 | local Orientation = Prt.Orientation | |
1589 | Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed) | |
1590 | Prt.Orientation = Orientation | |
1591 | end | |
1592 | if(Prt.Transparency >= 1 or Frame >= Frames)then | |
1593 | Prt:destroy() | |
1594 | table.remove(FXTable,i) | |
1595 | else | |
1596 | data.Frame = Frame | |
1597 | end | |
1598 | else | |
1599 | local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End | |
1600 | if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end | |
1601 | if(start and endP)then | |
1602 | local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25)) | |
1603 | local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25)) | |
1604 | Frame = Frame + (Settings.Speed or 0.01) | |
1605 | if(Settings.Home)then | |
1606 | endP = Settings.Home.CFrame | |
1607 | end | |
1608 | Prt.CFrame = Bezier(start, quarter, threequarter, endP, Frame) | |
1609 | if(Prt.Transparency >= 1 or Frame >= Frames)then | |
1610 | if(Settings.RemoveOnGoal)then | |
1611 | Prt:destroy() | |
1612 | end | |
1613 | end | |
1614 | else | |
1615 | Prt:destroy() | |
1616 | end | |
1617 | end | |
1618 | end | |
1619 | end | |
1620 | swait() | |
1621 | end | |
1622 | end)) | |
1623 | ||
1624 | function Effect(data) | |
1625 | local FX = data.Effect or 'ResizeAndFade' | |
1626 | local Parent = data.Parent or Effects | |
1627 | local Color = data.Color or C3.N(0,0,0) | |
1628 | local Size = data.Size or V3.N(1,1,1) | |
1629 | local MoveDir = data.MoveDirection or nil | |
1630 | local MeshData = data.Mesh or nil | |
1631 | local SndData = data.Sound or nil | |
1632 | local Frames = data.Frames or 45 | |
1633 | local Manual = data.Manual or nil | |
1634 | local Material = data.Material or nil | |
1635 | local CFra = data.CFrame or Torso.CFrame | |
1636 | local Settings = data.FXSettings or {} | |
1637 | local Shape = data.Shape or Enum.PartType.Block | |
1638 | local Snd,Prt,Msh; | |
1639 | coroutine.wrap(function() | |
1640 | if(Manual and typeof(Manual) == 'Instance' and Manual:IsA'BasePart')then | |
1641 | Prt = Manual | |
1642 | else | |
1643 | Prt = Part(Parent,Color,Material,Size,CFra,true,false) | |
1644 | Prt.Shape = Shape | |
1645 | end | |
1646 | if(typeof(MeshData) == 'table')then | |
1647 | Msh = Mesh(Prt,MeshData.MeshType,MeshData.MeshId,MeshData.TextureId,MeshData.Scale,MeshData.Offset) | |
1648 | elseif(typeof(MeshData) == 'Instance')then | |
1649 | Msh = MeshData:Clone() | |
1650 | Msh.Parent = Prt | |
1651 | elseif(Shape == Enum.PartType.Block)then | |
1652 | Msh = Mesh(Prt,Enum.MeshType.Brick) | |
1653 | end | |
1654 | if(typeof(SndData) == 'table' or typeof(SndData) == 'Instance')then | |
1655 | Snd = Sound(Prt,SndData.SoundId,SndData.Pitch,SndData.Volume,false,false,true) | |
1656 | end | |
1657 | if(Snd)then | |
1658 | repeat swait() until Snd.Playing and Snd.IsLoaded and Snd.TimeLength > 0 | |
1659 | Frames = Snd.TimeLength * Frame_Speed/Snd.Pitch | |
1660 | end | |
1661 | Size = (Msh and Msh.Scale or Size) | |
1662 | local grow = Size-(Settings.EndSize or (Msh and Msh.Scale or Size)/2) | |
1663 | ||
1664 | local MoveSpeed = nil; | |
1665 | if(MoveDir)then | |
1666 | MoveSpeed = (CFra.p - MoveDir).magnitude/Frames | |
1667 | end | |
1668 | if(FX ~= 'Arc')then | |
1669 | for Frame = 1, Frames do | |
1670 | if(FX == "Fade")then | |
1671 | Prt.Transparency = (Frame/Frames) | |
1672 | elseif(FX == "Resize")then | |
1673 | if(not Settings.EndSize)then | |
1674 | Settings.EndSize = V3.N(0,0,0) | |
1675 | end | |
1676 | if(Settings.EndIsIncrement)then | |
1677 | if(Msh)then | |
1678 | Msh.Scale = Msh.Scale + Settings.EndSize | |
1679 | else | |
1680 | Prt.Size = Prt.Size + Settings.EndSize | |
1681 | end | |
1682 | else | |
1683 | if(Msh)then | |
1684 | Msh.Scale = Msh.Scale - grow/Frames | |
1685 | else | |
1686 | Prt.Size = Prt.Size - grow/Frames | |
1687 | end | |
1688 | end | |
1689 | elseif(FX == "ResizeAndFade")then | |
1690 | if(not Settings.EndSize)then | |
1691 | Settings.EndSize = V3.N(0,0,0) | |
1692 | end | |
1693 | if(Settings.EndIsIncrement)then | |
1694 | if(Msh)then | |
1695 | Msh.Scale = Msh.Scale + Settings.EndSize | |
1696 | else | |
1697 | Prt.Size = Prt.Size + Settings.EndSize | |
1698 | end | |
1699 | else | |
1700 | if(Msh)then | |
1701 | Msh.Scale = Msh.Scale - grow/Frames | |
1702 | else | |
1703 | Prt.Size = Prt.Size - grow/Frames | |
1704 | end | |
1705 | end | |
1706 | Prt.Transparency = (Frame/Frames) | |
1707 | end | |
1708 | if(Settings.RandomizeCFrame)then | |
1709 | Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360)) | |
1710 | end | |
1711 | if(MoveDir and MoveSpeed)then | |
1712 | local Orientation = Prt.Orientation | |
1713 | Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed) | |
1714 | Prt.Orientation = Orientation | |
1715 | end | |
1716 | swait() | |
1717 | end | |
1718 | Prt:destroy() | |
1719 | else | |
1720 | local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End | |
1721 | if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end | |
1722 | if(start and endP)then | |
1723 | local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25)) | |
1724 | local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25)) | |
1725 | for Frame = 0, 1, (Settings.Speed or 0.01) do | |
1726 | if(Settings.Home)then | |
1727 | endP = Settings.Home.CFrame | |
1728 | end | |
1729 | Prt.CFrame = Bezier(start, quarter, threequarter, endP, Frame) | |
1730 | end | |
1731 | if(Settings.RemoveOnGoal)then | |
1732 | Prt:destroy() | |
1733 | end | |
1734 | else | |
1735 | Prt:destroy() | |
1736 | assert(start,"You need a start position!") | |
1737 | assert(endP,"You need a start position!") | |
1738 | end | |
1739 | end | |
1740 | end)() | |
1741 | return Prt,Msh,Snd | |
1742 | end | |
1743 | ||
1744 | ||
1745 | ||
1746 | function SoulSteal(whom,human) | |
1747 | local torso = (whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso' or whom:FindFirstChild'LowerTorso' or whom:FindFirstChild'HumanoidRootPart' or whom:FindFirstChild'Torso') | |
1748 | local succ, health, alive = pcall(function() return whom:FindFirstChildOfClass'Humanoid'.Health, whom:FindFirstChildOfClass'Humanoid'.Health > 0 end) | |
1749 | if(torso and torso:IsA'BasePart' and alive == true)then | |
1750 | whom:FindFirstChildOfClass'Humanoid'.Health = 0 | |
1751 | whom:BreakJoints() | |
1752 | local Model = IN("Model",Effects) | |
1753 | warn('Soul stolen from '..whom.Name) | |
1754 | Model.Name = whom.Name.."'s Soul" | |
1755 | local Soul = Part(Model,(human and BrickColor.new'Really red' or BrickColor.new(C3.N(1,1,1))),'Glass',V3.N(1,1,1),torso.CFrame,true,false) | |
1756 | Soul.CanCollide=false | |
1757 | Mesh(Soul,Enum.MeshType.Sphere) | |
1758 | Soul.Name = 'Head' | |
1759 | if(whom.Name == 'CKbackup')then | |
1760 | Soul.Color = C3.N(1,1,1) | |
1761 | local DripEmitter = NewInstance("ParticleEmitter",Soul,{EmissionDirection='Bottom',Color=CS(Soul.Color),LightEmission=.5,LightInfluence=0,Size=NumberSequence.new(0.3),Texture="rbxassetid://243132757",Transparency=NumberSequence.new(0,1),LockedToPart=false,Lifetime=NumberRange.new(1),Rate=150,Speed=NumberRange.new(5)}) | |
1762 | end | |
1763 | local Hoom = NewInstance("Humanoid",Model,{MaxHealth=(health <= 10000 and health/2 or 10000),Health=(health <= 10000 and health/2 or 10000)}) | |
1764 | local AT0 = NewInstance("Attachment",Soul,{Position=V3.N(0,.5,0)}) | |
1765 | local AT1 = NewInstance("Attachment",Soul,{Position=V3.N(0,-.5,0)}) | |
1766 | local Trail = NewInstance("Trail",Soul,{Attachment0=AT0,Attachment1=AT1,Transparency=NumberSequence.new(0),FaceCamera = true,Texture="rbxassetid://945758042",LightEmission=.3,Color=CS(Soul.Color),Lifetime=.5,MinLength=0}) | |
1767 | NewInstance("PointLight",Soul,{Color=Soul.Color,Range=10,Brightness=(human and 3 or .5)}) | |
1768 | ||
1769 | local turdso = Soul:Clone() | |
1770 | turdso.Name = "Torso" | |
1771 | turdso.CanCollide = false | |
1772 | turdso.Anchored = true | |
1773 | turdso.CFrame = Soul.CFrame | |
1774 | turdso.Parent = Model | |
1775 | turdso.Size = V3.N() | |
1776 | turdso.Transparency=1 | |
1777 | local Distance = math.huge | |
1778 | repeat | |
1779 | Soul.CFrame = CF.N(Soul.Position,Torso.Position)*CF.N(0,0,-1) | |
1780 | turdso.CFrame = Soul.CFrame | |
1781 | Distance = (Soul.CFrame.p-Torso.CFrame.p).magnitude | |
1782 | swait() | |
1783 | until Hoom.Health <= 0 or not Soul.Parent or Distance <= 1.2 | |
1784 | if(Soul.Parent and Hoom.Health > 0)then | |
1785 | Model:destroy() | |
1786 | Effect{ | |
1787 | Effect="ResizeAndFade", | |
1788 | Mesh={Enum.MeshType.Sphere}, | |
1789 | Color = Soul.Color, | |
1790 | CFrame=Torso.CFrame, | |
1791 | Size=V3.N(3,3,3), | |
1792 | Material=Enum.Material.Neon, | |
1793 | Sound={SoundId=444667859,Pitch=1,Volume=2.5}, | |
1794 | FXSettings={ | |
1795 | EndSize=V3.N(6,6,6), | |
1796 | } | |
1797 | } | |
1798 | Souls = Souls + (human and 1 or .1) | |
1799 | warn("Souls: "..Souls) | |
1800 | MaxHealth = MaxHealth + Hoom.Health | |
1801 | Hum.Health = Hum.Health + Hoom.Health | |
1802 | for i = 1, 5 do | |
1803 | Effect{ | |
1804 | Effect="Fade", | |
1805 | Color = Soul.Color, | |
1806 | MoveDirection = (Torso.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p | |
1807 | } | |
1808 | end | |
1809 | else | |
1810 | ||
1811 | warn("Soul destroyed!") | |
1812 | for i = 1, 5 do | |
1813 | Effect{ | |
1814 | Effect="Fade", | |
1815 | Color = Soul.Color, | |
1816 | CFrame=Soul.CFrame, | |
1817 | MoveDirection = (Soul.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p | |
1818 | } | |
1819 | end | |
1820 | Effect{ | |
1821 | Effect="ResizeAndFade", | |
1822 | Mesh={Enum.MeshType.Sphere}, | |
1823 | Sound={SoundId=444667859,Pitch=1,Volume=5}, | |
1824 | Color = Soul.Color, | |
1825 | CFrame=Soul.CFrame, | |
1826 | Size=V3.N(3,3,3), | |
1827 | Material=Enum.Material.Neon, | |
1828 | FXSettings={ | |
1829 | EndSize=V3.N(6,6,6), | |
1830 | } | |
1831 | } | |
1832 | Model:destroy() | |
1833 | end | |
1834 | end | |
1835 | end | |
1836 | ||
1837 | --// Other Functions \\ -- | |
1838 | ||
1839 | function getRegion(point,range,ignore) | |
1840 | return workspace:FindPartsInRegion3WithIgnoreList(R3.N(point-V3.N(1,1,1)*range/2,point+V3.N(1,1,1)*range/2),ignore,100) | |
1841 | end | |
1842 | ||
1843 | function clerp(startCF,endCF,alpha) | |
1844 | return startCF:lerp(endCF, alpha) | |
1845 | end | |
1846 | ||
1847 | function GetTorso(char) | |
1848 | return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart' | |
1849 | end | |
1850 | ||
1851 | function ShowDamage(Pos, Text, Time, Color) | |
1852 | coroutine.wrap(function() | |
1853 | local Rate = (1 / Frame_Speed) | |
1854 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
1855 | local Text = (Text or "") | |
1856 | local Time = (Time or 2) | |
1857 | local Color = (Color or Color3.new(1, 0, 1)) | |
1858 | local EffectPart = NewInstance("Part",Effects,{ | |
1859 | Material=Enum.Material.SmoothPlastic, | |
1860 | Reflectance = 0, | |
1861 | Transparency = 1, | |
1862 | BrickColor = BrickColor.new(Color), | |
1863 | Name = "Effect", | |
1864 | Size = Vector3.new(0,0,0), | |
1865 | Anchored = true, | |
1866 | CFrame = CF.N(Pos) | |
1867 | }) | |
1868 | local BillboardGui = NewInstance("BillboardGui",EffectPart,{ | |
1869 | Size = UDim2.new(1.25, 0, 1.25, 0), | |
1870 | Adornee = EffectPart, | |
1871 | }) | |
1872 | local TextLabel = NewInstance("TextLabel",BillboardGui,{ | |
1873 | BackgroundTransparency = 1, | |
1874 | Size = UDim2.new(1, 0, 1, 0), | |
1875 | Text = Text, | |
1876 | Font = "Arcade", | |
1877 | TextColor3 = Color, | |
1878 | TextStrokeColor3 = Color3.new(0,0,0), | |
1879 | TextStrokeTransparency=0, | |
1880 | TextScaled = true, | |
1881 | }) | |
1882 | S.Debris:AddItem(EffectPart, (Time)) | |
1883 | EffectPart.Parent = workspace | |
1884 | delay(0, function() | |
1885 | Tween(EffectPart,{CFrame=CF.N(Pos)*CF.N(0,3,0)},Time,Enum.EasingStyle.Elastic,Enum.EasingDirection.Out) | |
1886 | local Frames = (Time / Rate) | |
1887 | for Frame = 1, Frames do | |
1888 | swait() | |
1889 | local Percent = (Frame / Frames) | |
1890 | TextLabel.TextTransparency = Percent | |
1891 | TextLabel.TextStrokeTransparency = Percent | |
1892 | end | |
1893 | if EffectPart and EffectPart.Parent then | |
1894 | EffectPart:Destroy() | |
1895 | end | |
1896 | end) end)() | |
1897 | end | |
1898 | ||
1899 | function Kill(whom) | |
1900 | if(whom.Name ~= 'Nebula_Zorua')then | |
1901 | local isPlr = Plrs:GetPlayerFromCharacter(whom) ~= nil | |
1902 | coroutine.wrap(SoulSteal)(whom,isPlr) | |
1903 | for _,v in next, whom:children() do | |
1904 | if(v:IsA'BasePart')then | |
1905 | v.Parent = Effects | |
1906 | v:ClearAllChildren() | |
1907 | v.Anchored = true | |
1908 | v.CanCollide = false | |
1909 | v.Transparency = 1 | |
1910 | local dust = NewInstance("ParticleEmitter",v,{ | |
1911 | Color = ColorSequence.new(C3.N(1,1,1)), | |
1912 | LightEmission=0, | |
1913 | LightInfluence=1, | |
1914 | Size=NumberSequence.new{NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0,0)}, | |
1915 | Texture="rbxassetid://284205403", | |
1916 | Transparency=NumberSequence.new{NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}, | |
1917 | Lifetime = NumberRange.new(1), | |
1918 | Rate=150, | |
1919 | Acceleration = V3.N(0,10,0), | |
1920 | Speed = NumberRange.new(5), | |
1921 | Enabled = true | |
1922 | }) | |
1923 | delay(1, function() | |
1924 | dust.Enabled = false | |
1925 | S.Debris:AddItem(v,2) | |
1926 | end) | |
1927 | end | |
1928 | end | |
1929 | else | |
1930 | warn"nope. nawt happenin'" | |
1931 | end | |
1932 | end | |
1933 | ||
1934 | function DealDamage(who,minDam,maxDam,Knock,Type,critChance,critMult) | |
1935 | if(who)then | |
1936 | local hum = who:FindFirstChildOfClass'Humanoid' | |
1937 | local Damage = M.RNG(minDam,maxDam) | |
1938 | local canHit = true | |
1939 | if(hum)then | |
1940 | for _, p in pairs(Hit) do | |
1941 | if p[1] == hum then | |
1942 | if(time() - p[2] < 0.4) then | |
1943 | canHit = false | |
1944 | else | |
1945 | Hit[_] = nil | |
1946 | end | |
1947 | end | |
1948 | end | |
1949 | if(canHit)then | |
1950 | table.insert(Hit,{hum,time()}) | |
1951 | if(GetTorso(who))then | |
1952 | Sound(GetTorso(who),1219742600,1,10,false,true,true) | |
1953 | end | |
1954 | if(hum.Health >= math.huge)then | |
1955 | Kill(who) | |
1956 | if(who:FindFirstChild'Head' and hum.Health > 0)then | |
1957 | ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), "INSTANT", 3, DamageColor.Color) | |
1958 | end | |
1959 | else | |
1960 | local player = S.Players:GetPlayerFromCharacter(who) | |
1961 | if(Type == "Fire")then | |
1962 | --idk.. | |
1963 | else | |
1964 | local c = Instance.new("ObjectValue",hum) | |
1965 | c.Name = "creator" | |
1966 | c.Value = Plr | |
1967 | game:service'Debris':AddItem(c,0.35) | |
1968 | local Crit = false | |
1969 | if(M.RNG(1,100) <= (critChance or 0) and critMult > 1)then | |
1970 | Crit = true | |
1971 | Damage = Damage*(critMult or 2) | |
1972 | end | |
1973 | Damage = Damage*((Souls/5)+1) | |
1974 | if(who:FindFirstChild'Head' and hum.Health > 0)then | |
1975 | ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), (Crit and "[CRIT] " or "").. math.floor(Damage), 3, (Crit and BrickColor.new'New Yeller'.Color or DamageColor.Color)) | |
1976 | end | |
1977 | ||
1978 | if(hum.Health - Damage <= 0)then | |
1979 | Kill(who) | |
1980 | else | |
1981 | hum.Health = hum.Health - Damage | |
1982 | if(Type == 'Knockback' and GetTorso(who))then | |
1983 | local angle = GetTorso(who).Position - Root.Position + Vector3.new(0, 0, 0).unit | |
1984 | local body = NewInstance('BodyVelocity',GetTorso(who),{ | |
1985 | P = 500, | |
1986 | maxForce = V3.N(math.huge,0,math.huge), | |
1987 | velocity = Root.CFrame.lookVector * Knock + Root.Velocity / 1.05 | |
1988 | }) | |
1989 | game:service'Debris':AddItem(body,.5) | |
1990 | elseif(Type == "Electric")then | |
1991 | if(M.RNG(1,100) >= critChance)then | |
1992 | if(who:FindFirstChild'Head' and hum.Health > 0)then | |
1993 | ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), "[PARALYZED]", 3, BrickColor.new"New Yeller".Color) | |
1994 | end | |
1995 | local asd = hum.WalkSpeed/2 | |
1996 | hum.WalkSpeed = asd | |
1997 | local paralyzed = true | |
1998 | coroutine.wrap(function() | |
1999 | while paralyzed do | |
2000 | swait(25) | |
2001 | if(M.RNG(1,25) == 1)then | |
2002 | if(who:FindFirstChild'Head' and hum.Health > 0)then | |
2003 | ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), "[STATIC]", 3, BrickColor.new"New Yeller".Color) | |
2004 | end | |
2005 | hum.PlatformStand = true | |
2006 | end | |
2007 | end | |
2008 | end)() | |
2009 | delay(4, function() | |
2010 | paralyzed = false | |
2011 | hum.WalkSpeed = hum.WalkSpeed + asd | |
2012 | end) | |
2013 | end | |
2014 | ||
2015 | elseif(Type == 'Knockdown' and GetTorso(who))then | |
2016 | local rek = GetTorso(who) | |
2017 | hum.PlatformStand = true | |
2018 | delay(1,function() | |
2019 | hum.PlatformStand = false | |
2020 | end) | |
2021 | local angle = (GetTorso(who).Position - (Root.Position + Vector3.new(0, 0, 0))).unit | |
2022 | local bodvol = NewInstance("BodyVelocity",rek,{ | |
2023 | velocity = angle * Knock, | |
2024 | P = 5000, | |
2025 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
2026 | }) | |
2027 | local rl = NewInstance("BodyAngularVelocity",rek,{ | |
2028 | P = 3000, | |
2029 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
2030 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
2031 | }) | |
2032 | game:GetService("Debris"):AddItem(bodvol, .5) | |
2033 | game:GetService("Debris"):AddItem(rl, .5) | |
2034 | end | |
2035 | end | |
2036 | end | |
2037 | end | |
2038 | end | |
2039 | end | |
2040 | end | |
2041 | end | |
2042 | ||
2043 | ||
2044 | function AOEDamage(where,range,minDam,maxDam,Knock,Type,critChance,critMult) | |
2045 | for _,v in next, getRegion(where,range,{Char}) do | |
2046 | if(v.Name ~= 'Nebula_Zorua')then | |
2047 | if(v.Parent and v.Parent:FindFirstChildOfClass'Humanoid')then | |
2048 | DealDamage(v.Parent,minDam,maxDam,Knock,Type,critChance,critMult) | |
2049 | end | |
2050 | end | |
2051 | end | |
2052 | end | |
2053 | ||
2054 | function AOEKill(where,range) | |
2055 | for _,v in next, getRegion(where,range,{Char,Effects}) do | |
2056 | local succ,alive = pcall(function() return v.Parent:FindFirstChildOfClass'Humanoid'.Health > 0 end) | |
2057 | if(v.Name ~= 'Nebula_Zorua')then | |
2058 | if(v.Parent and alive == true)then | |
2059 | coroutine.wrap(Kill)(v.Parent) | |
2060 | end | |
2061 | end | |
2062 | end | |
2063 | end | |
2064 | ||
2065 | function AOEHeal(where,range,amount) | |
2066 | local healed = {} | |
2067 | for _,v in next, getRegion(where,range,{Char}) do | |
2068 | local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' or nil) | |
2069 | if(hum and not healed[hum])then | |
2070 | hum.Health = hum.Health + amount | |
2071 | if(v.Parent:FindFirstChild'Head' and hum.Health > 0)then | |
2072 | ShowDamage((v.Parent.Head.CFrame * CF.N(0, 0, (v.Parent.Head.Size.Z / 2)).p+V3.N(0,1.5,0)), "+"..amount, 1.5, BrickColor.new'Lime green'.Color) | |
2073 | end | |
2074 | end | |
2075 | end | |
2076 | end | |
2077 | ||
2078 | ||
2079 | --// Attack Functions \\-- | |
2080 | ||
2081 | ||
2082 | function Slash() | |
2083 | Attack = true | |
2084 | NeutralAnims = false | |
2085 | local sound = Sound(Knife,10209640,1,5,false,true,false) | |
2086 | for i = 0, 2, 0.1 do | |
2087 | swait() | |
2088 | local Alpha = .2 | |
2089 | RJ.C0 = clerp(RJ.C0,CFrame.new(0.0343287587, 0.00629056804, 0.0572580174, 0.943793893, 0.00207689893, 0.330528289, 1.0000764e-06, 0.99998033, -0.00628630351, -0.330534875, 0.00593330665, 0.943775296),Alpha) | |
2090 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496478021, -0.990818381, 0.021652732, 0.999878168, 0, 0.0156089365, -9.80779296e-05, 0.99998033, 0.00628268253, -0.0156086385, -0.00628344761, 0.999858379),Alpha) | |
2091 | RH.C0 = clerp(RH.C0,CFrame.new(0.498511612, -0.990985274, 0.0154910646, 0.999878168, 0, 0.0156089365, -9.80779296e-05, 0.99998033, 0.00628268253, -0.0156086385, -0.00628344761, 0.999858379),Alpha) | |
2092 | LS.C0 = clerp(LS.C0,CFrame.new(-1.32692134, 0.474511296, -0.0055731535, 0.934981823, 0.354351997, 0.0156129003, -0.354479939, 0.93504262, 0.00628374517, -0.0123721063, -0.0114096552, 0.999858379),Alpha) | |
2093 | RS.C0 = clerp(RS.C0,CFrame.new(1.12629449, 0.369358033, -0.486052871, 0.490151912, 0.65154773, 0.57899636, 0.721657813, 0.0691910982, -0.688783586, -0.488836735, 0.755445719, -0.436280251),Alpha) | |
2094 | NK.C0 = clerp(NK.C0,CFrame.new(-0.0118216109, 1.49854016, -0.0795068145, 0.943793833, 0.0190048125, -0.329988182, 0.00207654224, 0.997985244, 0.0634154305, 0.330528468, -0.0605363287, 0.94185257),Alpha) | |
2095 | HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha) | |
2096 | end | |
2097 | KTrail.Enabled = true | |
2098 | sound:Play() | |
2099 | for i = 0, 2.5, 0.1 do | |
2100 | swait() | |
2101 | AOEDamage(Knife.CFrame.p,1,15,30,0,"Normal",0,1) | |
2102 | local Alpha = .25 | |
2103 | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.0352100767, 0.00629066909, -0.0097481478, 0.817972422, -0.00361463916, -0.575246274, -1.74103582e-06, 0.99998033, -0.00628598873, 0.575257719, 0.00514276745, 0.817956269),Alpha) | |
2104 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496478021, -0.990818381, 0.0216572341, 0.999878287, 0, 0.015610218, -9.80866607e-05, 0.99998033, 0.00628274865, -0.0156098902, -0.00628351374, 0.999858499),Alpha) | |
2105 | RH.C0 = clerp(RH.C0,CFrame.new(0.498511702, -0.990985274, 0.0154905058, 0.999878287, 0, 0.015610218, -9.80866607e-05, 0.99998033, 0.00628274865, -0.0156098902, -0.00628351374, 0.999858499),Alpha) | |
2106 | LS.C0 = clerp(LS.C0,CFrame.new(-1.32694602, 0.474510223, -0.00555660389, 0.934981823, 0.354351729, 0.0156157613, -0.354479671, 0.935042739, 0.00628153514, -0.012375474, -0.0114085823, 0.999858379),Alpha) | |
2107 | RS.C0 = clerp(RS.C0,CFrame.new(1.23906493, 0.406229913, 0.00231830776, 0.49015066, -0.849889755, 0.193494052, 0.721655607, 0.520183682, 0.456752002, -0.488841236, -0.0842411816, 0.868295968),Alpha) | |
2108 | NK.C0 = clerp(NK.C0,CFrame.new(0.0315471888, 1.49887729, -0.0257819965, 0.817972481, -0.0330747738, 0.574305832, -0.00361499586, 0.998030663, 0.0626262054, -0.575246155, -0.0533026271, 0.81624186),Alpha) | |
2109 | HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha) | |
2110 | end | |
2111 | KTrail.Enabled = false | |
2112 | Attack = false | |
2113 | NeutralAnims = true | |
2114 | end | |
2115 | ||
2116 | Mouse.Button1Down:connect(function() | |
2117 | if(Attack)then return end | |
2118 | Slash() | |
2119 | end) | |
2120 | ||
2121 | Mouse.KeyDown:connect(function(k) | |
2122 | if(Attack)then return end | |
2123 | if(k == 'z')then AOEKill(Root.CFrame.p,25) end -- TODO: Animation and effects | |
2124 | if(k == 'q')then WalkSpeed = (WalkSpeed == 8 and 32 or 8) end | |
2125 | end) | |
2126 | ||
2127 | ||
2128 | function Refuse() | |
2129 | Attack = true | |
2130 | warn("xd.") | |
2131 | local oMH = MaxHealth | |
2132 | MaxHealth = "inf" | |
2133 | Hum.MaxHealth = "inf" | |
2134 | Hum.Health = "inf" | |
2135 | Char.Parent = nil | |
2136 | Hum:destroy() | |
2137 | if(not _G.RefusedAnimation)then | |
2138 | _G.RefusedAnimation = true | |
2139 | ||
2140 | ||
2141 | local Soul; | |
2142 | function Soul(where,decalId) | |
2143 | local destroy = false | |
2144 | local soul = NewInstance("Part",workspace) | |
2145 | soul.Name = "Soul" | |
2146 | soul.Transparency=1 | |
2147 | soul.Size = V3.N(2,2,.05) | |
2148 | soul.Anchored=true | |
2149 | soul.CanCollide=false | |
2150 | soul.CFrame = where | |
2151 | local heartF = NewInstance("Decal",soul,{Face=Enum.NormalId.Front,Texture="rbxassetid://"..decalId}) | |
2152 | local heartB = NewInstance("Decal",soul,{Face=Enum.NormalId.Back,Texture="rbxassetid://"..decalId}) | |
2153 | return soul,heartF,heartB | |
2154 | end | |
2155 | local owo = Root.CFrame | |
2156 | local s,f,b = Soul(owo,1569347904) | |
2157 | swait(60) | |
2158 | local snd = Sound(s,862552636,1,5,false,false,false) | |
2159 | snd:Play() | |
2160 | f.Texture = "rbxassetid://1569348344" | |
2161 | b.Texture = "rbxassetid://1569348344" | |
2162 | swait(15) | |
2163 | snd:Stop() | |
2164 | swait(60) | |
2165 | print'lol' | |
2166 | for i = 0, 6, .1 do | |
2167 | swait() | |
2168 | s.CFrame = owo * CF.N(M.RNG(-50,50)/100,M.RNG(-50,50)/100,M.RNG(-50,50)/100) | |
2169 | end | |
2170 | local snd = Sound(s,862552636,1,5,false,false,false) | |
2171 | snd:Play() | |
2172 | s.CFrame = owo | |
2173 | f.Texture = "rbxassetid://1569347904" | |
2174 | b.Texture = "rbxassetid://1569347904" | |
2175 | swait(15) | |
2176 | snd:Stop() | |
2177 | swait(60) | |
2178 | ||
2179 | s:destroy() | |
2180 | end | |
2181 | ||
2182 | RJ.Parent = Char | |
2183 | LS.Parent = Char | |
2184 | RS.Parent = Char | |
2185 | LH.Parent = Char | |
2186 | RH.Parent = Char | |
2187 | NK.Parent = Char | |
2188 | ||
2189 | LArm.Parent = Char | |
2190 | RArm.Parent = Char | |
2191 | LLeg.Parent = Char | |
2192 | LArm.Parent = Char | |
2193 | Root.Parent = Char | |
2194 | Torso.Parent = Char | |
2195 | Head.Parent = Char | |
2196 | ||
2197 | Knife.Parent = Char | |
2198 | Hair.Parent = Char | |
2199 | ||
2200 | HW.Parent = Char | |
2201 | HW2.Parent = Char | |
2202 | ||
2203 | ||
2204 | REye:destroy() | |
2205 | LEye:destroy() | |
2206 | ||
2207 | for _,v in next, Char:children() do | |
2208 | if(v.Name == 'ShadowFace')then v:destroy() end | |
2209 | end | |
2210 | LEye = Part(Char,C3.N(1,0,0),Enum.Material.Neon,V3.N(.15,.25,.2),CF.N(),false,false) | |
2211 | LEyeM = Mesh(LEye,Enum.MeshType.Sphere,"","",V3.N(1,1,1),V3.N()) | |
2212 | LEyeW = NewInstance("Weld",LEye,{Part0=Head,Part1=LEye,C0=CF.N(-.2,.2,-.49)}) | |
2213 | ||
2214 | REye = Part(Char,C3.N(1,0,0),Enum.Material.Neon,V3.N(.15,.25,.2),CF.N(),false,false) | |
2215 | REyeM = Mesh(REye,Enum.MeshType.Sphere,"","",V3.N(1,1,1),V3.N()) | |
2216 | REyeW = NewInstance("Weld",REye,{Part0=Head,Part1=REye,C0=CF.N(.2,.2,-.49)}) | |
2217 | for i = 1, 35 do | |
2218 | local FACE = Part(Char,C3.N(0,0,0),Enum.Material.Neon,V3.N(1.01,.5,1.01),CF.N(),false,false) | |
2219 | FACE.Transparency = 0+(i-1)/35.2 | |
2220 | FACE.Name = 'ShadowFace' | |
2221 | Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE | |
2222 | NewInstance("Weld",Head,{Part0=Head,Part1=FACE,C0=CF.N(0,.35-(i-1)/75,0)}) | |
2223 | --CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0)) | |
2224 | end | |
2225 | Hum = NewInstance("Humanoid",Char,{DisplayDistanceType='None'}) | |
2226 | ConnectHum() | |
2227 | MaxHealth = oMH | |
2228 | Hum.MaxHealth = MaxHealth | |
2229 | Hum.Health = MaxHealth | |
2230 | swait(5) | |
2231 | Char.Parent = workspace | |
2232 | ||
2233 | Attack = false | |
2234 | end | |
2235 | ||
2236 | function ConnectHum() | |
2237 | Hum.Died:connect(Refuse) | |
2238 | end | |
2239 | ConnectHum() | |
2240 | ||
2241 | ||
2242 | --// Wrap it all up \\-- | |
2243 | while true do | |
2244 | swait() | |
2245 | Sine = Sine + Change | |
2246 | if(not Music)then | |
2247 | Music = Sound(Torso,MusicID,1,3,true,false,true) | |
2248 | Music.Name = 'Music' | |
2249 | end | |
2250 | Music.Pitch = 1 | |
2251 | Music.Volume = 5 | |
2252 | Music.SoundId = "rbxassetid://"..MusicID | |
2253 | Music.Parent = Torso | |
2254 | Music:Resume() | |
2255 | local hitfloor,posfloor = workspace:FindPartOnRay(Ray.new(Root.CFrame.p,((CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector).unit * 4), Char) | |
2256 | local Walking = (math.abs(Root.Velocity.x) > 1 or math.abs(Root.Velocity.z) > 1) | |
2257 | local State = (Hum.PlatformStand and 'Paralyzed' or Hum.Sit and 'Sit' or not hitfloor and Root.Velocity.y < -1 and "Fall" or not hitfloor and Root.Velocity.y > 1 and "Jump" or hitfloor and Walking and "Walk" or hitfloor and "Idle") | |
2258 | if(not Effects or not Effects.Parent)then | |
2259 | Effects = IN("Model",Char) | |
2260 | Effects.Name = "Effects" | |
2261 | end | |
2262 | Hum.WalkSpeed = WalkSpeed | |
2263 | if(State == 'Walk')then | |
2264 | if(Hum.WalkSpeed >= 24)then | |
2265 | local wsVal = 22 / (Hum.WalkSpeed/16) | |
2266 | local Alpha = math.min(.1 * (Hum.WalkSpeed/16),1) | |
2267 | Change = 2 | |
2268 | RH.C1 = RH.C1:lerp(CF.N(0,1,0)*CF.N(0,0-.2*M.C(Sine/wsVal),0+.4*M.C(Sine/wsVal))*CF.A(M.R(25+45*M.C(Sine/wsVal))+-M.S(Sine/wsVal),0,0),Alpha) | |
2269 | LH.C1 = LH.C1:lerp(CF.N(0,1,0)*CF.N(0,0+.2*M.C(Sine/wsVal),0-.4*M.C(Sine/wsVal))*CF.A(M.R(25-45*M.C(Sine/wsVal))+M.S(Sine/wsVal),0,0),Alpha) | |
2270 | else | |
2271 | Change = .9 | |
2272 | local wsVal = 8 / (Hum.WalkSpeed/8) | |
2273 | local Alpha = math.min(.2 * (Hum.WalkSpeed/8),1) | |
2274 | LH.C1 = LH.C1:lerp(CF.N(0,1-.2*M.C(Sine/wsVal)/2,.4*M.C(Sine/wsVal)/2)*CF.A(M.R(15-2*M.C(Sine/wsVal))-M.S(Sine/wsVal)/2.5,0,0)*CF.A(M.R(0-3*M.C(Sine/wsVal)),0,0),Alpha) | |
2275 | RH.C1 = RH.C1:lerp(CF.N(0,1+.2*M.C(Sine/wsVal)/2,-.4*M.C(Sine/wsVal)/2)*CF.A(M.R(15+2*M.C(Sine/wsVal))+M.S(Sine/wsVal)/2.5,0,0)*CF.A(M.R(0+3*M.C(Sine/wsVal)),0,0),Alpha) | |
2276 | end | |
2277 | else | |
2278 | RH.C1 = RH.C1:lerp(CF.N(0,1,0),.1) | |
2279 | LH.C1 = LH.C1:lerp(CF.N(0,1,0),.1) | |
2280 | end | |
2281 | for _,v in next, Char:children() do | |
2282 | if(v:IsA'Accessory')then | |
2283 | v:destroy() | |
2284 | elseif(v:IsA'Shirt')then | |
2285 | v.ShirtTemplate = "rbxassetid://271073761" | |
2286 | elseif(v:IsA'Pants')then | |
2287 | v.PantsTemplate = "rbxassetid://271073827" | |
2288 | elseif(v:IsA'CharacterMesh')then | |
2289 | v:destroy() | |
2290 | elseif(v:FindFirstChildOfClass'ShirtGraphic')then | |
2291 | v:FindFirstChildOfClass'ShirtGraphic':destroy() | |
2292 | end | |
2293 | end | |
2294 | local face = Head:FindFirstChild'face' | |
2295 | if(not face)then | |
2296 | NewInstance("Decal",Head,{Name='face',Face=Enum.NormalId.Front,Texture="rbxassetid://404306534"}) | |
2297 | else | |
2298 | face.Texture = "rbxassetid://404306534" | |
2299 | end | |
2300 | RArm.BrickColor = BrickColor.new'Eggplant' | |
2301 | LArm.BrickColor = BrickColor.new'Eggplant' | |
2302 | RLeg.BrickColor = BrickColor.new'Eggplant' | |
2303 | LLeg.BrickColor = BrickColor.new'Eggplant' | |
2304 | Torso.BrickColor = BrickColor.new'Eggplant' | |
2305 | Head.BrickColor = BrickColor.new'Eggplant' | |
2306 | Hum.Name = 'Chara' | |
2307 | if(Hum.MaxHealth ~= MaxHealth)then | |
2308 | Hum.MaxHealth = MaxHealth | |
2309 | end | |
2310 | Hum.DisplayDistanceType='None' | |
2311 | if(NeutralAnims)then | |
2312 | if(State == 'Idle')then | |
2313 | Change = 1 | |
2314 | local Alpha = .1 | |
2315 | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.0999571308, 0+.05*M.C(Sine/16), -0.237876296, 0.857335567, -0.00323621999, -0.514731407, 0, 0.99998033, -0.00628707698, 0.51474154, 0.00539013464, 0.85731858),Alpha) | |
2316 | LH.C0 = clerp(LH.C0,CFrame.new(-0.536091685, -0.991042495-.05*M.C(Sine/16), -0.0134909991, 0.849195242, 0, 0.528063774, -0.00331997755, 0.99998033, 0.00533895614, -0.528053343, -0.00628707698, 0.849178433),Alpha) | |
2317 | RH.C0 = clerp(RH.C0,CFrame.new(0.529067397, -0.991597891-.05*M.C(Sine/16), -0.0818087086, 0.849195242, 0, 0.528063774, -0.00331997755, 0.99998033, 0.00533895614, -0.528053343, -0.00628707698, 0.849178433),Alpha) | |
2318 | LS.C0 = clerp(LS.C0,CFrame.new(-1.32175505, 0.156236127+.15*M.C(Sine/16), 0.233877867, 0.877554953, -0.456876248, 0.145469457, 0.259513229, 0.707695842, 0.657129884, -0.403175086, -0.538916171, 0.739607573),Alpha) | |
2319 | RS.C0 = clerp(RS.C0,CFrame.new(1.2516855, 0.604915917+.15*M.C(Sine/16), -0.0189059302, 0.915104508, -0.287113011, -0.283108115, 0.301054537, 0.953587949, 0.00603589695, 0.268235415, -0.0907544345, 0.959069014),Alpha) | |
2320 | NK.C0 = clerp(NK.C0,CFrame.new(1.79447234e-05, 1.49895597, -0.0143749639, 0.769539058, -0.360377938, 0.527197778, 0.387706369, 0.919646919, 0.0627188534, -0.507438183, 0.156133309, 0.847424924),Alpha) | |
2321 | HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha) | |
2322 | -- idle | |
2323 | elseif(State == 'Walk')then | |
2324 | - | if(Hum.WalkSpeed >= 24)then |
2324 | + | if(Hum.WalkSpeed >= 200)then |
2325 | local wsVal = 22 / (Hum.WalkSpeed/16) | |
2326 | local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1) | |
2327 | RJ.C0 = RJ.C0:lerp(CF.N(0,0-.15*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(-15),M.R(0-15*M.S(Sine/wsVal)/2),0),Alpha) | |
2328 | LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,0-.3*M.S(Sine/wsVal))*CF.A(M.R(0+45*M.S(Sine/wsVal)),0,M.R(-5+15*M.S(Sine/wsVal))),Alpha) | |
2329 | RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,0+.3*M.S(Sine/wsVal))*CF.A(M.R(0-45*M.S(Sine/wsVal)),0,M.R(5+15*M.S(Sine/wsVal))),Alpha) | |
2330 | NK.C0 = NK.C0:lerp(NKC0*CF.A(M.R(15),0,0),Alpha) | |
2331 | LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0+.15*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(15),0,0),Alpha) | |
2332 | RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0+.15*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(15),0,0),Alpha) | |
2333 | HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha) | |
2334 | else | |
2335 | local wsVal = 8 / (Hum.WalkSpeed/8) | |
2336 | local Alpha = math.min(.2 * (Hum.WalkSpeed/8),1) | |
2337 | RJ.C0 = RJ.C0:lerp(CF.N(0,0-.05*M.C(Sine/(wsVal/2)),0)*CF.A(0,M.R(0-5*M.S(Sine/wsVal)/2),0),Alpha) | |
2338 | LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,0+.3*M.S(Sine/wsVal))*CF.A(M.R(0-25*M.S(Sine/wsVal)),0,M.R(5-5*M.S(Sine/wsVal))),Alpha) | |
2339 | RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,0-.3*M.S(Sine/wsVal))*CF.A(M.R(0+25*M.S(Sine/wsVal)),0,M.R(-5-5*M.S(Sine/wsVal))),Alpha) | |
2340 | NK.C0 = NK.C0:lerp(NKC0,Alpha) | |
2341 | LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0+.05*M.C(Sine/(wsVal/2)),0),Alpha) | |
2342 | RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0+.05*M.C(Sine/(wsVal/2)),0),Alpha) | |
2343 | HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha) | |
2344 | end | |
2345 | elseif(State == 'Jump' or State == 'Fall')then | |
2346 | if(Walking)then | |
2347 | local Alpha = .2 | |
2348 | RJ.C0 = clerp(RJ.C0,RJC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(65)),M.R(65)),0,0),Alpha) | |
2349 | LH.C0 = clerp(LH.C0,CFrame.new(-0.497912645, -1.0987643, -0.0683324337, 0.999878228, 0.00860835519, 0.0130246133, -0.00010142161, 0.837816596, -0.545952022, -0.015611981, 0.545884132, 0.837715328),Alpha) | |
2350 | RH.C0 = clerp(RH.C0,CFrame.new(0.499978393, -1.16382337, 0.109293163, 0.999878228, -0.0120433727, 0.00993486121, -0.00010142161, 0.631323814, 0.775519371, -0.015611981, -0.775425911, 0.631245613),Alpha) | |
2351 | LS.C0 = clerp(LS.C0,CFrame.new(-1.55211556, 0.576563478, -0.00269976072, 0.976067662, 0.216906726, 0.0156116467, -0.217024669, 0.976145923, 0.00628317893, -0.0138763804, -0.00952091813, 0.999858499),Alpha) | |
2352 | RS.C0 = clerp(RS.C0,CFrame.new(1.50182188, 0.636661649, 0.00632623257, 0.977592707, -0.209926367, 0.0156121543, 0.209851891, 0.977713108, 0.00628198683, -0.016582964, -0.00286500831, 0.999858439),Alpha) | |
2353 | NK.C0 = clerp(NK.C0,CFrame.new(1.14440072e-05, 1.49924362, -0.0143961608, 1.00000024, -5.82076609e-11, 0, 1.23691279e-10, 0.997964919, 0.0637660474, 0, -0.0637660623, 0.997965038),Alpha) | |
2354 | HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha) | |
2355 | else | |
2356 | local Alpha = .2 | |
2357 | RJ.C0 = clerp(RJ.C0,RJC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(65)),M.R(65)),0,0),Alpha) | |
2358 | LH.C0 = clerp(LH.C0,CFrame.new(-0.504374504, -0.291219354, -0.487436086, 0.999878228, -0.00438931212, 0.0149825988, -0.00010142161, 0.957819223, 0.287371844, -0.015611981, -0.287338346, 0.957701981),Alpha) | |
2359 | RH.C0 = clerp(RH.C0,CFrame.new(0.453094482, -0.871358454, 0.0898642987, 0.985589385, -0.168456957, 0.0153662469, 0.162863791, 0.969548643, 0.182895929, -0.0457084104, -0.177757636, 0.983012319),Alpha) | |
2360 | LS.C0 = clerp(LS.C0,CFrame.new(-1.55211556, 0.576563478, -0.00269976072, 0.976067662, 0.216906726, 0.0156116467, -0.217024669, 0.976145923, 0.00628317893, -0.0138763804, -0.00952091813, 0.999858499),Alpha) | |
2361 | RS.C0 = clerp(RS.C0,CFrame.new(1.50182188, 0.636661649, 0.00632623257, 0.977592707, -0.209926367, 0.0156121543, 0.209851891, 0.977713108, 0.00628198683, -0.016582964, -0.00286500831, 0.999858439),Alpha) | |
2362 | NK.C0 = clerp(NK.C0,CFrame.new(1.14440072e-05, 1.49924362, -0.0143961608, 1.00000024, -5.82076609e-11, 0, 1.23691279e-10, 0.997964919, 0.0637660474, 0, -0.0637660623, 0.997965038),Alpha) | |
2363 | HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha) | |
2364 | end | |
2365 | elseif(State == 'Paralyzed')then | |
2366 | -- paralyzed | |
2367 | elseif(State == 'Sit')then | |
2368 | -- sit | |
2369 | end | |
2370 | end | |
2371 | end |