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