SHOW:
|
|
- or go back to the newest paste.
1 | wait(1/60) | |
2 | -- [[[ | |
3 | --000000[[====================================================================================\\ | |
4 | --000000[[ DEIVIS97 EDIT Modes stuff by tcgc121212 | |
5 | --000000[[====================================================================================// | |
6 | -- [[[ | |
7 | -- This script has been converted to FE by TameDoNotClick :) | |
8 | ||
9 | ||
10 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
11 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
12 | - | local Plr = Plrs.LocalPlayer |
12 | + | do |
13 | print("Translated to FE by me, TameDoNotClick. Enjoy ;)") | |
14 | script.Parent = Player.Character | |
15 | ||
16 | --RemoteEvent for communicating | |
17 | local Event = Instance.new("RemoteEvent") | |
18 | Event.Name = "UserInput_Event" | |
19 | ||
20 | --Fake event to make stuff like Mouse.KeyDown work | |
21 | local function fakeEvent() | |
22 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} | |
23 | t.connect = t.Connect | |
24 | return t | |
25 | end | |
26 | ||
27 | --Creating fake input objects with fake variables | |
28 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
29 | - | local Mouse = Plr:GetMouse() |
29 | + | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} |
30 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
31 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
32 | end} | |
33 | --Merged 2 functions into one by checking amount of arguments | |
34 | CAS.UnbindAction = CAS.BindAction | |
35 | ||
36 | --This function will trigger the events that have been :Connect()'ed | |
37 | local function te(self,ev,...) | |
38 | local t = m[ev] | |
39 | if t and t._fakeEvent and t.Function then | |
40 | t.Function(...) | |
41 | end | |
42 | end | |
43 | m.TrigEvent = te | |
44 | UIS.TrigEvent = te | |
45 | ||
46 | Event.OnServerEvent:Connect(function(plr,io) | |
47 | if plr~=Player then return end | |
48 | if io.isMouse then | |
49 | m.Target = io.Target | |
50 | m.Hit = io.Hit | |
51 | else | |
52 | local b = io.UserInputState == Enum.UserInputState.Begin | |
53 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
54 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
55 | end | |
56 | for _,t in pairs(CAS.Actions) do | |
57 | for _,k in pairs(t.Keys) do | |
58 | if k==io.KeyCode then | |
59 | t.Function(t.Name,io.UserInputState,io) | |
60 | end | |
61 | end | |
62 | end | |
63 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
64 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
65 | end | |
66 | end) | |
67 | Event.Parent = NLS([==[ | |
68 | local Player = game:GetService("Players").LocalPlayer | |
69 | local Event = script:WaitForChild("UserInput_Event") | |
70 | ||
71 | local UIS = game:GetService("UserInputService") | |
72 | local input = function(io,a) | |
73 | if a then return end | |
74 | --Since InputObject is a client-side instance, we create and pass table instead | |
75 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
76 | end | |
77 | UIS.InputBegan:Connect(input) | |
78 | UIS.InputEnded:Connect(input) | |
79 | ||
80 | local Mouse = Player:GetMouse() | |
81 | local h,t | |
82 | --Give the server mouse data 30 times every second, but only if the values changed | |
83 | --If player is not moving their mouse, client won't fire events | |
84 | while wait(1/30) do | |
85 | if h~=Mouse.Hit or t~=Mouse.Target then | |
86 | h,t=Mouse.Hit,Mouse.Target | |
87 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
88 | end | |
89 | end]==],Player.Character) | |
90 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
91 | end | |
92 | ||
93 | --// Initializing \\-- | |
94 | local S = setmetatable({},{__index = function(s,i) return game:service(i) end}) | |
95 | local Plrs = S.Players | |
96 | local Plr = owner | |
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 RootPart = Char["HumanoidRootPart"] | |
105 | local Rooted = false | |
106 | local Torso = Char.Torso | |
107 | local Head = Char.Head | |
108 | local NeutralAnims = true | |
109 | local Attack = false | |
110 | local BloodPuddles = {} | |
111 | local Effects = {} | |
112 | local Debounces = {Debounces={}} | |
113 | local Hit = {} | |
114 | local Sine = 0 | |
115 | local Idle = 0 | |
116 | local Change = 1 | |
117 | local FLArm,FRArm,FRArmW,FLArmW | |
118 | local Stunned = {} | |
119 | local VoidSB = (game.PlaceId == 843468296) -- You can change the 843468296 to 0 if you dont care about potential lag on Void SB | |
120 | --// Debounce System \\-- | |
121 | ||
122 | ||
123 | function Debounces:New(name,cooldown) | |
124 | local aaaaa = {Usable=true,Cooldown=cooldown or 2,CoolingDown=false,LastUse=0} | |
125 | setmetatable(aaaaa,{__index = Debounces}) | |
126 | Debounces.Debounces[name] = aaaaa | |
127 | return aaaaa | |
128 | end | |
129 | ||
130 | function Debounces:Use(overrideUsable) | |
131 | assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use") | |
132 | if(self.Usable or overrideUsable)then | |
133 | self.Usable = false | |
134 | self.CoolingDown = true | |
135 | local LastUse = time() | |
136 | self.LastUse = LastUse | |
137 | delay(self.Cooldown or 2,function() | |
138 | if(self.LastUse == LastUse)then | |
139 | self.CoolingDown = false | |
140 | self.Usable = true | |
141 | end | |
142 | end) | |
143 | end | |
144 | end | |
145 | ||
146 | function Debounces:Get(name) | |
147 | assert(typeof(name) == 'string',("bad argument #1 to 'get' (string expected, got %s)"):format(typeof(name) == nil and "no value" or typeof(name))) | |
148 | for i,v in next, Debounces.Debounces do | |
149 | if(i == name)then | |
150 | return v; | |
151 | end | |
152 | end | |
153 | end | |
154 | ||
155 | function Debounces:GetProgressPercentage() | |
156 | assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use") | |
157 | if(self.CoolingDown and not self.Usable)then | |
158 | return math.max( | |
159 | math.floor( | |
160 | ( | |
161 | (time()-self.LastUse)/self.Cooldown or 2 | |
162 | )*100 | |
163 | ) | |
164 | ) | |
165 | else | |
166 | return 100 | |
167 | end | |
168 | end | |
169 | ||
170 | --// Shortcut Variables \\-- | |
171 | local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ} | |
172 | local C3 = {N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV} | |
173 | local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis} | |
174 | 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} | |
175 | local R3 = {N=Region3.new} | |
176 | local De = S.Debris | |
177 | local WS = workspace | |
178 | local Lght = S.Lighting | |
179 | local RepS = S.ReplicatedStorage | |
180 | local IN = Instance.new | |
181 | ||
182 | --// Extended ROBLOX tables \\-- | |
183 | local Instance = setmetatable({AllChildren = function(where,callback,recursive) local children = (recursive and where:GetDescendants() or where:GetChildren()) for _,v in next, children do callback(v) end end, 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}) | |
184 | --// Customization \\-- | |
185 | game:GetService("RunService"):BindToRenderStep("ew", 0, function() | |
186 | if Humanoid.Health > 0.1 and Humanoid.Health < 1.0E298 then | |
187 | Humanoid.MaxHealth = 1.0E298 | |
188 | Humanoid.Health = 1.0E298 | |
189 | end | |
190 | end) | |
191 | local Frame_Speed = 60 -- The frame speed for swait. 1 is automatically divided by this | |
192 | local Remove_Hats = true | |
193 | local Remove_Clothing = false | |
194 | local PlayerSize = 1 | |
195 | local DamageColor = BrickColor.new'Pink' | |
196 | local MusicID = 1445753925 | |
197 | local MusicPitch = 1 | |
198 | local BloodID = "rbxassetid://51657249" | |
199 | local BloodColor = BrickColor.new'Really black' | |
200 | local BloodMaterial = Enum.Material.Neon | |
201 | local Orin = "http://www.roblox.com/asset/?id=492754352" | |
202 | Head.face.Texture = Orin | |
203 | function weld(a, b, acf) | |
204 | local w = Instance.new("Weld", a) | |
205 | w.Part0 = a | |
206 | w.Part1 = b | |
207 | w.C0 = acf | |
208 | end | |
209 | local righteyebrickcolor = "Lime green" | |
210 | local reye = Instance.new("Part", Char) | |
211 | reye.CanCollide = false | |
212 | reye.BrickColor = BrickColor.new(righteyebrickcolor) | |
213 | reye.Material = "Neon" | |
214 | reye.Size = Vector3.new(.25,.35,.15) | |
215 | weld(reye, Char.Head, CFrame.new(0.15,-0.2,0.55), CFrame.new(1,0,0)) | |
216 | m1 = Instance.new("SpecialMesh", reye) | |
217 | m1.MeshType = "Sphere" | |
218 | m1.Scale = Vector3.new(0.9,0.9,0.9) | |
219 | reye.Locked = true | |
220 | reye.Name = "re" | |
221 | ||
222 | local leye = Instance.new("Part", Char) | |
223 | leye.CanCollide = false | |
224 | leye.BrickColor = BrickColor.new(righteyebrickcolor) | |
225 | leye.Material = "Neon" | |
226 | leye.Size = Vector3.new(.25,.35,.15) | |
227 | weld(leye, Char.Head, CFrame.new(-0.15,-0.2,0.55), CFrame.new(1,0,0)) | |
228 | local m = Instance.new("SpecialMesh", leye) | |
229 | m.MeshType = "Sphere" | |
230 | m.Scale = Vector3.new(0.9,0.9,0.9) | |
231 | leye.Locked = true | |
232 | leye.Name = "le" | |
233 | local Aura = Instance.new('ParticleEmitter') | |
234 | Aura.Name = "Aura" | |
235 | Aura.Texture = "rbxassetid://141116476" | |
236 | Aura.Parent = reye | |
237 | Aura.LightEmission = 1 | |
238 | Aura.Transparency = NumberSequence.new(0,0.6,1) | |
239 | Aura.Color = ColorSequence.new(Color3.new(0/255, 255/255, 0/255),Color3.new(0/255, 0/255, 0/255)) | |
240 | Aura.Size = NumberSequence.new(0.5,0.4,0.2) | |
241 | Aura.LockedToPart = false | |
242 | Aura.Lifetime = NumberRange.new(2) | |
243 | Aura.Rate = 99 | |
244 | Aura.Speed = NumberRange.new(1) | |
245 | Aura.EmissionDirection = "Top" | |
246 | for i,v in pairs(Char:GetChildren()) do | |
247 | if v.ClassName == "Accessory" or v.ClassName == "Hat" then | |
248 | v:destroy() | |
249 | end | |
250 | end | |
251 | local Hair = Instance.new("Part") | |
252 | Hair.Parent = Char | |
253 | Hair.Name = "Hair" | |
254 | Hair.Size = Vector3.new(0.1, 0.1, 0.1) | |
255 | Hair.CFrame = Char.Head.CFrame | |
256 | Hair:BreakJoints() | |
257 | Hair.CanCollide = false | |
258 | Hair.BrickColor = BrickColor.new("New Yeller") | |
259 | Hair.TopSurface = "Smooth" | |
260 | Hair.BottomSurface = "Smooth" | |
261 | Weld = Instance.new("Weld") | |
262 | Weld.Name = "Weld" | |
263 | Weld.Part0 = Char.Head | |
264 | Weld.Part1 = Hair | |
265 | Weld.Parent = Char.Head | |
266 | Weld.C0 = CFrame.new(-0.1, -0.71, 0.8)*CFrame.fromEulerAnglesXYZ(0, 3, 0) | |
267 | Mesh = Instance.new("SpecialMesh") | |
268 | Mesh.Parent = Hair | |
269 | Mesh.MeshId = "rbxassetid://731142602" | |
270 | Mesh.TextureId = "http://www.roblox.com/asset/?id=1332227116" | |
271 | Mesh.Scale = Vector3.new(0.25, 0.21, 0.2) | |
272 | ||
273 | shirt = Instance.new("Shirt", Char) | |
274 | shirt.Name = "Shirt" | |
275 | pants = Instance.new("Pants", Char) | |
276 | pants.Name = "Pants" | |
277 | Char.Shirt.ShirtTemplate = "rbxassetid://1298116952" | |
278 | Char.Pants.PantsTemplate = "rbxassetid://1340645290" | |
279 | ||
280 | local naeeym2 = Instance.new("BillboardGui",Char) | |
281 | naeeym2.AlwaysOnTop = true | |
282 | naeeym2.Size = UDim2.new(5,35,2,35) | |
283 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
284 | naeeym2.Adornee = Char.Head | |
285 | naeeym2.Name = "Name" | |
286 | --naeeym2.PlayerToHideFrom = Player | |
287 | naeeym2.MaxDistance = 200 | |
288 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
289 | tecks2.BackgroundTransparency = 1 | |
290 | tecks2.TextScaled = true | |
291 | tecks2.BorderSizePixel = 0 | |
292 | tecks2.Text = "C̸o̶r̵r̵u̷p̶t̶e̸d̸ ̵M̸o̸n̶-i̸k̷a̴" | |
293 | tecks2.Font = "Garamond" | |
294 | tecks2.TextSize = 30 | |
295 | tecks2.TextStrokeTransparency = 0 | |
296 | tecks2.TextColor3 = Color3.new(0,0,0) | |
297 | tecks2.TextStrokeColor3 = Color3.new(10,0,10) | |
298 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
299 | tecks2.Parent = naeeym2 | |
300 | ||
301 | ||
302 | local Moosic = Instance.new("Sound",Char) | |
303 | Moosic.Volume = 5999 | |
304 | Moosic.SoundId = "rbxassetid://1251489217" | |
305 | Moosic.Looped = true | |
306 | Moosic.Pitch = 1 --Pitcher | |
307 | ||
308 | local Music1 = Instance.new("Sound",Char) | |
309 | Music1.Volume = 5999 | |
310 | Music1.SoundId = "rbxassetid://1202052536" | |
311 | Music1.Looped = true | |
312 | Music1.Pitch = 1 --Pitcher | |
313 | Music1.TimePosition = 100 | |
314 | ||
315 | local Music2 = Instance.new("Sound",Char) | |
316 | Music2.Volume = 5999 | |
317 | Music2.SoundId = "rbxassetid://1374158689" | |
318 | Music2.Looped = true | |
319 | Music2.Pitch = 1 --Pitcher | |
320 | ||
321 | local Music3 = Instance.new("Sound",Char) | |
322 | Music3.Volume = 5999 | |
323 | Music3.SoundId = "rbxassetid://1325283155" | |
324 | Music3.Looped = true | |
325 | Music3.Pitch = 1 --Pitcher | |
326 | ||
327 | local Music4 = Instance.new("Sound",Char) | |
328 | Music4.Volume = 5999 | |
329 | Music4.SoundId = "rbxassetid://1581873125" | |
330 | Music4.Looped = true | |
331 | Music4.Pitch = 1 --Pitcher | |
332 | ||
333 | local Music5 = Instance.new("Sound",Char) | |
334 | Music5.Volume = 5999 | |
335 | Music5.SoundId = "rbxassetid://346746675" | |
336 | Music5.Looped = true | |
337 | Music5.Pitch = 1 --Pitcher | |
338 | ||
339 | local Music6 = Instance.new("Sound",Char) | |
340 | Music6.Volume = 5999 | |
341 | Music6.SoundId = "rbxassetid://1180904313" | |
342 | Music6.Looped = true | |
343 | Music6.Pitch = 1 --Pitcher | |
344 | ||
345 | local Creep = Instance.new("Sound",Char) | |
346 | Creep.Volume = 5999 | |
347 | Creep.SoundId = "rbxassetid://1383651657" | |
348 | Creep.Looped = true | |
349 | Creep.Pitch = 1 --Pitcher | |
350 | ||
351 | function chatfunc(text) | |
352 | local chat = coroutine.wrap(function() | |
353 | if Char:FindFirstChild("TalkingBillBoard")~= nil then | |
354 | Char:FindFirstChild("TalkingBillBoard"):destroy() | |
355 | end | |
356 | local Bill = Instance.new("BillboardGui",Char) | |
357 | Bill.Size = UDim2.new(0,100,0,40) | |
358 | Bill.StudsOffset = Vector3.new(0,3,0) | |
359 | Bill.Adornee = Char.Head | |
360 | Bill.Name = "TalkingBillBoard" | |
361 | local Hehe = Instance.new("TextLabel",Bill) | |
362 | Hehe.BackgroundTransparency = 1 | |
363 | Hehe.BorderSizePixel = 0 | |
364 | Hehe.Text = "" | |
365 | Hehe.Font = "Antique" | |
366 | Hehe.TextSize = 40 | |
367 | Hehe.TextStrokeTransparency = 0 | |
368 | Hehe.Size = UDim2.new(1,0,0.5,0) | |
369 | coroutine.resume(coroutine.create(function() | |
370 | while Hehe ~= nil do | |
371 | swait() | |
372 | Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
373 | Hehe.Rotation = math.random(-5,5) | |
374 | Hehe.TextColor3 = Color3.new(255,0,250) | |
375 | Hehe.TextStrokeColor3 = Color3.new(255,255,255) | |
376 | end | |
377 | end)) | |
378 | for i = 1,string.len(text),1 do | |
379 | swait() | |
380 | Hehe.Text = string.sub(text,1,i) | |
381 | end | |
382 | swait(90)--Re[math.random(1, 93)] | |
383 | for i = 0, 1, .025 do | |
384 | swait() | |
385 | Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i)) | |
386 | Hehe.TextStrokeTransparency = i | |
387 | Hehe.TextTransparency = i | |
388 | end | |
389 | Bill:Destroy() | |
390 | end) | |
391 | chat() | |
392 | end | |
393 | --// Weapon and GUI creation, and Character Customization \\-- | |
394 | ||
395 | if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end | |
396 | if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end | |
397 | local Effects = IN("Folder",Char) | |
398 | Effects.Name = "Effects" | |
399 | ||
400 | New = function(Object, Parent, Name, Data) | |
401 | local Object = Instance.new(Object) | |
402 | for Index, Value in pairs(Data or {}) do | |
403 | Object[Index] = Value | |
404 | end | |
405 | Object.Parent = Parent | |
406 | Object.Name = Name | |
407 | return Object | |
408 | end | |
409 | ||
410 | Circle = nil | |
411 | CircleParts = {} | |
412 | Equipped = false | |
413 | ||
414 | function RayCast(Position, Direction, MaxDistance, IgnoreList) | |
415 | return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList) | |
416 | end | |
417 | Humanoid = Char:FindFirstChildOfClass("Humanoid") | |
418 | Torso = Char:FindFirstChild("Torso") | |
419 | if not Plr or not Humanoid or Humanoid.Health == 0 or not Torso then | |
420 | return | |
421 | end | |
422 | Equipped = true | |
423 | Circle = Instance.new("Model") | |
424 | Circle.Name = "Circle" | |
425 | Angle = 0 | |
426 | for i = 1, 1 do | |
427 | local CirclePart = Instance.new("Part") | |
428 | CirclePart.Name = "CirclePart" | |
429 | CirclePart.Transparency = 1 | |
430 | CirclePart.BrickColor = BrickColor.new("Really black") | |
431 | CirclePart.Material = Enum.Material.Plastic | |
432 | CirclePart.Shape = Enum.PartType.Block | |
433 | CirclePart.FormFactor = Enum.FormFactor.Custom | |
434 | CirclePart.TopSurface = Enum.SurfaceType.Smooth | |
435 | CirclePart.BottomSurface = Enum.SurfaceType.Smooth | |
436 | CirclePart.Anchored = true | |
437 | CirclePart.CanCollide = false | |
438 | CirclePart.Locked = true | |
439 | CirclePart.Size = Vector3.new(10, 0.2, 10) | |
440 | local Aura = Instance.new('ParticleEmitter') | |
441 | Aura.Name = "Aura" | |
442 | Aura.Texture = "rbxassetid://51657249" | |
443 | Aura.Parent = CirclePart | |
444 | Aura.LightEmission = 0 | |
445 | Aura.Transparency = NumberSequence.new(0.2,0.4,1) | |
446 | Aura.Color = ColorSequence.new(Color3.new(0/255, 255/255, 0/255),Color3.new(0/255, 0/255, 0/255)) | |
447 | Aura.Size = NumberSequence.new(1.2,0.9,0.8) | |
448 | Aura.LockedToPart = false | |
449 | Aura.Lifetime = NumberRange.new(2) | |
450 | Aura.Rate = 60 | |
451 | Aura.Speed = NumberRange.new(2.5) | |
452 | Aura.SpreadAngle = Vector2.new(360,360) | |
453 | local BlockMesh = Instance.new("BlockMesh") | |
454 | BlockMesh.Scale = Vector3.new(1, (1 + (0.005 * i)), 1) | |
455 | BlockMesh.Parent = CirclePart | |
456 | CirclePart.Parent = Circle | |
457 | local Star = Instance.new("Decal", CirclePart) | |
458 | Star.Texture = "http://www.roblox.com/asset/?id=1346256339" | |
459 | Star.Face = "Top" | |
460 | local Light = Instance.new("PointLight", CirclePart) | |
461 | Light.Color = Color3.new(0,.20,0) | |
462 | Light.Brightness = 100 | |
463 | Light.Range = 15 | |
464 | table.insert(CircleParts, CirclePart) | |
465 | end | |
466 | Spawn(function() | |
467 | while Equipped and Humanoid.Parent and Humanoid.Health > 0 and Torso.Parent do | |
468 | if Angle == 360 then | |
469 | Angle = 0 | |
470 | end | |
471 | Angle = Angle + 0.05 | |
472 | local Hit, EndPosition = RayCast(Torso.Position, Vector3.new(0, -1, 0), (Torso.Size.Y * 6.5), {Char}) | |
473 | if Hit then | |
474 | if not Circle.Parent then | |
475 | Circle.Parent = Char | |
476 | end | |
477 | for i, v in pairs(CircleParts) do | |
478 | v.CFrame = CFrame.new(Torso.Position.X, EndPosition.Y, Torso.Position.Z) * CFrame.Angles(0, (Angle + i), 0) | |
479 | end | |
480 | else | |
481 | Circle.Parent = nil | |
482 | end | |
483 | wait() | |
484 | end | |
485 | end) | |
486 | ||
487 | ||
488 | CyborgArm = New("Model",Char,"CyborgArm",{}) | |
489 | Part = New("Part",CyborgArm,"Part",{BrickColor = BrickColor.new("Hot pink"),Material = Enum.Material.Neon,Size = Vector3.new(0.429999948, 0.100000001, 1.04999983),CFrame = CFrame.new(-138.369171, 2.89115906, 41.8271637, 0.505694926, -0.862284958, 0.0271573812, 0.862490892, 0.506027818, 0.0067293453, -0.019545, 0.0200200025, 0.999608755),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
490 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = RArm,C0 = CFrame.new(0, 0, 0, 0.505694926, 0.862490892, -0.0195449982, -0.862284899, 0.506027818, 0.0200199969, 0.0271573793, 0.00672934437, 0.999608576),C1 = CFrame.new(0.0136108398, -0.108844995, -0.0342674255, -0.99999994, 1.23908515e-22, -0.000331714633, 1.23944917e-22, 1, -1.09697344e-22, 0.000331714633, -1.09738441e-22, -0.99999994),}) | |
491 | Part = New("Part",CyborgArm,"Part",{BrickColor = BrickColor.new("Hot pink"),Material = Enum.Material.Neon,Size = Vector3.new(0.600001693, 0.100000001, 1.04999983),CFrame = CFrame.new(-138.268127, 3.26462603, 41.8218994, 0.0100010047, -0.999581397, 0.0271513518, 0.999925494, 0.010187286, 0.00673122332, -0.00700500328, 0.027082013, 0.999608815),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
492 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = RArm,C0 = CFrame.new(0, 0, 0, 0.0100010047, 0.999925494, -0.00700500328, -0.999581337, 0.010187286, 0.0270820074, 0.0271513499, 0.00673122238, 0.999608636),C1 = CFrame.new(-0.0874328613, 0.264621973, -0.028968811, -0.99999994, 1.23908515e-22, -0.000331714633, 1.23944917e-22, 1, -1.09697344e-22, 0.000331714633, -1.09738441e-22, -0.99999994),}) | |
493 | Part = New("Part",CyborgArm,"Part",{BrickColor = BrickColor.new("Hot pink"),Material = Enum.Material.Neon,Size = Vector3.new(0.3000018, 0.100000001, 1.04999983),CFrame = CFrame.new(-138.217133, 3.61339307, 41.8189926, 0.778245091, -0.627379835, 0.0270029604, 0.627452075, 0.778625846, 0.00676273741, -0.0252680089, 0.0116800005, 0.999612689),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
494 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = RArm,C0 = CFrame.new(0, 0, 0, 0.778245091, 0.627452075, -0.0252680033, -0.627379835, 0.778625846, 0.0116799958, 0.0270029567, 0.00676273648, 0.99961251),C1 = CFrame.new(-0.138427734, 0.613389015, -0.0260467529, -0.99999994, 1.23908515e-22, -0.000331714633, 1.23944917e-22, 1, -1.09697344e-22, 0.000331714633, -1.09738441e-22, -0.99999994),}) | |
495 | Part = New("Part",CyborgArm,"Part",{BrickColor = BrickColor.new("Hot pink"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.840000331, 0.420000285, 1),CFrame = CFrame.new(-138.395523, 2.38962889, 41.7660217, -0.00574199716, -0.999983609, 1.77533366e-09, 0.999983549, -0.00574199716, 9.3131769e-10, 9.41781764e-10, 1.77533366e-09, 1.00000012),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
496 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = RArm,C0 = CFrame.new(0, 0, 0, -0.00574199716, 0.999983549, 0, -0.999983549, -0.00574199716, 0, 0, 0, 1),C1 = CFrame.new(0.0399932861, -0.610375166, 0.0268669128, -0.99999994, 1.23908515e-22, -0.000331714633, 1.23944917e-22, 1, -1.09697344e-22, 0.000331714633, -1.09738441e-22, -0.99999994),}) | |
497 | Part = New("Part",CyborgArm,"Part",{BrickColor = BrickColor.new("Hot pink"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.840000331, 0.420000285, 0.2900002),CFrame = CFrame.new(-138.540939, 3.80931711, 41.9832687, 2.29982252e-05, -0.999983609, -0.00574393803, -0.00452899979, -0.00574398367, 0.999973238, -0.999989927, 3.01669934e-06, -0.00452905567),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth}) | |
498 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = RArm,C0 = CFrame.new(0, 0, 0, 2.29999951e-05, -0.00452899886, -0.999989748, -0.999983549, -0.00574398367, 3.01490991e-06, -0.00574393803, 0.999973238, -0.00452905614),C1 = CFrame.new(0.185333252, 0.809313059, -0.190429688, -0.99999994, 1.23908515e-22, -0.000331714633, 1.23944917e-22, 1, -1.09697344e-22, 0.000331714633, -1.09738441e-22, -0.99999994),}) | |
499 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = RArm,C1 = CFrame.new(0.207519531, 0.740064859, -0.0209579468, -0.99999994, 1.23908515e-22, -0.000331714633, 1.23944917e-22, 1, -1.09697344e-22, 0.000331714633, -1.09738441e-22, -0.99999994),}) | |
500 | Part = New("Part",CyborgArm,"Part",{BrickColor = BrickColor.new("Hot pink"),Material = Enum.Material.Neon,Size = Vector3.new(0.660001755, 0.100000001, 0.799999833),CFrame = CFrame.new(-138.557587, 3.57138705, 41.9535294, 0.999635398, 8.27676195e-06, 0.0270056874, -0.000191000116, 0.999977112, 0.00676353415, -0.0270050168, -0.00676622475, 0.999612629),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
501 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = RArm,C0 = CFrame.new(0, 0, 0, 0.999635339, -0.000191000072, -0.0270050094, 8.27677377e-06, 0.999977112, -0.00676622428, 0.0270056836, 0.00676353322, 0.999612451),C1 = CFrame.new(0.20199585, 0.571382999, -0.160697937, -0.99999994, 1.23908515e-22, -0.000331714633, 1.23944917e-22, 1, -1.09697344e-22, 0.000331714633, -1.09738441e-22, -0.99999994),}) | |
502 | Part = New("Part",CyborgArm,"Part",{BrickColor = BrickColor.new("Hot pink"),Material = Enum.Material.Neon,Size = Vector3.new(0.660001755, 0.100000001, 0.0899999291),CFrame = CFrame.new(-138.548004, 3.20288205, 42.3108978, 0.999635398, 8.27676195e-06, 0.0270056874, -0.000191000116, 0.999977112, 0.00676353415, -0.0270050168, -0.00676622475, 0.999612629),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
503 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = RArm,C0 = CFrame.new(0, 0, 0, 0.999635339, -0.000191000072, -0.0270050094, 8.27677377e-06, 0.999977112, -0.00676622428, 0.0270056836, 0.00676353322, 0.999612451),C1 = CFrame.new(0.19229126, 0.202877998, -0.518062592, -0.99999994, 1.23908515e-22, -0.000331714633, 1.23944917e-22, 1, -1.09697344e-22, 0.000331714633, -1.09738441e-22, -0.99999994),}) | |
504 | Part = New("Part",CyborgArm,"Part",{BrickColor = BrickColor.new("Hot pink"),Material = Enum.Material.Neon,Size = Vector3.new(0.390001893, 0.100000001, 1.04999983),CFrame = CFrame.new(-138.031433, 3.68374205, 41.8135147, 0.999635398, 8.27676195e-06, 0.0270056874, -0.000191000116, 0.999977112, 0.00676353415, -0.0270050168, -0.00676622475, 0.999612629),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
505 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = RArm,C0 = CFrame.new(0, 0, 0, 0.999635339, -0.000191000072, -0.0270050094, 8.27677377e-06, 0.999977112, -0.00676622428, 0.0270056836, 0.00676353322, 0.999612451),C1 = CFrame.new(-0.324111938, 0.683737993, -0.0205078125, -0.99999994, 1.23908515e-22, -0.000331714633, 1.23944917e-22, 1, -1.09697344e-22, 0.000331714633, -1.09738441e-22, -0.99999994),}) | |
506 | Part = New("Part",CyborgArm,"Part",{BrickColor = BrickColor.new("Hot pink"),Material = Enum.Material.Neon,Size = Vector3.new(0.2800017, 0.100000001, 0.690000117),CFrame = CFrame.new(-138.393951, 2.11307812, 42.0131454, 0.0100010047, -0.999581397, 0.0271513518, 0.999925494, 0.010187286, 0.00673122332, -0.00700500328, 0.027082013, 0.999608815),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
507 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = RArm,C0 = CFrame.new(0, 0, 0, 0.0100010047, 0.999925494, -0.00700500328, -0.999581337, 0.010187286, 0.0270820074, 0.0271513499, 0.00673122238, 0.999608636),C1 = CFrame.new(0.0383300781, -0.886925936, -0.220256805, -0.99999994, 1.23908515e-22, -0.000331714633, 1.23944917e-22, 1, -1.09697344e-22, 0.000331714633, -1.09738441e-22, -0.99999994),}) | |
508 | Part = New("Part",CyborgArm,"Part",{BrickColor = BrickColor.new("Hot pink"),Material = Enum.Material.Neon,Size = Vector3.new(0.600001693, 0.100000001, 1.04999983),CFrame = CFrame.new(-138.452835, 2.48128104, 41.8321991, -0.223359078, -0.974358141, 0.027149044, 0.974736214, -0.223258108, 0.00673288852, -0.000498998852, 0.0279670097, 0.999608934),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
509 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = RArm,C0 = CFrame.new(0, 0, 0, -0.223359063, 0.974736214, -0.000499000133, -0.974358141, -0.223258108, 0.0279670041, 0.0271490421, 0.00673288759, 0.999608755),C1 = CFrame.new(0.0972747803, -0.518723011, -0.0393295288, -0.99999994, 1.23908515e-22, -0.000331714633, 1.23944917e-22, 1, -1.09697344e-22, 0.000331714633, -1.09738441e-22, -0.99999994),}) | |
510 | ||
511 | for _,v in next, CyborgArm:children() do | |
512 | v.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0) | |
513 | end | |
514 | Arm = New("Model",Char,"Arm",{}) | |
515 | Handle = New("Part",Arm,"Arm",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Glass,Size = Vector3.new(1.0500015, 2.02999949, 1.07999992),CFrame = CFrame.new(-138.347275, 2.99473095, 41.7816849, 0.999635339, 8.27677286e-06, 0.0270056836, -0.000191000072, 0.999977112, 0.00676353322, -0.0270050094, -0.00676622428, 0.999612451),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
516 | Handle = New("Part",Arm,"Arm",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Glass,Size = Vector3.new(1.0500015, 2.02999949, 1.07999992),CFrame = CFrame.new(-138.347275, 2.99473095, 41.7816849, 0.999635339, 8.27677286e-06, 0.0270056836, -0.000191000072, 0.999977112, 0.00676353322, -0.0270050094, -0.00676622428, 0.999612451),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
517 | local Aura = Instance.new('ParticleEmitter') | |
518 | Aura.Name = "Aura" | |
519 | Aura.Texture = "rbxassetid://29553714" | |
520 | Aura.Parent = Handle | |
521 | Aura.LightEmission = 0 | |
522 | Aura.Transparency = NumberSequence.new(0.2,0.4,1) | |
523 | Aura.Color = ColorSequence.new(Color3.new(0/255, 255/255, 0/255),Color3.new(0/255, 0/255, 0/255)) | |
524 | Aura.Size = NumberSequence.new(0.5,0.4,0.2) | |
525 | Aura.LockedToPart = true | |
526 | Aura.Lifetime = NumberRange.new(2) | |
527 | Aura.Rate = 1000 | |
528 | Aura.Speed = NumberRange.new(0.3) | |
529 | Aura.SpreadAngle = Vector2.new(360,360) | |
530 | local Aura2 = Instance.new('ParticleEmitter') | |
531 | Aura2.Name = "Aura2" | |
532 | Aura2.Texture = "rbxassetid://73050819" | |
533 | Aura2.Parent = Handle | |
534 | Aura2.LightEmission = 0 | |
535 | Aura2.Transparency = NumberSequence.new(0.2,0.,1) | |
536 | Aura2.Color = ColorSequence.new(Color3.new(0/255, 255/255, 0/255),Color3.new(0/255, 0/255, 0/255)) | |
537 | Aura2.Size = NumberSequence.new(0.3,0.2,0.1) | |
538 | Aura2.LockedToPart = true | |
539 | Aura2.Lifetime = NumberRange.new(2) | |
540 | Aura2.Rate = 1000 | |
541 | Aura2.Speed = NumberRange.new(0.2) | |
542 | Aura2.SpreadAngle = Vector2.new(360,360) | |
543 | Part = New("Part",Arm,"Part",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Glass,Shape = Enum.PartType.Ball,Size = Vector3.new(1.16000044, 1.16000044, 1.16000044),CFrame = CFrame.new(-138.563065, 3.74006891, 41.8137894, 1, -1.23944917e-22, 1.77533366e-09, -1.48608469e-11, 1, 9.3131769e-10, -1.80443749e-09, 9.31322575e-10, 1.00000012),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
544 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = RArm,C1 = CFrame.new(0.207519531, 0.740064859, -0.0209579468, -0.99999994, 1.23908515e-22, -0.000331714633, 1.23944917e-22, 1, -1.09697344e-22, 0.000331714633, -1.09738441e-22, -0.99999994),}) | |
545 | for _,v in next, Arm:children() do | |
546 | v.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0) | |
547 | end | |
548 | ||
549 | pcall(function() Char.ReaperShadowHead.Eye1.BrickColor = BrickColor.new'Carnation pink' Char.ReaperShadowHead.Eye1.Material = 'Glass' end) | |
550 | pcall(function() Char.ReaperShadowHead.Eye2.BrickColor = BrickColor.new'Carnation pink' Char.ReaperShadowHead.Eye2.Material = 'Glass' end) | |
551 | pcall(function() Char.LeftWing.BrickColor = BrickColor.new'Carnation pink' Char.LeftWing.Transparency = 0.5 end) | |
552 | ||
553 | ||
554 | if(PlayerSize ~= 1)then | |
555 | for _,v in next, Char:GetDescendats() do | |
556 | if(v:IsA'BasePart')then | |
557 | v.Size = v.Size * PlayerSize | |
558 | end | |
559 | end | |
560 | end | |
561 | ||
562 | --// Instance Creation Functions \\-- | |
563 | ||
564 | function Sound(parent,id,pitch,volume,looped,effect,autoPlay) | |
565 | local Sound = IN("Sound") | |
566 | Sound.SoundId = "rbxassetid://".. tostring(id or 0) | |
567 | Sound.Pitch = pitch or 1 | |
568 | Sound.Volume = volume or 1 | |
569 | Sound.Looped = looped or false | |
570 | if(autoPlay)then | |
571 | coroutine.wrap(function() | |
572 | repeat wait() until Sound.IsLoaded | |
573 | Sound.Playing = autoPlay or false | |
574 | end)() | |
575 | end | |
576 | if(not looped and effect)then | |
577 | Sound.Ended:connect(function() | |
578 | Sound.Volume = 0 | |
579 | Sound:destroy() | |
580 | end) | |
581 | elseif(effect)then | |
582 | warn("Sound can't be looped and a sound effect!") | |
583 | end | |
584 | Sound.Parent =parent or Char | |
585 | return Sound | |
586 | end | |
587 | warn("Edit by deivis97") | |
588 | function Part(parent,color,material,size,cframe,anchored,cancollide) | |
589 | local part = IN("Part") | |
590 | part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3.N(0,0,0) | |
591 | part.Material = material or Enum.Material.SmoothPlastic | |
592 | part.TopSurface,part.BottomSurface=10,10 | |
593 | part.Size = size or V3.N(1,1,1) | |
594 | part.CFrame = cframe or CF.N(0,0,0) | |
595 | part.CanCollide = cancollide or false | |
596 | part.Anchored = anchored or false | |
597 | part.Parent = parent or Char | |
598 | return part | |
599 | end | |
600 | ||
601 | function Mesh(parent,meshtype,meshid,textid,scale,offset) | |
602 | local part = IN("SpecialMesh") | |
603 | part.MeshId = meshid or "" | |
604 | part.TextureId = textid or "" | |
605 | part.Scale = scale or V3.N(1,1,1) | |
606 | part.Offset = offset or V3.N(0,0,0) | |
607 | part.MeshType = meshtype or Enum.MeshType.Sphere | |
608 | part.Parent = parent | |
609 | return part | |
610 | end | |
611 | ||
612 | NewInstance = function(instance,parent,properties) | |
613 | local inst = Instance.new(instance,parent) | |
614 | if(properties)then | |
615 | for i,v in next, properties do | |
616 | pcall(function() inst[i] = v end) | |
617 | end | |
618 | end | |
619 | return inst; | |
620 | end | |
621 | ||
622 | --// Music Creation \\-- | |
623 | local Music = Sound(Char,MusicID,MusicPitch,9,true,false,true) | |
624 | Music.Name = 'Music' | |
625 | ||
626 | --// Stop animations \\-- | |
627 | for _,v in next, Hum:GetPlayingAnimationTracks() do | |
628 | v:Stop(); | |
629 | end | |
630 | ||
631 | pcall(game.Destroy,Char:FindFirstChild'Animate') | |
632 | pcall(game.Destroy,Hum:FindFirstChild'Animator') | |
633 | ||
634 | --// Joints \\-- | |
635 | ||
636 | 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)}) | |
637 | 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)}) | |
638 | local NK = NewInstance('Motor',Char,{Part0=Torso,Part1=Head,C0 = CF.N(0,1.5 * PlayerSize,0)}) | |
639 | local LH = NewInstance('Motor',Char,{Part0=Torso,Part1=LLeg,C0 = CF.N(-.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)}) | |
640 | local RH = NewInstance('Motor',Char,{Part0=Torso,Part1=RLeg,C0 = CF.N(.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)}) | |
641 | local RJ = NewInstance('Motor',Char,{Part0=Root,Part1=Torso}) | |
642 | local HW = NewInstance('Motor',Char,{Part0=Handle,Part1=RArm}) | |
643 | ||
644 | local LSC0 = LS.C0 | |
645 | local RSC0 = RS.C0 | |
646 | local NKC0 = NK.C0 | |
647 | local LHC0 = LH.C0 | |
648 | local RHC0 = RH.C0 | |
649 | local RJC0 = RJ.C0 | |
650 | ||
651 | --// Artificial HB \\-- | |
652 | ||
653 | local ArtificialHB = IN("BindableEvent", script) | |
654 | ArtificialHB.Name = "Heartbeat" | |
655 | ||
656 | script:WaitForChild("Heartbeat") | |
657 | ||
658 | local tf = 0 | |
659 | local allowframeloss = false | |
660 | local tossremainder = false | |
661 | local lastframe = tick() | |
662 | local frame = 1/Frame_Speed | |
663 | ArtificialHB:Fire() | |
664 | ||
665 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
666 | tf = tf + s | |
667 | if tf >= frame then | |
668 | if allowframeloss then | |
669 | script.Heartbeat:Fire() | |
670 | lastframe = tick() | |
671 | else | |
672 | for i = 1, math.floor(tf / frame) do | |
673 | ArtificialHB:Fire() | |
674 | end | |
675 | lastframe = tick() | |
676 | end | |
677 | if tossremainder then | |
678 | tf = 0 | |
679 | else | |
680 | tf = tf - frame * math.floor(tf / frame) | |
681 | end | |
682 | end | |
683 | end) | |
684 | ||
685 | function swait(num) | |
686 | if num == 0 or num == nil then | |
687 | ArtificialHB.Event:wait() | |
688 | else | |
689 | for i = 0, num do | |
690 | ArtificialHB.Event:wait() | |
691 | end | |
692 | end | |
693 | end | |
694 | ||
695 | ||
696 | --// Effect Function(s) \\-- | |
697 | ||
698 | function FakeWeld(p0,p1) | |
699 | local attachment0 = Instance.new('Attachment',p0) | |
700 | local attachment1 = Instance.new('Attachment',p1) | |
701 | return NewInstance("HingeConstraint",p0,{Attachment0=attachment0,Attachment1=attachment1,LimitsEnabled=true,UpperAngle=0,LowerAngle=0}) | |
702 | end | |
703 | ||
704 | function Fragment(v) | |
705 | v:ClearAllChildren() | |
706 | local Fragments = NewInstance("Folder",v.Parent,{Name='Fragmentation'}) | |
707 | v.Archivable = true | |
708 | -- X | |
709 | v.Size = Vector3.new(v.Size.x/2,v.Size.y,v.Size.z) | |
710 | v.Name = v.Name.."Fragment" | |
711 | ||
712 | local a = v:Clone() | |
713 | a.Parent = Fragments | |
714 | a.CFrame = CF.N(-.5,1,1) * a.CFrame | |
715 | v.CFrame = CF.N(.5,1,1) * v.CFrame | |
716 | -- Y | |
717 | v.Size = Vector3.new(v.Size.x,v.Size.y/2,v.Size.z) | |
718 | ||
719 | local a = v:Clone() | |
720 | a.Parent = Fragments | |
721 | a.CFrame = CF.N(1,-.5,1) * a.CFrame | |
722 | v.CFrame = CF.N(1,.5,1) * v.CFrame | |
723 | -- Z | |
724 | v.Size = Vector3.new(v.Size.x,v.Size.y,v.Size.z/2) | |
725 | ||
726 | local a = v:Clone() | |
727 | a.Parent = Fragments | |
728 | a.CFrame = CF.N(1,1,-.5) * a.CFrame | |
729 | v.CFrame = CF.N(1,1,.5) * v.CFrame | |
730 | ||
731 | v.Parent = Fragments | |
732 | return Fragments | |
733 | end | |
734 | ||
735 | local blood = NewInstance("ParticleEmitter",nil,{ | |
736 | Color = ColorSequence.new(Color3.new(0/255, 255/255, 0/255),Color3.new(0/255, 50/255, 0/255)), | |
737 | LightEmission=.1, | |
738 | LightInfluence=1, | |
739 | ZOffset=.9, | |
740 | Size=NumberSequence.new{NumberSequenceKeypoint.new(0,.2,0),NumberSequenceKeypoint.new(1,3,0)}, | |
741 | Texture="rbxassetid://51657249", | |
742 | Transparency=NumberSequence.new{NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}, | |
743 | Acceleration = V3.N(0,-15,0), | |
744 | Lifetime = NumberRange.new(1,2), | |
745 | Rate=50, | |
746 | Speed = NumberRange.new(5,15), | |
747 | SpreadAngle = Vector2.new(15,15), | |
748 | Enabled = false, | |
749 | EmissionDirection = 'Back', | |
750 | }) | |
751 | ||
752 | local blood2 = NewInstance("ParticleEmitter",nil,{ | |
753 | Color = ColorSequence.new(Color3.new(0/255, 255/255, 0/255),Color3.new(0/255, 50/255, 0/255)), | |
754 | LightEmission=.1, | |
755 | LightInfluence=1, | |
756 | ZOffset=.9, | |
757 | Size=NumberSequence.new{NumberSequenceKeypoint.new(0,.2,0),NumberSequenceKeypoint.new(1,3,0)}, | |
758 | Texture=BloodID, | |
759 | Transparency=NumberSequence.new{NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}, | |
760 | Acceleration = V3.N(0,-125,0), | |
761 | Lifetime = NumberRange.new(1,2), | |
762 | Rate=50, | |
763 | Speed = NumberRange.new(5,15), | |
764 | SpreadAngle = Vector2.new(15,15), | |
765 | Enabled = false, | |
766 | EmissionDirection = 'Back', | |
767 | }) | |
768 | ||
769 | local blood3 = NewInstance("ParticleEmitter",nil,{ | |
770 | Color = ColorSequence.new(Color3.new(0/255, 255/255, 0/255),Color3.new(0/255, 50/255, 0/255)), | |
771 | Size=NumberSequence.new{NumberSequenceKeypoint.new(0,.2),NumberSequenceKeypoint.new(1,.2)}, | |
772 | Texture=BloodID, | |
773 | Lifetime = NumberRange.new(.4), | |
774 | Rate=50, | |
775 | LockedToPart=true, | |
776 | Speed = NumberRange.new(0,2), | |
777 | Enabled = false, | |
778 | }) | |
779 | ||
780 | function Blood(size,cframe,amount) | |
781 | local part = Instance.new("Part",Effects) | |
782 | part.Transparency = 1 | |
783 | part.Size = size | |
784 | part.Anchored = true | |
785 | part.CanCollide = false | |
786 | part.CFrame = cframe | |
787 | S.Debris:AddItem(part,6) | |
788 | local prtcl = blood:Clone() | |
789 | prtcl.Parent = part | |
790 | prtcl:Emit(amount) | |
791 | return part, prtcl | |
792 | end | |
793 | ||
794 | function Blood2(size,cframe) | |
795 | local part = Instance.new("Part",Effects) | |
796 | part.Transparency = 1 | |
797 | part.Size = size | |
798 | part.Anchored = false | |
799 | part.CanCollide = false | |
800 | part.CFrame = cframe | |
801 | local prtcl = blood:Clone() | |
802 | prtcl.Enabled = true | |
803 | prtcl.Parent = part | |
804 | return part, prtcl | |
805 | end | |
806 | ||
807 | function Blood3(size,cframe,amount) | |
808 | local part = Instance.new("Part",Effects) | |
809 | part.Transparency = 1 | |
810 | part.Size = size | |
811 | part.Anchored = true | |
812 | part.CanCollide = false | |
813 | part.CFrame = cframe | |
814 | S.Debris:AddItem(part,6) | |
815 | local prtcl = blood2:Clone() | |
816 | prtcl.Parent = part | |
817 | prtcl:Emit(amount) | |
818 | return part, prtcl | |
819 | end | |
820 | ||
821 | function Blood4(size,cframe) | |
822 | local part = Instance.new("Part",Effects) | |
823 | part.Transparency = 1 | |
824 | part.Size = size | |
825 | part.Anchored = false | |
826 | part.CanCollide = false | |
827 | part.CFrame = cframe | |
828 | local prtcl = blood2:Clone() | |
829 | prtcl.Enabled = true | |
830 | prtcl.Parent = part | |
831 | return part, prtcl | |
832 | end | |
833 | ||
834 | ||
835 | function BloodDrop(pos,dir,maxsize) | |
836 | if(game.PlaceId ~= 843468296)then | |
837 | local owo = NewInstance("Part",Effects,{Transparency=0,Material=BloodMaterial,BrickColor=BloodColor,Shape=Enum.PartType.Ball,Size=V3.N(.2,.2,.2), CanCollide = false}) | |
838 | owo.CFrame=CF.N(pos,dir) | |
839 | local bv = Instance.new("BodyVelocity",owo) | |
840 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
841 | bv.velocity = CF.N(pos,dir+V3.N(M.RNG(-3,3)/30,M.RNG(-3,3)/30,M.RNG(-3,3)/30)).lookVector*15 | |
842 | bv.Name = "MOVE" | |
843 | local prt = blood3:Clone() | |
844 | prt.Parent = owo | |
845 | prt.Enabled = true | |
846 | delay(.01, function() bv:destroy() end) | |
847 | local touch; | |
848 | touch = owo.Touched:connect(function(hit) | |
849 | if(hit.Anchored==true and hit.CanCollide and not hit.Parent:FindFirstChildOfClass'Humanoid' and not hit.Parent.Parent:FindFirstChildOfClass'Humanoid')then | |
850 | touch:disconnect() | |
851 | BloodPuddle(owo.Position+V3.N(0,1,0),100,maxsize,owo) | |
852 | owo:destroy() | |
853 | end | |
854 | end) | |
855 | end | |
856 | end | |
857 | ||
858 | function BloodPuddle(position,range,maxSize,where) | |
859 | local hit, pos, norm = workspace:FindPartOnRayWithIgnoreList(Ray.new( | |
860 | position,CF.N(position,position+V3.N(0,-1,0)).lookVector * range | |
861 | ),{where,Char},false,true) | |
862 | if(hit and not hit.Parent:FindFirstChildOfClass'Humanoid' and not hit.Parent.Parent:FindFirstChildOfClass'Humanoid')then | |
863 | if(hit.Name == 'BloodPuddle')then | |
864 | local dist = (position - hit.Position).magnitude | |
865 | if (hit.Size.Z <= 5 and hit.Size.Z < maxSize) or (hit.Size.Z > 5 and hit.Size.Z < maxSize and dist < hit.Size.Z/3) then | |
866 | --hit.CylinderMesh.Scale = hit.CylinderMesh.Scale + V3.N(.1,0,.1) | |
867 | hit.Size = hit.Size + V3.N(.1,0,.1) | |
868 | end | |
869 | if(hit.Size.Z < 2)then | |
870 | pcall(function() hit.Sound:Play() end) | |
871 | end | |
872 | else | |
873 | local Puddle = NewInstance('Part',workspace,{Material=BloodMaterial,BrickColor=BloodColor,Size=V3.N(1,.1,1),CFrame=CF.N(pos,pos+norm)*CF.A(90*M.P/180,0,0),Anchored=true,CanCollide=false,Archivable=false,Locked=true,Name='BloodPuddle'}) | |
874 | local Cyl = NewInstance('CylinderMesh',Puddle,{Name='CylinderMesh'}) | |
875 | Sound(Puddle,685857471,1,2,false,false,true) | |
876 | coroutine.wrap(function() | |
877 | swait(75) | |
878 | repeat | |
879 | swait() | |
880 | Puddle.Size = Puddle.Size - V3.N(.02,0,.02) | |
881 | until Puddle.Size.Z < 0.51 | |
882 | Puddle:destroy() | |
883 | end)() | |
884 | end | |
885 | end | |
886 | end | |
887 | ||
888 | function recurse(root,callback,i) | |
889 | i= i or 0 | |
890 | for _,v in pairs(root:GetChildren()) do | |
891 | i = i + 1 | |
892 | callback(i,v) | |
893 | ||
894 | if #v:GetChildren() > 0 then | |
895 | i = recurse(v,callback,i) | |
896 | end | |
897 | end | |
898 | ||
899 | return i | |
900 | end | |
901 | ||
902 | function ragdollJoint(Character, part0, part1, attachmentName, className, properties) -- thanks mustardfat im too lazy | |
903 | if Character:FindFirstChild("RagdollConstraint"..part1.Name) == nil then | |
904 | for i,v in pairs(Character:GetChildren()) do | |
905 | if v:IsA("MeshPart") and (v.MeshId == 'http://www.roblox.com/asset/?id=553602991' or v.MeshId == 'http://www.roblox.com/asset/?id=553602977' or v.MeshId == 'http://www.roblox.com/asset/?id=553602987') then | |
906 | v.Size = Vector3.new(1,1,1) | |
907 | end | |
908 | end | |
909 | if part1:FindFirstChildOfClass('Motor6D') then | |
910 | part1:FindFirstChildOfClass('Motor6D'):Remove() | |
911 | end | |
912 | if attachmentName ~= "NeckAttachment" then | |
913 | attachmentName = attachmentName.."RigAttachment" | |
914 | end | |
915 | local constraint = Instance.new(className.."Constraint") | |
916 | constraint.Attachment0 = part0:FindFirstChild(attachmentName) | |
917 | constraint.Attachment1 = part1:FindFirstChild(attachmentName) | |
918 | constraint.Name = "RagdollConstraint"..part1.Name | |
919 | if Character:FindFirstChildOfClass('Humanoid').Health > 0 then | |
920 | local collidepart = Instance.new('Part',part1) | |
921 | collidepart.Size = part1.Size/2 | |
922 | if string.find(string.lower(part1.Name),"upper") then | |
923 | if string.find(string.lower(part1.Name),"leg") then | |
924 | collidepart.Size = part1.Size/3 | |
925 | else | |
926 | collidepart.Size = part1.Size/2.5 | |
927 | end | |
928 | end | |
929 | collidepart.CanCollide = true | |
930 | collidepart.Name = "RagdollJoint" | |
931 | collidepart.Anchored = false | |
932 | collidepart.Transparency = 1 | |
933 | collidepart.CFrame = part1.CFrame | |
934 | collidepart:BreakJoints() | |
935 | local attachment0 = Instance.new('Attachment',part1) | |
936 | local attachment1 = Instance.new('Attachment',collidepart) | |
937 | if attachment0 and attachment1 then | |
938 | local constraint = Instance.new("HingeConstraint") | |
939 | constraint.Attachment0 = attachment0 | |
940 | constraint.Attachment1 = attachment1 | |
941 | constraint.LimitsEnabled = true | |
942 | constraint.UpperAngle = 0 | |
943 | constraint.LowerAngle = 0 | |
944 | constraint.Parent = Character | |
945 | end | |
946 | if string.find(string.lower(part1.Name),"upper") then | |
947 | if string.find(string.lower(part1.Name),"leg") then | |
948 | attachment0.Position = Vector3.new(0,0.01,0) | |
949 | else | |
950 | attachment0.Position = Vector3.new(0,0.25,0) | |
951 | end | |
952 | else | |
953 | attachment0.Position = Vector3.new(0,-0.1,0) | |
954 | end | |
955 | end | |
956 | for _,propertyData in next,properties or {} do | |
957 | constraint[propertyData[1]] = propertyData[2] | |
958 | end | |
959 | constraint.Parent = Character | |
960 | return constraint | |
961 | end | |
962 | end | |
963 | ||
964 | ||
965 | function getAttachment0(Character,attachmentName) | |
966 | for _,child in next,Character:children() do | |
967 | local attachment = child:FindFirstChild(attachmentName) | |
968 | if attachment then | |
969 | return attachment | |
970 | end | |
971 | end | |
972 | end | |
973 | ||
974 | ||
975 | function Ragdoll(who,half,snapped) | |
976 | pcall(function() | |
977 | who:breakJoints() | |
978 | local who = who | |
979 | local hhh = who:FindFirstChildOfClass'Humanoid' | |
980 | local t = GetTorso(who) | |
981 | pcall(function() | |
982 | who.HumanoidRootPart:destroy() | |
983 | end) | |
984 | hhh.Health = 0 | |
985 | Stunned[who] = true | |
986 | if(hhh.RigType == Enum.HumanoidRigType.R6)then | |
987 | local RA,LA,RL,LL,HD = who:FindFirstChild'Right Arm',who:FindFirstChild'Left Arm',who:FindFirstChild'Right Leg',who:FindFirstChild'Left Leg',who:FindFirstChild'Head' | |
988 | pcall(function() | |
989 | if(hhh.Health > 0)then local CollideRA = NewInstance('Part',who,{Size=RA.Size/1.5,Anchored=false,Transparency=1,Name='Collision'}) | |
990 | FakeWeld(RA,CollideRA) end | |
991 | local RAJ = NewInstance("Attachment",t,{Position=V3.N(1.5,.5,0),Orientation=V3.N()}) | |
992 | local RAJ2 = NewInstance("Attachment",RA,{Position=V3.N(0,.5,0),Orientation=V3.N()}) | |
993 | local RAC = NewInstance('BallSocketConstraint',t,{Radius=.15,LimitsEnabled=true,Enabled=true,Restitution=0,UpperAngle=90,Attachment0=RAJ,Attachment1=RAJ2}) | |
994 | end) | |
995 | pcall(function() | |
996 | local LAJ = NewInstance("Attachment",t,{Position=V3.N(-1.5,.5,0),Orientation=V3.N()}) | |
997 | local LAJ2 = NewInstance("Attachment",LA,{Position=V3.N(0,.5,0),Orientation=V3.N()}) | |
998 | ||
999 | local LAC = NewInstance('BallSocketConstraint',t,{Radius=.15,LimitsEnabled=true,Enabled=true,Restitution=0,UpperAngle=90,Attachment0=LAJ,Attachment1=LAJ2}) | |
1000 | ||
1001 | if(hhh.Health > 0)then local CollideLA = NewInstance('Part',who,{Size=LA.Size/1.5,Anchored=false,Transparency=1,Name='Collision'}) | |
1002 | FakeWeld(LA,CollideLA) end | |
1003 | end) | |
1004 | pcall(function() | |
1005 | if(HD)then | |
1006 | local NJ = NewInstance('Attachment',t,{Position=V3.N(0,1,0),Orientation=V3.N()}) | |
1007 | local NJ2 = NewInstance('Attachment',HD,{Position=V3.N(0,-.5,0),Orientation=V3.N()}) | |
1008 | local NJ3 = NewInstance('Attachment',HD,{Position=V3.N(0,.5,0),Orientation=V3.N()}) | |
1009 | local HC = NewInstance('HingeConstraint',t,{LimitsEnabled=true,UpperAngle=50,LowerAngle=-50,Attachment0=NJ,Attachment1=NJ2}) | |
1010 | ||
1011 | if(snapped)then | |
1012 | NJ.Orientation = V3.N(0,90,0) | |
1013 | end | |
1014 | if(hhh.Health > 0)then | |
1015 | local CollideHD = NewInstance('Part',who,{Size=HD.Size/1.5,Anchored=false,Transparency=1,Name='Collision'}) | |
1016 | FakeWeld(HD,CollideHD) | |
1017 | end | |
1018 | end | |
1019 | end) | |
1020 | if(not half)then | |
1021 | local RLJ = NewInstance("Attachment",t,{Position=V3.N(.5,-1,0),Orientation=V3.N()}) | |
1022 | local RLJ2 = NewInstance("Attachment",RL,{Position=V3.N(0,1,0),Orientation=V3.N()}) | |
1023 | local LLJ = NewInstance("Attachment",t,{Position=V3.N(-.5,-1,0),Orientation=V3.N()}) | |
1024 | local LLJ2 = NewInstance("Attachment",LL,{Position=V3.N(0,1,0),Orientation=V3.N()}) | |
1025 | local RLC = NewInstance('BallSocketConstraint',t,{Radius=.15,LimitsEnabled=true,Enabled=true,Restitution=0,UpperAngle=90,Attachment0=RLJ,Attachment1=RLJ2}) | |
1026 | local LLC = NewInstance('BallSocketConstraint',t,{Radius=.15,LimitsEnabled=true,Enabled=true,Restitution=0,UpperAngle=90,Attachment0=LLJ,Attachment1=LLJ2}) | |
1027 | if(hhh.Health > 0)then local CollideRL = NewInstance('Part',who,{Size=RL.Size/1.5,Anchored=false,Transparency=1,Name='Collision'}) | |
1028 | local CollideLL = NewInstance('Part',who,{Size=LL.Size/1.5,Anchored=false,Transparency=1,Name='Collision'}) | |
1029 | ||
1030 | FakeWeld(RL,CollideRL) | |
1031 | FakeWeld(LL,CollideLL) end | |
1032 | end | |
1033 | for _,v in next, who:children() do | |
1034 | if(v:IsA'BasePart')then | |
1035 | v.CanCollide = true | |
1036 | end | |
1037 | end | |
1038 | else | |
1039 | local Character = who | |
1040 | ||
1041 | if(half)then | |
1042 | pcall(function() | |
1043 | Character.UpperTorso.WaistRigAttachment:Destroy() | |
1044 | end) | |
1045 | end | |
1046 | ||
1047 | local handProperties = { | |
1048 | {"LimitsEnabled", true}; | |
1049 | {"UpperAngle",0}; | |
1050 | {"LowerAngle",0}; | |
1051 | } | |
1052 | local footProperties = { | |
1053 | {"LimitsEnabled", true}; | |
1054 | {"UpperAngle", 15}; | |
1055 | {"LowerAngle", -45}; | |
1056 | } | |
1057 | local shinProperties = { | |
1058 | {"LimitsEnabled", true}; | |
1059 | {"UpperAngle", 0}; | |
1060 | {"LowerAngle", -75}; | |
1061 | } | |
1062 | if Character:FindFirstChild('RightLowerArm') and Character:FindFirstChild('RightHand') then | |
1063 | ragdollJoint(Character,Character.RightLowerArm, Character.RightHand, "RightWrist", "Hinge", handProperties) | |
1064 | end | |
1065 | if Character:FindFirstChild('UpperTorso') and Character:FindFirstChild('RightUpperArm') then | |
1066 | ragdollJoint(Character, Character.UpperTorso, Character["RightUpperArm"], "RightShoulder", "BallSocket") | |
1067 | end | |
1068 | if Character:FindFirstChild('RightUpperArm') and Character:FindFirstChild('RightLowerArm') then | |
1069 | ragdollJoint(Character, Character.RightUpperArm, Character.RightLowerArm, "RightElbow", "BallSocket") | |
1070 | end | |
1071 | if Character:FindFirstChild('LeftLowerArm') and Character:FindFirstChild('LeftHand') then | |
1072 | ragdollJoint(Character,Character.LeftLowerArm, Character.LeftHand, "LeftWrist", "Hinge", handProperties) | |
1073 | end | |
1074 | if Character:FindFirstChild('UpperTorso') and Character:FindFirstChild('LeftUpperArm') then | |
1075 | ragdollJoint(Character, Character.UpperTorso, Character["LeftUpperArm"], "LeftShoulder", "BallSocket") | |
1076 | end | |
1077 | if Character:FindFirstChild('LeftUpperArm') and Character:FindFirstChild('LeftLowerArm') then | |
1078 | ragdollJoint(Character, Character.LeftUpperArm, Character.LeftLowerArm, "LeftElbow", "BallSocket") | |
1079 | end | |
1080 | if Character:FindFirstChild('RightUpperLeg') and Character:FindFirstChild('RightLowerLeg') then | |
1081 | ragdollJoint(Character,Character.RightUpperLeg, Character.RightLowerLeg, "RightKnee", "Hinge", shinProperties) | |
1082 | end | |
1083 | if Character:FindFirstChild('RightLowerLeg') and Character:FindFirstChild('RightFoot') then | |
1084 | ragdollJoint(Character,Character.RightLowerLeg, Character.RightFoot, "RightAnkle", "Hinge", footProperties) | |
1085 | end | |
1086 | if Character:FindFirstChild('LowerTorso') and Character:FindFirstChild('RightUpperLeg') then | |
1087 | ragdollJoint(Character,Character.LowerTorso, Character.RightUpperLeg, "RightHip", "BallSocket") | |
1088 | end | |
1089 | if Character:FindFirstChild('LeftUpperLeg') and Character:FindFirstChild('LeftLowerLeg') then | |
1090 | ragdollJoint(Character,Character.LeftUpperLeg, Character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties) | |
1091 | end | |
1092 | if Character:FindFirstChild('LeftLowerLeg') and Character:FindFirstChild('LeftFoot') then | |
1093 | ragdollJoint(Character,Character.LeftLowerLeg, Character.LeftFoot, "LeftAnkle", "Hinge", footProperties) | |
1094 | end | |
1095 | if Character:FindFirstChild('LowerTorso') and Character:FindFirstChild('LeftUpperLeg') then | |
1096 | ragdollJoint(Character,Character.LowerTorso, Character.LeftUpperLeg, "LeftHip", "BallSocket") | |
1097 | end | |
1098 | if Character:FindFirstChild('UpperTorso') and Character:FindFirstChild('LowerTorso') then | |
1099 | ragdollJoint(Character,Character.LowerTorso, Character.UpperTorso, "Waist", "BallSocket", { | |
1100 | {"LimitsEnabled",true}; | |
1101 | {"UpperAngle",5}; | |
1102 | {"Radius",5}; | |
1103 | }) | |
1104 | end | |
1105 | if Character:FindFirstChild('UpperTorso') and Character:FindFirstChild('Head') then | |
1106 | ragdollJoint(Character,Character.UpperTorso, Character.Head, "Neck", "Hinge", { | |
1107 | {"LimitsEnabled",true}; | |
1108 | {"UpperAngle",50}; | |
1109 | {"LowerAngle",-50}; | |
1110 | }) | |
1111 | end | |
1112 | local NeckA = ragdollJoint(Character,Character.UpperTorso, Character.Head, "Neck", "Hinge", { | |
1113 | {"LimitsEnabled",true}; | |
1114 | {"UpperAngle",50}; | |
1115 | {"LowerAngle",-50}; | |
1116 | }) | |
1117 | ||
1118 | recurse(Character, function(_,v) | |
1119 | if v:IsA("Attachment") then | |
1120 | v.Axis = Vector3.new(0, 1, 0) | |
1121 | v.SecondaryAxis = Vector3.new(0, 0, 1) | |
1122 | v.Rotation = Vector3.new(0, 0, 0) | |
1123 | if(v.Parent == Character.Head and snapped)then | |
1124 | v.Orientation = V3.N(0,-90,0) | |
1125 | end | |
1126 | end | |
1127 | end) | |
1128 | end | |
1129 | end) | |
1130 | end | |
1131 | ||
1132 | ||
1133 | function Bezier(startpos, pos2, pos3, endpos, t) | |
1134 | local A = startpos:lerp(pos2, t) | |
1135 | local B = pos2:lerp(pos3, t) | |
1136 | local C = pos3:lerp(endpos, t) | |
1137 | local lerp1 = A:lerp(B, t) | |
1138 | local lerp2 = B:lerp(C, t) | |
1139 | local cubic = lerp1:lerp(lerp2, t) | |
1140 | return cubic | |
1141 | end | |
1142 | ||
1143 | function Effect(data) | |
1144 | local FX = data.Effect or 'Resize-AndFade' | |
1145 | local Parent = data.Parent or Effects | |
1146 | local Color = data.Color or C3.N(0,0,0) | |
1147 | local Size = data.Size or V3.N(1,1,1) | |
1148 | local MoveDir = data.MoveDirection or nil | |
1149 | local MeshData = data.Mesh or nil | |
1150 | local SndData = data.Sound or nil | |
1151 | local Frames = data.Frames or 45 | |
1152 | local Manual = data.Manual or nil | |
1153 | local Material = data.Material or nil | |
1154 | local CFra = data.CFrame or Torso.CFrame | |
1155 | local Settings = data.FXSettings or {} | |
1156 | local Snd,Prt,Msh; | |
1157 | if(Manual and typeof(Manual) == 'Instance' and Manual:IsA'BasePart')then | |
1158 | Prt = Manual | |
1159 | else | |
1160 | Prt = Part(Parent,Color,Material,Size,CFra,true,false) | |
1161 | end | |
1162 | if(typeof(MeshData) == 'table')then | |
1163 | Msh = Mesh(Prt,MeshData.MeshType,MeshData.MeshId,MeshData.TextureId,MeshData.Scale,MeshData.Offset) | |
1164 | elseif(typeof(MeshData) == 'Instance')then | |
1165 | Msh = MeshData:Clone() | |
1166 | Msh.Parent = Prt | |
1167 | end | |
1168 | if(typeof(SndData) == 'table' or typeof(SndData) == 'Instance')then | |
1169 | Snd = Sound(Prt,SndData.SoundId,SndData.Pitch,SndData.Volume,false,false,true) | |
1170 | end | |
1171 | if(Snd)then | |
1172 | repeat wait() until Snd.Playing and Snd.IsLoaded and Snd.TimeLength > 0 | |
1173 | Frames = Snd.TimeLength * Frame_Speed/Snd.Pitch | |
1174 | end | |
1175 | local MoveSpeed = nil; | |
1176 | if(MoveDir)then | |
1177 | MoveSpeed = (CFra.p - MoveDir).magnitude/Frames | |
1178 | end | |
1179 | local Inc = M.RNG()-M.RNG() | |
1180 | local Thingie = 0 | |
1181 | local Thingie2 = M.RNG(50,100)/100 | |
1182 | ||
1183 | coroutine.wrap(function() | |
1184 | if(FX ~= 'Arc')then | |
1185 | for i = 1, Frames do | |
1186 | if(FX == 'Resize-AndFade')then | |
1187 | if(not Settings.EndSize)then | |
1188 | Settings.EndSize = V3.N(0,0,0) | |
1189 | end | |
1190 | local grow = (typeof(Settings.EndSize) == 'Vector3' and Settings.EndSize-Size or typeof(Settings.EndSize) == 'number' and V3.N(Settings.EndSize)) | |
1191 | if(Settings.EndIsIncrement)then | |
1192 | Prt.Size = Prt.Size - Settings.EndSize | |
1193 | else | |
1194 | Prt.Size = Prt.Size - grow/Frames | |
1195 | end | |
1196 | Prt.Transparency = (i/Frames) | |
1197 | elseif(FX == 'Resize+AndFade')then | |
1198 | if(not Settings.EndSize)then | |
1199 | Settings.EndSize = Size*2 | |
1200 | end | |
1201 | local grow = (typeof(Settings.EndSize) == 'Vector3' and Settings.EndSize-Size or typeof(Settings.EndSize) == 'number' and V3.N(Settings.EndSize)) | |
1202 | if(Settings.EndIsIncrement)then | |
1203 | Prt.Size = Prt.Size + Settings.EndSize | |
1204 | else | |
1205 | Prt.Size = Prt.Size + grow/Frames | |
1206 | end | |
1207 | Prt.Transparency = (i/Frames) | |
1208 | elseif(FX == 'Fade')then | |
1209 | Prt.Transparency = (i/Frames) | |
1210 | end | |
1211 | if(Settings.RandomizeCFrame)then | |
1212 | Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360)) | |
1213 | end | |
1214 | if(MoveDir and MoveSpeed)then | |
1215 | local Orientation = Prt.Orientation | |
1216 | Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed) | |
1217 | Prt.Orientation = Orientation | |
1218 | end | |
1219 | if(swait and typeof(swait) == 'function')then | |
1220 | swait() | |
1221 | else | |
1222 | wait() | |
1223 | end | |
1224 | end | |
1225 | Prt:destroy() | |
1226 | else | |
1227 | local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End | |
1228 | if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end | |
1229 | local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25)) | |
1230 | local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25)) | |
1231 | assert(start ~= nil,"You need to specify a start point!") | |
1232 | assert(endP ~= nil,"You need to specify an end point!") | |
1233 | for i = 0, 1, Settings.Speed or 0.01 do | |
1234 | if(Settings.Home)then | |
1235 | endP = Settings.Home.CFrame | |
1236 | end | |
1237 | Prt.CFrame = Bezier(start, quarter, threequarter, endP, i) | |
1238 | if(swait and typeof(swait) == 'function')then | |
1239 | swait() | |
1240 | else | |
1241 | wait() | |
1242 | end | |
1243 | end | |
1244 | if(Settings.RemoveOnGoal)then | |
1245 | Prt:destroy() | |
1246 | end | |
1247 | end | |
1248 | end)() | |
1249 | return Prt,Msh,Snd | |
1250 | end | |
1251 | ||
1252 | ||
1253 | function SoulSteal(Character) | |
1254 | local torso = (Character:FindFirstChild'Head' or Character:FindFirstChild'Torso' or Character:FindFirstChild'UpperTorso' or Character:FindFirstChild'LowerTorso' or Character:FindFirstChild'HumanoidRootPart') | |
1255 | print(torso) | |
1256 | if(torso and torso:IsA'BasePart')then | |
1257 | local Model = Instance.new("Model",Effects) | |
1258 | Model.Name = Character.Name.."'s Soul" | |
1259 | Character:BreakJoints() | |
1260 | local Soul = Part(Model,BrickColor.new'Carnation pink','Glass',V3.N(.5,.5,.5),torso.CFrame,true,false) | |
1261 | Soul.Name = 'Head' | |
1262 | NewInstance("Humanoid",Model,{Health=0,MaxHealth=0}) | |
1263 | Effect{ | |
1264 | Effect="Arc", | |
1265 | Manual = Soul, | |
1266 | FXSettings={ | |
1267 | Start=torso.CFrame, | |
1268 | Home = Torso, | |
1269 | RemoveOnGoal = true, | |
1270 | } | |
1271 | } | |
1272 | local lastPoint = Soul.CFrame.p | |
1273 | ||
1274 | for i = 0, 1, 0.01 do | |
1275 | local point = CFrame.new(lastPoint, Soul.Position) * CFrame.Angles(-math.pi/2, 0, 0) | |
1276 | local mag = (lastPoint - Soul.Position).magnitude | |
1277 | Effect{ | |
1278 | Effect = "Fade", | |
1279 | CFrame = point * CF.N(0, mag/2, 0), | |
1280 | Size = V3.N(.5,mag+.5,.5), | |
1281 | Color = Soul.BrickColor | |
1282 | } | |
1283 | lastPoint = Soul.CFrame.p | |
1284 | swait() | |
1285 | end | |
1286 | for i = 1, 5 do | |
1287 | Effect{ | |
1288 | Effect="Fade", | |
1289 | Color = BrickColor.new'Carnation pink', | |
1290 | MoveDirection = (Torso.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p | |
1291 | } | |
1292 | end | |
1293 | end | |
1294 | end | |
1295 | ||
1296 | --// Other Functions \\ -- | |
1297 | ||
1298 | function getRegion(point,range,ignore) | |
1299 | return workspace:FindPartsInRegion3WithIgnoreList(R3.N(point-V3.N(1,1,1)*range/2,point+V3.N(1,1,1)*range/2),ignore,100) | |
1300 | end | |
1301 | ||
1302 | function clerp(startCF,endCF,alpha) | |
1303 | return startCF:lerp(endCF, alpha) | |
1304 | end | |
1305 | ||
1306 | function GetTorso(Char) | |
1307 | return Char:FindFirstChild'Torso' or Char:FindFirstChild'UpperTorso' | |
1308 | end | |
1309 | ||
1310 | ||
1311 | ||
1312 | function ShowDamage(Pos, Text, Time, Color) | |
1313 | coroutine.wrap(function() | |
1314 | local Rate = (1 / 30) | |
1315 | local Pos = Head | |
1316 | local Text = (Text or ".Char Deleted") | |
1317 | local Time = (Time or 2) | |
1318 | local Color = (Color or Color3.new(1, 0, 1)) | |
1319 | local EffectPart = NewInstance("Part",Effects,{ | |
1320 | Material=Enum.Material.SmoothPlastic, | |
1321 | RArmlectance = 0, | |
1322 | Transparency = 0, | |
1323 | BrickColor = BrickColor.new(Color), | |
1324 | Name = "Effect", | |
1325 | Size = Vector3.new(1,1,1), | |
1326 | Anchored = true | |
1327 | }) | |
1328 | local BillboardGui = NewInstance("BillboardGui",EffectPart,{ | |
1329 | Size = UDim2.new(1.25, 0, 1.25, 0), | |
1330 | Adornee = EffectPart, | |
1331 | }) | |
1332 | local TextLabel = NewInstance("TextLabel",BillboardGui,{ | |
1333 | BackgroundTransparency = 1, | |
1334 | Size = UDim2.new(1, 0, 1, 0), | |
1335 | Text = Text, | |
1336 | Font = "Arial", | |
1337 | TextColor3 = Color3.new(255,102,200), | |
1338 | TextStrokeColor3 = Color3.new(200,200,200), | |
1339 | TextStrokeTransparency=0, | |
1340 | TextScaled = true, | |
1341 | }) | |
1342 | game.Debris:AddItem(EffectPart, (Time)) | |
1343 | EffectPart.Parent = game:GetService("Workspace") | |
1344 | delay(0, function() | |
1345 | local Frames = (Time / Rate) | |
1346 | for Frame = 1, Frames do | |
1347 | wait(Rate) | |
1348 | local Percent = (Frame / Frames) | |
1349 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
1350 | TextLabel.TextTransparency = Percent | |
1351 | TextLabel.TextStrokeTransparency = Percent | |
1352 | end | |
1353 | if EffectPart and EffectPart.Parent then | |
1354 | EffectPart:Destroy() | |
1355 | end | |
1356 | end) end)() | |
1357 | end | |
1358 | ||
1359 | ||
1360 | function DealDamage(who,minDam,maxDam,Knock,Type,critChance,critMult) | |
1361 | if(who)then | |
1362 | local hum = who:FindFirstChildOfClass'Humanoid' | |
1363 | local Damage = M.RNG(minDam,maxDam) | |
1364 | local canHit = true | |
1365 | if(hum)then | |
1366 | for _, p in pairs(Hit) do | |
1367 | if p[1] == hum then | |
1368 | if(time() - p[2] < 0.1) then | |
1369 | canHit = false | |
1370 | else | |
1371 | Hit[_] = nil | |
1372 | end | |
1373 | end | |
1374 | end | |
1375 | if(canHit)then | |
1376 | if(hum.Health >= math.huge)then | |
1377 | who:BreakJoints() | |
1378 | if(who:FindFirstChild'Head' and hum.Health > 0)then | |
1379 | ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)), "INSTANT", 1.5, C3.N(1,0,0)) | |
1380 | end | |
1381 | else | |
1382 | local player = S.Players:GetPlayerFromCharacter(who) | |
1383 | if(Type == "Fire")then | |
1384 | --idk.. | |
1385 | else | |
1386 | local c = Instance.new("ObjectValue",hum) | |
1387 | c.Name = "creator" | |
1388 | c.Value = Plr | |
1389 | game:service'Debris':AddItem(c,0.35) | |
1390 | if(M.RNG(1,100) <= (critChance or 0))then | |
1391 | if(who:FindFirstChild'Head' and hum.Health > 0)then | |
1392 | ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)), "[CRIT] "..Damage*(critMult or 2), 1.5, BrickColor.new'New Yeller'.Color) | |
1393 | end | |
1394 | hum.Health = hum.Health - Damage*(critMult or 2) | |
1395 | else | |
1396 | if(who:FindFirstChild'Head' and hum.Health > 0)then | |
1397 | ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)), Damage, 1.5, DamageColor.Color) | |
1398 | end | |
1399 | hum.Health = hum.Health - Damage | |
1400 | end | |
1401 | if(Type == 'Knockback' and GetTorso(who))then | |
1402 | local angle = GetTorso(who).Position - Root.Position + Vector3.new(0, 0, 0).unit | |
1403 | local body = NewInstance('BodyVelocity',GetTorso(who),{ | |
1404 | P = 500, | |
1405 | maxForce = V3.N(math.huge,0,math.huge), | |
1406 | velocity = Root.CFrame.lookVector * Knock + Root.Velocity / 1.05 | |
1407 | }) | |
1408 | game:service'Debris':AddItem(body,.5) | |
1409 | elseif(Type == 'Knockdown' and GetTorso(who))then | |
1410 | local rek = GetTorso(who) | |
1411 | print(rek) | |
1412 | hum.PlatformStand = true | |
1413 | delay(1,function() | |
1414 | hum.PlatformStand = false | |
1415 | end) | |
1416 | local angle = (GetTorso(who).Position - (Root.Position + Vector3.new(0, 0, 0))).unit | |
1417 | local bodvol = NewInstance("BodyVelocity",rek,{ | |
1418 | velocity = angle * Knock, | |
1419 | P = 5000, | |
1420 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
1421 | }) | |
1422 | local rl = NewInstance("BodyAngularVelocity",rek,{ | |
1423 | P = 3000, | |
1424 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
1425 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
1426 | }) | |
1427 | game:GetService("Debris"):AddItem(bodvol, .5) | |
1428 | game:GetService("Debris"):AddItem(rl, .5) | |
1429 | end | |
1430 | end | |
1431 | end | |
1432 | end | |
1433 | table.insert(Hit,{hum,time()}) | |
1434 | end | |
1435 | end | |
1436 | end | |
1437 | ||
1438 | function AOEDamage(where,range,minDam,maxDam,Knock,Type) | |
1439 | for _,v in next, getRegion(where,range,{Char}) do | |
1440 | if(v.Parent and v.Parent:FindFirstChildOfClass'Humanoid')then | |
1441 | DealDamage(v.Parent,minDam,maxDam,Knock,Type) | |
1442 | end | |
1443 | end | |
1444 | end | |
1445 | ||
1446 | function AOEFunction(where,range,callback) | |
1447 | for _,v in next, getRegion(where,range,{Char}) do | |
1448 | if(v.Parent and v.Parent:FindFirstChildOfClass'Humanoid')then | |
1449 | callback(v.Parent) | |
1450 | end | |
1451 | end | |
1452 | end | |
1453 | ||
1454 | function ClosestHumanoid(pos,range) | |
1455 | local mag,closest = math.huge; | |
1456 | for _,v in next, getRegion(pos,range or 10,{Char}) do | |
1457 | local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid') | |
1458 | if((v.CFrame.p-pos).magnitude < mag and hum and closest ~= hum and hum.Health > 0)then | |
1459 | mag = (v.CFrame.p-pos).magnitude | |
1460 | closest = hum | |
1461 | end | |
1462 | end | |
1463 | return closest,(closest and GetTorso(closest.Parent) or nil) | |
1464 | end | |
1465 | ||
1466 | function AOEHeal(where,range,amount) | |
1467 | local healed = {} | |
1468 | for _,v in next, getRegion(where,range,{Char}) do | |
1469 | local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' or nil) | |
1470 | if(hum and not healed[hum])then | |
1471 | hum.Health = hum.Health + amount | |
1472 | if(v.Parent:FindFirstChild'Head' and hum.Health > 0)then | |
1473 | 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'Carnation pink'.Color) | |
1474 | end | |
1475 | end | |
1476 | end | |
1477 | end | |
1478 | local BODY = {} | |
1479 | for _, c in pairs(Char:GetDescendants()) do | |
1480 | if c:IsA("BasePart") and c.Name ~= "Handle" then | |
1481 | if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RArm and c ~= LArm and c ~= RLeg and c ~= LLeg then | |
1482 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1483 | end | |
1484 | table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency,c.Size,c.Name}) | |
1485 | elseif c:IsA("JointInstance") then | |
1486 | table.insert(BODY,{c,c.Parent,nil,nil,nil,nil,nil}) | |
1487 | end | |
1488 | end | |
1489 | function refit() | |
1490 | Char.Parent = workspace | |
1491 | for e = 1, #BODY do | |
1492 | if BODY[e] ~= nil then | |
1493 | local STUFF = BODY[e] | |
1494 | local PART = STUFF[1] | |
1495 | local PARENT = STUFF[2] | |
1496 | local MATERIAL = STUFF[3] | |
1497 | local COLOR = STUFF[4] | |
1498 | local TRANSPARENCY = STUFF[5] | |
1499 | --local SIZE = STUFF[6] | |
1500 | local NAME = STUFF[7] | |
1501 | if PART.ClassName == "Part" and PART ~= RootPart then | |
1502 | PART.Material = MATERIAL | |
1503 | PART.Transparency = TRANSPARENCY | |
1504 | PART.Name = NAME | |
1505 | end | |
1506 | if PART.Parent ~= PARENT then | |
1507 | Humanoid:remove() | |
1508 | PART.Parent = PARENT | |
1509 | Humanoid = Instance.new("Humanoid",Char) | |
1510 | end | |
1511 | end | |
1512 | end | |
1513 | end | |
1514 | ||
1515 | Humanoid.Died:connect(function() | |
1516 | refit() | |
1517 | end) | |
1518 | --// Attack Function \\-- | |
1519 | function Color1() | |
1520 | chaosmode = false | |
1521 | local Glitch = false | |
1522 | Music.Playing = false | |
1523 | Moosic.Playing = false | |
1524 | Music1.Playing = false | |
1525 | Music2.Playing = true | |
1526 | Music3.Playing = false | |
1527 | Music4.Playing = false | |
1528 | Music5.Playing = false | |
1529 | Music6.Playing = false | |
1530 | Creep.Playing = false | |
1531 | tecks2.Text = "G̶a̶n̵g̵ ̸Mo̶/n̸i̸k̵a̸" | |
1532 | tecks2.TextStrokeColor3 = Color3.new(0,0,1) | |
1533 | for i, v in pairs(Char.CyborgArm:GetChildren()) do | |
1534 | if v:IsA("Part") then | |
1535 | v.BrickColor = BrickColor.new("Really blue") | |
1536 | v.Material = "Neon" | |
1537 | end | |
1538 | end | |
1539 | end | |
1540 | function smile() | |
1541 | chaosmode = false | |
1542 | local Glitch = false | |
1543 | Music.Playing = false | |
1544 | Moosic.Playing = false | |
1545 | Music1.Playing = true | |
1546 | Music2.Playing = false | |
1547 | Music3.Playing = false | |
1548 | Music4.Playing = false | |
1549 | Music5.Playing = false | |
1550 | Music6.Playing = false | |
1551 | Creep.Playing = false | |
1552 | tecks2.Text = ":)" | |
1553 | tecks2.TextStrokeColor3 = Color3.new(.1,.1,.1) | |
1554 | for i, v in pairs(Char.CyborgArm:GetChildren()) do | |
1555 | if v:IsA("Part") then | |
1556 | v.BrickColor = BrickColor.new("Really black") | |
1557 | v.Material = "Neon" | |
1558 | game.Lighting.OutdoorAmbient = Color3.new(.5,0,0) | |
1559 | game.Lighting.TimeOfDay = "05:00:00" | |
1560 | game.Lighting.FogColor = Color3.new(0,0,0) | |
1561 | game.Lighting.FogEnd = 1200 | |
1562 | end | |
1563 | end | |
1564 | end | |
1565 | function Normal() | |
1566 | chaosmode = false | |
1567 | local Glitch = false | |
1568 | Music.Playing = true | |
1569 | Moosic.Playing = false | |
1570 | Music1.Playing = false | |
1571 | Music2.Playing = false | |
1572 | Music3.Playing = false | |
1573 | Music4.Playing = false | |
1574 | Music5.Playing = false | |
1575 | Music6.Playing = false | |
1576 | Creep.Playing = false | |
1577 | tecks2.Text = "C̸o̶r̵r̵u̷p̶t̶e̸d̸ ̵M̸o̸n̶/i̸k̷a̴" | |
1578 | tecks2.TextStrokeColor3 = Color3.new(1,0,1) | |
1579 | for i, v in pairs(Char.CyborgArm:GetChildren()) do | |
1580 | if v:IsA("Part") then | |
1581 | v.BrickColor = BrickColor.new("Hot pink") | |
1582 | v.Material = "Neon" | |
1583 | end | |
1584 | end | |
1585 | end | |
1586 | ||
1587 | function BenCreep() | |
1588 | chaosmode = false | |
1589 | local Glitch = false | |
1590 | Music.Playing = false | |
1591 | Moosic.Playing = false | |
1592 | Music1.Playing = false | |
1593 | Music2.Playing = false | |
1594 | Music3.Playing = false | |
1595 | Music4.Playing = false | |
1596 | Music5.Playing = false | |
1597 | Music6.Playing = false | |
1598 | Creep.Playing = true | |
1599 | tecks2.Text = "B̴r̵o̴k̴e̷n̴ ̶H̵e̸a̵r̵t̵h̷" | |
1600 | tecks2.TextStrokeColor3 = Color3.new(0.9,0,0) | |
1601 | local sky = Instance.new('Sky', game:GetService'Lighting') | |
1602 | sky.SkyboxBk = "rbxassetid://159454299" | |
1603 | sky.SkyboxDn = "rbxassetid://159454296" | |
1604 | sky.SkyboxFt = "rbxassetid://159454293" | |
1605 | sky.SkyboxLf = "rbxassetid://159454286" | |
1606 | sky.SkyboxRt = "rbxassetid://159454300" | |
1607 | sky.SkyboxUp = "rbxassetid://166574066" | |
1608 | game.Lighting.OutdoorAmbient = Color3.new(0,0,0) | |
1609 | game.Lighting.TimeOfDay = "05:00:00" | |
1610 | game.Lighting.FogColor = Color3.new(0,0,0) | |
1611 | game.Lighting.FogEnd = 800 | |
1612 | ||
1613 | for i, v in pairs(Char.CyborgArm:GetChildren()) do | |
1614 | if v:IsA("Part") then | |
1615 | v.BrickColor = BrickColor.new("Dark stone grey") | |
1616 | v.Material = "Neon" | |
1617 | end | |
1618 | end | |
1619 | end | |
1620 | function TimeTrials() | |
1621 | local Glitch = false | |
1622 | Music.Playing = false | |
1623 | Moosic.Playing = false | |
1624 | Music1.Playing = false | |
1625 | Music2.Playing = false | |
1626 | Music3.Playing = false | |
1627 | Music4.Playing = true | |
1628 | Music5.Playing = false | |
1629 | Music6.Playing = false | |
1630 | Creep.Playing = false | |
1631 | chaosmode = true | |
1632 | tecks2.Text = "J̶u̸s̸t̵ ̵M̸o̵-n̸i̵k̵a̶" | |
1633 | tecks2.TextStrokeColor3 = Color3.new(1,0,0) | |
1634 | ||
1635 | coroutine.resume(coroutine.create(function() | |
1636 | while true do | |
1637 | swait(2) | |
1638 | if chaosmode == true then | |
1639 | tecks2.TextStrokeColor3 = BrickColor.random().Color | |
1640 | for i, v in pairs(Char.CyborgArm:GetChildren()) do | |
1641 | if v:IsA("Part") then | |
1642 | v.BrickColor = BrickColor.random() | |
1643 | end | |
1644 | end | |
1645 | end | |
1646 | end | |
1647 | end)) | |
1648 | end | |
1649 | function Color4() | |
1650 | chaosmode = false | |
1651 | local Glitch = false | |
1652 | Music.Playing = false | |
1653 | Moosic.Playing = false | |
1654 | Music1.Playing = false | |
1655 | Music2.Playing = false | |
1656 | Music3.Playing = false | |
1657 | Music4.Playing = false | |
1658 | Music5.Playing = true | |
1659 | Music6.Playing = false | |
1660 | Creep.Playing = false | |
1661 | tecks2.Text = "Good Night" | |
1662 | tecks2.TextStrokeColor3 = Color3.new(0,1,1) | |
1663 | for i, v in pairs(Char.CyborgArm:GetChildren()) do | |
1664 | if v:IsA("Part") then | |
1665 | v.BrickColor = BrickColor.new("Toothpaste") | |
1666 | v.Material = "Neon" | |
1667 | end | |
1668 | end | |
1669 | end | |
1670 | function Glitch() | |
1671 | chaosmode = false | |
1672 | local Glitch = false | |
1673 | Music.Playing = false | |
1674 | Creep.Playing = false | |
1675 | tecks2.Text = "W̶a̵n̵n̶a̷ ̶p̸l̶a̵y̷?̸" | |
1676 | tecks2.TextStrokeColor3 = Color3.new(1,1,0) | |
1677 | for i, v in pairs(Char.CyborgArm:GetChildren()) do | |
1678 | if v:IsA("Part") then | |
1679 | v.BrickColor = BrickColor.new("Cool yellow") | |
1680 | v.Material = "Neon" | |
1681 | Music.Playing = false | |
1682 | Moosic.Playing = false | |
1683 | Music1.Playing = false | |
1684 | Music2.Playing = false | |
1685 | Music3.Playing = false | |
1686 | Music4.Playing = false | |
1687 | Music5.Playing = false | |
1688 | Music6.Playing = true | |
1689 | end | |
1690 | end | |
1691 | end | |
1692 | function Mistake() | |
1693 | chaosmode = false | |
1694 | local Glitch = false | |
1695 | Music.Playing = false | |
1696 | Moosic.Playing = true | |
1697 | Music1.Playing = false | |
1698 | Music2.Playing = false | |
1699 | Music3.Playing = false | |
1700 | Music4.Playing = false | |
1701 | Music5.Playing = false | |
1702 | Music6.Playing = false | |
1703 | Creep.Playing = false | |
1704 | Music1:Stop() | |
1705 | tecks2.Text = "Y̴o̴u̶r̷ ̸r̵e̸a̶l̷i̸t̷y̸" | |
1706 | tecks2.TextStrokeColor3 = Color3.new(170, 0, 170) | |
1707 | for i, v in pairs(Char.CyborgArm:GetChildren()) do | |
1708 | if v:IsA("Part") then | |
1709 | v.BrickColor = BrickColor.new("Royal purple") | |
1710 | v.Material = "Neon" | |
1711 | end | |
1712 | end | |
1713 | end | |
1714 | function Happy() | |
1715 | chaosmode = false | |
1716 | local Glitch = false | |
1717 | Music.Playing = false | |
1718 | Moosic.Playing = false | |
1719 | Music1.Playing = false | |
1720 | Music2.Playing = false | |
1721 | Music3.Playing = true | |
1722 | Music4.Playing = false | |
1723 | Music5.Playing = false | |
1724 | Music6.Playing = false | |
1725 | Creep.Playing = false | |
1726 | Music1:Stop() | |
1727 | tecks2.Text = "Happy" | |
1728 | tecks2.TextStrokeColor3 = Color3.new(1, 1, 0) | |
1729 | for i, v in pairs(Char.CyborgArm:GetChildren()) do | |
1730 | if v:IsA("Part") then | |
1731 | v.BrickColor = BrickColor.new("Cool Yellow") | |
1732 | v.Material = "Neon" | |
1733 | end | |
1734 | end | |
1735 | end | |
1736 | ||
1737 | function Equip_Sawblade() | |
1738 | for i = 1, 5 do | |
1739 | Effect{ | |
1740 | Effect='Resize+AndFade', | |
1741 | Color = BrickColor.new'Carnation pink', | |
1742 | Material = Enum.Material.Neon, | |
1743 | Size=V3.N(3.5,3.5,3.5), | |
1744 | CFrame=RArm.CFrame*CF.N(0,-1,0)*CF.A(M.RRNG(0,180),M.RRNG(0,180),M.RRNG(0,180)), | |
1745 | FXSettings={ | |
1746 | EndSize=V3.N(.05,.05,.05), | |
1747 | EndIsIncrement=true, | |
1748 | ||
1749 | } | |
1750 | } | |
1751 | end | |
1752 | local prt = Part(Char,BrickColor.new'Institutional white',Enum.Material.SmoothPlastic,V3.N(3.42, 3.42, 0.05),CF.N(9,0,0),false,false) | |
1753 | prt.Transparency = .0 | |
1754 | local mesh = Mesh(prt,Enum.MeshType.FileMesh,"rbxassetid://174322089","",V3.N(3,3,3),V3.N(0,0,0),CF.N(0,0,9)) | |
1755 | local weld = NewInstance("Weld",Char,{Part0=RArm,Part1=prt,C0=CF.N(0,-1.25,0)}) | |
1756 | return prt,weld | |
1757 | end | |
1758 | ||
1759 | function The_Necc() | |
1760 | local humanoid, torso = ClosestHumanoid(Torso.CFrame.p,5) | |
1761 | if(torso)then | |
1762 | local who = torso.Parent | |
1763 | Attack = true | |
1764 | NeutralAnims = false | |
1765 | who.Parent = Char | |
1766 | chatfunc("you look tired sleep a little") | |
1767 | local oRoot | |
1768 | pcall(function() oRoot = who.HumanoidRootPart; oRoot.Parent = nil end) | |
1769 | local gWeld = NewInstance("Weld",Char,{Part0=Root,Part1=torso,C0=CF.N(0,0,-1.25)}) | |
1770 | for i = 0, 4, 0.1 do | |
1771 | swait() | |
1772 | humanoid.PlatformStand = true | |
1773 | local Alpha = .15 | |
1774 | RJ.C0 = clerp(RJ.C0,CFrame.new(7.78455425e-13, 0.00629367586, -2.39849396e-06, 0.99999243, 1.23691279e-10, 0, 1.90985006e-11, 0.99998045, -0.00628617778, 9.31322575e-10, 0.00628614007, 0.999973059),Alpha) | |
1775 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496486545, -0.990821958, 0.021611277, 0.999870956, 1.90985006e-11, 0.0156118907, -9.81391422e-05, 0.99998045, 0.00628537685, -0.0156115862, -0.00628617778, 0.999851584),Alpha) | |
1776 | RH.C0 = clerp(RH.C0,CFrame.new(0.498530418, -0.990985394, 0.0154574998, 0.999870956, 1.90985006e-11, 0.0156118907, -9.81391422e-05, 0.99998045, 0.00628537685, -0.0156115862, -0.00628617778, 0.999851584),Alpha) | |
1777 | LS.C0 = clerp(LS.C0,CFrame.new(-1.0486517, 0.929213107, -0.824554026, 0.712753832, -0.694763601, -0.0963225588, 0.0692147464, 0.206324935, -0.976032555, 0.697985768, 0.689004064, 0.195146814),Alpha) | |
1778 | RS.C0 = clerp(RS.C0,CFrame.new(0.386394978, 1.64370263, -1.084023, -0.617445648, -0.751786709, -0.231452331, -0.0510570146, 0.331923157, -0.941923738, 0.784950197, -0.569769561, -0.243328467),Alpha) | |
1779 | NK.C0 = clerp(NK.C0,CFrame.new(8.16636839e-06, 1.49895489, -0.0144007429, 0.99999243, 3.67523171e-07, -1.61118805e-07, -3.56405508e-07, 0.997965038, 0.0637686625, 1.8440187e-07, -0.0637682825, 0.997957468),Alpha) | |
1780 | end | |
1781 | gWeld:destroy() | |
1782 | if(who:FindFirstChild'Head')then | |
1783 | local s = Sound(who:FindFirstChild'Head',1093102664,1,2,false,false,false) | |
1784 | s:Play() | |
1785 | s.Ended:connect(function() s:Destroy() end) | |
1786 | end | |
1787 | who.Parent = workspace | |
1788 | humanoid.Health = 0 | |
1789 | Ragdoll(who,false,true) | |
1790 | for i = 0, 1.5, 0.1 do | |
1791 | swait() | |
1792 | humanoid.PlatformStand = true | |
1793 | local Alpha = .3 | |
1794 | RJ.C0 = clerp(RJ.C0,CFrame.new(7.78455425e-13, 0.00629367586, -2.39849396e-06, 0.99999243, 1.23691279e-10, 0, 1.90985006e-11, 0.99998045, -0.00628617778, 9.31322575e-10, 0.00628614007, 0.999973059),Alpha) | |
1795 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496486545, -0.990821958, 0.021611277, 0.999870956, 1.90985006e-11, 0.0156118907, -9.81391422e-05, 0.99998045, 0.00628537685, -0.0156115862, -0.00628617778, 0.999851584),Alpha) | |
1796 | RH.C0 = clerp(RH.C0,CFrame.new(0.498530418, -0.990985394, 0.0154574998, 0.999870956, 1.90985006e-11, 0.0156118907, -9.81391422e-05, 0.99998045, 0.00628537685, -0.0156115862, -0.00628617778, 0.999851584),Alpha) | |
1797 | LS.C0 = clerp(LS.C0,CFrame.new(-1.47842193, 0.485131323, -0.0262347199, 0.0664671659, 0.993123412, -0.0963359103, -0.201927185, -0.0811635256, -0.976031899, -0.977139056, 0.0843269154, 0.195143938),Alpha) | |
1798 | RS.C0 = clerp(RS.C0,CFrame.new(2.33067179, 0.249403879, 0.270489573, 0.171869993, 0.978404701, -0.114792682, 0.105083257, -0.134070903, -0.985384524, -0.979495406, 0.157295257, -0.125856698),Alpha) | |
1799 | NK.C0 = clerp(NK.C0,CFrame.new(8.16636839e-06, 1.49895489, -0.0144007429, 0.99999243, 3.67523171e-07, -1.61118805e-07, -3.56405508e-07, 0.997965038, 0.0637686625, 1.8440187e-07, -0.0637682825, 0.997957468),Alpha) | |
1800 | end | |
1801 | Attack = false | |
1802 | NeutralAnims = true | |
1803 | end | |
1804 | end | |
1805 | ||
1806 | function Hands_Off() | |
1807 | local humanoid, torso = ClosestHumanoid(Torso.CFrame.p,5) | |
1808 | ||
1809 | if(torso)then | |
1810 | local who = torso.Parent | |
1811 | local doAttack = false | |
1812 | Instance.AllChildren(who,function(v) | |
1813 | if(v.Name:lower():find"arm")then | |
1814 | doAttack = true | |
1815 | end | |
1816 | end, true) | |
1817 | if(not doAttack)then return end | |
1818 | Hum.WalkSpeed = 0 | |
1819 | Hum.JumpPower = 0 | |
1820 | Attack = true | |
1821 | NeutralAnims = false | |
1822 | who.Parent = Char | |
1823 | local oRoot | |
1824 | pcall(function() oRoot = who.HumanoidRootPart; oRoot.Parent = nil end) | |
1825 | local gWeld = NewInstance("Weld",Char,{Part0=Root,Part1=torso,C0=CF.N(0,0,-1.25)}) | |
1826 | for i = 0, 4, 0.1 do | |
1827 | swait() | |
1828 | humanoid.PlatformStand = true | |
1829 | local Alpha = .15 | |
1830 | RJ.C0 = clerp(RJ.C0,CFrame.new(3.20564755e-13, 0.00629412755, 1.41908095e-06, 0.999999225, 5.09317033e-11, 0, -4.38656264e-11, 0.999980271, -0.00628618058, 0, 0.00628617639, 0.999979496),Alpha) | |
1831 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496493757, -0.990819633, 0.021611426, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022),Alpha) | |
1832 | RH.C0 = clerp(RH.C0,CFrame.new(0.498533875, -0.990984261, 0.0154613676, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022),Alpha) | |
1833 | LS.C0 = clerp(LS.C0,CFrame.new(-1.42285931, 0.338565946, -0.110074639, 0.983876407, 0.1786367, 0.00868223887, -0.0932332501, 0.553717494, -0.827468753, -0.152623802, 0.813317537, 0.561444461),Alpha) | |
1834 | RS.C0 = clerp(RS.C0,CFrame.new(1.374735, 0.282860518, -0.133752465, 0.973415911, -0.228878334, 0.00868532527, 0.135509402, 0.544919252, -0.827466309, 0.184656292, 0.806645751, 0.561448157),Alpha) | |
1835 | NK.C0 = clerp(NK.C0,CFrame.new(8.16625652e-06, 1.49895275, -0.014400661, 0.999999225, 3.67464963e-07, -1.62050128e-07, -3.56478267e-07, 0.997964799, 0.0637686923, 1.8440187e-07, -0.0637686551, 0.997963905),Alpha) | |
1836 | end | |
1837 | local RABC = (who:FindFirstChild'Right Arm' or who:FindFirstChild'RightUpperArm' or who:FindFirstChild'RightLowerArm' or who:FindFirstChild'RightHand' or IN("Part")).BrickColor | |
1838 | local LABC = (who:FindFirstChild'Left Arm' or who:FindFirstChild'LeftUpperArm' or who:FindFirstChild'LeftLowerArm' or who:FindFirstChild'LeftHand' or IN("Part")).BrickColor | |
1839 | Sound(torso,1093102664,.85,5,false,true,true) | |
1840 | Sound(torso,429400881,1,1,false,true,true) | |
1841 | chatfunc("You dont need that!") | |
1842 | FRArm = NewInstance('Part',Effects,{Size=V3.N(1,2,1),BrickColor=RABC,Material='Plastic',CanCollide=false,Anchored=false,Locked=true}) | |
1843 | Mesh(FRArm,Enum.MeshType.FileMesh,"rbxasset://fonts/rightarm.mesh","",V3.N(1,1,1),V3.N()) | |
1844 | FLArm = NewInstance('Part',Effects,{Size=V3.N(1,2,1),BrickColor=LABC,Material='Plastic',CanCollide=false,Anchored=false,Locked=true}) | |
1845 | Mesh(FLArm,Enum.MeshType.FileMesh,"rbxasset://fonts/leftarm.mesh","",V3.N(1,1,1),V3.N()) | |
1846 | FRArmW = NewInstance('Weld',FRArm,{Part0=RArm,Part1=FRArm,C0=CF.N(0,-1,0)*CF.A(M.R(90),0,0)}) | |
1847 | FLArmW = NewInstance('Weld',FLArm,{Part0=LArm,Part1=FLArm,C0=CF.N(0,-1,0)*CF.A(M.R(90),0,0)}) | |
1848 | Instance.AllChildren(who,function(v) | |
1849 | if(v.Name:lower():find"arm" or v.Name:lower():find"hand")then | |
1850 | v:destroy() | |
1851 | end | |
1852 | end, true) | |
1853 | if(not VoidSB)then | |
1854 | coroutine.wrap(function() | |
1855 | repeat swait() | |
1856 | humanoid.Health = humanoid.Health - 0.5 until not who or not who.Parent or not humanoid.Parent | |
1857 | humanoid.Health = 0 | |
1858 | end)() | |
1859 | else | |
1860 | coroutine.wrap(function() | |
1861 | repeat swait() humanoid.Health = humanoid.Health - 0.5 until not who or not who.Parent or not humanoid.Parent | |
1862 | humanoid.Health = 0 | |
1863 | end)() | |
1864 | ||
1865 | local prt1,prtcl1 = Blood4(V3.N(.5,.5,.5),torso.CFrame) | |
1866 | local prt2,prtcl2 = Blood4(V3.N(.5,.5,.5),torso.CFrame) | |
1867 | prt1.Parent = torso; | |
1868 | prt2.Parent = torso; | |
1869 | local prt1W = NewInstance('Weld',torso,{Part0=prt1,Part1=torso,C0=CF.N(0,-.5,-1.25)*CF.A(0,M.R(90),0)}) | |
1870 | local prt2W = NewInstance('Weld',torso,{Part0=prt2,Part1=torso,C0=CF.N(0,-.5,-1.25)*CF.A(0,M.R(-90),0)}) | |
1871 | end | |
1872 | ||
1873 | humanoid.Died:connect(function() | |
1874 | Ragdoll(who) | |
1875 | end) | |
1876 | who.Parent = workspace | |
1877 | ||
1878 | local prt1,prtcl1 = Blood4(V3.N(.5,.5,.5),torso.CFrame) | |
1879 | local prt2,prtcl2 = Blood4(V3.N(.5,.5,.5),torso.CFrame) | |
1880 | prt1.Parent = FRArm; | |
1881 | prt2.Parent = FLArm; | |
1882 | local prt1W = NewInstance('Weld',FRArm,{Part0=prt1,Part1=FRArm,C0=CF.N(0,0,0)*CF.A(0,M.R(90),0)}) | |
1883 | local prt2W = NewInstance('Weld',FLArm,{Part0=prt2,Part1=FLArm,C0=CF.N(0,0,0)*CF.A(0,M.R(-90),0)}) | |
1884 | gWeld:destroy() | |
1885 | humanoid.PlatformStand = false | |
1886 | if(oRoot)then | |
1887 | oRoot.Parent = who | |
1888 | if(who:FindFirstChild('RootJoint',true))then | |
1889 | oRoot.RootJoint.Part0 = oRoot | |
1890 | oRoot.RootJoint.Part1 = torso | |
1891 | else | |
1892 | humanoid:BuildRigFromAttachments() | |
1893 | end | |
1894 | end | |
1895 | ||
1896 | ||
1897 | for i = 0, 3, 0.1 do | |
1898 | swait() | |
1899 | local Alpha = .15 | |
1900 | RJ.C0 = clerp(RJ.C0,CFrame.new(3.20564755e-13, 0.00629412755, 1.41908095e-06, 0.999999225, 5.09317033e-11, 0, -4.38656264e-11, 0.999980271, -0.00628618058, 0, 0.00628617639, 0.999979496),Alpha) | |
1901 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496493757, -0.990819633, 0.021611426, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022),Alpha) | |
1902 | RH.C0 = clerp(RH.C0,CFrame.new(0.498533875, -0.990984261, 0.0154613676, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022),Alpha) | |
1903 | LS.C0 = clerp(LS.C0,CFrame.new(-1.25778806, 0.320386261, -0.139421374, 0.690939784, 0.722859621, 0.00868486147, -0.400907725, 0.393146276, -0.827471495, -0.601560116, 0.568251252, 0.561440408),Alpha) | |
1904 | RS.C0 = clerp(RS.C0,CFrame.new(1.39739037, 0.354236364, -0.0289047062, 0.709462166, -0.704689503, 0.00868486147, 0.400770277, 0.393286407, -0.827471495, 0.579694867, 0.59054029, 0.561440408),Alpha) | |
1905 | NK.C0 = clerp(NK.C0,CFrame.new(8.16625652e-06, 1.49895275, -0.014400661, 0.999999225, 3.67464963e-07, -1.62050128e-07, -3.56478267e-07, 0.997964799, 0.0637686923, 1.8440187e-07, -0.0637686551, 0.997963905),Alpha) | |
1906 | end | |
1907 | Hum.WalkSpeed = 16 | |
1908 | Hum.JumpPower = 50 | |
1909 | Attack = false | |
1910 | NeutralAnims = true | |
1911 | end | |
1912 | end | |
1913 | function ScrewMe() | |
1914 | Attack = true | |
1915 | NeutralAnims = false | |
1916 | for i = 0, 2, 0.1 do | |
1917 | swait() | |
1918 | local Alpha = .15 | |
1919 | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.000601041073, 0.0062919003, -0.000300966523, 0.994017541, 0.000686608837, 0.109214716, 0, 0.99998033, -0.00628665462, -0.109216876, 0.00624904549, 0.993997931),Alpha) | |
1920 | LH.C0 = clerp(LH.C0,CFrame.new(-0.502559602, -0.990627766, 0.0518152229, 0.995601892, 0, -0.0936849937, 0.000588965253, 0.99998033, 0.00625900552, 0.0936831385, -0.00628665462, 0.995582223),Alpha) | |
1921 | RH.C0 = clerp(RH.C0,CFrame.new(0.501642942, -0.991074204, 0.000842738897, 0.995601892, 0, -0.0936849937, 0.000588965253, 0.99998033, 0.00625900552, 0.0936831385, -0.00628665462, 0.995582223),Alpha) | |
1922 | LS.C0 = clerp(LS.C0,CFrame.new(-1.12979531, 0.241689205, 0.149894863, 0.813591897, -0.571708977, 0.105910838, 0.505802035, 0.785755217, 0.356024235, -0.286762208, -0.236088455, 0.928455591),Alpha) | |
1923 | RS.C0 = clerp(RS.C0,CFrame.new(1.41494429, 0.493437499, 0.00856034085, 0.986078084, -0.165549055, 0.0156079903, 0.165468931, 0.986195028, 0.00630042888, -0.0164355561, -0.0036300756, 0.99985832),Alpha) | |
1924 | NK.C0 = clerp(NK.C0,CFrame.new(-0.272200465, 1.60343766, -0.0909831151, -0.271778286, -0.29597038, 0.915717363, -0.178016067, 0.950573504, 0.254402429, -0.945752025, -0.0938713551, -0.311032623),Alpha) | |
1925 | end | |
1926 | local screwdriver = Part(Char,BrickColor.new'Really black',Enum.Material.SmoothPlastic,V3.N(2.158,0.29,0.312),RArm.CFrame,false,false) | |
1927 | local driverMesh = Mesh(screwdriver,Enum.MeshType.FileMesh,"rbxassetid://70265804","rbxassetid://70265794",V3.N(1,.5,.5),V3.N()) | |
1928 | local driverWeld = NewInstance("Weld",Char,{Part0=LArm,Part1=screwdriver,C0=CF.N(0,-1.15,0)}) | |
1929 | for i = 1, 3 do | |
1930 | for i = 0, 2, 0.1 do | |
1931 | swait() | |
1932 | local Alpha = .15 | |
1933 | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.000597249367, 0.00629166188, -0.000301384629, 0.994017541, 0.000686608837, 0.109214716, 0, 0.99998033, -0.00628665462, -0.109216876, 0.00624904549, 0.993997931),Alpha) | |
1934 | LH.C0 = clerp(LH.C0,CFrame.new(-0.502559602, -0.990627766, 0.0518152229, 0.995601892, 0, -0.0936849937, 0.000588965253, 0.99998033, 0.00625900552, 0.0936831385, -0.00628665462, 0.995582223),Alpha) | |
1935 | RH.C0 = clerp(RH.C0,CFrame.new(0.501639128, -0.991074204, 0.000842381269, 0.995601892, 0, -0.0936849937, 0.000588965253, 0.99998033, 0.00625900552, 0.0936831385, -0.00628665462, 0.995582223),Alpha) | |
1936 | LS.C0 = clerp(LS.C0,CFrame.new(-0.971063137, 0.544531465, -0.856619298, 0.824469268, -0.565411985, 0.0236563906, 0.239681676, 0.311018854, -0.919684827, 0.512643158, 0.763921857, 0.391944379),Alpha) | |
1937 | RS.C0 = clerp(RS.C0,CFrame.new(1.36865759, 0.434063494, -0.243990004, 0.943695724, 0.286517411, 0.165366411, 0.0948955566, 0.244413704, -0.965016603, -0.316911817, 0.926374555, 0.203462943),Alpha) | |
1938 | NK.C0 = clerp(NK.C0,CFrame.new(0.309692234, 1.56599295, -0.184076563, 0.752268493, 0.275064707, -0.598691583, 0.0132474303, 0.902184188, 0.431147963, 0.658723474, -0.332270145, 0.675040722),Alpha) | |
1939 | driverWeld.C0 = clerp(driverWeld.C0,CFrame.new(0.754458785, -0.945940197, 0.0140114268, -0.867547691, -0.497354031, 8.15391541e-05, -7.91847706e-05, 0.00030207634, 1, -0.49735406, 0.867547691, -0.000301415101),Alpha) | |
1940 | end | |
1941 | for i = 0, 2, 0.1 do | |
1942 | swait() | |
1943 | local Alpha = .15 | |
1944 | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.000597249367, 0.00629166188, -0.000301384629, 0.994017541, 0.000686608837, 0.109214716, 0, 0.99998033, -0.00628665462, -0.109216876, 0.00624904549, 0.993997931),Alpha) | |
1945 | LH.C0 = clerp(LH.C0,CFrame.new(-0.502559602, -0.990627766, 0.0518152229, 0.995601892, 0, -0.0936849937, 0.000588965253, 0.99998033, 0.00625900552, 0.0936831385, -0.00628665462, 0.995582223),Alpha) | |
1946 | RH.C0 = clerp(RH.C0,CFrame.new(0.501639128, -0.991074204, 0.000842381269, 0.995601892, 0, -0.0936849937, 0.000588965253, 0.99998033, 0.00625900552, 0.0936831385, -0.00628665462, 0.995582223),Alpha) | |
1947 | LS.C0 = clerp(LS.C0,CFrame.new(-0.952282608, 0.388567954, -0.813911676, 0.824469686, -0.527844906, 0.204033226, 0.23967658, -0.000909555703, -0.970852435, 0.512645066, 0.849340379, 0.12576215),Alpha) | |
1948 | RS.C0 = clerp(RS.C0,CFrame.new(1.36865759, 0.434063494, -0.243990004, 0.943695724, 0.286517411, 0.165366411, 0.0948955566, 0.244413704, -0.965016603, -0.316911817, 0.926374555, 0.203462943),Alpha) | |
1949 | NK.C0 = clerp(NK.C0,CFrame.new(0.309692234, 1.56599295, -0.184076563, 0.752268493, 0.275064707, -0.598691583, 0.0132474303, 0.902184188, 0.431147963, 0.658723474, -0.332270145, 0.675040722),Alpha) | |
1950 | driverWeld.C0 = clerp(driverWeld.C0,CFrame.new(0.75445646, -0.891306043, 0.317142308, -0.867489815, -0.183382571, -0.462420344, -0.159916192, -0.777427077, 0.608304381, -0.471050501, 0.601646185, 0.645084083),Alpha) | |
1951 | end | |
1952 | end | |
1953 | for i = 0, 2, 0.1 do | |
1954 | swait() | |
1955 | local Alpha = .15 | |
1956 | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.000601041073, 0.0062919003, -0.000300966523, 0.994017541, 0.000686608837, 0.109214716, 0, 0.99998033, -0.00628665462, -0.109216876, 0.00624904549, 0.993997931),Alpha) | |
1957 | LH.C0 = clerp(LH.C0,CFrame.new(-0.502559602, -0.990627766, 0.0518152229, 0.995601892, 0, -0.0936849937, 0.000588965253, 0.99998033, 0.00625900552, 0.0936831385, -0.00628665462, 0.995582223),Alpha) | |
1958 | RH.C0 = clerp(RH.C0,CFrame.new(0.501642942, -0.991074204, 0.000842738897, 0.995601892, 0, -0.0936849937, 0.000588965253, 0.99998033, 0.00625900552, 0.0936831385, -0.00628665462, 0.995582223),Alpha) | |
1959 | LS.C0 = clerp(LS.C0,CFrame.new(-1.12979531, 0.241689205, 0.149894863, 0.813591897, -0.571708977, 0.105910838, 0.505802035, 0.785755217, 0.356024235, -0.286762208, -0.236088455, 0.928455591),Alpha) | |
1960 | RS.C0 = clerp(RS.C0,CFrame.new(1.41494429, 0.493437499, 0.00856034085, 0.986078084, -0.165549055, 0.0156079903, 0.165468931, 0.986195028, 0.00630042888, -0.0164355561, -0.0036300756, 0.99985832),Alpha) | |
1961 | NK.C0 = clerp(NK.C0,CFrame.new(-0.272200465, 1.60343766, -0.0909831151, -0.271778286, -0.29597038, 0.915717363, -0.178016067, 0.950573504, 0.254402429, -0.945752025, -0.0938713551, -0.311032623),Alpha) | |
1962 | end | |
1963 | screwdriver:destroy() | |
1964 | Attack = false | |
1965 | NeutralAnims = true | |
1966 | end | |
1967 | function SliceYou() | |
1968 | Attack = true | |
1969 | NeutralAnims = false | |
1970 | local saw,weld = Equip_Sawblade() | |
1971 | for i = 0, 2, 0.1 do | |
1972 | swait() | |
1973 | local Alpha = .15 | |
1974 | RJ.C0 = clerp(RJ.C0,CFrame.new(0.0029785831, 0.00629174896, 0.00529580005, 0.517270923, -0.00537902303, -0.855804324, 0, 0.99998033, -0.00628521619, 0.855821192, 0.00325116003, 0.517260671),Alpha) | |
1975 | LH.C0 = clerp(LH.C0,CFrame.new(-0.524694026, -0.992068648, -0.177415758, 0.503846943, 0, 0.863792896, -0.00542912632, 0.99998033, 0.00316678779, -0.863775849, -0.00628521619, 0.503836989),Alpha) | |
1976 | RH.C0 = clerp(RH.C0,CFrame.new(0.863649905, -0.990154982, 0.147100359, 0.503846943, 0, 0.863792896, -0.00542912632, 0.99998033, 0.00316678779, -0.863775849, -0.00628521619, 0.503836989),Alpha) | |
1977 | LS.C0 = clerp(LS.C0,CFrame.new(-1.15776694, 0.555799365, -0.115642846, -0.0494773015, 0.838752568, -0.54226011, -0.986161113, -0.127040714, -0.106522933, -0.15823549, 0.529485285, 0.833430767),Alpha) | |
1978 | RS.C0 = clerp(RS.C0,CFrame.new(1.41811252, 0.715449214, 0.00713690743, 0.924166977, -0.38166979, 0.0156050026, 0.381617904, 0.924298882, 0.00629791059, -0.0168274939, 0.00013487041, 0.999858379),Alpha) | |
1979 | NK.C0 = clerp(NK.C0,CFrame.new(-0.0103359073, 1.49896884, -0.0121970959, 0.517271042, -0.0492044352, 0.854405463, -0.00537938019, 0.998139322, 0.0607386976, -0.855804205, -0.0360145383, 0.516043782),Alpha) | |
1980 | end | |
1981 | for i = 0, 3, 0.1 do | |
1982 | swait() | |
1983 | local Alpha = .3 | |
1984 | RJ.C0 = clerp(RJ.C0,CFrame.new(0.0750166476, 0.00629172707, 0.115993313, -0.407934308, 0.00573777966, 0.912992895, 0, 0.99998033, -0.00628445856, -0.913010895, -0.00256364676, -0.407926261),Alpha) | |
1985 | LH.C0 = clerp(LH.C0,CFrame.new(-0.702545583, -0.991440296, -0.0774632096, -0.393630832, 0, -0.919268608, 0.00577710615, 0.99998033, -0.00247375714, 0.919250488, -0.00628445856, -0.393623054),Alpha) | |
1986 | RH.C0 = clerp(RH.C0,CFrame.new(0.572302818, -0.991491556, -0.0655612499, -0.393630832, 0, -0.919268608, 0.00577710615, 0.99998033, -0.00247375714, 0.919250488, -0.00628445856, -0.393623054),Alpha) | |
1987 | LS.C0 = clerp(LS.C0,CFrame.new(-1.42436278, 0.674626052, -0.273927838, 0.816972971, 0.196224883, -0.54226476, -0.298526257, 0.948434591, -0.106555678, 0.493393689, 0.248933315, 0.833423615),Alpha) | |
1988 | RS.C0 = clerp(RS.C0,CFrame.new(1.39865923, 0.565930247, 0.00839936361, -0.125458091, -0.991975904, 0.0156244934, 0.992089748, -0.125373363, 0.00629395852, -0.00428455323, 0.0162905455, 0.99985826),Alpha) | |
1989 | NK.C0 = clerp(NK.C0,CFrame.new(0.141048998, 1.4988662, -0.0285577606, -0.407934487, 0.0524925366, -0.911500514, 0.0057374211, 0.998473644, 0.054933507, 0.912992835, 0.0171796028, -0.40761295),Alpha) | |
1990 | end | |
1991 | local sound = Sound(Torso,367720620,false,false,false) | |
1992 | sound:Play() | |
1993 | for i = 0, 6, .1 do | |
1994 | weld.C0 = weld.C0:lerp(weld.C0 * CF.A(0,0,M.R(25)),.3) | |
1995 | swait() | |
1996 | end | |
1997 | for i = 0, 2, .1 do | |
1998 | weld.C0 = weld.C0:lerp(weld.C0 * CF.A(0,0,M.R(5)),.3) | |
1999 | swait() | |
2000 | end | |
2001 | sound:Play() | |
2002 | for i = 0, 1, .1 do | |
2003 | weld.C0 = weld.C0:lerp(weld.C0 * CF.A(0,0,M.R(25)),.3) | |
2004 | swait() | |
2005 | end | |
2006 | sound:Play() | |
2007 | for i = 0, 5, .1 do | |
2008 | weld.C0 = weld.C0:lerp(weld.C0 * CF.A(0,0,M.R(55)),.3) | |
2009 | swait() | |
2010 | end | |
2011 | for i = 1, 5 do | |
2012 | Effect{ | |
2013 | Effect='Resize+AndFade', | |
2014 | Color = BrickColor.new'Carnation pink', | |
2015 | Material = Enum.Material.Neon, | |
2016 | Size=V3.N(3.5,3.5,3.5), | |
2017 | CFrame=saw.CFrame*CF.A(M.RRNG(0,180),M.RRNG(0,180),M.RRNG(0,180)), | |
2018 | FXSettings={ | |
2019 | EndSize=V3.N(.05,.05,.05), | |
2020 | EndIsIncrement=true, | |
2021 | ||
2022 | } | |
2023 | } | |
2024 | end | |
2025 | saw:destroy() | |
2026 | Attack = false | |
2027 | NeutralAnims = true | |
2028 | end | |
2029 | function Taunt() | |
2030 | local tauntFuncs = {SliceYou,ScrewMe} | |
2031 | local taunt = tauntFuncs[M.RNG(1,#tauntFuncs)] | |
2032 | taunt() | |
2033 | end | |
2034 | function Aids() | |
2035 | Music.Playing = false | |
2036 | local DabSounds = {420701444,420701460,420701487} | |
2037 | local DabSnd = Sound(Torso,DabSounds[M.RNG(1,#DabSounds)],1,5,false,false,false) | |
2038 | repeat swait() until DabSnd.IsLoaded | |
2039 | DabSnd:Play() | |
2040 | chatfunc("deivis97: Sorry about that") | |
2041 | DabSnd.Ended:connect(function()DabSnd:destroy()end) | |
2042 | Attack = true | |
2043 | NeutralAnims = false | |
2044 | local a = 0 | |
2045 | for i = 0, DabSnd.TimeLength * Frame_Speed/DabSnd.Pitch do | |
2046 | a = a + 1 | |
2047 | swait() | |
2048 | local Alpha = .3 | |
2049 | RJ.C0 = clerp(RJ.C0,CFrame.new(0.0561925545, 0.006292901+.2*M.C(a/16), -0.00967639871, 0.961586297, 0.00172359415, 0.274496257, 0, 0.99998033, -0.00627899449, -0.274501652, 0.00603779452, 0.961567342),Alpha) | |
2050 | LH.C0 = clerp(LH.C0,CFrame.new(-0.593769729, -0.99042201-.2*M.C(a/16), 0.0849506408, 0.965754986, 0, -0.259456009, 0.00162912265, 0.99998033, 0.00606396981, 0.259450912, -0.00627899449, 0.965735972),Alpha) | |
2051 | RH.C0 = clerp(RH.C0,CFrame.new(0.468464553, -0.991293669-.2*M.C(a/16), -0.0339690484, 0.965754986, 0, -0.259456009, 0.00162912265, 0.99998033, 0.00606396981, 0.259450912, -0.00627899449, 0.965735972),Alpha) | |
2052 | LS.C0 = clerp(LS.C0,CFrame.new(-1.15301001, 0.367895871, -0.145940349+.2*M.C(a/16), 0.375669211, 0.913452208, -0.156454355, -0.926753879, 0.37026915, -0.0634673014, -4.41223383e-05, 0.168837398, 0.985643983),Alpha) | |
2053 | RS.C0 = clerp(RS.C0,CFrame.new(0.998128295, 0.633566499, -0.753388047+.2*M.C(a/16), 0.594308019, 0.804203451, 0.00742085278, -0.383671522, 0.29161948, -0.876215935, -0.706819832, 0.517895043, 0.481861711),Alpha) | |
2054 | NK.C0 = clerp(NK.C0,CFrame.new(0.207638323, 1.47957158, -0.302699238, 0.745848298, 0.476892024, -0.465063959, 0.0606503561, 0.646653771, 0.760368645, 0.663349032, -0.595326006, 0.453382045),Alpha) | |
2055 | end | |
2056 | Music.Playing = true | |
2057 | Attack = false | |
2058 | NeutralAnims = true | |
2059 | end | |
2060 | ||
2061 | function OnceWas(who) | |
2062 | for _,v in next, who:children() do | |
2063 | if(v:IsA'BasePart')then | |
2064 | Effect{ | |
2065 | Parent=Effects, | |
2066 | Effect='Fade', | |
2067 | Color = BrickColor.new'Carnation pink', | |
2068 | Material = Enum.Material.Glass, | |
2069 | Size = v.Size, | |
2070 | CFrame=v.CFrame, | |
2071 | Frames = 90, | |
2072 | } | |
2073 | end | |
2074 | end | |
2075 | end | |
2076 | ||
2077 | function Teleport(where) | |
2078 | OnceWas(Char) | |
2079 | Sound(Root,235097614,3,1,false,true,true) | |
2080 | Sound(Root,75356820,2,1,false,true,true) | |
2081 | Root.CFrame = CF.N(where.p) | |
2082 | OnceWas(Char) | |
2083 | end | |
2084 | ||
2085 | function Dash() | |
2086 | Attack = true | |
2087 | Sound(Root,235097614,3,1,false,true,true) | |
2088 | Sound(Root,75356820,2,1,false,true,true) | |
2089 | for i = 1, 5 do | |
2090 | OnceWas(Char) | |
2091 | Root.CFrame = Root.CFrame*CF.N(0,0,-5) | |
2092 | swait() | |
2093 | end | |
2094 | Attack = false | |
2095 | end | |
2096 | ||
2097 | function Shriek() | |
2098 | Attack = true | |
2099 | NeutralAnims = true | |
2100 | local scream = Sound(Char,660244878,1,10,false,false,false) | |
2101 | local i = 0 | |
2102 | scream:Play() | |
2103 | while scream.Playing do | |
2104 | i = i + 1 | |
2105 | swait() | |
2106 | coroutine.wrap(function() | |
2107 | AOEFunction(Head.Position,30,function(who) | |
2108 | local h,hd = who:FindFirstChildOfClass'Humanoid',who:FindFirstChild'Head' | |
2109 | if(h and hd and h.Health > 0)then | |
2110 | h.Health = 0 | |
2111 | Sound(hd,429400881,1,1,false,true,true) | |
2112 | Ragdoll(who) | |
2113 | swait() | |
2114 | local frags = Fragment(hd) | |
2115 | for _,v in next, frags:children() do | |
2116 | v.BrickColor = BloodColor | |
2117 | v.Material = BloodMaterial | |
2118 | v.CanCollide = true | |
2119 | v.Anchored = false | |
2120 | end | |
2121 | chatfunc("HAHAHAHAHAHAHA!") | |
2122 | hd:destroy() | |
2123 | end | |
2124 | end) | |
2125 | end)() | |
2126 | local Alpha = .15 | |
2127 | RJ.C0 = clerp(RJ.C0,CFrame.new(0.00956845004, -0.141102523, 0.612865508, 0.999947488, 0.00962571148, -0.00340035092, -0.00964800082, 0.782201111, -0.622951329, -0.00333659165, 0.622951448, 0.782252967),Alpha) | |
2128 | LH.C0 = clerp(LH.C0,CFrame.new(-0.495904773, -1.0368886, 0.0598222613, 0.999878109, -0.00964800082, 0.012275002, -0.000100981888, 0.782201111, 0.623026073, -0.0156124765, -0.622951329, 0.78210485),Alpha) | |
2129 | RH.C0 = clerp(RH.C0,CFrame.new(0.499093086, -1.03124118, 0.0517056584, 0.999878109, -0.00964800082, 0.012275002, -0.000100981888, 0.782201111, 0.623026073, -0.0156124765, -0.622951329, 0.78210485),Alpha) | |
2130 | LS.C0 = clerp(LS.C0,CFrame.new(-1.23829794, 0.600065649, 0.16030249, -0.8319574, 0.546545088, -0.0955789387, 0.0976095572, -0.0254041255, -0.994900525, -0.54618609, -0.837044299, -0.0322128981),Alpha) | |
2131 | RS.C0 = clerp(RS.C0,CFrame.new(1.40538526, 0.413302839, 0.119919479, 0.97065413, -0.226111293, -0.0818808898, 0.0516543165, -0.13650623, 0.989291787, -0.23486729, -0.96448946, -0.120820649),Alpha) | |
2132 | NK.C0 = clerp(NK.C0,CFrame.new(3.62367791e-06, 1.56057274, 0.233575165, 1, 3.8058497e-06, -3.58493999e-05, -1.91188519e-05, 0.899042785, -0.437860936, 3.05641443e-05, 0.437861085, 0.899042606),Alpha) | |
2133 | end | |
2134 | Attack = false | |
2135 | NeutralAnims = true | |
2136 | end | |
2137 | chatfunc("..deivis97 edit :3....") | |
2138 | function SawMeDaddy() | |
2139 | local humanoid, torso = ClosestHumanoid(Torso.CFrame.p,5) | |
2140 | if(torso)then | |
2141 | Attack = true | |
2142 | NeutralAnims = false | |
2143 | local who = torso.Parent | |
2144 | who.Parent = Char | |
2145 | Hum.WalkSpeed = 0 | |
2146 | Hum.JumpPower = 0 | |
2147 | humanoid.WalkSpeed = 0 | |
2148 | humanoid.JumpPower = 0 | |
2149 | local saw,weld = Equip_Sawblade() | |
2150 | pcall(function() who.HumanoidRootPart:destroy() end) | |
2151 | local gWeld = NewInstance("Weld",Char,{Part0=Root,Part1=torso,C0=CF.N(0,0,-3)*CF.A(0,M.R(180),0)}) | |
2152 | for i = 0, 6, 0.1 do | |
2153 | swait() | |
2154 | weld.C0 = weld.C0:lerp(weld.C0 * CF.A(0,0,M.R(5)),.3) | |
2155 | local Alpha = .15 | |
2156 | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.00836368278, 0.00629167072, 0.00190571044, 0.0349976346, 0.00628316449, 0.99936235, 0, 0.99998033, -0.00628704997, -0.999382019, 0.000220031856, 0.0349969491),Alpha) | |
2157 | LH.C0 = clerp(LH.C0,CFrame.new(-0.503456116, -0.990501761, 0.0718512386, 0.0505957417, 0, -0.998714209, 0.00627896562, 0.99998033, 0.00031809794, 0.998694539, -0.00628704997, 0.0505947471),Alpha) | |
2158 | RH.C0 = clerp(RH.C0,CFrame.new(0.539414704, -0.991044283, 0.00562152406, 0.0505957417, 0, -0.998714209, 0.00627896562, 0.99998033, 0.00031809794, 0.998694539, -0.00628704997, 0.0505947471),Alpha) | |
2159 | LS.C0 = clerp(LS.C0,CFrame.new(-1.40707266, 0.497466505, -0.00446076319, 0.980866492, 0.19405432, 0.0156163573, -0.19417055, 0.980947733, 0.00629086327, -0.0140980631, -0.00920273364, 0.999858439),Alpha) | |
2160 | RS.C0 = clerp(RS.C0,CFrame.new(1.31421685, 0.81056267, 0.00814598706, -0.489612877, -0.871799946, 0.0156333037, 0.871937394, -0.489577413, 0.00628277427, 0.00217639096, 0.0167073887, 0.999858201),Alpha) | |
2161 | NK.C0 = clerp(NK.C0,CFrame.new(0.00717293471, 1.49903798, -0.00130830682, 0.0349974521, 0.0574585311, -0.997728944, 0.00628280686, 0.998313606, 0.057712581, 0.99936235, -0.00828839932, 0.0345774256),Alpha) | |
2162 | end | |
2163 | chatfunc("No escape") | |
2164 | Sound(Torso,367720620,1,1,false,true,true) | |
2165 | coroutine.wrap(function() | |
2166 | repeat swait() | |
2167 | weld.C0 = weld.C0:lerp(weld.C0 * CF.A(0,0,M.R(45)),.3) | |
2168 | until not saw.Parent | |
2169 | end)() | |
2170 | swait(60) | |
2171 | local slicing = Sound(saw,1013673726,1,1,true,false,true) | |
2172 | Sound(torso,429400881,1,1,false,true,true) | |
2173 | local prt1,prtcl1 = Blood4(V3.N(.5,.5,.5),torso.CFrame) | |
2174 | prt1.Parent = torso; | |
2175 | local prt1W = NewInstance('Weld',torso,{Part0=prt1,Part1=torso,C0=CF.A(0,M.R(180),0)}) | |
2176 | for i = 0, .3, 0.001 do | |
2177 | swait() | |
2178 | ||
2179 | humanoid.Health = humanoid.Health - .5 | |
2180 | if(humanoid.Health <= 0)then | |
2181 | gWeld:destroy() | |
2182 | Sound(torso,429400881,1,1,false,true,true) | |
2183 | break | |
2184 | end | |
2185 | local Alpha = i | |
2186 | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.00836368278, 0.00629167072, 0.00190571044, 0.0349976346, 0.00628316449, 0.99936235, 0, 0.99998033, -0.00628704997, -0.999382019, 0.000220031856, 0.0349969491),Alpha) | |
2187 | LH.C0 = clerp(LH.C0,CFrame.new(-0.503456116, -0.990501761, 0.0718512386, 0.0505957417, 0, -0.998714209, 0.00627896562, 0.99998033, 0.00031809794, 0.998694539, -0.00628704997, 0.0505947471),Alpha) | |
2188 | RH.C0 = clerp(RH.C0,CFrame.new(0.539414704, -0.991044283, 0.00562152406, 0.0505957417, 0, -0.998714209, 0.00627896562, 0.99998033, 0.00031809794, 0.998694539, -0.00628704997, 0.0505947471),Alpha) | |
2189 | LS.C0 = clerp(LS.C0,CFrame.new(-1.40707266, 0.497466505, -0.00446076319, 0.980866492, 0.19405432, 0.0156163573, -0.19417055, 0.980947733, 0.00629086327, -0.0140980631, -0.00920273364, 0.999858439),Alpha) | |
2190 | RS.C0 = clerp(RS.C0,CFrame.new(1.18219912, 0.268655062, 0.0136158429, 0.6882689, -0.725287437, 0.0156234093, 0.725293934, 0.688410699, 0.00629597344, -0.0153217092, 0.00699824095, 0.99985826),Alpha) | |
2191 | NK.C0 = clerp(NK.C0,CFrame.new(0.00717293471, 1.49903798, -0.00130830682, 0.0349974521, 0.0574585311, -0.997728944, 0.00628280686, 0.998313606, 0.057712581, 0.99936235, -0.00828839932, 0.0345774256),Alpha) | |
2192 | end | |
2193 | humanoid.Health = 0 | |
2194 | who.Parent = workspace | |
2195 | Ragdoll(who) | |
2196 | slicing:destroy() | |
2197 | for i = 1, 5 do | |
2198 | Effect{ | |
2199 | Effect='Resize+AndFade', | |
2200 | Color = BrickColor.new'Carnation pink', | |
2201 | Material = Enum.Material.Neon, | |
2202 | Size=V3.N(3.5,3.5,3.5), | |
2203 | CFrame=saw.CFrame*CF.A(M.RRNG(0,180),M.RRNG(0,180),M.RRNG(0,180)), | |
2204 | FXSettings={ | |
2205 | EndSize=V3.N(.05,.05,.05), | |
2206 | EndIsIncrement=true, | |
2207 | ||
2208 | } | |
2209 | } | |
2210 | end | |
2211 | Hum.WalkSpeed = 16 | |
2212 | Hum.JumpPower = 50 | |
2213 | saw:destroy() | |
2214 | Attack = false | |
2215 | NeutralAnims = true | |
2216 | end | |
2217 | end | |
2218 | function The_End() | |
2219 | local humanoid, torso = ClosestHumanoid(Torso.CFrame.p,5) | |
2220 | ||
2221 | if(torso)then | |
2222 | Attack = true | |
2223 | NeutralAnims = false | |
2224 | local who = torso.Parent | |
2225 | Hum.WalkSpeed = 0 | |
2226 | Hum.JumpPower = 0 | |
2227 | humanoid.WalkSpeed = 0 | |
2228 | humanoid.JumpPower = 0 | |
2229 | who.Parent = Char | |
2230 | pcall(function() who.HumanoidRootPart:destroy() end) | |
2231 | local gWeld = NewInstance("Weld",Char,{Part0=Root,Part1=torso,C0=CF.N(0,0,-1.35)}) | |
2232 | for i = 0, 2, 0.1 do | |
2233 | swait() | |
2234 | local Alpha = .3 | |
2235 | RJ.C0 = clerp(RJ.C0,CFrame.new(0.00184797007, 0.00629393011, 0.00175395911, 0.916352093, -0.00251661055, -0.400364727, 0, 0.99998033, -0.00628567068, 0.400372595, 0.0057598874, 0.916333973),Alpha) | |
2236 | LH.C0 = clerp(LH.C0,CFrame.new(-0.565588713, -0.991164684, -0.032800708, 0.909990132, 0, 0.414630055, -0.00260622799, 0.99998033, 0.00571989827, -0.41462189, -0.00628567068, 0.909972131),Alpha) | |
2237 | RH.C0 = clerp(RH.C0,CFrame.new(0.562351584, -0.990811467, 0.0429569148, 0.909990132, 0, 0.414630055, -0.00260622799, 0.99998033, 0.00571989827, -0.41462189, -0.00628567068, 0.909972131),Alpha) | |
2238 | LS.C0 = clerp(LS.C0,CFrame.new(-1.479936, 0.442725629, -0.241928637, 0.997844577, 0.0469278991, -0.0458690971, -0.0638397709, 0.532425106, -0.844066501, -0.015188396, 0.845175505, 0.534273386),Alpha) | |
2239 | RS.C0 = clerp(RS.C0,CFrame.new(1.32794857, 0.365926802, 0.17400004, 0.584510565, -0.811339498, 0.00870320201, 0.447906405, 0.331590444, 0.830317855, -0.676555634, -0.481431335, 0.557222128),Alpha) | |
2240 | NK.C0 = clerp(NK.C0,CFrame.new(-0.00438193232, 1.49895084, -0.014841184, 0.916352212, -0.0230187047, 0.399710178, -0.00251696701, 0.997995079, 0.0632432774, -0.400364548, -0.0589591675, 0.914456904),Alpha) | |
2241 | end | |
2242 | Sound(Torso,200065377,1.3,4,false,true,true) | |
2243 | for i = 0, 1, 0.1 do | |
2244 | swait() | |
2245 | local Alpha = .2 | |
2246 | RJ.C0 = clerp(RJ.C0,CFrame.new(0.0928741172, 0.00629402744, 0.0566893518, 0.948310614, 0.00199300773, 0.317336231, 0, 0.99998033, -0.00628030393, -0.31734252, 0.00595567934, 0.948291838),Alpha) | |
2247 | LH.C0 = clerp(LH.C0,CFrame.new(-0.645890057, -0.990359426, 0.0953748077, 0.953149736, 0, -0.302498937, 0.00189978536, 0.99998033, 0.00598607073, 0.302492946, -0.00628030393, 0.953130901),Alpha) | |
2248 | RH.C0 = clerp(RH.C0,CFrame.new(0.44459179, -0.991404057, -0.0513649136, 0.953149736, 0, -0.302498937, 0.00189978536, 0.99998033, 0.00598607073, 0.302492946, -0.00628030393, 0.953130901),Alpha) | |
2249 | LS.C0 = clerp(LS.C0,CFrame.new(-1.47928679, 0.367728233, 0.116084039, 0.997845054, 0.0248440802, 0.0607300103, -0.0638346076, 0.581721425, 0.810879469, -0.0151824057, -0.813008547, 0.582053781),Alpha) | |
2250 | RS.C0 = clerp(RS.C0,CFrame.new(1.48636484, 0.465858519, -0.373306572, -0.95769608, 0.284951091, -0.0402629375, -0.130770594, -0.306276649, 0.942917705, 0.256353855, 0.908293724, 0.330583185),Alpha) | |
2251 | NK.C0 = clerp(NK.C0,CFrame.new(-0.068510659, 1.4984324, -0.0973624364, 0.948310554, 0.0182456542, -0.316817731, 0.00199265103, 0.997983873, 0.0634387434, 0.31733641, -0.0607909337, 0.946362138),Alpha) | |
2252 | end | |
2253 | gWeld:destroy() | |
2254 | local gWeld = NewInstance("Weld",Char,{Part0=RArm,Part1=torso,C0=CF.N(0,-1.15,0)*CF.A(M.R(90),0,M.R(180))}) | |
2255 | for i = 0, 1, 0.1 do | |
2256 | swait() | |
2257 | local Alpha = .3 | |
2258 | humanoid.PlatformStand = true | |
2259 | RJ.C0 = clerp(RJ.C0,CFrame.new(3.20394752e-13, 0.00629078969, 1.39809708e-06, 0.999999225, 5.09317033e-11, 0, -4.38656264e-11, 0.999980271, -0.00628618058, 0, 0.00628617639, 0.999979496),Alpha) | |
2260 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496493757, -0.990819752, 0.021611426, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022),Alpha) | |
2261 | RH.C0 = clerp(RH.C0,CFrame.new(0.498526245, -0.990984261, 0.0154614868, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022),Alpha) | |
2262 | LS.C0 = clerp(LS.C0,CFrame.new(-1.29056597, 0.680865526, -0.0074476786, -0.953151584, -0.302089065, 0.0156119959, 0.302213609, -0.953219652, 0.0062854127, 0.0129829049, 0.0107091125, 0.999858022),Alpha) | |
2263 | RS.C0 = clerp(RS.C0,CFrame.new(1.26373434, 0.722399652, 0.00951428805, -0.951173186, 0.308261454, 0.0156119959, -0.308199704, -0.951300979, 0.0062854127, 0.0167892575, 0.0011669076, 0.999858022),Alpha) | |
2264 | NK.C0 = clerp(NK.C0,CFrame.new(-1.17865966e-07, 1.4989531, -0.0143954754, 0.999999642, 2.11689621e-05, 1.13360584e-05, -1.50896085e-07, 0.477647185, -0.878551781, -2.40113586e-05, 0.878551543, 0.477646947),Alpha) | |
2265 | end | |
2266 | gWeld:destroy() | |
2267 | local gWeld = NewInstance("Weld",Char,{Part0=Root,Part1=torso,C0=CF.N(0,2.35,0)*CF.A(M.R(90),0,M.R(90))}) | |
2268 | for i = 0, 6, 0.1 do | |
2269 | swait() | |
2270 | local Alpha = .3 | |
2271 | humanoid.PlatformStand = true | |
2272 | RJ.C0 = clerp(RJ.C0,CFrame.new(3.20394752e-13, 0.00629078969, 1.39809708e-06, 0.999999225, 5.09317033e-11, 0, -4.38656264e-11, 0.999980271, -0.00628618058, 0, 0.00628617639, 0.999979496),Alpha) | |
2273 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496493757, -0.990819752, 0.021611426, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022),Alpha) | |
2274 | RH.C0 = clerp(RH.C0,CFrame.new(0.498526245, -0.990984261, 0.0154614868, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022),Alpha) | |
2275 | LS.C0 = clerp(LS.C0,CFrame.new(-1.29056597, 0.680865526, -0.0074476786, -0.953151584, -0.302089065, 0.0156119959, 0.302213609, -0.953219652, 0.0062854127, 0.0129829049, 0.0107091125, 0.999858022),Alpha) | |
2276 | RS.C0 = clerp(RS.C0,CFrame.new(1.26373434, 0.722399652, 0.00951428805, -0.951173186, 0.308261454, 0.0156119959, -0.308199704, -0.951300979, 0.0062854127, 0.0167892575, 0.0011669076, 0.999858022),Alpha) | |
2277 | NK.C0 = clerp(NK.C0,CFrame.new(-1.17865966e-07, 1.4989531, -0.0143954754, 0.999999642, 2.11689621e-05, 1.13360584e-05, -1.50896085e-07, 0.477647185, -0.878551781, -2.40113586e-05, 0.878551543, 0.477646947),Alpha) | |
2278 | end | |
2279 | Sound(torso,1093102664,.85,5,false,true,true) | |
2280 | Sound(torso,429400881,1,1,false,true,true) | |
2281 | chatfunc("Last words??") | |
2282 | gWeld:destroy() | |
2283 | Blood(torso.Size,torso.CFrame*CF.A(0,M.R(180),0),250) | |
2284 | humanoid.Health = 0 | |
2285 | for _,v in next, who:children() do | |
2286 | if(v:IsA'LocalScript' or v:IsA'Script')then | |
2287 | v.Disabled = true | |
2288 | v:destroy() | |
2289 | end | |
2290 | end | |
2291 | Ragdoll(who,true) | |
2292 | ||
2293 | ||
2294 | if(not VoidSB)then | |
2295 | coroutine.wrap(function() | |
2296 | repeat swait() | |
2297 | BloodDrop(torso.CFrame * CF.N(0,-torso.Size.Y/2,0).p,(torso.CFrame * CF.N(0,-torso.Size.Y,0)).p,15) | |
2298 | until not who or not who.Parent | |
2299 | end)() | |
2300 | coroutine.wrap(function() | |
2301 | local LT = who:FindFirstChild'LowerTorso' | |
2302 | if(LT)then | |
2303 | repeat swait() | |
2304 | BloodDrop(LT.CFrame * CF.N(0,LT.Size.Y/2,0).p,(LT.CFrame * CF.N(0,LT.Size.Y,0)).p,15) | |
2305 | until not who or not who.Parent | |
2306 | end | |
2307 | end)() | |
2308 | end | |
2309 | ||
2310 | for i = 0, 1, 0.1 do | |
2311 | swait() | |
2312 | local Alpha = .3 | |
2313 | humanoid.PlatformStand = true | |
2314 | RJ.C0 = clerp(RJ.C0,CFrame.new(3.20394752e-13, 0.00629078969, 1.39809708e-06, 0.999999225, 5.09317033e-11, 0, -4.38656264e-11, 0.999980271, -0.00628618058, 0, 0.00628617639, 0.999979496),Alpha) | |
2315 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496493757, -0.990819752, 0.021611426, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022),Alpha) | |
2316 | RH.C0 = clerp(RH.C0,CFrame.new(0.498526245, -0.990984261, 0.0154614868, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022),Alpha) | |
2317 | LS.C0 = clerp(LS.C0,CFrame.new(-1.19203663, 0.569933176, 0.0160028264, -0.81626749, 0.577462554, 0.0156119959, -0.577441692, -0.816407859, 0.0062854127, 0.016375348, -0.0038844361, 0.999858022),Alpha) | |
2318 | RS.C0 = clerp(RS.C0,CFrame.new(1.22609437, 0.679628015, 0.010370885, -0.77247268, -0.634855568, 0.0156119959, 0.634996474, -0.772489607, 0.0062854127, 0.00806977227, 0.0147688743, 0.999858022),Alpha) | |
2319 | NK.C0 = clerp(NK.C0,CFrame.new(-1.17865966e-07, 1.4989531, -0.0143954754, 0.999999642, 2.11689621e-05, 1.13360584e-05, -1.50896085e-07, 0.477647185, -0.878551781, -2.40113586e-05, 0.878551543, 0.477646947),Alpha) | |
2320 | end | |
2321 | for i = 0, 4, 0.1 do | |
2322 | swait() | |
2323 | local Alpha = .3 | |
2324 | RJ.C0 = clerp(RJ.C0,CFrame.new(3.20394752e-13, 0.00629078969, 1.39809708e-06, 0.999999225, 5.09317033e-11, 0, -4.38656264e-11, 0.999980271, -0.00628618058, 0, 0.00628617639, 0.999979496)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
2325 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496493757, -0.990819752, 0.021611426, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
2326 | RH.C0 = clerp(RH.C0,CFrame.new(0.498526245, -0.990984261, 0.0154614868, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
2327 | LS.C0 = clerp(LS.C0,CFrame.new(-1.19203663, 0.569933176, 0.0160028264, -0.81626749, 0.577462554, 0.0156119959, -0.577441692, -0.816407859, 0.0062854127, 0.016375348, -0.0038844361, 0.999858022)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
2328 | RS.C0 = clerp(RS.C0,CFrame.new(1.22609437, 0.679628015, 0.010370885, -0.77247268, -0.634855568, 0.0156119959, 0.634996474, -0.772489607, 0.0062854127, 0.00806977227, 0.0147688743, 0.999858022)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
2329 | NK.C0 = clerp(NK.C0,CFrame.new(-1.17865966e-07, 1.4989531, -0.0143954754, 0.999999642, 2.11689621e-05, 1.13360584e-05, -1.50896085e-07, 0.477647185, -0.878551781, -2.40113586e-05, 0.878551543, 0.477646947)*CF.A(M.RRNG(-5,5),M.RRNG(-5,5),M.RRNG(-5,5)),Alpha) | |
2330 | end | |
2331 | who.Parent = workspace | |
2332 | Attack = false | |
2333 | NeutralAnims = true | |
2334 | Hum.WalkSpeed = 16 | |
2335 | Hum.JumpPower = 50 | |
2336 | end | |
2337 | end | |
2338 | ||
2339 | function ThrowArms() | |
2340 | Attack = true | |
2341 | NeutralAnims = false | |
2342 | for i = 0, 3, 0.1 do | |
2343 | swait() | |
2344 | local Alpha = .15 | |
2345 | RJ.C0 = clerp(RJ.C0,CFrame.new(3.20552612e-13, 0.00629388914, 1.4175821e-06, 0.999999225, 5.09317033e-11, 0, -4.38656264e-11, 0.999980271, -0.00628618058, 0, 0.00628617639, 0.999979496),Alpha) | |
2346 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496493757, -0.990822613, 0.0216114447, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022),Alpha) | |
2347 | RH.C0 = clerp(RH.C0,CFrame.new(0.498533875, -0.990984261, 0.0154613676, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022),Alpha) | |
2348 | LS.C0 = clerp(LS.C0,CFrame.new(-1.49870801, 0.639989734, 0.342571348, 0.999877751, -0.0114739574, -0.0105869146, -9.81397825e-05, -0.682732999, 0.730668128, -0.0156116877, -0.730577767, -0.682650685),Alpha) | |
2349 | RS.C0 = clerp(RS.C0,CFrame.new(1.50170219, 0.685996532, 0.261634499, 0.999877751, -0.0114739574, -0.0105869146, -9.81397825e-05, -0.682732999, 0.730668128, -0.0156116877, -0.730577767, -0.682650685),Alpha) | |
2350 | NK.C0 = clerp(NK.C0,CFrame.new(8.16625652e-06, 1.4989531, -0.0144006833, 0.999999225, 3.67464963e-07, -1.62050128e-07, -3.56478267e-07, 0.997964799, 0.0637686923, 1.8440187e-07, -0.0637686551, 0.997963905),Alpha) | |
2351 | end | |
2352 | Sound() | |
2353 | FLArmW:destroy() | |
2354 | FRArmW:destroy() | |
2355 | local BV1 = NewInstance("BodyVelocity", FRArm, { | |
2356 | velocity = Vector3.new(0, 10, 0) + Mouse.Hit.lookVector * 50, | |
2357 | P = 5000, | |
2358 | maxForce = Vector3.new(8000, 8000, 8000), | |
2359 | }) | |
2360 | local BV2 = NewInstance("BodyVelocity", FLArm, { | |
2361 | velocity = Vector3.new(0, 10, 0) + Mouse.Hit.lookVector * 50, | |
2362 | P = 5000, | |
2363 | maxForce = Vector3.new(8000, 8000, 8000), | |
2364 | }) | |
2365 | Sound(Torso,541909763,.8,5,false,true,true) | |
2366 | S.Debris:AddItem(BV1, 0.05) | |
2367 | S.Debris:AddItem(BV2, 0.05) | |
2368 | FRArm.CanCollide = true | |
2369 | FLArm.CanCollide = true | |
2370 | S.Debris:AddItem(FRArm, 5) | |
2371 | S.Debris:AddItem(FLArm, 5) | |
2372 | FRArm = nil | |
2373 | FLArm = nil | |
2374 | for i = 0, 1, 0.1 do | |
2375 | swait() | |
2376 | local Alpha = .3 | |
2377 | RJ.C0 = clerp(RJ.C0,CFrame.new(3.20552612e-13, 0.00629388914, 1.4175821e-06, 0.999999225, 5.09317033e-11, 0, -4.38656264e-11, 0.999980271, -0.00628618058, 0, 0.00628617639, 0.999979496),Alpha) | |
2378 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496493757, -0.990822613, 0.0216114447, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022),Alpha) | |
2379 | RH.C0 = clerp(RH.C0,CFrame.new(0.498533875, -0.990984261, 0.0154613676, 0.999877751, -4.38656264e-11, 0.0156119959, -9.81397825e-05, 0.999980271, 0.0062854127, -0.0156116877, -0.00628618058, 0.999858022),Alpha) | |
2380 | LS.C0 = clerp(LS.C0,CFrame.new(-1.50884342, 0.499208659, -0.305685878, 0.999877751, 0.0152528696, -0.00332931988, -9.81397825e-05, -0.20710893, -0.978317916, -0.0156116877, 0.978198647, -0.207082108),Alpha) | |
2381 | RS.C0 = clerp(RS.C0,CFrame.new(1.4918015, 0.444425255, -0.370944679, 0.999877751, 0.0152528696, -0.00332931988, -9.81397825e-05, -0.20710893, -0.978317916, -0.0156116877, 0.978198647, -0.207082108),Alpha) | |
2382 | NK.C0 = clerp(NK.C0,CFrame.new(8.16625652e-06, 1.4989531, -0.0144006833, 0.999999225, 3.67464963e-07, -1.62050128e-07, -3.56478267e-07, 0.997964799, 0.0637686923, 1.8440187e-07, -0.0637686551, 0.997963905),Alpha) | |
2383 | end | |
2384 | Attack = false | |
2385 | NeutralAnims = true | |
2386 | end | |
2387 | Mouse.KeyDown:connect(function(k) | |
2388 | if(Attack)then return end | |
2389 | if(k == 'q')then Teleport(Mouse.Hit*CF.N(0,3.25,0)) end | |
2390 | if(k == 'e')then Dash() end | |
2391 | if(not FLArm and not FRArm)then | |
2392 | if(k == 'r')then Hum.WalkSpeed = (Hum.WalkSpeed == 16 and 32 or 16) end | |
2393 | if(k == 'z')then The_Necc() end | |
2394 | if(k == 'x')then The_End() end | |
2395 | if(k == 'c')then Hands_Off() end | |
2396 | if(k == 'v')then SawMeDaddy() end | |
2397 | if(k == 'b')then Shriek() end | |
2398 | if(k == 't')then Aids() end | |
2399 | if(k == 'f')then Color1() end | |
2400 | if(k == 'g')then Color4() end | |
2401 | if(k == 'h')then Mistake() end | |
2402 | if(k == 'j')then Normal() end | |
2403 | if(k == 'k')then Glitch() end | |
2404 | if(k == 'p')then TimeTrials() end | |
2405 | if(k == 'y')then BenCreep() end | |
2406 | if(k == 'l')then Happy() end | |
2407 | if(k == 'u')then smile() end | |
2408 | end | |
2409 | end) | |
2410 | ||
2411 | Mouse.Button1Down:connect(function() | |
2412 | if(Attack)then return end | |
2413 | if(FLArm and FRArm)then | |
2414 | ThrowArms() | |
2415 | end | |
2416 | end) | |
2417 | ||
2418 | --// Wrap it all up \\-- | |
2419 | ||
2420 | while true do | |
2421 | swait() | |
2422 | if(not Music or not Music.Parent)then | |
2423 | local a = Music.TimePosition | |
2424 | Music = Sound(Char,MusicID,MusicPitch,2,true,false,true) | |
2425 | Music.Name = 'Music' | |
2426 | Music.TimePosition = a | |
2427 | end | |
2428 | if(Music.Volume ~= 2)then Music.Volume = 2 end | |
2429 | RArm.Transparency = 1 | |
2430 | Sine = Sine + Change | |
2431 | 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) | |
2432 | local Walking = (math.abs(Root.Velocity.x) > 1 or math.abs(Root.Velocity.z) > 1) | |
2433 | 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") | |
2434 | if(State == 'Walk')then | |
2435 | local wsVal = 7 / (Hum.WalkSpeed/16) | |
2436 | local Alpha = math.min(.2*(Hum.WalkSpeed/16),1) | |
2437 | --RH.C1 = RH.C1:lerp(CF.N(0,.925+.5*M.C(Sine/wsVal)/2,0+.5*M.C(Sine/wsVal)/2)*CF.A(-M.R(-15-35*M.C(Sine/wsVal) + -M.S(Sine/wsVal)/2.5),0,0),Alpha) | |
2438 | --RH.C0 = clerp(RH.C0, CF(1, -0.925 - 0.5 * M.C(Sine / 7) / 2, 0.5 * M.C(Sine / 7) / 2) * CF.A(Rad(-15 - 35 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)-- | |
2439 | RH.C1 = RH.C1:lerp(CF.N(0,.95+.5*M.C(Sine/wsVal)/2,.5*M.C(Sine/wsVal)/2) * CF.A(M.R(15-45*M.C(Sine/wsVal)) + M.S(Sine/wsVal)/2.5,0,0)*CF.A(M.R(0+.1*M.C(Sine/wsVal)),0,0),Alpha) | |
2440 | LH.C1 = LH.C1:lerp(CF.N(0,.95-.5*M.C(Sine/wsVal)/2,-.5*M.C(Sine/wsVal)/2) * CF.A(M.R(15+45*M.C(Sine/wsVal)) + -M.S(Sine/wsVal)/2.5,0,0)*CF.A(M.R(0+.1*M.C(Sine/wsVal)),0,0),Alpha) | |
2441 | else | |
2442 | RH.C1 = RH.C1:lerp(CF.N(0,1,0),.3) | |
2443 | LH.C1 = LH.C1:lerp(CF.N(0,1,0),.3) | |
2444 | end | |
2445 | if(Idle > Frame_Speed*10)then | |
2446 | --idk i'll do something | |
2447 | end | |
2448 | if(NeutralAnims and not Attack and State == 'Idle')then | |
2449 | Idle = Idle + 1 | |
2450 | else | |
2451 | Idle = 0 | |
2452 | end | |
2453 | for v,_ in next, Stunned do | |
2454 | if(v.Parent)then | |
2455 | local h = v:FindFirstChildOfClass'Humanoid' | |
2456 | for _,c in next, v:children() do | |
2457 | if(c:IsA'Script' or c:IsA'LocalScript')then | |
2458 | c.Disabled = false | |
2459 | end | |
2460 | end | |
2461 | if(h)then | |
2462 | h.Name = 'End of line' | |
2463 | h.PlatformStand = true | |
2464 | else | |
2465 | Stunned[v] = nil | |
2466 | end | |
2467 | else | |
2468 | Stunned[v] = nil | |
2469 | end | |
2470 | end | |
2471 | if(NeutralAnims)then | |
2472 | if(State == 'Idle')then | |
2473 | Change = 1 | |
2474 | local Alpha = .3 | |
2475 | RJ.C0 = clerp(RJ.C0,CFrame.new(0.00232864846, 0.00629545515+.2*M.C(Sine/16), 0.00257661846, 0.838281333, -0.00342716719, -0.545226395, 0, 0.99998033, -0.00628564507, 0.545237184, 0.00526913954, 0.838264763),Alpha) | |
2476 | LH.C0 = clerp(LH.C0,CFrame.new(-0.725328565, -0.990803361-.2*M.C(Sine/16), 0.0247094855, 0.82966727, 0, 0.558258176, -0.00350901252, 0.99998033, 0.00521499431, -0.558247149, -0.00628564507, 0.829650879),Alpha) | |
2477 | RH.C0 = clerp(RH.C0,CFrame.new(0.576427579, -0.99124372-.2*M.C(Sine/16), -0.02560886, 0.82966727, 0, 0.558258176, -0.00350901252, 0.99998033, 0.00521499431, -0.558247149, -0.00628564507, 0.829650879),Alpha) | |
2478 | LS.C0 = clerp(LS.C0,CFrame.new(-1.46491873, 0.505438805+.2*M.C(Sine/16), -0.00360340625, 0.996807694, 0.0782995075, 0.0156106055, -0.0784052685, 0.996901929, 0.00628136564, -0.0150704384, -0.0074852705, 0.999858379)*CF.A(-M.R(0+5*M.S(Sine/16)),0,M.R(0+5*M.C(Sine/16))),Alpha) | |
2479 | RS.C0 = clerp(RS.C0,CFrame.new(1.44824493, 0.497874349+.2*M.C(Sine/16), 0.00803661905, 0.994963646, -0.0990139842, 0.0156099498, 0.0989264548, 0.995075107, 0.00628477754, -0.0161553323, -0.00470888987, 0.999858439)*CF.A(-M.R(0+5*M.S(Sine/16)),0,-M.R(0+5*M.C(Sine/16))),Alpha) | |
2480 | NK.C0 = clerp(NK.C0,CFrame.new(-0.00607250631, 1.49895012, -0.0144915879, 0.838281453, -0.0313475803, 0.544335127, -0.00342752389, 0.998023272, 0.0627533421, -0.545226216, -0.0544706844, 0.836516857)*CF.A(M.R(0+5*M.C(Sine/16)),0,0),Alpha) | |
2481 | elseif(State == 'Walk')then | |
2482 | local wsVal = 7 / (Hum.WalkSpeed/16) | |
2483 | local Alpha = math.min(.2*(Hum.WalkSpeed/16),1) | |
2484 | RJ.C0 = RJ.C0:lerp(RJC0*CF.N(0,-0.175 + 0.025 * M.C(Sine/(wsVal/2)) + -M.S(Sine/(wsVal/2)) / 7,0)*CF.A(0,M.R(0+8*M.C(Sine/wsVal)),M.R(0+2*M.C(Sine/wsVal))),Alpha) | |
2485 | RH.C0 = RH.C0:lerp(RHC0,Alpha) | |
2486 | LH.C0 = LH.C0:lerp(LHC0,Alpha) | |
2487 | RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(0-45*M.C(Sine/wsVal)),0,M.R(5+10*M.C(Sine/wsVal))),Alpha) | |
2488 | LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(0+45*M.C(Sine/wsVal)),0,M.R(-5+10*M.C(Sine/wsVal))),Alpha) | |
2489 | NK.C0 = NK.C0:lerp(NKC0,Alpha) | |
2490 | elseif(State == 'Jump' or State == 'Fall')then | |
2491 | if(Walking)then | |
2492 | local Alpha = .2 | |
2493 | 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) | |
2494 | 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) | |
2495 | 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) | |
2496 | 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) | |
2497 | 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) | |
2498 | 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) | |
2499 | else | |
2500 | local Alpha = .2 | |
2501 | 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) | |
2502 | 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) | |
2503 | 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) | |
2504 | 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) | |
2505 | 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) | |
2506 | 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) | |
2507 | end | |
2508 | elseif(State == 'Paralyzed')then | |
2509 | local Alpha = .3 | |
2510 | RJ.C0 = RJ.C0:lerp(RJC0,Alpha) | |
2511 | RH.C0 = RH.C0:lerp(RHC0*CF.A(M.RRNG(-10,10),M.RRNG(-10,10),M.RRNG(-10,10)),Alpha) | |
2512 | LH.C0 = LH.C0:lerp(LHC0*CF.A(M.RRNG(-10,10),M.RRNG(-10,10),M.RRNG(-10,10)),Alpha) | |
2513 | RS.C0 = RS.C0:lerp(RSC0*CF.A(M.RRNG(-10,10),M.RRNG(-10,10),M.RRNG(-5,15)),Alpha) | |
2514 | LS.C0 = LS.C0:lerp(LSC0*CF.A(M.RRNG(-10,10),M.RRNG(-10,10),M.RRNG(-15,5)),Alpha) | |
2515 | NK.C0 = NK.C0:lerp(NKC0,Alpha) | |
2516 | elseif(State == 'Sit')then | |
2517 | local Alpha = .3 | |
2518 | RJ.C0 = clerp(RJ.C0,CFrame.new(3.2050404e-13, 0.00629293546, 1.41158671e-06, 0.999999225, 5.09317033e-11, 0, -4.38656264e-11, 0.999980271, -0.00628618058, 0, 0.00628617639, 0.999979496),Alpha) | |
2519 | LH.C0 = clerp(LH.C0,CFrame.new(-0.686911047, -1.01880026, -0.25455457, 0.980693579, 0.195502773, 0.00425194856, -0.0504306704, 0.273862094, -0.960446, -0.188934311, 0.941688716, 0.278434128),Alpha) | |
2520 | RH.C0 = clerp(RH.C0,CFrame.new(0.557953715, -1.03419244, -0.293038249, 0.986133933, -0.165894628, 0.00425344985, 0.0502241589, 0.273924351, -0.960439026, 0.158166528, 0.947335124, 0.278457999),Alpha) | |
2521 | LS.C0 = clerp(LS.C0,CFrame.new(-1.50518143, 0.551521897, -0.0714710951, 0.999877751, 0.0137732355, 0.00735067623, -9.81397825e-05, 0.47637102, -0.879244447, -0.0156116877, 0.879136324, 0.476314098),Alpha) | |
2522 | RS.C0 = clerp(RS.C0,CFrame.new(1.4960835, 0.497820318, -0.0970379114, 0.999877751, 0.0137732355, 0.00735067623, -9.81397825e-05, 0.47637102, -0.879244447, -0.0156116877, 0.879136324, 0.476314098),Alpha) | |
2523 | NK.C0 = clerp(NK.C0,CFrame.new(4.35156289e-06, 1.49895275, -0.0144044831, 0.999999225, 3.67464963e-07, -1.62050128e-07, -3.56478267e-07, 0.997964799, 0.0637686923, 1.8440187e-07, -0.0637686551, 0.997963905),Alpha) | |
2524 | refit() | |
2525 | end | |
2526 | end | |
2527 | end |