SHOW:
|
|
- or go back to the newest paste.
1 | -- Created by Nebula_Zorua -- | |
2 | -- Your DeTERMINATION -- | |
3 | -- Y o u a c t l i k e y o u h a v e a c h o i c e. =) -- | |
4 | -- Discord: Nebula the Zorua#6969 | |
5 | -- Youtube: https://www.youtube.com/channel/UCo9oU9dCw8jnuVLuy4_SATA | |
6 | ||
7 | ||
8 | --// Initializing \\-- | |
9 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
10 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
11 | do | |
12 | print("FE Compatibility code by Mokiros") | |
13 | script.Parent = Player.Character | |
14 | ||
15 | --RemoteEvent for communicating | |
16 | local Event = Instance.new("RemoteEvent") | |
17 | Event.Name = "UserInput_Event" | |
18 | ||
19 | --Fake event to make stuff like Mouse.KeyDown work | |
20 | local function fakeEvent() | |
21 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} | |
22 | t.connect = t.Connect | |
23 | return t | |
24 | end | |
25 | ||
26 | --Creating fake input objects with fake variables | |
27 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
28 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
29 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
30 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
31 | end} | |
32 | --Merged 2 functions into one by checking amount of arguments | |
33 | CAS.UnbindAction = CAS.BindAction | |
34 | ||
35 | --This function will trigger the events that have been :Connect()'ed | |
36 | local function te(self,ev,...) | |
37 | local t = m[ev] | |
38 | if t and t._fakeEvent and t.Function then | |
39 | t.Function(...) | |
40 | end | |
41 | end | |
42 | m.TrigEvent = te | |
43 | UIS.TrigEvent = te | |
44 | ||
45 | Event.OnServerEvent:Connect(function(plr,io) | |
46 | if plr~=Player then return end | |
47 | if io.isMouse then | |
48 | m.Target = io.Target | |
49 | m.Hit = io.Hit | |
50 | else | |
51 | local b = io.UserInputState == Enum.UserInputState.Begin | |
52 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
53 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
54 | end | |
55 | for _,t in pairs(CAS.Actions) do | |
56 | for _,k in pairs(t.Keys) do | |
57 | if k==io.KeyCode then | |
58 | t.Function(t.Name,io.UserInputState,io) | |
59 | end | |
60 | end | |
61 | end | |
62 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
63 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
64 | end | |
65 | end) | |
66 | Event.Parent = NLS([==[ | |
67 | local Player = game:GetService("Players").LocalPlayer | |
68 | local Event = script:WaitForChild("UserInput_Event") | |
69 | ||
70 | local UIS = game:GetService("UserInputService") | |
71 | local input = function(io,a) | |
72 | if a then return end | |
73 | --Since InputObject is a client-side instance, we create and pass table instead | |
74 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
75 | end | |
76 | UIS.InputBegan:Connect(input) | |
77 | UIS.InputEnded:Connect(input) | |
78 | ||
79 | local Mouse = Player:GetMouse() | |
80 | local h,t | |
81 | --Give the server mouse data 30 times every second, but only if the values changed | |
82 | --If player is not moving their mouse, client won't fire events | |
83 | while wait(1/30) do | |
84 | if h~=Mouse.Hit or t~=Mouse.Target then | |
85 | h,t=Mouse.Hit,Mouse.Target | |
86 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
87 | end | |
88 | end]==],Player.Character) | |
89 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
90 | end | |
91 | ||
92 | local S = setmetatable({},{__index = function(s,i) return game:service(i) end}) | |
93 | local Plrs = S.Players | |
94 | local Plr = Owner | |
95 | local Char = Plr.Character | |
96 | local Hum = Char:FindFirstChildOfClass'Humanoid' | |
97 | local RArm = Char["Right Arm"] | |
98 | local LArm = Char["Left Arm"] | |
99 | local RLeg = Char["Right Leg"] | |
100 | local LLeg = Char["Left Leg"] | |
101 | local Root = Char:FindFirstChild'HumanoidRootPart' | |
102 | local Torso = Char.Torso | |
103 | local Head = Char.Head | |
104 | local NeutralAnims = true | |
105 | local Attack = false | |
106 | local BloodPuddles = {} | |
107 | local Effects = {} | |
108 | local Debounces = {Debounces={}} | |
109 | local Mouse = Plr:GetMouse() | |
110 | local Hit = {} | |
111 | local Sine = 0 | |
112 | local Change = 1 | |
113 | local Souls = 0 | |
114 | --// Debounce System \\-- | |
115 | ||
116 | ||
117 | function Debounces:New(name,cooldown) | |
118 | local aaaaa = {Usable=true,Cooldown=cooldown or 2,CoolingDown=false,LastUse=0} | |
119 | setmetatable(aaaaa,{__index = Debounces}) | |
120 | Debounces.Debounces[name] = aaaaa | |
121 | return aaaaa | |
122 | end | |
123 | ||
124 | function Debounces:Use(overrideUsable) | |
125 | assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use") | |
126 | if(self.Usable or overrideUsable)then | |
127 | self.Usable = false | |
128 | self.CoolingDown = true | |
129 | local LastUse = time() | |
130 | self.LastUse = LastUse | |
131 | delay(self.Cooldown or 2,function() | |
132 | if(self.LastUse == LastUse)then | |
133 | self.CoolingDown = false | |
134 | self.Usable = true | |
135 | end | |
136 | end) | |
137 | end | |
138 | end | |
139 | ||
140 | function Debounces:Get(name) | |
141 | assert(typeof(name) == 'string',("bad argument #1 to 'get' (string expected, got %s)"):format(typeof(name) == nil and "no value" or typeof(name))) | |
142 | for i,v in next, Debounces.Debounces do | |
143 | if(i == name)then | |
144 | return v; | |
145 | end | |
146 | end | |
147 | end | |
148 | ||
149 | function Debounces:GetProgressPercentage() | |
150 | assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use") | |
151 | if(self.CoolingDown and not self.Usable)then | |
152 | return math.max( | |
153 | math.floor( | |
154 | ( | |
155 | (time()-self.LastUse)/self.Cooldown or 2 | |
156 | )*100 | |
157 | ) | |
158 | ) | |
159 | else | |
160 | return 100 | |
161 | end | |
162 | end | |
163 | ||
164 | --// Shortcut Variables \\-- | |
165 | local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ} | |
166 | local C3 = {N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV} | |
167 | local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis} | |
168 | 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} | |
169 | local R3 = {N=Region3.new} | |
170 | local De = S.Debris | |
171 | local WS = workspace | |
172 | local Lght = S.Lighting | |
173 | local RepS = S.ReplicatedStorage | |
174 | local IN = Instance.new | |
175 | local CSK = ColorSequenceKeypoint.new | |
176 | local CS = ColorSequence.new | |
177 | --// Instance Creation Functions \\-- | |
178 | ||
179 | function Sound(parent,id,pitch,volume,looped,effect,autoPlay) | |
180 | local Sound = IN("Sound") | |
181 | Sound.SoundId = "rbxassetid://".. tostring(id or 0) | |
182 | Sound.Pitch = pitch or 1 | |
183 | Sound.Volume = volume or 1 | |
184 | Sound.Looped = looped or false | |
185 | if(autoPlay)then | |
186 | coroutine.wrap(function() | |
187 | repeat wait() until Sound.IsLoaded | |
188 | Sound.Playing = autoPlay or false | |
189 | end)() | |
190 | end | |
191 | if(not looped and effect)then | |
192 | Sound.Stopped:connect(function() | |
193 | Sound.Volume = 0 | |
194 | Sound:destroy() | |
195 | end) | |
196 | elseif(effect)then | |
197 | warn("Sound can't be looped and a sound effect!") | |
198 | end | |
199 | Sound.Parent =parent or Torso | |
200 | return Sound | |
201 | end | |
202 | function Part(parent,color,material,size,cframe,anchored,cancollide) | |
203 | local part = IN("Part") | |
204 | part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3.N(0,0,0) | |
205 | part.Material = (material or Enum.Material.SmoothPlastic) | |
206 | part.TopSurface,part.BottomSurface=10,10 | |
207 | part.Size = (size or V3.N(1,1,1)) | |
208 | part.CFrame = (cframe or CF.N(0,0,0)) | |
209 | part.Anchored = (anchored or false) | |
210 | part.CanCollide = (cancollide or false) | |
211 | part.Parent = (parent or Char) | |
212 | return part | |
213 | end | |
214 | function Mesh(parent,meshtype,meshid,textid,scale,offset) | |
215 | local part = IN("SpecialMesh") | |
216 | part.MeshId = meshid or "" | |
217 | part.TextureId = textid or "" | |
218 | part.Scale = scale or V3.N(1,1,1) | |
219 | part.Offset = offset or V3.N(0,0,0) | |
220 | part.MeshType = meshtype or Enum.MeshType.Sphere | |
221 | part.Parent = parent | |
222 | return part | |
223 | end | |
224 | ||
225 | NewInstance = function(instance,parent,properties) | |
226 | local inst = Instance.new(instance,parent) | |
227 | if(properties)then | |
228 | for i,v in next, properties do | |
229 | pcall(function() inst[i] = v end) | |
230 | end | |
231 | end | |
232 | return inst; | |
233 | end | |
234 | ||
235 | ||
236 | ||
237 | --// Extended ROBLOX tables \\-- | |
238 | 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}) | |
239 | --// Customization \\-- | |
240 | ||
241 | local Frame_Speed = 60 -- The frame speed for swait. 1 is automatically divided by this | |
242 | local Remove_Hats = false | |
243 | local Remove_Clothing = true | |
244 | local PlayerSize = 1 | |
245 | local DamageColor = BrickColor.new'Really red' | |
246 | local MusicID = 935501955 | |
247 | local WalkSpeed = 8 | |
248 | local MaxSouls = 100 | |
249 | local MaxHealth = 500 | |
250 | ||
251 | ||
252 | if(_G.RefusedAnimation == nil) then _G.RefusedAnimation = false end | |
253 | ||
254 | --// Weapon and GUI creation, and Character Customization \\-- | |
255 | ||
256 | if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end | |
257 | if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end | |
258 | local Effects = IN("Folder",Char) | |
259 | Effects.Name = "Effects" | |
260 | ||
261 | Hum.MaxHealth = MaxHealth | |
262 | Hum.Health = MaxHealth | |
263 | ||
264 | 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)}) | |
265 | local KnifeMesh = Mesh(Knife,Enum.MeshType.FileMesh,"rbxassetid://121944778","rbxassetid://362719969",V3.N(1,1,1),V3.N()) | |
266 | 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)}) | |
267 | 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)}) | |
268 | ||
269 | local KTrail = NewInstance("Trail",Knife,{ | |
270 | Attachment0=NewInstance("Attachment",Knife,{Position=V3.N(0,-.4,0)}), | |
271 | Attachment1=NewInstance("Attachment",Knife,{Position=V3.N(0,1.2,0)}), | |
272 | Color=CS(C3.N(1,0,0)), | |
273 | Enabled=false, | |
274 | Transparency=NumberSequence.new(0,1), | |
275 | Lifetime=1.25, | |
276 | }) | |
277 | local Hair = Part(Char,C3.N(0,0,0),Enum.Material.SmoothPlastic,V3.N(1,1,1),CF.N(),false,false) | |
278 | local HairMesh = Mesh(Hair,Enum.MeshType.FileMesh,"rbxassetid://250264520","rbxassetid://75975464",V3.N(1.05,1.05,1.05),V3.N()) | |
279 | ||
280 | NewInstance("PointLight",Knife,{Color=C3.N(1,0,0),Range=10,Brightness=3}) | |
281 | ||
282 | ||
283 | Hum.DisplayDistanceType = 'None' | |
284 | ||
285 | local naeeym2 = IN("BillboardGui",Char) | |
286 | naeeym2.AlwaysOnTop = true | |
287 | naeeym2.Size = UDim2.new(5,35,2,15) | |
288 | naeeym2.StudsOffset = V3.N(0,2.5,0) | |
289 | naeeym2.Adornee = Char.Head | |
290 | naeeym2.Name = "Name" | |
291 | naeeym2.PlayerToHideFrom = Plr | |
292 | local tecks2 = IN("TextLabel",naeeym2) | |
293 | tecks2.BackgroundTransparency = 1 | |
294 | tecks2.TextScaled = true | |
295 | tecks2.BorderSizePixel = 0 | |
296 | tecks2.Text = "Chara" | |
297 | tecks2.Font = Enum.Font.Bodoni | |
298 | tecks2.TextSize = 30 | |
299 | tecks2.TextStrokeTransparency = 0 | |
300 | tecks2.TextColor3 = C3.N(0,0,0) | |
301 | tecks2.TextStrokeColor3 = C3.N(.7,0,0) | |
302 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
303 | tecks2.Parent = naeeym2 | |
304 | ||
305 | ||
306 | IN("Shirt",Char) | |
307 | IN("Pants",Char) | |
308 | ||
309 | Hum.WalkSpeed = WalkSpeed | |
310 | if(PlayerSize ~= 1)then | |
311 | for _,v in next, Char:GetDescendats() do | |
312 | if(v:IsA'BasePart')then | |
313 | v.Size = v.Size * PlayerSize | |
314 | end | |
315 | end | |
316 | end | |
317 | ||
318 | ||
319 | for i = 1, 35 do | |
320 | local FACE = Part(Char,C3.N(0,0,0),Enum.Material.Neon,V3.N(1.01,.5,1.01),CF.N(),false,false) | |
321 | FACE.Transparency = 0+(i-1)/35.2 | |
322 | FACE.Name = 'ShadowFace' | |
323 | Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE | |
324 | NewInstance("Weld",Head,{Part0=Head,Part1=FACE,C0=CF.N(0,.35-(i-1)/75,0)}) | |
325 | --CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0)) | |
326 | end | |
327 | ||
328 | local LEye = Part(Char,C3.N(1,0,0),Enum.Material.Neon,V3.N(.15,.25,.2),CF.N(),false,false) | |
329 | local LEyeM = Mesh(LEye,Enum.MeshType.Sphere,"","",V3.N(1,1,1),V3.N()) | |
330 | local LEyeW = NewInstance("Weld",LEye,{Part0=Head,Part1=LEye,C0=CF.N(-.2,.2,-.49)}) | |
331 | ||
332 | local REye = Part(Char,C3.N(1,0,0),Enum.Material.Neon,V3.N(.15,.25,.2),CF.N(),false,false) | |
333 | local REyeM = Mesh(REye,Enum.MeshType.Sphere,"","",V3.N(1,1,1),V3.N()) | |
334 | local REyeW = NewInstance("Weld",REye,{Part0=Head,Part1=REye,C0=CF.N(.2,.2,-.49)}) | |
335 | ||
336 | ||
337 | pcall(function() | |
338 | Char.LeftWing:destroy() | |
339 | Char.ReaperShadowHead:destroy() | |
340 | end) | |
341 | ||
342 | ||
343 | local Music = Sound(Torso,MusicID,1,3,true,false,true) | |
344 | Music.Name = 'Music' | |
345 | ||
346 | --// Stop animations \\-- | |
347 | for _,v in next, Hum:GetPlayingAnimationTracks() do | |
348 | v:Stop(); | |
349 | end | |
350 | ||
351 | pcall(game.Destroy,Char:FindFirstChild'Animate') | |
352 | pcall(game.Destroy,Hum:FindFirstChild'Animator') | |
353 | ||
354 | --// Joints \\-- | |
355 | ||
356 | 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)}) | |
357 | 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)}) | |
358 | local NK = NewInstance('Motor',Char,{Part0=Torso,Part1=Head,C0 = CF.N(0,1.5 * PlayerSize,0)}) | |
359 | local LH = NewInstance('Motor',Char,{Part0=Torso,Part1=LLeg,C0 = CF.N(-.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)}) | |
360 | local RH = NewInstance('Motor',Char,{Part0=Torso,Part1=RLeg,C0 = CF.N(.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)}) | |
361 | local RJ = NewInstance('Motor',Char,{Part0=Root,Part1=Torso}) | |
362 | local HW = NewInstance('Motor',Char,{Part0=RArm,Part1=Knife,C0=CF.N(0,-1,-1)*CF.A(M.R(-90),0,0)}) | |
363 | local HW2 = NewInstance('Motor',Char,{Part0=Head,Part1=Hair,C0=CF.N(0,.25,0)}) | |
364 | ||
365 | local LSC0 = LS.C0 | |
366 | local RSC0 = RS.C0 | |
367 | local NKC0 = NK.C0 | |
368 | local LHC0 = LH.C0 | |
369 | local RHC0 = RH.C0 | |
370 | local RJC0 = RJ.C0 | |
371 | ||
372 | --// Artificial HB \\-- | |
373 | ||
374 | local ArtificialHB = IN("BindableEvent", script) | |
375 | ArtificialHB.Name = "Heartbeat" | |
376 | ||
377 | script:WaitForChild("Heartbeat") | |
378 | ||
379 | local tf = 0 | |
380 | local allowframeloss = false | |
381 | local tossremainder = false | |
382 | local lastframe = tick() | |
383 | local frame = 1/Frame_Speed | |
384 | ArtificialHB:Fire() | |
385 | ||
386 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
387 | tf = tf + s | |
388 | if tf >= frame then | |
389 | if allowframeloss then | |
390 | script.Heartbeat:Fire() | |
391 | lastframe = tick() | |
392 | else | |
393 | for i = 1, math.floor(tf / frame) do | |
394 | ArtificialHB:Fire() | |
395 | end | |
396 | lastframe = tick() | |
397 | end | |
398 | if tossremainder then | |
399 | tf = 0 | |
400 | else | |
401 | tf = tf - frame * math.floor(tf / frame) | |
402 | end | |
403 | end | |
404 | end) | |
405 | ||
406 | function swait(num) | |
407 | if num == 0 or num == nil then | |
408 | ArtificialHB.Event:wait() | |
409 | else | |
410 | for i = 0, num do | |
411 | ArtificialHB.Event:wait() | |
412 | end | |
413 | end | |
414 | end | |
415 | ||
416 | ||
417 | --// Effect Function(s) \\-- | |
418 | ||
419 | function Bezier(startpos, pos2, pos3, endpos, t) | |
420 | local A = startpos:lerp(pos2, t) | |
421 | local B = pos2:lerp(pos3, t) | |
422 | local C = pos3:lerp(endpos, t) | |
423 | local lerp1 = A:lerp(B, t) | |
424 | local lerp2 = B:lerp(C, t) | |
425 | local cubic = lerp1:lerp(lerp2, t) | |
426 | return cubic | |
427 | end | |
428 | ||
429 | function Tween(obj,props,time,easing,direction,repeats,backwards) | |
430 | local info = TweenInfo.new(time or .5, easing or Enum.EasingStyle.Quad, direction or Enum.EasingDirection.Out, repeats or 0, backwards or false) | |
431 | local tween = S.TweenService:Create(obj, info, props) | |
432 | ||
433 | tween:Play() | |
434 | end | |
435 | ||
436 | local FXTable = {} | |
437 | ||
438 | coroutine.resume(coroutine.create(function() | |
439 | while true do | |
440 | for i = 1, #FXTable do | |
441 | local data = FXTable[i] | |
442 | if(data)then | |
443 | local Frame = data.Frame | |
444 | local FX = data.Effect or 'ResizeAndFade' | |
445 | local Parent = data.Parent or Effects | |
446 | local Color = data.Color or C3.N(0,0,0) | |
447 | local Size = data.Size or V3.N(1,1,1) | |
448 | local MoveDir = data.MoveDirection or nil | |
449 | local MeshData = data.Mesh or nil | |
450 | local SndData = data.Sound or nil | |
451 | local Frames = data.Frames or 45 | |
452 | local CFra = data.CFrame or Torso.CFrame | |
453 | local Settings = data.FXSettings or {} | |
454 | local Prt,Msh,Snd = data.Part,data.Mesh,data.Sound | |
455 | local grow = data.Grow | |
456 | ||
457 | local MoveSpeed = nil; | |
458 | if(MoveDir)then | |
459 | MoveSpeed = (CFra.p - MoveDir).magnitude/Frames | |
460 | end | |
461 | if(FX ~= 'Arc')then | |
462 | Frame = Frame + 1 | |
463 | if(FX == "Fade")then | |
464 | Prt.Transparency = (Frame/Frames) | |
465 | elseif(FX == "Resize")then | |
466 | if(not Settings.EndSize)then | |
467 | Settings.EndSize = V3.N(0,0,0) | |
468 | end | |
469 | if(Settings.EndIsIncrement)then | |
470 | if(Msh)then | |
471 | Msh.Scale = Msh.Scale + Settings.EndSize | |
472 | else | |
473 | Prt.Size = Prt.Size + Settings.EndSize | |
474 | end | |
475 | else | |
476 | if(Msh)then | |
477 | Msh.Scale = Msh.Scale - grow/Frames | |
478 | else | |
479 | Prt.Size = Prt.Size - grow/Frames | |
480 | end | |
481 | end | |
482 | elseif(FX == "ResizeAndFade")then | |
483 | if(not Settings.EndSize)then | |
484 | Settings.EndSize = V3.N(0,0,0) | |
485 | end | |
486 | if(Settings.EndIsIncrement)then | |
487 | if(Msh)then | |
488 | Msh.Scale = Msh.Scale + Settings.EndSize | |
489 | else | |
490 | Prt.Size = Prt.Size + Settings.EndSize | |
491 | end | |
492 | else | |
493 | if(Msh)then | |
494 | Msh.Scale = Msh.Scale - grow/Frames | |
495 | else | |
496 | Prt.Size = Prt.Size - grow/Frames | |
497 | end | |
498 | end | |
499 | Prt.Transparency = (Frame/Frames) | |
500 | end | |
501 | if(Settings.RandomizeCFrame)then | |
502 | Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360)) | |
503 | end | |
504 | if(MoveDir and MoveSpeed)then | |
505 | local Orientation = Prt.Orientation | |
506 | Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed) | |
507 | Prt.Orientation = Orientation | |
508 | end | |
509 | if(Prt.Transparency >= 1 or Frame >= Frames)then | |
510 | Prt:destroy() | |
511 | table.remove(FXTable,i) | |
512 | else | |
513 | data.Frame = Frame | |
514 | end | |
515 | else | |
516 | local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End | |
517 | if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end | |
518 | if(start and endP)then | |
519 | local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25)) | |
520 | local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25)) | |
521 | Frame = Frame + (Settings.Speed or 0.01) | |
522 | if(Settings.Home)then | |
523 | endP = Settings.Home.CFrame | |
524 | end | |
525 | Prt.CFrame = Bezier(start, quarter, threequarter, endP, Frame) | |
526 | if(Prt.Transparency >= 1 or Frame >= Frames)then | |
527 | if(Settings.RemoveOnGoal)then | |
528 | Prt:destroy() | |
529 | end | |
530 | end | |
531 | else | |
532 | Prt:destroy() | |
533 | end | |
534 | end | |
535 | end | |
536 | end | |
537 | swait() | |
538 | end | |
539 | end)) | |
540 | ||
541 | function Effect(data) | |
542 | local FX = data.Effect or 'ResizeAndFade' | |
543 | local Parent = data.Parent or Effects | |
544 | local Color = data.Color or C3.N(0,0,0) | |
545 | local Size = data.Size or V3.N(1,1,1) | |
546 | local MoveDir = data.MoveDirection or nil | |
547 | local MeshData = data.Mesh or nil | |
548 | local SndData = data.Sound or nil | |
549 | local Frames = data.Frames or 45 | |
550 | local Manual = data.Manual or nil | |
551 | local Material = data.Material or nil | |
552 | local CFra = data.CFrame or Torso.CFrame | |
553 | local Settings = data.FXSettings or {} | |
554 | local Shape = data.Shape or Enum.PartType.Block | |
555 | local Snd,Prt,Msh; | |
556 | coroutine.wrap(function() | |
557 | if(Manual and typeof(Manual) == 'Instance' and Manual:IsA'BasePart')then | |
558 | Prt = Manual | |
559 | else | |
560 | Prt = Part(Parent,Color,Material,Size,CFra,true,false) | |
561 | Prt.Shape = Shape | |
562 | end | |
563 | if(typeof(MeshData) == 'table')then | |
564 | Msh = Mesh(Prt,MeshData.MeshType,MeshData.MeshId,MeshData.TextureId,MeshData.Scale,MeshData.Offset) | |
565 | elseif(typeof(MeshData) == 'Instance')then | |
566 | Msh = MeshData:Clone() | |
567 | Msh.Parent = Prt | |
568 | elseif(Shape == Enum.PartType.Block)then | |
569 | Msh = Mesh(Prt,Enum.MeshType.Brick) | |
570 | end | |
571 | if(typeof(SndData) == 'table' or typeof(SndData) == 'Instance')then | |
572 | Snd = Sound(Prt,SndData.SoundId,SndData.Pitch,SndData.Volume,false,false,true) | |
573 | end | |
574 | if(Snd)then | |
575 | repeat swait() until Snd.Playing and Snd.IsLoaded and Snd.TimeLength > 0 | |
576 | Frames = Snd.TimeLength * Frame_Speed/Snd.Pitch | |
577 | end | |
578 | Size = (Msh and Msh.Scale or Size) | |
579 | local grow = Size-(Settings.EndSize or (Msh and Msh.Scale or Size)/2) | |
580 | ||
581 | local MoveSpeed = nil; | |
582 | if(MoveDir)then | |
583 | MoveSpeed = (CFra.p - MoveDir).magnitude/Frames | |
584 | end | |
585 | if(FX ~= 'Arc')then | |
586 | for Frame = 1, Frames do | |
587 | if(FX == "Fade")then | |
588 | Prt.Transparency = (Frame/Frames) | |
589 | elseif(FX == "Resize")then | |
590 | if(not Settings.EndSize)then | |
591 | Settings.EndSize = V3.N(0,0,0) | |
592 | end | |
593 | if(Settings.EndIsIncrement)then | |
594 | if(Msh)then | |
595 | Msh.Scale = Msh.Scale + Settings.EndSize | |
596 | else | |
597 | Prt.Size = Prt.Size + Settings.EndSize | |
598 | end | |
599 | else | |
600 | if(Msh)then | |
601 | Msh.Scale = Msh.Scale - grow/Frames | |
602 | else | |
603 | Prt.Size = Prt.Size - grow/Frames | |
604 | end | |
605 | end | |
606 | elseif(FX == "ResizeAndFade")then | |
607 | if(not Settings.EndSize)then | |
608 | Settings.EndSize = V3.N(0,0,0) | |
609 | end | |
610 | if(Settings.EndIsIncrement)then | |
611 | if(Msh)then | |
612 | Msh.Scale = Msh.Scale + Settings.EndSize | |
613 | else | |
614 | Prt.Size = Prt.Size + Settings.EndSize | |
615 | end | |
616 | else | |
617 | if(Msh)then | |
618 | Msh.Scale = Msh.Scale - grow/Frames | |
619 | else | |
620 | Prt.Size = Prt.Size - grow/Frames | |
621 | end | |
622 | end | |
623 | Prt.Transparency = (Frame/Frames) | |
624 | end | |
625 | if(Settings.RandomizeCFrame)then | |
626 | Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360)) | |
627 | end | |
628 | if(MoveDir and MoveSpeed)then | |
629 | local Orientation = Prt.Orientation | |
630 | Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed) | |
631 | Prt.Orientation = Orientation | |
632 | end | |
633 | swait() | |
634 | end | |
635 | Prt:destroy() | |
636 | else | |
637 | local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End | |
638 | if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end | |
639 | if(start and endP)then | |
640 | local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25)) | |
641 | local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25)) | |
642 | for Frame = 0, 1, (Settings.Speed or 0.01) do | |
643 | if(Settings.Home)then | |
644 | endP = Settings.Home.CFrame | |
645 | end | |
646 | Prt.CFrame = Bezier(start, quarter, threequarter, endP, Frame) | |
647 | end | |
648 | if(Settings.RemoveOnGoal)then | |
649 | Prt:destroy() | |
650 | end | |
651 | else | |
652 | Prt:destroy() | |
653 | assert(start,"You need a start position!") | |
654 | assert(endP,"You need a start position!") | |
655 | end | |
656 | end | |
657 | end)() | |
658 | return Prt,Msh,Snd | |
659 | end | |
660 | ||
661 | ||
662 | ||
663 | function SoulSteal(whom,human) | |
664 | local torso = (whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso' or whom:FindFirstChild'LowerTorso' or whom:FindFirstChild'HumanoidRootPart' or whom:FindFirstChild'Torso') | |
665 | local succ, health, alive = pcall(function() return whom:FindFirstChildOfClass'Humanoid'.Health, whom:FindFirstChildOfClass'Humanoid'.Health > 0 end) | |
666 | if(torso and torso:IsA'BasePart' and alive == true)then | |
667 | whom:FindFirstChildOfClass'Humanoid'.Health = 0 | |
668 | whom:BreakJoints() | |
669 | local Model = IN("Model",Effects) | |
670 | warn('Soul stolen from '..whom.Name) | |
671 | Model.Name = whom.Name.."'s Soul" | |
672 | 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) | |
673 | Soul.CanCollide=false | |
674 | Mesh(Soul,Enum.MeshType.Sphere) | |
675 | Soul.Name = 'Head' | |
676 | if(whom.Name == 'CKbackup')then | |
677 | Soul.Color = C3.N(1,1,1) | |
678 | 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)}) | |
679 | end | |
680 | local Hoom = NewInstance("Humanoid",Model,{MaxHealth=(health <= 10000 and health/2 or 10000),Health=(health <= 10000 and health/2 or 10000)}) | |
681 | local AT0 = NewInstance("Attachment",Soul,{Position=V3.N(0,.5,0)}) | |
682 | local AT1 = NewInstance("Attachment",Soul,{Position=V3.N(0,-.5,0)}) | |
683 | 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}) | |
684 | NewInstance("PointLight",Soul,{Color=Soul.Color,Range=10,Brightness=(human and 3 or .5)}) | |
685 | ||
686 | local turdso = Soul:Clone() | |
687 | turdso.Name = "Torso" | |
688 | turdso.CanCollide = false | |
689 | turdso.Anchored = true | |
690 | turdso.CFrame = Soul.CFrame | |
691 | turdso.Parent = Model | |
692 | turdso.Size = V3.N() | |
693 | turdso.Transparency=1 | |
694 | local Distance = math.huge | |
695 | repeat | |
696 | Soul.CFrame = CF.N(Soul.Position,Torso.Position)*CF.N(0,0,-1) | |
697 | turdso.CFrame = Soul.CFrame | |
698 | Distance = (Soul.CFrame.p-Torso.CFrame.p).magnitude | |
699 | swait() | |
700 | until Hoom.Health <= 0 or not Soul.Parent or Distance <= 1.2 | |
701 | if(Soul.Parent and Hoom.Health > 0)then | |
702 | Model:destroy() | |
703 | Effect{ | |
704 | Effect="ResizeAndFade", | |
705 | Mesh={Enum.MeshType.Sphere}, | |
706 | Color = Soul.Color, | |
707 | CFrame=Torso.CFrame, | |
708 | Size=V3.N(3,3,3), | |
709 | Material=Enum.Material.Neon, | |
710 | Sound={SoundId=444667859,Pitch=1,Volume=2.5}, | |
711 | FXSettings={ | |
712 | EndSize=V3.N(6,6,6), | |
713 | } | |
714 | } | |
715 | Souls = Souls + (human and 1 or .1) | |
716 | warn("Souls: "..Souls) | |
717 | MaxHealth = MaxHealth + Hoom.Health | |
718 | Hum.Health = Hum.Health + Hoom.Health | |
719 | for i = 1, 5 do | |
720 | Effect{ | |
721 | Effect="Fade", | |
722 | Color = Soul.Color, | |
723 | MoveDirection = (Torso.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p | |
724 | } | |
725 | end | |
726 | else | |
727 | ||
728 | warn("Soul destroyed!") | |
729 | for i = 1, 5 do | |
730 | Effect{ | |
731 | Effect="Fade", | |
732 | Color = Soul.Color, | |
733 | CFrame=Soul.CFrame, | |
734 | MoveDirection = (Soul.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p | |
735 | } | |
736 | end | |
737 | Effect{ | |
738 | Effect="ResizeAndFade", | |
739 | Mesh={Enum.MeshType.Sphere}, | |
740 | Sound={SoundId=444667859,Pitch=1,Volume=5}, | |
741 | Color = Soul.Color, | |
742 | CFrame=Soul.CFrame, | |
743 | Size=V3.N(3,3,3), | |
744 | Material=Enum.Material.Neon, | |
745 | FXSettings={ | |
746 | EndSize=V3.N(6,6,6), | |
747 | } | |
748 | } | |
749 | Model:destroy() | |
750 | end | |
751 | end | |
752 | end | |
753 | ||
754 | --// Other Functions \\ -- | |
755 | ||
756 | function getRegion(point,range,ignore) | |
757 | return workspace:FindPartsInRegion3WithIgnoreList(R3.N(point-V3.N(1,1,1)*range/2,point+V3.N(1,1,1)*range/2),ignore,100) | |
758 | end | |
759 | ||
760 | function clerp(startCF,endCF,alpha) | |
761 | return startCF:lerp(endCF, alpha) | |
762 | end | |
763 | ||
764 | function GetTorso(char) | |
765 | return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart' | |
766 | end | |
767 | ||
768 | function ShowDamage(Pos, Text, Time, Color) | |
769 | coroutine.wrap(function() | |
770 | local Rate = (1 / Frame_Speed) | |
771 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
772 | local Text = (Text or "") | |
773 | local Time = (Time or 2) | |
774 | local Color = (Color or Color3.new(1, 0, 1)) | |
775 | local EffectPart = NewInstance("Part",Effects,{ | |
776 | Material=Enum.Material.SmoothPlastic, | |
777 | Reflectance = 0, | |
778 | Transparency = 1, | |
779 | BrickColor = BrickColor.new(Color), | |
780 | Name = "Effect", | |
781 | Size = Vector3.new(0,0,0), | |
782 | Anchored = true, | |
783 | CFrame = CF.N(Pos) | |
784 | }) | |
785 | local BillboardGui = NewInstance("BillboardGui",EffectPart,{ | |
786 | Size = UDim2.new(1.25, 0, 1.25, 0), | |
787 | Adornee = EffectPart, | |
788 | }) | |
789 | local TextLabel = NewInstance("TextLabel",BillboardGui,{ | |
790 | BackgroundTransparency = 1, | |
791 | Size = UDim2.new(1, 0, 1, 0), | |
792 | Text = Text, | |
793 | Font = "Arcade", | |
794 | TextColor3 = Color, | |
795 | TextStrokeColor3 = Color3.new(0,0,0), | |
796 | TextStrokeTransparency=0, | |
797 | TextScaled = true, | |
798 | }) | |
799 | S.Debris:AddItem(EffectPart, (Time)) | |
800 | EffectPart.Parent = workspace | |
801 | delay(0, function() | |
802 | Tween(EffectPart,{CFrame=CF.N(Pos)*CF.N(0,3,0)},Time,Enum.EasingStyle.Elastic,Enum.EasingDirection.Out) | |
803 | local Frames = (Time / Rate) | |
804 | for Frame = 1, Frames do | |
805 | swait() | |
806 | local Percent = (Frame / Frames) | |
807 | TextLabel.TextTransparency = Percent | |
808 | TextLabel.TextStrokeTransparency = Percent | |
809 | end | |
810 | if EffectPart and EffectPart.Parent then | |
811 | EffectPart:Destroy() | |
812 | end | |
813 | end) end)() | |
814 | end | |
815 | ||
816 | function Kill(whom) | |
817 | if(whom.Name ~= 'Nebula_Zorua')then | |
818 | local isPlr = Plrs:GetPlayerFromCharacter(whom) ~= nil | |
819 | coroutine.wrap(SoulSteal)(whom,isPlr) | |
820 | for _,v in next, whom:children() do | |
821 | if(v:IsA'BasePart')then | |
822 | v.Parent = Effects | |
823 | v:ClearAllChildren() | |
824 | v.Anchored = true | |
825 | v.CanCollide = false | |
826 | v.Transparency = 1 | |
827 | local dust = NewInstance("ParticleEmitter",v,{ | |
828 | Color = ColorSequence.new(C3.N(1,1,1)), | |
829 | LightEmission=0, | |
830 | LightInfluence=1, | |
831 | Size=NumberSequence.new{NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0,0)}, | |
832 | Texture="rbxassetid://284205403", | |
833 | Transparency=NumberSequence.new{NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}, | |
834 | Lifetime = NumberRange.new(1), | |
835 | Rate=150, | |
836 | Acceleration = V3.N(0,10,0), | |
837 | Speed = NumberRange.new(5), | |
838 | Enabled = true | |
839 | }) | |
840 | delay(1, function() | |
841 | dust.Enabled = false | |
842 | S.Debris:AddItem(v,2) | |
843 | end) | |
844 | end | |
845 | end | |
846 | else | |
847 | warn"nope. nawt happenin'" | |
848 | end | |
849 | end | |
850 | ||
851 | function DealDamage(who,minDam,maxDam,Knock,Type,critChance,critMult) | |
852 | if(who)then | |
853 | local hum = who:FindFirstChildOfClass'Humanoid' | |
854 | local Damage = M.RNG(minDam,maxDam) | |
855 | local canHit = true | |
856 | if(hum)then | |
857 | for _, p in pairs(Hit) do | |
858 | if p[1] == hum then | |
859 | if(time() - p[2] < 0.4) then | |
860 | canHit = false | |
861 | else | |
862 | Hit[_] = nil | |
863 | end | |
864 | end | |
865 | end | |
866 | if(canHit)then | |
867 | table.insert(Hit,{hum,time()}) | |
868 | if(GetTorso(who))then | |
869 | Sound(GetTorso(who),406913243,1,10,false,true,true) | |
870 | end | |
871 | if(hum.Health >= math.huge)then | |
872 | Kill(who) | |
873 | if(who:FindFirstChild'Head' and hum.Health > 0)then | |
874 | 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) | |
875 | end | |
876 | else | |
877 | local player = S.Players:GetPlayerFromCharacter(who) | |
878 | if(Type == "Fire")then | |
879 | --idk.. | |
880 | else | |
881 | local c = Instance.new("ObjectValue",hum) | |
882 | c.Name = "creator" | |
883 | c.Value = Plr | |
884 | game:service'Debris':AddItem(c,0.35) | |
885 | local Crit = false | |
886 | if(M.RNG(1,100) <= (critChance or 0) and critMult > 1)then | |
887 | Crit = true | |
888 | Damage = Damage*(critMult or 2) | |
889 | end | |
890 | Damage = Damage*((Souls/5)+1) | |
891 | if(who:FindFirstChild'Head' and hum.Health > 0)then | |
892 | 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)) | |
893 | end | |
894 | ||
895 | if(hum.Health - Damage <= 0)then | |
896 | Kill(who) | |
897 | else | |
898 | hum.Health = hum.Health - Damage | |
899 | if(Type == 'Knockback' and GetTorso(who))then | |
900 | local angle = GetTorso(who).Position - Root.Position + Vector3.new(0, 0, 0).unit | |
901 | local body = NewInstance('BodyVelocity',GetTorso(who),{ | |
902 | P = 500, | |
903 | maxForce = V3.N(math.huge,0,math.huge), | |
904 | velocity = Root.CFrame.lookVector * Knock + Root.Velocity / 1.05 | |
905 | }) | |
906 | game:service'Debris':AddItem(body,.5) | |
907 | elseif(Type == "Electric")then | |
908 | if(M.RNG(1,100) >= critChance)then | |
909 | if(who:FindFirstChild'Head' and hum.Health > 0)then | |
910 | 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) | |
911 | end | |
912 | local asd = hum.WalkSpeed/2 | |
913 | hum.WalkSpeed = asd | |
914 | local paralyzed = true | |
915 | coroutine.wrap(function() | |
916 | while paralyzed do | |
917 | swait(25) | |
918 | if(M.RNG(1,25) == 1)then | |
919 | if(who:FindFirstChild'Head' and hum.Health > 0)then | |
920 | 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) | |
921 | end | |
922 | hum.PlatformStand = true | |
923 | end | |
924 | end | |
925 | end)() | |
926 | delay(4, function() | |
927 | paralyzed = false | |
928 | hum.WalkSpeed = hum.WalkSpeed + asd | |
929 | end) | |
930 | end | |
931 | ||
932 | elseif(Type == 'Knockdown' and GetTorso(who))then | |
933 | local rek = GetTorso(who) | |
934 | hum.PlatformStand = true | |
935 | delay(1,function() | |
936 | hum.PlatformStand = false | |
937 | end) | |
938 | local angle = (GetTorso(who).Position - (Root.Position + Vector3.new(0, 0, 0))).unit | |
939 | local bodvol = NewInstance("BodyVelocity",rek,{ | |
940 | velocity = angle * Knock, | |
941 | P = 5000, | |
942 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
943 | }) | |
944 | local rl = NewInstance("BodyAngularVelocity",rek,{ | |
945 | P = 3000, | |
946 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
947 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
948 | }) | |
949 | game:GetService("Debris"):AddItem(bodvol, .5) | |
950 | game:GetService("Debris"):AddItem(rl, .5) | |
951 | end | |
952 | end | |
953 | end | |
954 | end | |
955 | end | |
956 | end | |
957 | end | |
958 | end | |
959 | ||
960 | ||
961 | function AOEDamage(where,range,minDam,maxDam,Knock,Type,critChance,critMult) | |
962 | for _,v in next, getRegion(where,range,{Char}) do | |
963 | if(v.Name ~= 'Nebula_Zorua')then | |
964 | if(v.Parent and v.Parent:FindFirstChildOfClass'Humanoid')then | |
965 | DealDamage(v.Parent,minDam,maxDam,Knock,Type,critChance,critMult) | |
966 | end | |
967 | end | |
968 | end | |
969 | end | |
970 | ||
971 | function AOEKill(where,range) | |
972 | for _,v in next, getRegion(where,range,{Char,Effects}) do | |
973 | local succ,alive = pcall(function() return v.Parent:FindFirstChildOfClass'Humanoid'.Health > 0 end) | |
974 | if(v.Name ~= 'Nebula_Zorua')then | |
975 | if(v.Parent and alive == true)then | |
976 | coroutine.wrap(Kill)(v.Parent) | |
977 | end | |
978 | end | |
979 | end | |
980 | end | |
981 | ||
982 | function AOEHeal(where,range,amount) | |
983 | local healed = {} | |
984 | for _,v in next, getRegion(where,range,{Char}) do | |
985 | local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' or nil) | |
986 | if(hum and not healed[hum])then | |
987 | hum.Health = hum.Health + amount | |
988 | if(v.Parent:FindFirstChild'Head' and hum.Health > 0)then | |
989 | 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) | |
990 | end | |
991 | end | |
992 | end | |
993 | end | |
994 | ||
995 | ||
996 | --// Attack Functions \\-- | |
997 | ||
998 | ||
999 | function Slash() | |
1000 | Attack = true | |
1001 | NeutralAnims = false | |
1002 | local sound = Sound(Knife,437475935,1,5,false,true,false) | |
1003 | for i = 0, 2, 0.1 do | |
1004 | swait() | |
1005 | local Alpha = .2 | |
1006 | 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) | |
1007 | 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) | |
1008 | 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) | |
1009 | 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) | |
1010 | 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) | |
1011 | 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) | |
1012 | HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha) | |
1013 | end | |
1014 | KTrail.Enabled = true | |
1015 | sound:Play() | |
1016 | for i = 0, 2.5, 0.1 do | |
1017 | swait() | |
1018 | AOEDamage(Knife.CFrame.p,1,15,30,0,"Normal",0,1) | |
1019 | local Alpha = .25 | |
1020 | 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) | |
1021 | 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) | |
1022 | 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) | |
1023 | 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) | |
1024 | 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) | |
1025 | 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) | |
1026 | HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha) | |
1027 | end | |
1028 | KTrail.Enabled = false | |
1029 | Attack = false | |
1030 | NeutralAnims = true | |
1031 | end | |
1032 | ||
1033 | Mouse.Button1Down:connect(function() | |
1034 | if(Attack)then return end | |
1035 | Slash() | |
1036 | end) | |
1037 | ||
1038 | Mouse.KeyDown:connect(function(k) | |
1039 | if(Attack)then return end | |
1040 | if(k == 'z')then AOEKill(Root.CFrame.p,25) end -- TODO: Animation and effects | |
1041 | if(k == 'q')then WalkSpeed = (WalkSpeed == 8 and 32 or 8) end | |
1042 | end) | |
1043 | ||
1044 | ||
1045 | function Refuse() | |
1046 | Attack = true | |
1047 | warn("B u t i t r e f u s e d.") | |
1048 | local oMH = MaxHealth | |
1049 | MaxHealth = "inf" | |
1050 | Hum.MaxHealth = "inf" | |
1051 | Hum.Health = "inf" | |
1052 | Char.Parent = nil | |
1053 | Hum:destroy() | |
1054 | if(not _G.RefusedAnimation)then | |
1055 | _G.RefusedAnimation = true | |
1056 | ||
1057 | ||
1058 | local Soul; | |
1059 | function Soul(where,decalId) | |
1060 | local destroy = false | |
1061 | local soul = NewInstance("Part",workspace) | |
1062 | soul.Name = "Soul" | |
1063 | soul.Transparency=1 | |
1064 | soul.Size = V3.N(2,2,.05) | |
1065 | soul.Anchored=true | |
1066 | soul.CanCollide=false | |
1067 | soul.CFrame = where | |
1068 | local heartF = NewInstance("Decal",soul,{Face=Enum.NormalId.Front,Texture="rbxassetid://"..decalId}) | |
1069 | local heartB = NewInstance("Decal",soul,{Face=Enum.NormalId.Back,Texture="rbxassetid://"..decalId}) | |
1070 | return soul,heartF,heartB | |
1071 | end | |
1072 | local owo = Root.CFrame | |
1073 | local s,f,b = Soul(owo,1569347904) | |
1074 | swait(60) | |
1075 | local snd = Sound(s,862552636,1,5,false,false,false) | |
1076 | snd:Play() | |
1077 | f.Texture = "rbxassetid://1569348344" | |
1078 | b.Texture = "rbxassetid://1569348344" | |
1079 | swait(15) | |
1080 | snd:Stop() | |
1081 | swait(60) | |
1082 | print'lol' | |
1083 | for i = 0, 6, .1 do | |
1084 | swait() | |
1085 | s.CFrame = owo * CF.N(M.RNG(-50,50)/100,M.RNG(-50,50)/100,M.RNG(-50,50)/100) | |
1086 | end | |
1087 | local snd = Sound(s,862552636,1,5,false,false,false) | |
1088 | snd:Play() | |
1089 | s.CFrame = owo | |
1090 | f.Texture = "rbxassetid://1569347904" | |
1091 | b.Texture = "rbxassetid://1569347904" | |
1092 | swait(15) | |
1093 | snd:Stop() | |
1094 | swait(60) | |
1095 | ||
1096 | s:destroy() | |
1097 | end | |
1098 | ||
1099 | RJ.Parent = Char | |
1100 | LS.Parent = Char | |
1101 | RS.Parent = Char | |
1102 | LH.Parent = Char | |
1103 | RH.Parent = Char | |
1104 | NK.Parent = Char | |
1105 | ||
1106 | LArm.Parent = Char | |
1107 | RArm.Parent = Char | |
1108 | LLeg.Parent = Char | |
1109 | LArm.Parent = Char | |
1110 | Root.Parent = Char | |
1111 | Torso.Parent = Char | |
1112 | Head.Parent = Char | |
1113 | ||
1114 | Knife.Parent = Char | |
1115 | Hair.Parent = Char | |
1116 | ||
1117 | HW.Parent = Char | |
1118 | HW2.Parent = Char | |
1119 | ||
1120 | ||
1121 | REye:destroy() | |
1122 | LEye:destroy() | |
1123 | ||
1124 | for _,v in next, Char:children() do | |
1125 | if(v.Name == 'ShadowFace')then v:destroy() end | |
1126 | end | |
1127 | LEye = Part(Char,C3.N(1,0,0),Enum.Material.Neon,V3.N(.15,.25,.2),CF.N(),false,false) | |
1128 | LEyeM = Mesh(LEye,Enum.MeshType.Sphere,"","",V3.N(1,1,1),V3.N()) | |
1129 | LEyeW = NewInstance("Weld",LEye,{Part0=Head,Part1=LEye,C0=CF.N(-.2,.2,-.49)}) | |
1130 | ||
1131 | REye = Part(Char,C3.N(1,0,0),Enum.Material.Neon,V3.N(.15,.25,.2),CF.N(),false,false) | |
1132 | REyeM = Mesh(REye,Enum.MeshType.Sphere,"","",V3.N(1,1,1),V3.N()) | |
1133 | REyeW = NewInstance("Weld",REye,{Part0=Head,Part1=REye,C0=CF.N(.2,.2,-.49)}) | |
1134 | for i = 1, 35 do | |
1135 | local FACE = Part(Char,C3.N(0,0,0),Enum.Material.Neon,V3.N(1.01,.5,1.01),CF.N(),false,false) | |
1136 | FACE.Transparency = 0+(i-1)/35.2 | |
1137 | FACE.Name = 'ShadowFace' | |
1138 | Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE | |
1139 | NewInstance("Weld",Head,{Part0=Head,Part1=FACE,C0=CF.N(0,.35-(i-1)/75,0)}) | |
1140 | --CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0)) | |
1141 | end | |
1142 | Hum = NewInstance("Humanoid",Char,{DisplayDistanceType='None'}) | |
1143 | ConnectHum() | |
1144 | MaxHealth = oMH | |
1145 | Hum.MaxHealth = MaxHealth | |
1146 | Hum.Health = MaxHealth | |
1147 | swait(5) | |
1148 | Char.Parent = workspace | |
1149 | ||
1150 | Attack = false | |
1151 | end | |
1152 | ||
1153 | function ConnectHum() | |
1154 | Hum.Died:connect(Refuse) | |
1155 | end | |
1156 | ConnectHum() | |
1157 | ||
1158 | ||
1159 | --// Wrap it all up \\-- | |
1160 | while true do | |
1161 | swait() | |
1162 | Sine = Sine + Change | |
1163 | if(not Music)then | |
1164 | Music = Sound(Torso,MusicID,1,3,true,false,true) | |
1165 | Music.Name = 'Music' | |
1166 | end | |
1167 | Music.Pitch = 1 | |
1168 | Music.Volume = 5 | |
1169 | Music.SoundId = "rbxassetid://"..MusicID | |
1170 | Music.Parent = Torso | |
1171 | Music:Resume() | |
1172 | 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) | |
1173 | local Walking = (math.abs(Root.Velocity.x) > 1 or math.abs(Root.Velocity.z) > 1) | |
1174 | 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") | |
1175 | if(not Effects or not Effects.Parent)then | |
1176 | Effects = IN("Model",Char) | |
1177 | Effects.Name = "Effects" | |
1178 | end | |
1179 | Hum.WalkSpeed = WalkSpeed | |
1180 | if(State == 'Walk')then | |
1181 | if(Hum.WalkSpeed >= 24)then | |
1182 | local wsVal = 22 / (Hum.WalkSpeed/16) | |
1183 | local Alpha = math.min(.1 * (Hum.WalkSpeed/16),1) | |
1184 | Change = 2 | |
1185 | 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) | |
1186 | 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) | |
1187 | else | |
1188 | Change = .9 | |
1189 | local wsVal = 8 / (Hum.WalkSpeed/8) | |
1190 | local Alpha = math.min(.2 * (Hum.WalkSpeed/8),1) | |
1191 | 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) | |
1192 | 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) | |
1193 | end | |
1194 | else | |
1195 | RH.C1 = RH.C1:lerp(CF.N(0,1,0),.1) | |
1196 | LH.C1 = LH.C1:lerp(CF.N(0,1,0),.1) | |
1197 | end | |
1198 | for _,v in next, Char:children() do | |
1199 | if(v:IsA'Accessory')then | |
1200 | v:destroy() | |
1201 | elseif(v:IsA'Shirt')then | |
1202 | v.ShirtTemplate = "rbxassetid://344089667" | |
1203 | elseif(v:IsA'Pants')then | |
1204 | v.PantsTemplate = "rbxassetid://344084364" | |
1205 | elseif(v:IsA'CharacterMesh')then | |
1206 | v:destroy() | |
1207 | elseif(v:FindFirstChildOfClass'ShirtGraphic')then | |
1208 | v:FindFirstChildOfClass'ShirtGraphic':destroy() | |
1209 | end | |
1210 | end | |
1211 | local face = Head:FindFirstChild'face' | |
1212 | if(not face)then | |
1213 | NewInstance("Decal",Head,{Name='face',Face=Enum.NormalId.Front,Texture="rbxassetid://404306534"}) | |
1214 | else | |
1215 | face.Texture = "rbxassetid://404306534" | |
1216 | end | |
1217 | RArm.BrickColor = BrickColor.new'Pastel brown' | |
1218 | LArm.BrickColor = BrickColor.new'Pastel brown' | |
1219 | RLeg.BrickColor = BrickColor.new'Pastel brown' | |
1220 | LLeg.BrickColor = BrickColor.new'Pastel brown' | |
1221 | Torso.BrickColor = BrickColor.new'Pastel brown' | |
1222 | Head.BrickColor = BrickColor.new'Pastel brown' | |
1223 | Hum.Name = 'Chara' | |
1224 | if(Hum.MaxHealth ~= MaxHealth)then | |
1225 | Hum.MaxHealth = MaxHealth | |
1226 | end | |
1227 | Hum.DisplayDistanceType='None' | |
1228 | if(NeutralAnims)then | |
1229 | if(State == 'Idle')then | |
1230 | Change = 1 | |
1231 | local Alpha = .1 | |
1232 | 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) | |
1233 | 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) | |
1234 | 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) | |
1235 | 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) | |
1236 | 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) | |
1237 | 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) | |
1238 | HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha) | |
1239 | -- idle | |
1240 | elseif(State == 'Walk')then | |
1241 | if(Hum.WalkSpeed >= 24)then | |
1242 | local wsVal = 22 / (Hum.WalkSpeed/16) | |
1243 | local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1) | |
1244 | 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) | |
1245 | 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) | |
1246 | 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) | |
1247 | NK.C0 = NK.C0:lerp(NKC0*CF.A(M.R(15),0,0),Alpha) | |
1248 | 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) | |
1249 | 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) | |
1250 | HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha) | |
1251 | else | |
1252 | local wsVal = 8 / (Hum.WalkSpeed/8) | |
1253 | local Alpha = math.min(.2 * (Hum.WalkSpeed/8),1) | |
1254 | 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) | |
1255 | 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) | |
1256 | 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) | |
1257 | NK.C0 = NK.C0:lerp(NKC0,Alpha) | |
1258 | LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0+.05*M.C(Sine/(wsVal/2)),0),Alpha) | |
1259 | RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0+.05*M.C(Sine/(wsVal/2)),0),Alpha) | |
1260 | HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha) | |
1261 | end | |
1262 | elseif(State == 'Jump' or State == 'Fall')then | |
1263 | if(Walking)then | |
1264 | local Alpha = .2 | |
1265 | 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) | |
1266 | 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) | |
1267 | 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) | |
1268 | 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) | |
1269 | 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) | |
1270 | 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) | |
1271 | HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha) | |
1272 | else | |
1273 | local Alpha = .2 | |
1274 | 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) | |
1275 | 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) | |
1276 | 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) | |
1277 | 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) | |
1278 | 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) | |
1279 | 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) | |
1280 | HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha) | |
1281 | end | |
1282 | elseif(State == 'Paralyzed')then | |
1283 | -- paralyzed | |
1284 | elseif(State == 'Sit')then | |
1285 | -- sit | |
1286 | end | |
1287 | end | |
1288 | end |