SHOW:
|
|
- or go back to the newest paste.
1 | --//====================================================\\-- | |
2 | --|| CREATED BY SHACKLUSTER | |
3 | --\\====================================================//-- | |
4 | ||
5 | - | wait(0.2) |
5 | + | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end |
6 | local Player,game,owner = owner,game | |
7 | local RealPlayer = Player | |
8 | do | |
9 | local rp = RealPlayer | |
10 | script.Parent = rp.Character | |
11 | ||
12 | --RemoteEvent for communicating | |
13 | local Event = Instance.new("RemoteEvent") | |
14 | Event.Name = "UserInput_Event" | |
15 | ||
16 | --Fake event to make stuff like Mouse.KeyDown work | |
17 | local function fakeEvent() | |
18 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end} | |
19 | t.connect = t.Connect | |
20 | return t | |
21 | end | |
22 | ||
23 | --Creating fake input objects with fake variables | |
24 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
25 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
26 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
27 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
28 | end} | |
29 | --Merged 2 functions into one by checking amount of arguments | |
30 | CAS.UnbindAction = CAS.BindAction | |
31 | ||
32 | --This function will trigger the events that have been :Connect()'ed | |
33 | local function te(self,ev,...) | |
34 | local t = m[ev] | |
35 | if t and t._fakeEvent then | |
36 | for _,f in pairs(t.Functions) do | |
37 | f(...) | |
38 | end | |
39 | end | |
40 | end | |
41 | m.TrigEvent = te | |
42 | UIS.TrigEvent = te | |
43 | ||
44 | Event.OnServerEvent:Connect(function(plr,io) | |
45 | if plr~=rp then return end | |
46 | m.Target = io.Target | |
47 | m.Hit = io.Hit | |
48 | if not io.isMouse then | |
49 | local b = io.UserInputState == Enum.UserInputState.Begin | |
50 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
51 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
52 | end | |
53 | for _,t in pairs(CAS.Actions) do | |
54 | for _,k in pairs(t.Keys) do | |
55 | if k==io.KeyCode then | |
56 | t.Function(t.Name,io.UserInputState,io) | |
57 | end | |
58 | end | |
59 | end | |
60 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
61 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
62 | end | |
63 | end) | |
64 | Event.Parent = NLS([==[ | |
65 | local Player = game:GetService("Players").LocalPlayer | |
66 | local Event = script:WaitForChild("UserInput_Event") | |
67 | ||
68 | local Mouse = Player:GetMouse() | |
69 | local UIS = game:GetService("UserInputService") | |
70 | local input = function(io,a) | |
71 | if a then return end | |
72 | --Since InputObject is a client-side instance, we create and pass table instead | |
73 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
74 | end | |
75 | UIS.InputBegan:Connect(input) | |
76 | UIS.InputEnded:Connect(input) | |
77 | ||
78 | local h,t | |
79 | --Give the server mouse data 30 times every second, but only if the values changed | |
80 | --If player is not moving their mouse, client won't fire events | |
81 | while wait(1/30) do | |
82 | if h~=Mouse.Hit or t~=Mouse.Target then | |
83 | h,t=Mouse.Hit,Mouse.Target | |
84 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
85 | end | |
86 | end]==],Player.Character) | |
87 | ||
88 | ----Sandboxed game object that allows the usage of client-side methods and services | |
89 | --Real game object | |
90 | local _rg = game | |
91 | ||
92 | --Metatable for fake service | |
93 | local fsmt = { | |
94 | __index = function(self,k) | |
95 | local s = rawget(self,"_RealService") | |
96 | if s then return s[k] end | |
97 | end, | |
98 | __newindex = function(self,k,v) | |
99 | local s = rawget(self,"_RealService") | |
100 | if s then s[k]=v end | |
101 | end, | |
102 | __call = function(self,...) | |
103 | local s = rawget(self,"_RealService") | |
104 | if s then return s(...) end | |
105 | end | |
106 | } | |
107 | local function FakeService(t,RealService) | |
108 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
109 | return setmetatable(t,fsmt) | |
110 | end | |
111 | ||
112 | --Fake game object | |
113 | local g = { | |
114 | GetService = function(self,s) | |
115 | return self[s] | |
116 | end, | |
117 | Players = FakeService({ | |
118 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player) | |
119 | },"Players"), | |
120 | UserInputService = FakeService(UIS,"UserInputService"), | |
121 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
122 | } | |
123 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
124 | g.service = g.GetService | |
125 | ||
126 | g.RunService = FakeService({ | |
127 | RenderStepped = _rg:GetService("RunService").Heartbeat, | |
128 | BindToRenderStep = function(self,name,_,fun) | |
129 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
130 | end, | |
131 | UnbindFromRenderStep = function(self,name) | |
132 | self._btrs[name]:Disconnect() | |
133 | end, | |
134 | },"RunService") | |
135 | ||
136 | setmetatable(g,{ | |
137 | __index=function(self,s) | |
138 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
139 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
140 | end, | |
141 | __newindex = fsmt.__newindex, | |
142 | __call = fsmt.__call | |
143 | }) | |
144 | --Changing owner to fake player object to support owner:GetMouse() | |
145 | game,owner = g,g.Players.LocalPlayer | |
146 | end | |
147 | ||
148 | Player = game:GetService("Players").LocalPlayer | |
149 | PlayerGui = Player.PlayerGui | |
150 | Cam = workspace.CurrentCamera | |
151 | Backpack = Player.Backpack | |
152 | Character = Player.Character | |
153 | Humanoid = Character.Humanoid | |
154 | Mouse = Player:GetMouse() | |
155 | RootPart = Character["HumanoidRootPart"] | |
156 | Torso = Character["Torso"] | |
157 | Head = Character["Head"] | |
158 | RightArm = Character["Right Arm"] | |
159 | LeftArm = Character["Left Arm"] | |
160 | RightLeg = Character["Right Leg"] | |
161 | LeftLeg = Character["Left Leg"] | |
162 | RootJoint = RootPart["RootJoint"] | |
163 | Neck = Torso["Neck"] | |
164 | RightShoulder = Torso["Right Shoulder"] | |
165 | LeftShoulder = Torso["Left Shoulder"] | |
166 | RightHip = Torso["Right Hip"] | |
167 | LeftHip = Torso["Left Hip"] | |
168 | ||
169 | IT = Instance.new | |
170 | CF = CFrame.new | |
171 | VT = Vector3.new | |
172 | RAD = math.rad | |
173 | C3 = Color3.new | |
174 | UD2 = UDim2.new | |
175 | BRICKC = BrickColor.new | |
176 | ANGLES = CFrame.Angles | |
177 | EULER = CFrame.fromEulerAnglesXYZ | |
178 | COS = math.cos | |
179 | ACOS = math.acos | |
180 | SIN = math.sin | |
181 | ASIN = math.asin | |
182 | ABS = math.abs | |
183 | MRANDOM = math.random | |
184 | FLOOR = math.floor | |
185 | ||
186 | local Sky = IT("Sky") | |
187 | Sky.Parent = game.Lighting | |
188 | Sky.MoonAngularSize = 45 | |
189 | Sky.MoonTextureId = "http://www.roblox.com/asset/?id=1055904136" | |
190 | ||
191 | local Character = Player.Character | |
192 | local hum = Character.Humanoid | |
193 | local hed = Character.Head | |
194 | local root = Character.HumanoidRootPart | |
195 | local rootj = root.RootJoint | |
196 | local tors = Character.Torso | |
197 | local ra = Character["Right Arm"] | |
198 | local la = Character["Left Arm"] | |
199 | local rl = Character["Right Leg"] | |
200 | local ll = Character["Left Leg"] | |
201 | local neck = tors["Neck"] | |
202 | local mouse = Player:GetMouse() | |
203 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
204 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
205 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
206 | local maincolor = BrickColor.new("Institutional white") | |
207 | ||
208 | function Anchor() | |
209 | ra.Anchored = true | |
210 | la.Anchored = true | |
211 | tors.Anchored = true | |
212 | ll.Anchored = true | |
213 | rl.Anchored = true | |
214 | hed.Anchored = true | |
215 | end | |
216 | ||
217 | --//=================================\\ | |
218 | --|| USEFUL VALUES | |
219 | --\\=================================// | |
220 | ||
221 | Player_Size = 1 --Size of the player. | |
222 | Animation_Speed = 3 | |
223 | Animation_Speed2 = 1 | |
224 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
225 | local Speed = 16 | |
226 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
227 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
228 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
229 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
230 | local DAMAGEMULTIPLIER = 1 | |
231 | local ANIM = "Idle" | |
232 | local ATTACK = false | |
233 | local EQUIPPED = false | |
234 | local HOLD = false | |
235 | local COMBO = 1 | |
236 | local Rooted = false | |
237 | local SINE = 0 | |
238 | local KEYHOLD = false | |
239 | local CHANGE = 2 / Animation_Speed | |
240 | local WALKINGANIM = false | |
241 | local VALUE1 = false | |
242 | local VALUE2 = false | |
243 | local ROBLOXIDLEANIMATION = IT("Animation") | |
244 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
245 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
246 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
247 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
248 | WEAPONGUI.Name = "Weapon GUI" | |
249 | local Weapon = IT("Model") | |
250 | Weapon.Name = "Adds" | |
251 | local Effects = IT("Folder", Weapon) | |
252 | Effects.Name = "Effects" | |
253 | local ANIMATOR = Humanoid.Animator | |
254 | local ANIMATE = Character.Animate | |
255 | local UNANCHOR = true | |
256 | ||
257 | --//=================================\\ | |
258 | --\\=================================// | |
259 | ||
260 | ||
261 | --//=================================\\ | |
262 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
263 | --\\=================================// | |
264 | ||
265 | ArtificialHB = Instance.new("BindableEvent", script) | |
266 | ArtificialHB.Name = "ArtificialHB" | |
267 | ||
268 | script:WaitForChild("ArtificialHB") | |
269 | ||
270 | frame = Frame_Speed | |
271 | tf = 0 | |
272 | allowframeloss = false | |
273 | tossremainder = false | |
274 | lastframe = tick() | |
275 | script.ArtificialHB:Fire() | |
276 | ||
277 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
278 | tf = tf + s | |
279 | if tf >= frame then | |
280 | if allowframeloss then | |
281 | script.ArtificialHB:Fire() | |
282 | lastframe = tick() | |
283 | else | |
284 | for i = 1, math.floor(tf / frame) do | |
285 | script.ArtificialHB:Fire() | |
286 | end | |
287 | lastframe = tick() | |
288 | end | |
289 | if tossremainder then | |
290 | tf = 0 | |
291 | else | |
292 | tf = tf - frame * math.floor(tf / frame) | |
293 | end | |
294 | end | |
295 | end) | |
296 | ||
297 | --//=================================\\ | |
298 | --\\=================================// | |
299 | ||
300 | --//=================================\\ | |
301 | --|| SOME FUNCTIONS | |
302 | --\\=================================// | |
303 | ||
304 | function killnearest(position,range,maxstrength) | |
305 | for i,v in ipairs(workspace:GetChildren()) do | |
306 | local body = v:GetChildren() | |
307 | for part = 1, #body do | |
308 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
309 | if(body[part].Position - position).Magnitude < range then | |
310 | table.insert(Effects2,{body[part],"Evaporate",0.005,2,2,2,2}) | |
311 | body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength | |
312 | end | |
313 | end | |
314 | end | |
315 | if v.ClassName == "Part" then | |
316 | if v.Anchored == false and (v.Position - position).Magnitude < range then | |
317 | table.insert(Effects2,{v,"Evaporate",0.005,2,2,2,2}) | |
318 | v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength | |
319 | end | |
320 | end | |
321 | end | |
322 | end | |
323 | ||
324 | function dealdamage(hit,min,max,maxstrength,beserk,critrate,critmultiplier) | |
325 | if hit.Parent ~= Character and hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChild("HitBy"..Player.Name) == nil then | |
326 | local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid") | |
327 | local dmg = math.random(min,max) | |
328 | if humanoid.Health > 0 then | |
329 | if beserk == true then | |
330 | humanoid.Health = 0 | |
331 | else | |
332 | CreateSound("260430060", hit, 1.2, MRANDOM(7, 12) / 10) | |
333 | hit.Velocity = CFrame.new(Torso.Position,hit.Position).lookVector*5*maxstrength | |
334 | if math.random(1,100) < critrate+1 then | |
335 | humanoid.Health = humanoid.Health - dmg*critmultiplier | |
336 | StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0)) | |
337 | else | |
338 | humanoid.Health = humanoid.Health - dmg | |
339 | StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), dmg, C3(0, 0, 0)) | |
340 | end | |
341 | local defence = Instance.new("BoolValue",hit.Parent) | |
342 | defence.Name = ("HitBy"..Player.Name) | |
343 | game:GetService("Debris"):AddItem(defence, 0.1) | |
344 | end | |
345 | end | |
346 | end | |
347 | end | |
348 | ||
349 | function turnto(position) | |
350 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
351 | end | |
352 | ||
353 | function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
354 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
355 | local mesh = IT("SpecialMesh",wave) | |
356 | mesh.MeshType = "FileMesh" | |
357 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
358 | mesh.Scale = SIZE | |
359 | mesh.Offset = VT(0,0,-SIZE.X/8) | |
360 | wave.CFrame = CFRAME | |
361 | coroutine.resume(coroutine.create(function(PART) | |
362 | for i = 1, WAIT do | |
363 | Swait() | |
364 | mesh.Scale = mesh.Scale + GROW | |
365 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
366 | if DOESROT == true then | |
367 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
368 | end | |
369 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
370 | if wave.Transparency > 0.99 then | |
371 | wave:remove() | |
372 | end | |
373 | end | |
374 | end)) | |
375 | end | |
376 | ||
377 | function BAN(CHARACTER) | |
378 | local BANFOLDER = IT("Folder",Effects) | |
379 | local naeeym2 = Instance.new("BillboardGui",BANFOLDER) | |
380 | naeeym2.AlwaysOnTop = false | |
381 | naeeym2.Size = UDim2.new(5,35,2,35) | |
382 | naeeym2.StudsOffset = Vector3.new(0,1,0) | |
383 | naeeym2.Name = "AAAA" | |
384 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
385 | tecks2.BackgroundTransparency = 1 | |
386 | tecks2.TextScaled = true | |
387 | tecks2.BorderSizePixel = 0 | |
388 | tecks2.Text = "BANNED" | |
389 | tecks2.Font = "Code" | |
390 | tecks2.TextSize = 30 | |
391 | tecks2.TextStrokeTransparency = 1 | |
392 | tecks2.TextColor3 = Color3.new(1,0,0) | |
393 | tecks2.TextStrokeColor3 = Color3.new(1,0,0) | |
394 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
395 | tecks2.Parent = naeeym2 | |
396 | for i,v in ipairs(CHARACTER:GetChildren()) do | |
397 | if v.ClassName == "Part" or v.ClassName == "MeshPart" then | |
398 | if v.Name ~= "HumanoidRootPart" then | |
399 | local BOD = v:Clone() | |
400 | BOD.CanCollide = false | |
401 | BOD.Anchored = true | |
402 | BOD.CFrame = v.CFrame | |
403 | BOD.Parent = BANFOLDER | |
404 | BOD.Material = "Neon" | |
405 | BOD.Color = C3(1,0,0) | |
406 | if BOD:FindFirstChildOfClass("Decal") then | |
407 | BOD:FindFirstChildOfClass("Decal"):remove() | |
408 | end | |
409 | if BOD.Name == "Head" then | |
410 | naeeym2.Adornee = BOD | |
411 | end | |
412 | if BOD.ClassName == "MeshPart" then | |
413 | BOD.TextureID = "" | |
414 | end | |
415 | end | |
416 | end | |
417 | end | |
418 | CHARACTER:remove() | |
419 | coroutine.resume(coroutine.create(function() | |
420 | for i = 1, 50 do | |
421 | Swait() | |
422 | for i,v in ipairs(BANFOLDER:GetChildren()) do | |
423 | if v.ClassName == "Part" or v.ClassName == "MeshPart" then | |
424 | v.Transparency = 1 | |
425 | end | |
426 | naeeym2.Enabled = false | |
427 | end | |
428 | Swait() | |
429 | for i,v in ipairs(BANFOLDER:GetChildren()) do | |
430 | if v.ClassName == "Part" or v.ClassName == "MeshPart" then | |
431 | v.Transparency = 0 | |
432 | end | |
433 | naeeym2.Enabled = true | |
434 | end | |
435 | end | |
436 | BANFOLDER:remove() | |
437 | end)) | |
438 | end | |
439 | ||
440 | function BANNEAREST(POS,RANGE) | |
441 | for i,v in ipairs(workspace:GetChildren()) do | |
442 | local body = v:GetChildren() | |
443 | for part = 1, #body do | |
444 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
445 | if(body[part].Position - POS).Magnitude < RANGE then | |
446 | if v:FindFirstChildOfClass("Humanoid") then | |
447 | BAN(v) | |
448 | if game.Players:FindFirstChild(v.Name) then | |
449 | local Value = IT("BoolValue",Delete) | |
450 | Value.Name = v.Name | |
451 | end | |
452 | end | |
453 | end | |
454 | end | |
455 | end | |
456 | end | |
457 | end | |
458 | ||
459 | function Stun(HUMANOID,LAST) | |
460 | if HUMANOID.Parent:FindFirstChild("StunnedBy"..Player.Name) == nil then | |
461 | HUMANOID.PlatformStand = true | |
462 | local defence = Instance.new("BoolValue",HUMANOID.Parent) | |
463 | defence.Name = ("StunnedBy"..Player.Name) | |
464 | game:GetService("Debris"):AddItem(defence, LAST) | |
465 | if HUMANOID.Parent:FindFirstChild("Head") then | |
466 | StatLabel("Shock", HUMANOID.Parent.Head.CFrame * CF(0, 0 + (HUMANOID.Parent.Head.Size.z - 1), 0), "Stunned!", C3(0.3, 0.3, 0.3)) | |
467 | end | |
468 | coroutine.resume(coroutine.create(function() | |
469 | Swait(LAST*100) | |
470 | HUMANOID.PlatformStand = false | |
471 | end)) | |
472 | end | |
473 | end | |
474 | ||
475 | function AoEStun(POS,RANGE,LAST,TYPE) | |
476 | for i,v in ipairs(workspace:GetChildren()) do | |
477 | if v:FindFirstChild("StunnedBy"..Player.Name) == nil then | |
478 | local body = v:GetChildren() | |
479 | for part = 1, #body do | |
480 | if(v:FindFirstChild("StunnedBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
481 | if(body[part].Position - POS).Magnitude < RANGE then | |
482 | if v.ClassName == "Model" then | |
483 | if v:FindFirstChild("Humanoid") then | |
484 | if v.Humanoid.Health ~= 0 then | |
485 | if TYPE == "Stun" then | |
486 | Stun(v.Humanoid,LAST) | |
487 | elseif TYPE == "Freeze" then | |
488 | Freeze(v.Humanoid,LAST) | |
489 | end | |
490 | local defence = Instance.new("BoolValue",v) | |
491 | defence.Name = ("StunnedBy"..Player.Name) | |
492 | game:GetService("Debris"):AddItem(defence, 0.1) | |
493 | end | |
494 | end | |
495 | end | |
496 | end | |
497 | end | |
498 | end | |
499 | end | |
500 | end | |
501 | end | |
502 | ||
503 | function AoEDamage(position,radius,min,max,maxstrength,beserk,critrate,critmultiplier,CanBeDodgedByJumping) | |
504 | local dmg = math.random(min,max) | |
505 | for i,v in ipairs(workspace:GetChildren()) do | |
506 | if v:FindFirstChild("HitBy"..Player.Name) == nil then | |
507 | local body = v:GetChildren() | |
508 | for part = 1, #body do | |
509 | if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
510 | if(body[part].Position - position).Magnitude < radius then | |
511 | if v.ClassName == "Model" then | |
512 | if v:FindFirstChild("Humanoid") then | |
513 | if v.Humanoid.Health ~= 0 then | |
514 | if CanBeDodgedByJumping == true then | |
515 | if body[part].Position.Y < position.Y+5 then | |
516 | if math.random(1,100) < critrate+1 then | |
517 | v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier | |
518 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0)) | |
519 | else | |
520 | v.Humanoid.Health = v.Humanoid.Health - dmg | |
521 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0)) | |
522 | end | |
523 | local defence = Instance.new("BoolValue",v) | |
524 | defence.Name = ("HitBy"..Player.Name) | |
525 | game:GetService("Debris"):AddItem(defence, 0.1) | |
526 | end | |
527 | else | |
528 | if beserk == true then | |
529 | v.Humanoid.Health = 0 | |
530 | end | |
531 | if math.random(1,100) < critrate+1 then | |
532 | v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier | |
533 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0)) | |
534 | else | |
535 | v.Humanoid.Health = v.Humanoid.Health - dmg | |
536 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0)) | |
537 | end | |
538 | local defence = Instance.new("BoolValue",v) | |
539 | defence.Name = ("HitBy"..Player.Name) | |
540 | game:GetService("Debris"):AddItem(defence, 0.1) | |
541 | end | |
542 | end | |
543 | end | |
544 | end | |
545 | body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength | |
546 | end | |
547 | end | |
548 | end | |
549 | if v.ClassName == "Part" then | |
550 | if v.Anchored == false and (v.Position - position).Magnitude < radius then | |
551 | v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength | |
552 | end | |
553 | end | |
554 | end | |
555 | end | |
556 | end | |
557 | ||
558 | function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW,TRANS) | |
559 | local wave = CreatePart(3, Effects, "Neon", 0, TRANS, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
560 | local mesh = IT("SpecialMesh",wave) | |
561 | mesh.MeshType = "Sphere" | |
562 | mesh.Scale = SIZE | |
563 | mesh.Offset = VT(0,0,0) | |
564 | wave.CFrame = CFRAME | |
565 | coroutine.resume(coroutine.create(function(PART) | |
566 | for i = 1, WAIT do | |
567 | Swait() | |
568 | mesh.Scale = mesh.Scale + GROW | |
569 | wave.Transparency = wave.Transparency + ((1-TRANS)/WAIT) | |
570 | if wave.Transparency > 0.99 then | |
571 | wave:remove() | |
572 | end | |
573 | end | |
574 | end)) | |
575 | end | |
576 | ||
577 | function MagicBlock(SIZE,WAIT,CFRAME,COLOR,GROW,TRANS) | |
578 | local wave = CreatePart(3, Effects, "Neon", 0, TRANS, BRICKC(COLOR), "Effect", VT(SIZE,SIZE,SIZE), true) | |
579 | wave.CFrame = CFRAME | |
580 | coroutine.resume(coroutine.create(function(PART) | |
581 | for i = 1, WAIT do | |
582 | Swait() | |
583 | wave.Size = wave.Size + GROW | |
584 | wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))) | |
585 | wave.Transparency = wave.Transparency + ((1-TRANS)/WAIT) | |
586 | if wave.Transparency > 0.99 then | |
587 | wave:remove() | |
588 | end | |
589 | end | |
590 | end)) | |
591 | end | |
592 | ||
593 | local asd = Instance.new("ParticleEmitter") | |
594 | asd.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0)) | |
595 | asd.LightEmission = .1 | |
596 | asd.Size = NumberSequence.new(0.2) | |
597 | asd.Texture = "http://www.roblox.com/asset/?ID=291880914" | |
598 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)}) | |
599 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)}) | |
600 | asd.Transparency = bbb | |
601 | asd.Size = aaa | |
602 | asd.ZOffset = .9 | |
603 | asd.Acceleration = Vector3.new(0, -15, 0) | |
604 | asd.LockedToPart = false | |
605 | asd.EmissionDirection = "Back" | |
606 | asd.Lifetime = NumberRange.new(1, 2) | |
607 | asd.Rotation = NumberRange.new(-100, 100) | |
608 | asd.RotSpeed = NumberRange.new(-100, 100) | |
609 | asd.Speed = NumberRange.new(25,35) | |
610 | asd.Enabled = false | |
611 | asd.VelocitySpread = 15 | |
612 | ||
613 | function getbloody(victim,amount) | |
614 | local PART = IT("Part",Effects) | |
615 | PART.Transparency = 1 | |
616 | PART.Size = victim.Size | |
617 | PART.Anchored = true | |
618 | PART.CanCollide = false | |
619 | PART.CFrame = CF(victim.Position,Torso.Position) | |
620 | local HITPLAYERSOUNDS = {"356551938","264486467"} | |
621 | Debris:AddItem(PART,5) | |
622 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
623 | local prtcl = asd:Clone() | |
624 | prtcl.Parent = PART | |
625 | prtcl:Emit(amount*10) | |
626 | end | |
627 | ||
628 | function CastWarpOutlines(TARGET) | |
629 | coroutine.resume(coroutine.create(function() | |
630 | local T = TARGET:GetChildren() | |
631 | for i = 1, # T do | |
632 | local child = T[i] | |
633 | if child.ClassName == "Part" or child.ClassName == "MeshPart" then | |
634 | local clone = child:Clone() | |
635 | clone.Parent = Effects | |
636 | clone.Anchored = true | |
637 | clone.CanCollide = false | |
638 | clone:ClearAllChildren() | |
639 | clone.CFrame = child.CFrame | |
640 | if clone.Name == "Head" then | |
641 | if TARGET:FindFirstChildOfClass("MeshPart") == nil then | |
642 | clone.Size = VT(clone.Size.Y,clone.Size.Y,clone.Size.Y) | |
643 | end | |
644 | end | |
645 | if clone.ClassName == "MeshPart" then | |
646 | clone.TextureID = "" | |
647 | end | |
648 | clone.BrickColor = BRICKC"Black" | |
649 | clone.Material = "Neon" | |
650 | coroutine.resume(coroutine.create(function() | |
651 | for i = 1, 200 do | |
652 | Swait() | |
653 | clone.Transparency = clone.Transparency + 0.005 | |
654 | clone.Size = clone.Size + VT(0.001,0.001,0.001) | |
655 | end | |
656 | clone:remove() | |
657 | end)) | |
658 | end | |
659 | end | |
660 | end)) | |
661 | end | |
662 | ||
663 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
664 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
665 | end | |
666 | ||
667 | function PositiveAngle(NUMBER) | |
668 | if NUMBER >= 0 then | |
669 | NUMBER = 0 | |
670 | end | |
671 | return NUMBER | |
672 | end | |
673 | ||
674 | function NegativeAngle(NUMBER) | |
675 | if NUMBER <= 0 then | |
676 | NUMBER = 0 | |
677 | end | |
678 | return NUMBER | |
679 | end | |
680 | ||
681 | function Swait(NUMBER) | |
682 | if NUMBER == 0 or NUMBER == nil then | |
683 | ArtificialHB.Event:wait() | |
684 | else | |
685 | for i = 1, NUMBER do | |
686 | ArtificialHB.Event:wait() | |
687 | end | |
688 | end | |
689 | end | |
690 | ||
691 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
692 | local NEWMESH = IT(MESH) | |
693 | if MESH == "SpecialMesh" then | |
694 | NEWMESH.MeshType = MESHTYPE | |
695 | if MESHID ~= "nil" and MESHID ~= "" then | |
696 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
697 | end | |
698 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
699 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
700 | end | |
701 | end | |
702 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
703 | NEWMESH.Scale = SCALE | |
704 | NEWMESH.Parent = PARENT | |
705 | return NEWMESH | |
706 | end | |
707 | ||
708 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
709 | local NEWPART = IT("Part") | |
710 | NEWPART.formFactor = FORMFACTOR | |
711 | NEWPART.Reflectance = REFLECTANCE | |
712 | NEWPART.Transparency = TRANSPARENCY | |
713 | NEWPART.CanCollide = false | |
714 | NEWPART.Locked = true | |
715 | NEWPART.Anchored = true | |
716 | if ANCHOR == false then | |
717 | NEWPART.Anchored = false | |
718 | end | |
719 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
720 | NEWPART.Name = NAME | |
721 | NEWPART.Size = SIZE | |
722 | NEWPART.Position = Torso.Position | |
723 | NEWPART.Material = MATERIAL | |
724 | NEWPART:BreakJoints() | |
725 | NEWPART.Parent = PARENT | |
726 | return NEWPART | |
727 | end | |
728 | ||
729 | local function weldBetween(a, b) | |
730 | local weldd = Instance.new("ManualWeld") | |
731 | weldd.Part0 = a | |
732 | weldd.Part1 = b | |
733 | weldd.C0 = CFrame.new() | |
734 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
735 | weldd.Parent = a | |
736 | return weldd | |
737 | end | |
738 | ||
739 | ||
740 | function QuaternionFromCFrame(cf) | |
741 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
742 | local trace = m00 + m11 + m22 | |
743 | if trace > 0 then | |
744 | local s = math.sqrt(1 + trace) | |
745 | local recip = 0.5 / s | |
746 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
747 | else | |
748 | local i = 0 | |
749 | if m11 > m00 then | |
750 | i = 1 | |
751 | end | |
752 | if m22 > (i == 0 and m00 or m11) then | |
753 | i = 2 | |
754 | end | |
755 | if i == 0 then | |
756 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
757 | local recip = 0.5 / s | |
758 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
759 | elseif i == 1 then | |
760 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
761 | local recip = 0.5 / s | |
762 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
763 | elseif i == 2 then | |
764 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
765 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
766 | end | |
767 | end | |
768 | end | |
769 | ||
770 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
771 | local xs, ys, zs = x + x, y + y, z + z | |
772 | local wx, wy, wz = w * xs, w * ys, w * zs | |
773 | local xx = x * xs | |
774 | local xy = x * ys | |
775 | local xz = x * zs | |
776 | local yy = y * ys | |
777 | local yz = y * zs | |
778 | local zz = z * zs | |
779 | return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy)) | |
780 | end | |
781 | ||
782 | function QuaternionSlerp(a, b, t) | |
783 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
784 | local startInterp, finishInterp; | |
785 | if cosTheta >= 0.0001 then | |
786 | if (1 - cosTheta) > 0.0001 then | |
787 | local theta = ACOS(cosTheta) | |
788 | local invSinTheta = 1 / SIN(theta) | |
789 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
790 | finishInterp = SIN(t * theta) * invSinTheta | |
791 | else | |
792 | startInterp = 1 - t | |
793 | finishInterp = t | |
794 | end | |
795 | else | |
796 | if (1 + cosTheta) > 0.0001 then | |
797 | local theta = ACOS(-cosTheta) | |
798 | local invSinTheta = 1 / SIN(theta) | |
799 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
800 | finishInterp = SIN(t * theta) * invSinTheta | |
801 | else | |
802 | startInterp = t - 1 | |
803 | finishInterp = t | |
804 | end | |
805 | end | |
806 | return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp | |
807 | end | |
808 | ||
809 | function Clerp(a, b, t) | |
810 | local qa = {QuaternionFromCFrame(a)} | |
811 | local qb = {QuaternionFromCFrame(b)} | |
812 | local ax, ay, az = a.x, a.y, a.z | |
813 | local bx, by, bz = b.x, b.y, b.z | |
814 | local _t = 1 - t | |
815 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
816 | end | |
817 | ||
818 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
819 | local frame = IT("Frame") | |
820 | frame.BackgroundTransparency = TRANSPARENCY | |
821 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
822 | frame.Position = POSITION | |
823 | frame.Size = SIZE | |
824 | frame.BackgroundColor3 = COLOR | |
825 | frame.BorderColor3 = BORDERCOLOR | |
826 | frame.Name = NAME | |
827 | frame.Parent = PARENT | |
828 | return frame | |
829 | end | |
830 | ||
831 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
832 | local label = IT("TextLabel") | |
833 | label.BackgroundTransparency = 1 | |
834 | label.Size = UD2(1, 0, 1, 0) | |
835 | label.Position = UD2(0, 0, 0, 0) | |
836 | label.TextColor3 = TEXTCOLOR | |
837 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
838 | label.TextTransparency = TRANSPARENCY | |
839 | label.FontSize = TEXTFONTSIZE | |
840 | label.Font = TEXTFONT | |
841 | label.BorderSizePixel = BORDERSIZEPIXEL | |
842 | label.TextScaled = false | |
843 | label.Text = TEXT | |
844 | label.Name = NAME | |
845 | label.Parent = PARENT | |
846 | return label | |
847 | end | |
848 | ||
849 | function NoOutlines(PART) | |
850 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
851 | end | |
852 | ||
853 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
854 | local NEWWELD = IT(TYPE) | |
855 | NEWWELD.Part0 = PART0 | |
856 | NEWWELD.Part1 = PART1 | |
857 | NEWWELD.C0 = C0 | |
858 | NEWWELD.C1 = C1 | |
859 | NEWWELD.Parent = PARENT | |
860 | return NEWWELD | |
861 | end | |
862 | ||
863 | local S = IT("Sound") | |
864 | - | local BasePart = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(1,2,1),false) |
864 | + | |
865 | local NEWSOUND = nil | |
866 | - | local Sphere = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(1.4,1.4,1.4),false) |
866 | + | |
867 | NEWSOUND = S:Clone() | |
868 | NEWSOUND.Parent = PARENT | |
869 | - | local LaserPart = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0.3,0.3,0.1),false) |
869 | + | |
870 | NEWSOUND.Pitch = PITCH | |
871 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
872 | - | local Bump = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.3,0.2),false) |
872 | + | |
873 | if DOESLOOP == true then | |
874 | NEWSOUND.Looped = true | |
875 | - | local BottomLaser = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0.4,0,0.4),false) |
875 | + | |
876 | repeat wait(1) until NEWSOUND.Playing == false | |
877 | NEWSOUND:remove() | |
878 | - | local Part1 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.5,0.5),false) |
878 | + | |
879 | end)) | |
880 | - | local Part2 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.5,0.5),false) |
880 | + | |
881 | end | |
882 | - | local Part3 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.5,0.5),false) |
882 | + | |
883 | function CFrameFromTopBack(at, top, back) | |
884 | - | local Part4 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.56,0.5),false) |
884 | + | |
885 | return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z) | |
886 | - | local Part5 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.56,0.5),false) |
886 | + | |
887 | ||
888 | - | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.25,0.5),false) |
888 | + | |
889 | function WACKYEFFECT(Table) | |
890 | - | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.3,0.5),false) |
890 | + | |
891 | local SIZE = (Table.Size or VT(1,1,1)) | |
892 | - | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(1.4,0,1.4),false) |
892 | + | |
893 | local TRANSPARENCY = (Table.Transparency or 0) | |
894 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
895 | - | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(1.4,0,1.4),false) |
895 | + | |
896 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
897 | local ROTATION1 = (Table.RotationX or 0) | |
898 | - | local Sphere = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(0.3,1.6,0.7),false) |
898 | + | |
899 | local ROTATION3 = (Table.RotationZ or 0) | |
900 | local MATERIAL = (Table.Material or "Neon") | |
901 | local COLOR = (Table.Color or C3(1,1,1)) | |
902 | local TIME = (Table.Time or 45) | |
903 | local SOUNDID = (Table.SoundID or nil) | |
904 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
905 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
906 | coroutine.resume(coroutine.create(function() | |
907 | local PLAYSSOUND = false | |
908 | local SOUND = nil | |
909 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
910 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
911 | PLAYSSOUND = true | |
912 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
913 | end | |
914 | EFFECT.Color = COLOR | |
915 | local MSH = nil | |
916 | if TYPE == "Sphere" then | |
917 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
918 | elseif TYPE == "Block" then | |
919 | MSH = IT("BlockMesh",EFFECT) | |
920 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
921 | elseif TYPE == "Wave" then | |
922 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
923 | elseif TYPE == "Ring" then | |
924 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
925 | elseif TYPE == "Slash" then | |
926 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
927 | elseif TYPE == "Round Slash" then | |
928 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
929 | elseif TYPE == "Swirl" then | |
930 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
931 | elseif TYPE == "Skull" then | |
932 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
933 | elseif TYPE == "Crystal" then | |
934 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
935 | end | |
936 | if MSH ~= nil then | |
937 | local MOVESPEED = nil | |
938 | if MOVEDIRECTION ~= nil then | |
939 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
940 | end | |
941 | local GROWTH = SIZE - ENDSIZE | |
942 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
943 | if TYPE == "Block" then | |
944 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
945 | else | |
946 | EFFECT.CFrame = CFRAME | |
947 | end | |
948 | for LOOP = 1, TIME+1 do | |
949 | Swait() | |
950 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
951 | if TYPE == "Wave" then | |
952 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
953 | end | |
954 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
955 | if TYPE == "Block" then | |
956 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
957 | else | |
958 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
959 | end | |
960 | if MOVEDIRECTION ~= nil then | |
961 | local ORI = EFFECT.Orientation | |
962 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
963 | EFFECT.Orientation = ORI | |
964 | end | |
965 | end | |
966 | if PLAYSSOUND == false then | |
967 | EFFECT:remove() | |
968 | else | |
969 | repeat Swait() until SOUND.Playing == false | |
970 | EFFECT:remove() | |
971 | end | |
972 | else | |
973 | if PLAYSSOUND == false then | |
974 | EFFECT:remove() | |
975 | else | |
976 | repeat Swait() until SOUND.Playing == false | |
977 | EFFECT:remove() | |
978 | end | |
979 | end | |
980 | end)) | |
981 | end | |
982 | ||
983 | function MakeForm(PART,TYPE) | |
984 | if TYPE == "Cyl" then | |
985 | local MSH = IT("CylinderMesh",PART) | |
986 | elseif TYPE == "Ball" then | |
987 | local MSH = IT("SpecialMesh",PART) | |
988 | MSH.MeshType = "Sphere" | |
989 | elseif TYPE == "Wedge" then | |
990 | local MSH = IT("SpecialMesh",PART) | |
991 | MSH.MeshType = "Wedge" | |
992 | end | |
993 | end | |
994 | ||
995 | Debris = game:GetService("Debris") | |
996 | ||
997 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
998 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
999 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
1000 | end | |
1001 | ||
1002 | function CharacterFade(COLOR,TIMER) | |
1003 | coroutine.resume(coroutine.create(function() | |
1004 | local FADE = IT("Model",Effects) | |
1005 | for _, c in pairs(Character:GetChildren()) do | |
1006 | if c.ClassName == "Part" and c ~= RootPart then | |
1007 | local FADER = c:Clone() | |
1008 | FADER.Color = COLOR | |
1009 | FADER.CFrame = c.CFrame | |
1010 | FADER.Parent = FADE | |
1011 | FADER.Anchored = true | |
1012 | FADER.Transparency = 0.25 | |
1013 | FADER:BreakJoints() | |
1014 | FADER.Material = "Glass" | |
1015 | FADER:ClearAllChildren() | |
1016 | if FADER.Name == "Head" then | |
1017 | FADER.Size = VT(1,1,1) | |
1018 | end | |
1019 | end | |
1020 | end | |
1021 | local TRANS = 0.75/TIMER | |
1022 | for i = 1, TIMER do | |
1023 | Swait() | |
1024 | for _, c in pairs(FADE:GetChildren()) do | |
1025 | if c.ClassName == "Part" then | |
1026 | c.Transparency = c.Transparency + TRANS | |
1027 | end | |
1028 | end | |
1029 | end | |
1030 | FADE:remove() | |
1031 | end)) | |
1032 | end | |
1033 | ||
1034 | local PE=Instance.new("ParticleEmitter") | |
1035 | PE.LightEmission=0.3 | |
1036 | PE.Size=NumberSequence.new(0) | |
1037 | PE.Transparency=NumberSequence.new(0,1) | |
1038 | PE.Rotation=NumberRange.new(0,360) | |
1039 | PE.LockedToPart = false | |
1040 | PE.Speed = NumberRange.new(0,0,0) | |
1041 | PE.ZOffset = 0.3 | |
1042 | PE.Rate = 999 | |
1043 | PE.VelocitySpread = 25 | |
1044 | PE.Name = "Particles" | |
1045 | ||
1046 | function CreateParticles(art,accel,drag,lifetime,type,isenabledbydefault,locked,size,speed) | |
1047 | local particle = nil | |
1048 | coroutine.resume(coroutine.create(function(PART) | |
1049 | particle = PE:Clone() | |
1050 | Swait() | |
1051 | particle.Rate = 999 | |
1052 | particle.Parent = art | |
1053 | particle.Acceleration = accel | |
1054 | if type == "Fire" then | |
1055 | local EyeSizes={ | |
1056 | NumberSequenceKeypoint.new(0,size,size/2), | |
1057 | NumberSequenceKeypoint.new(1,size/4,size/8) | |
1058 | } | |
1059 | particle.Size = NumberSequence.new(EyeSizes) | |
1060 | elseif type == "Smoke" then | |
1061 | local EyeSizes={ | |
1062 | NumberSequenceKeypoint.new(0,size/5,0), | |
1063 | NumberSequenceKeypoint.new(1,size*2,0.5) | |
1064 | } | |
1065 | particle.Size = NumberSequence.new(EyeSizes) | |
1066 | elseif type == "Solid" then | |
1067 | local EyeSizes={ | |
1068 | NumberSequenceKeypoint.new(0,size,0), | |
1069 | NumberSequenceKeypoint.new(1,size,0) | |
1070 | } | |
1071 | particle.Size = NumberSequence.new(EyeSizes) | |
1072 | end | |
1073 | particle.Lifetime=NumberRange.new(lifetime) | |
1074 | particle.Drag = drag | |
1075 | if locked == true then | |
1076 | particle.LockedToPart = true | |
1077 | end | |
1078 | particle.Speed = NumberRange.new(speed*0.8,speed) | |
1079 | particle.Texture = "http://www.roblox.com/asset/?id=1179557490" | |
1080 | particle.Enabled = isenabledbydefault | |
1081 | particle.Color = ColorSequence.new(Color3.new(255/255, 176/255, 0)) | |
1082 | end)) | |
1083 | return particle | |
1084 | end | |
1085 | ||
1086 | --//=================================\\ | |
1087 | --|| RAGDOLL STUFF | |
1088 | --\\=================================// | |
1089 | ||
1090 | function recurse(root,callback,i) | |
1091 | i= i or 0 | |
1092 | for _,v in pairs(root:GetChildren()) do | |
1093 | i = i + 1 | |
1094 | callback(i,v) | |
1095 | ||
1096 | if #v:GetChildren() > 0 then | |
1097 | i = recurse(v,callback,i) | |
1098 | end | |
1099 | end | |
1100 | ||
1101 | return i | |
1102 | end | |
1103 | ||
1104 | function ragdollJoint(character, part0, part1, attachmentName, className, properties) | |
1105 | attachmentName = attachmentName.."RigAttachment" | |
1106 | local constraint = Instance.new(className.."Constraint") | |
1107 | constraint.Attachment0 = part0:FindFirstChild(attachmentName) | |
1108 | constraint.Attachment1 = part1:FindFirstChild(attachmentName) | |
1109 | constraint.Name = "RagdollConstraint"..part1.Name | |
1110 | ||
1111 | for _,propertyData in next,properties or {} do | |
1112 | constraint[propertyData[1]] = propertyData[2] | |
1113 | end | |
1114 | ||
1115 | constraint.Parent = character | |
1116 | end | |
1117 | ||
1118 | function getAttachment0(character, attachmentName) | |
1119 | for _,child in next,character:GetChildren() do | |
1120 | local attachment = child:FindFirstChild(attachmentName) | |
1121 | if attachment then | |
1122 | return attachment | |
1123 | end | |
1124 | end | |
1125 | end | |
1126 | ||
1127 | function ArtificialHitbox(Part) | |
1128 | local HITBOX = CreatePart(3, Part, "Metal", 0, 1, "Really black", "Hitbox", Part.Size/2, false) | |
1129 | HITBOX.CanCollide = true | |
1130 | HITBOX.CFrame = Part.CFrame | |
1131 | weldBetween(Part,HITBOX) | |
1132 | end | |
1133 | ||
1134 | function R15Ragdoll(character,KeepArms) | |
1135 | character:BreakJoints() | |
1136 | coroutine.resume(coroutine.create(function() | |
1137 | recurse(character, function(_,v) | |
1138 | if v:IsA("Attachment") then | |
1139 | v.Axis = Vector3.new(0, 1, 0) | |
1140 | v.SecondaryAxis = Vector3.new(0, 0, 1) | |
1141 | v.Rotation = Vector3.new(0, 0, 0) | |
1142 | end | |
1143 | end) | |
1144 | for _,child in next,character:GetChildren() do | |
1145 | if child:IsA("Accoutrement") then | |
1146 | for _,part in next,child:GetChildren() do | |
1147 | if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then | |
1148 | local attachment1 = part:FindFirstChildOfClass("Attachment") | |
1149 | local attachment0 = getAttachment0(character,attachment1.Name) | |
1150 | if attachment0 and attachment1 then | |
1151 | local constraint = Instance.new("HingeConstraint") | |
1152 | constraint.Attachment0 = attachment0 | |
1153 | constraint.Attachment1 = attachment1 | |
1154 | constraint.LimitsEnabled = true | |
1155 | constraint.UpperAngle = 0 | |
1156 | constraint.LowerAngle = 0 | |
1157 | constraint.Parent = character | |
1158 | end | |
1159 | ArtificialHitbox(part) | |
1160 | elseif part.Name == "HumanoidRootPart" then | |
1161 | part:remove() | |
1162 | end | |
1163 | end | |
1164 | end | |
1165 | end | |
1166 | ||
1167 | ragdollJoint(character,character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", { | |
1168 | {"LimitsEnabled",true}; | |
1169 | {"UpperAngle",5}; | |
1170 | }) | |
1171 | if character:FindFirstChild("Head") then | |
1172 | ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "BallSocket", { | |
1173 | {"LimitsEnabled",true}; | |
1174 | {"UpperAngle",15}; | |
1175 | }) | |
1176 | end | |
1177 | ||
1178 | local handProperties = { | |
1179 | {"LimitsEnabled", true}; | |
1180 | {"UpperAngle",0}; | |
1181 | {"LowerAngle",0}; | |
1182 | } | |
1183 | ragdollJoint(character,character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties) | |
1184 | ragdollJoint(character,character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties) | |
1185 | ||
1186 | local shinProperties = { | |
1187 | {"LimitsEnabled", true}; | |
1188 | {"UpperAngle", 0}; | |
1189 | {"LowerAngle", -75}; | |
1190 | } | |
1191 | ragdollJoint(character,character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties) | |
1192 | ragdollJoint(character,character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties) | |
1193 | ||
1194 | local footProperties = { | |
1195 | {"LimitsEnabled", true}; | |
1196 | {"UpperAngle", 15}; | |
1197 | {"LowerAngle", -45}; | |
1198 | } | |
1199 | ragdollJoint(character,character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties) | |
1200 | ragdollJoint(character,character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties) | |
1201 | if KeepArms == true then | |
1202 | ragdollJoint(character,character.UpperTorso, character.RightUpperArm, "RightShoulder", "BallSocket") | |
1203 | ragdollJoint(character,character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket") | |
1204 | ragdollJoint(character,character.UpperTorso, character.LeftUpperArm, "LeftShoulder", "BallSocket") | |
1205 | ragdollJoint(character,character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket") | |
1206 | end | |
1207 | ragdollJoint(character,character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket") | |
1208 | ragdollJoint(character,character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket") | |
1209 | Debris:AddItem(character,5) | |
1210 | end)) | |
1211 | end | |
1212 | ||
1213 | function Ragdoll(Character2,CharTorso,KeepArms) | |
1214 | coroutine.resume(coroutine.create(function() | |
1215 | Character2:BreakJoints() | |
1216 | local hum = Character2:findFirstChild("Humanoid") | |
1217 | hum:remove() | |
1218 | local function Scan(ch) | |
1219 | local e | |
1220 | for e = 1,#ch do | |
1221 | Scan(ch[e]:GetChildren()) | |
1222 | if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then | |
1223 | ch[e]:remove() | |
1224 | end | |
1225 | end | |
1226 | end | |
1227 | local NEWHUM = IT("Humanoid") | |
1228 | NEWHUM.Name = "Corpse" | |
1229 | NEWHUM.Health = 0 | |
1230 | NEWHUM.MaxHealth = 0 | |
1231 | NEWHUM.PlatformStand = true | |
1232 | NEWHUM.Parent = Character2 | |
1233 | NEWHUM.DisplayDistanceType = "None" | |
1234 | ||
1235 | local ch = Character2:GetChildren() | |
1236 | local i | |
1237 | for i = 1,#ch do | |
1238 | if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then | |
1239 | ch[i]:remove() | |
1240 | end | |
1241 | end | |
1242 | ||
1243 | local Torso2 = Character2.Torso | |
1244 | local movevector = Vector3.new() | |
1245 | ||
1246 | if Torso2 then | |
1247 | movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector | |
1248 | local Head = Character2:FindFirstChild("Head") | |
1249 | if Head then | |
1250 | local Neck = Instance.new("Weld") | |
1251 | Neck.Name = "Neck" | |
1252 | Neck.Part0 = Torso2 | |
1253 | Neck.Part1 = Head | |
1254 | Neck.C0 = CFrame.new(0, 1.5, 0) | |
1255 | Neck.C1 = CFrame.new() | |
1256 | Neck.Parent = Torso2 | |
1257 | - | function Buzzsaw() |
1257 | + | |
1258 | end | |
1259 | local Limb = Character2:FindFirstChild("Right Arm") | |
1260 | - | local ARMSPEED = 0.1 |
1260 | + | |
1261 | ||
1262 | Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0) | |
1263 | local Joint = Instance.new("Glue") | |
1264 | Joint.Name = "RightShoulder" | |
1265 | - | local SAWBLADE = CreatePart(3, Weapon, "Neon", 0, 0.5, "Really red", "Part", VT(0,0,0),false) |
1265 | + | |
1266 | - | local WELD = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, SAWBLADE, CF(0,-1,0) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0)) |
1266 | + | |
1267 | - | local BLADE = true |
1267 | + | |
1268 | - | CreateMesh("SpecialMesh", SAWBLADE, "FileMesh", "74322089", "", VT(2,2,1), VT(0,0,0)) |
1268 | + | |
1269 | Joint.Parent = Torso2 | |
1270 | - | repeat |
1270 | + | |
1271 | local B = Instance.new("Part") | |
1272 | - | WELD.C1 = WELD.C1 * ANGLES(RAD(0), RAD(0), RAD(25)) |
1272 | + | |
1273 | - | until BLADE == false |
1273 | + | |
1274 | - | SAWBLADE:remove() |
1274 | + | |
1275 | B.Size = Vector3.new(1, 1, 1) | |
1276 | - | CreateSound(1165167936, SAWBLADE, 2, 1, true) |
1276 | + | |
1277 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
1278 | B.Parent = Character2 | |
1279 | local W = Instance.new("Weld") | |
1280 | W.Part0 = Limb | |
1281 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55, 0.5, -0.5) * ANGLES(RAD(175), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1281 | + | |
1282 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1282 | + | |
1283 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1283 | + | |
1284 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1284 | + | |
1285 | end | |
1286 | - | for i=0, 2, 0.1 / Animation_Speed do |
1286 | + | |
1287 | if Limb and KeepArms == true then | |
1288 | ||
1289 | Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0) | |
1290 | local Joint = Instance.new("Glue") | |
1291 | Joint.Name = "LeftShoulder" | |
1292 | Joint.Part0 = Torso2 | |
1293 | Joint.Part1 = Limb | |
1294 | Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
1295 | Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
1296 | Joint.Parent = Torso2 | |
1297 | ||
1298 | local B = Instance.new("Part") | |
1299 | B.TopSurface = 0 | |
1300 | B.BottomSurface = 0 | |
1301 | B.formFactor = "Symmetric" | |
1302 | B.Size = Vector3.new(1, 1, 1) | |
1303 | B.Transparency = 1 | |
1304 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
1305 | B.Parent = Character2 | |
1306 | local W = Instance.new("Weld") | |
1307 | W.Part0 = Limb | |
1308 | W.Part1 = B | |
1309 | W.C0 = CFrame.new(0, -0.5, 0) | |
1310 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55, 0.5, -0.5) * ANGLES(RAD(15), RAD(0), RAD(45)) * ANGLES(RAD(0), RAD(-45), RAD(0)) * RIGHTSHOULDERC0, ARMSPEED / Animation_Speed) |
1310 | + | |
1311 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1311 | + | |
1312 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1312 | + | |
1313 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1313 | + | |
1314 | if Limb then | |
1315 | ||
1316 | - | ARMSPEED = 0.03 |
1316 | + | |
1317 | local Joint = Instance.new("Glue") | |
1318 | - | RootPart.CFrame = ROOT.CFrame*CF(0,0,2.5) |
1318 | + | |
1319 | - | repeat |
1319 | + | |
1320 | - | HUMAN.Health = HUMAN.Health - 0.5 |
1320 | + | |
1321 | Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
1322 | - | ROOT.Anchored = true |
1322 | + | |
1323 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(1, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) |
1323 | + | |
1324 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed) |
1324 | + | |
1325 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(45)) * ANGLES(RAD(0), RAD(-45), RAD(0)) * RIGHTSHOULDERC0, ARMSPEED / Animation_Speed) |
1325 | + | |
1326 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1326 | + | |
1327 | B.BottomSurface = 0 | |
1328 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1328 | + | |
1329 | - | until RightArm.Position.Y < Torso.Position.Y-0.15 or HUMAN.Health == 0 |
1329 | + | |
1330 | - | ROOT.Anchored = false |
1330 | + | |
1331 | - | if HUMAN.Health == 0 then |
1331 | + | |
1332 | - | if ROOT.Name ~= "Torso" then |
1332 | + | |
1333 | - | ROOT:remove() |
1333 | + | |
1334 | W.Part0 = Limb | |
1335 | - | if TARGET.Name == "Torso" then |
1335 | + | |
1336 | - | Ragdoll(HUMAN.Parent,Torso,true) |
1336 | + | |
1337 | - | elseif TARGET.Name == "UpperTorso" then |
1337 | + | |
1338 | - | R15Ragdoll(HUMAN.Parent,true) |
1338 | + | |
1339 | end | |
1340 | local Limb = Character2:FindFirstChild("Left Leg") | |
1341 | if Limb then | |
1342 | - | BLADE = false |
1342 | + | |
1343 | Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0) | |
1344 | local Joint = Instance.new("Glue") | |
1345 | Joint.Name = "LeftHip" | |
1346 | Joint.Part0 = Torso2 | |
1347 | - | function ReeeEEEEEE() |
1347 | + | |
1348 | Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
1349 | Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
1350 | Joint.Parent = Torso2 | |
1351 | - | local FX = CreateSound(198165368, Head, 4, 0.5, false) |
1351 | + | |
1352 | local B = Instance.new("Part") | |
1353 | B.TopSurface = 0 | |
1354 | - | FX.Parent = Head |
1354 | + | |
1355 | B.formFactor = "Symmetric" | |
1356 | B.Size = Vector3.new(1, 1, 1) | |
1357 | B.Transparency = 1 | |
1358 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
1359 | B.Parent = Character2 | |
1360 | - | local TORSO = CHILD:FindFirstChild("Head") |
1360 | + | |
1361 | - | if TORSO then |
1361 | + | |
1362 | - | if (TORSO.Position - Head.Position).Magnitude <= 25 then |
1362 | + | |
1363 | - | WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = CF(TORSO.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
1363 | + | |
1364 | - | TORSO:remove() |
1364 | + | |
1365 | - | if CHILD:FindFirstChild("Torso") then |
1365 | + | |
1366 | - | Ragdoll(CHILD,Torso,true) |
1366 | + | |
1367 | - | elseif CHILD:FindFirstChild("UpperTorso") then |
1367 | + | |
1368 | - | R15Ragdoll(CHILD,true) |
1368 | + | |
1369 | - | end |
1369 | + | |
1370 | Bar.BottomSurface = 0 | |
1371 | Bar.formFactor = "Symmetric" | |
1372 | Bar.Size = Vector3.new(1, 1, 1) | |
1373 | Bar.Transparency = 1 | |
1374 | Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0) | |
1375 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(0)), 1 / Animation_Speed) |
1375 | + | |
1376 | local Weld = Instance.new("Weld") | |
1377 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(15)) * ANGLES(RAD(0), RAD(15), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1377 | + | |
1378 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(-15)) * ANGLES(RAD(0), RAD(-15), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1378 | + | |
1379 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-45), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1379 | + | |
1380 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-45), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1380 | + | |
1381 | - | until FX.Playing == false |
1381 | + | |
1382 | end | |
1383 | Character2.Parent = workspace | |
1384 | Debris:AddItem(Character2,5) | |
1385 | ||
1386 | return Character2,Torso2 | |
1387 | - | function Needle() |
1387 | + | |
1388 | end | |
1389 | ||
1390 | - | local GYRO = IT("BodyGyro",RootPart) |
1390 | + | |
1391 | - | GYRO.D = 2 |
1391 | + | |
1392 | - | GYRO.P = 2000 |
1392 | + | |
1393 | - | GYRO.MaxTorque = VT(0,4000000,0) |
1393 | + | |
1394 | - | local NEEDGYRO = true |
1394 | + | local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, RightArm, HandlePart, CF(0,-0.8,0) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0)) |
1395 | local EYE = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Eye", VT(0.1,0.25,0.2),false) | |
1396 | - | repeat |
1396 | + | CreateWeldOrSnapOrMotor("Weld", EYE, Head, EYE, CF(0.15,0.25,-0.53) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0, 0, 0)) |
1397 | MakeForm(EYE,"Ball") | |
1398 | - | GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p) |
1398 | + | |
1399 | - | until NEEDGYRO == false |
1399 | + | |
1400 | - | GYRO:Remove() |
1400 | + | |
1401 | local BasePart = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Dark", "Part", VT(1,2,1),false) | |
1402 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, BasePart, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1403 | local Sphere = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Dark", "Part", VT(1.4,1.4,1.4),false) | |
1404 | MakeForm(Sphere,"Ball") | |
1405 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Sphere, CF(0.2,0.8,0.1) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1406 | local LaserPart = CreatePart(3, Weapon, "Neon", 0, 0, "Dark green", "Part", VT(0.3,0.3,0.1),false) | |
1407 | MakeForm(LaserPart,"Ball") | |
1408 | CreateWeldOrSnapOrMotor("Weld", Sphere, Sphere, LaserPart, CF(0,0,-0.65) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1409 | local Bump = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Dark", "Part", VT(0.3,0.3,0.2),false) | |
1410 | MakeForm(Bump,"Ball") | |
1411 | CreateWeldOrSnapOrMotor("Weld", Sphere, Sphere, Bump, CF(0,0,0.65) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1412 | local BottomLaser = CreatePart(3, Weapon, "Neon", 0, 0, "Dark green", "Part", VT(0.4,0,0.4),false) | |
1413 | MakeForm(BottomLaser,"Cyl") | |
1414 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(15), RAD(-45)), 1 / Animation_Speed) |
1414 | + | |
1415 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1415 | + | local Part1 = CreatePart(3, Weapon, "Neon", 0, 0, "Dark green", "Part", VT(0,0.5,0.5),false) |
1416 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part1, CF(0,-0.76,-0.26) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1417 | local Part2 = CreatePart(3, Weapon, "Neon", 0, 0, "Dark green", "Part", VT(0,0.5,0.5),false) | |
1418 | CreateWeldOrSnapOrMotor("Weld", BasePart, Part1, Part2, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0, -0.25, 0)) | |
1419 | local Part3 = CreatePart(3, Weapon, "Neon", 0, 0, "Dark green", "Part", VT(0,0.5,0.5),false) | |
1420 | - | local HIT,POS = CastProperRay(RightArm.CFrame*CF(0,-1,0).p,Mouse.Hit.p,300,Character) |
1420 | + | |
1421 | - | WACKYEFFECT({Time = 45, EffectType = "Wave", Size = VT(1,0,1), Size2 = VT(5,1,5), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 90655239, SoundPitch = 1, SoundVolume = 2}) |
1421 | + | local Part4 = CreatePart(3, Weapon, "Neon", 0, 0, "Dark green", "Part", VT(0,0.56,0.5),false) |
1422 | - | NEEDGYRO = false |
1422 | + | |
1423 | - | if HIT then |
1423 | + | local Part5 = CreatePart(3, Weapon, "Neon", 0, 0, "Dark green", "Part", VT(0,0.56,0.5),false) |
1424 | - | local NEEDLE = IT("Model",Effects) |
1424 | + | |
1425 | - | local BASE = CreatePart(3, NEEDLE, "Glass", 0, 0.5, "Pearl", "Part", VT(0.3,0.6,0.3), false) |
1425 | + | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Dark green", "Part", VT(0,0.25,0.5),false) |
1426 | - | MakeForm(BASE,"Cyl") |
1426 | + | |
1427 | - | BASE.CFrame = CF(POS,RightArm.CFrame*CF(0,-1,0).p) * ANGLES(RAD(90), RAD(0), RAD(0))*CF(0,-0.35,0) |
1427 | + | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Dark green", "Part", VT(0,0.3,0.5),false) |
1428 | - | weldBetween(BASE,HIT) |
1428 | + | |
1429 | - | local FLUID = CreatePart(3, NEEDLE, "Neon", 0, 0, "Lime green", "Part", VT(0.28,0.58,0.28), false) |
1429 | + | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Dark green", "Part", VT(1.4,0,1.4),false) |
1430 | - | MakeForm(FLUID,"Cyl") |
1430 | + | |
1431 | - | FLUID.CFrame = BASE.CFrame |
1431 | + | |
1432 | - | weldBetween(BASE,FLUID) |
1432 | + | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Dark green", "Part", VT(1.4,0,1.4),false) |
1433 | - | local PART = CreatePart(3, NEEDLE, "Metal", 0, 0, "Pearl", "Part", VT(0,0.2,0), false) |
1433 | + | |
1434 | - | PART.CFrame = BASE.CFrame*CF(0,0.4,0) |
1434 | + | |
1435 | - | weldBetween(BASE,PART) |
1435 | + | local Sphere = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Dark", "Part", VT(0.3,1.6,0.7),false) |
1436 | - | local PART = CreatePart(3, NEEDLE, "Metal", 0, 0, "Pearl", "Part", VT(0.1,0.1,0.1), false) |
1436 | + | |
1437 | - | PART.CFrame = BASE.CFrame*CF(0,-0.35,0) |
1437 | + | |
1438 | - | weldBetween(BASE,PART) |
1438 | + | |
1439 | - | local PART = CreatePart(3, NEEDLE, "Metal", 0, 0, "Pearl", "Part", VT(0.2,0.1,0.2), false) |
1439 | + | |
1440 | - | PART.CFrame = BASE.CFrame*CF(0,-0.4,0) |
1440 | + | |
1441 | - | weldBetween(BASE,PART) |
1441 | + | |
1442 | - | Debris:AddItem(NEEDLE,7) |
1442 | + | |
1443 | - | if HIT.Parent:FindFirstChildOfClass("Humanoid") then |
1443 | + | |
1444 | - | local HUMAN = HIT.Parent:FindFirstChildOfClass("Humanoid") |
1444 | + | |
1445 | - | coroutine.resume(coroutine.create(function() |
1445 | + | |
1446 | - | for i = 1, 500 do |
1446 | + | |
1447 | - | HUMAN.Health = HUMAN.Health - MRANDOM(1,6)/5 |
1447 | + | |
1448 | - | if HUMAN.Health == 0 then |
1448 | + | |
1449 | - | break |
1449 | + | |
1450 | ||
1451 | - | Swait(2) |
1451 | + | |
1452 | ATTACK = true | |
1453 | - | if HUMAN.Health == 0 then |
1453 | + | |
1454 | - | local CHILD = HUMAN.Parent |
1454 | + | |
1455 | - | if CHILD:FindFirstChild("Torso") then |
1455 | + | |
1456 | - | CHILD:FindFirstChild("Torso").CFrame = CHILD:FindFirstChild("Torso").CFrame * ANGLES(RAD(2), RAD(0), RAD(0)) |
1456 | + | |
1457 | - | Ragdoll(CHILD,Torso,true) |
1457 | + | |
1458 | - | elseif CHILD:FindFirstChild("UpperTorso") then |
1458 | + | |
1459 | - | R15Ragdoll(CHILD,true) |
1459 | + | |
1460 | local SKILL6FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.70, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame") | |
1461 | ||
1462 | - | end)) |
1462 | + | |
1463 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 2") | |
1464 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 3") | |
1465 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 4") | |
1466 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[E]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 5") | |
1467 | local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[X]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 6") | |
1468 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(15), RAD(-45)), 1 / Animation_Speed) |
1468 | + | |
1469 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1469 | + | |
1470 | --|| ATTACK FUNCTIONS AND STUFF | |
1471 | --\\=================================// | |
1472 | ||
1473 | ||
1474 | function TurretCannon() | |
1475 | ATTACK = true | |
1476 | Rooted = false | |
1477 | for i=0, 0.3, 0.1 / Animation_Speed do | |
1478 | Swait() | |
1479 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
1480 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
1481 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1482 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(25), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1483 | RightHip.C0 = Clerp(RightHip.C0, CF(1, 0, -1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1484 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.5, 0) * ANGLES(RAD(-90), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1485 | end | |
1486 | Rooted = true | |
1487 | local TURRETS = {RightArm} | |
1488 | local soundeffect = IT("Sound",Torso) | |
1489 | soundeffect.SoundId = "rbxassetid://337638956" | |
1490 | soundeffect.Looped = true | |
1491 | soundeffect.Volume = 1 | |
1492 | soundeffect.Playing = true | |
1493 | repeat | |
1494 | Swait() | |
1495 | turnto(Mouse.Hit.p) | |
1496 | local TURRET = TURRETS[MRANDOM(1,#TURRETS)] | |
1497 | MagicSphere(VT(0,0,0),7,TURRET.CFrame*CF(0,-1,0),"Dark green",VT(0.3,0.3,0.3),0) | |
1498 | local BULLET = CreatePart(3, Effects, "Neon", 0, 0, "Dark green", "Bullet", VT(0.2*Player_Size,0.2*Player_Size,4*Player_Size),false) | |
1499 | BULLET.CFrame = CF(TURRET.CFrame*CF(0,-2,0).p,Mouse.Hit.p) | |
1500 | local bv = Instance.new("BodyVelocity") | |
1501 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1502 | bv.velocity = CF(TURRET.Position,Mouse.Hit.p).lookVector*300 | |
1503 | bv.Parent = BULLET | |
1504 | bv.Name = "PROJECTILEVELOCITY" | |
1505 | MakeForm(BULLET,"Ball") | |
1506 | local BOO = BULLET.Touched:Connect(function(hit) | |
1507 | dealdamage(hit,5,8,5,false,2,3) | |
1508 | end) | |
1509 | table.insert(Effects2,{BULLET,"Disappear",0.02,1,0,0,2}) | |
1510 | until KEYHOLD == false | |
1511 | soundeffect:remove() | |
1512 | ATTACK = false | |
1513 | Rooted = false | |
1514 | end | |
1515 | ||
1516 | function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR) | |
1517 | local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT()) | |
1518 | STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0)) | |
1519 | local BODYGYRO = IT("BodyGyro", STATPART) | |
1520 | local BODYPOSITION = IT("BodyPosition", STATPART) | |
1521 | BODYPOSITION.P = 2000 | |
1522 | BODYPOSITION.D = 100 | |
1523 | BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge) | |
1524 | BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2)) | |
1525 | game:GetService("Debris"):AddItem(STATPART ,5) | |
1526 | local BILLBOARDGUI = Instance.new("BillboardGui", STATPART) | |
1527 | BILLBOARDGUI.Adornee = STATPART | |
1528 | BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0) | |
1529 | BILLBOARDGUI.StudsOffset = VT(-2, 2, 0) | |
1530 | BILLBOARDGUI.AlwaysOnTop = true | |
1531 | local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI) | |
1532 | TEXTLABEL.BackgroundTransparency = 1 | |
1533 | TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0) | |
1534 | TEXTLABEL.Text = TEXT | |
1535 | TEXTLABEL.Font = "SciFi" | |
1536 | TEXTLABEL.FontSize="Size42" | |
1537 | TEXTLABEL.TextColor3 = COLOR | |
1538 | TEXTLABEL.TextStrokeTransparency = 1 | |
1539 | TEXTLABEL.TextScaled = true | |
1540 | TEXTLABEL.TextWrapped = true | |
1541 | coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL) | |
1542 | if LABELTYPE == "Normal" then | |
1543 | for i = 1, 20 do | |
1544 | Swait() | |
1545 | STATPART.Position = STATPART.Position + VT(0, (10-i)/10 ,0) | |
1546 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/20) | |
1547 | end | |
1548 | elseif LABELTYPE == "Debuff" then | |
1549 | for i = 1, 20 do | |
1550 | Swait() | |
1551 | STATPART.Position = STATPART.Position - VT(0, i/10 ,0) | |
1552 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/20) | |
1553 | end | |
1554 | elseif LABELTYPE == "Shock" then | |
1555 | local ORIGIN = STATPART.Position | |
1556 | for i = 1, 20 do | |
1557 | Swait() | |
1558 | STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2)) | |
1559 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/20) | |
1560 | end | |
1561 | end | |
1562 | THEPART.Parent = nil | |
1563 | end),STATPART, BODYPOSITION, TEXTLABEL) | |
1564 | end | |
1565 | ||
1566 | ||
1567 | function Bloodbath() | |
1568 | local HASSTARTED = false | |
1569 | local target = nil | |
1570 | local targettorso = nil | |
1571 | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then | |
1572 | if Mouse.Target.Parent.Humanoid.PlatformStand == false then | |
1573 | target = Mouse.Target.Parent.Humanoid | |
1574 | targettorso = Mouse.Target.Parent:FindFirstChild("Torso") or Mouse.Target.Parent:FindFirstChild("UpperTorso") | |
1575 | end | |
1576 | end | |
1577 | if target ~= nil then | |
1578 | CreateSound("305685800", Head, 10, 1) | |
1579 | targettorso.Anchored = true | |
1580 | HASSTARTED = true | |
1581 | ATTACK = true | |
1582 | Rooted = true | |
1583 | CastWarpOutlines(Character) | |
1584 | RootPart.CFrame = targettorso.CFrame * CF(0,0,2) | |
1585 | coroutine.resume(coroutine.create(function() | |
1586 | Swait(10*100) | |
1587 | if HASSTARTED == true then | |
1588 | ATTACK = false | |
1589 | Rooted = false | |
1590 | UNANCHOR = true | |
1591 | end | |
1592 | end)) | |
1593 | UNANCHOR = false | |
1594 | RootPart.Anchored = true | |
1595 | coroutine.resume(coroutine.create(function() | |
1596 | for i=0, 3, 0.1 / Animation_Speed do | |
1597 | Swait() | |
1598 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.05 / Animation_Speed) | |
1599 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.05 / Animation_Speed) | |
1600 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.05 / Animation_Speed) | |
1601 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.05 / Animation_Speed) | |
1602 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.05 / Animation_Speed) | |
1603 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.05 / Animation_Speed) | |
1604 | end | |
1605 | for i=0, 3, 0.1 / Animation_Speed do | |
1606 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(85)), 0.5 / Animation_Speed) | |
1607 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-85)), 0.5 / Animation_Speed) | |
1608 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(85)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1609 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1610 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1611 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1612 | end | |
1613 | getbloody(targettorso,25) | |
1614 | Swait(5) | |
1615 | targettorso:remove() | |
1616 | Swait(15) | |
1617 | ATTACK = false | |
1618 | Rooted = false | |
1619 | HASSTARTED = false | |
1620 | UNANCHOR = true | |
1621 | end)) | |
1622 | end | |
1623 | end | |
1624 | ||
1625 | function Warp() | |
1626 | local HITFLOOR,HITPOS = Raycast(Mouse.Hit.p+VT(0,1,0), (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 100, Character) | |
1627 | if HITFLOOR then | |
1628 | CharacterFade(C3(0.5,0,0),50) | |
1629 | HITPOS = HITPOS + VT(0,3.5,0) | |
1630 | local POS = RootPart.Position | |
1631 | RootPart.CFrame = CF(HITPOS,CF(POS,HITPOS)*CF(0,0,-100000).p) | |
1632 | CreateSound(289556450,Torso,2,MRANDOM(8,13)/10,false) | |
1633 | end | |
1634 | end | |
1635 | ||
1636 | function Dash() | |
1637 | ATTACK = true | |
1638 | Rooted = true | |
1639 | local SOUND = CreateSound(1165167610, Torso, 1, 1, true) | |
1640 | local LOOP = 0 | |
1641 | repeat | |
1642 | LOOP = LOOP + 1 | |
1643 | Swait() | |
1644 | local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, 5, workspace) | |
1645 | local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 100, Character) | |
1646 | if HITFLOOR then | |
1647 | CharacterFade(C3(0.5,0,0),35) | |
1648 | HITPOS = HITPOS + VT(0,3.5,0) | |
1649 | local POS = RootPart.Position | |
1650 | RootPart.CFrame = CF(HITPOS,CF(POS,HITPOS)*CF(0,0,-100000).p) | |
1651 | RootPart.Velocity = VT(0,0,0) | |
1652 | RootPart.RotVelocity = VT(0,0,0) | |
1653 | end | |
1654 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(75), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1655 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-45), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1656 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1657 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1658 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-15), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1659 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-15), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1660 | until KEYHOLD == false | |
1661 | coroutine.resume(coroutine.create(function() | |
1662 | for i = 1, 20 do | |
1663 | Swait() | |
1664 | SOUND.Volume = SOUND.Volume - 1/20 | |
1665 | end | |
1666 | SOUND:remove() | |
1667 | end)) | |
1668 | if LOOP > 50 then | |
1669 | CreateSound(772085046,Torso,5,MRANDOM(8,13)/10,false) | |
1670 | for i = 1, 100 do | |
1671 | Swait() | |
1672 | RootPart.CFrame = RootPart.CFrame * CF(0,0,-(1-(i/100))/3) | |
1673 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(1,0.5,1), Size2 = VT(2,0,2), Transparency = 0.7, Transparency2 = 1, CFrame = CF(RightLeg.CFrame*CF(0,-1,0).p), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0.3,0.3,0.3), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1674 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(1,0.5,1), Size2 = VT(2,0,2), Transparency = 0.7, Transparency2 = 1, CFrame = CF(LeftLeg.CFrame*CF(0,-1,0).p), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0.3,0.3,0.3), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1675 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1676 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1677 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1678 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1679 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1680 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1681 | end | |
1682 | end | |
1683 | ATTACK = false | |
1684 | Rooted = false | |
1685 | end | |
1686 | ||
1687 | function LimbRip() | |
1688 | ATTACK = true | |
1689 | Rooted = false | |
1690 | local TARGET = nil | |
1691 | local ROOT = nil | |
1692 | local HUMAN = nil | |
1693 | local DIST = 4 | |
1694 | Speed = 12 | |
1695 | for i=0, 1, 0.1 / Animation_Speed do | |
1696 | Swait() | |
1697 | local CHILDREN = workspace:GetDescendants() | |
1698 | - | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) |
1698 | + | |
1699 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1700 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1701 | if HUM then | |
1702 | local TORSO = CHILD:FindFirstChild("HumanoidRootPart") or CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1703 | - | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
1703 | + | |
1704 | if (TORSO.Position - RightArm.Position).Magnitude <= DIST then | |
1705 | DIST = (TORSO.Position - RightArm.Position).Magnitude | |
1706 | ROOT = TORSO | |
1707 | HUMAN = HUM | |
1708 | TARGET = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1709 | end | |
1710 | end | |
1711 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed) |
1711 | + | |
1712 | end | |
1713 | end | |
1714 | if ROOT then | |
1715 | break | |
1716 | end | |
1717 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
1718 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(10), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
1719 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.4) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1720 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1721 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
1721 | + | |
1722 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1723 | end | |
1724 | Speed = 16 | |
1725 | if ROOT then | |
1726 | CreateSound(305685800,Torso,5,1.3,false) | |
1727 | Rooted = true | |
1728 | local GORED = false | |
1729 | coroutine.resume(coroutine.create(function() | |
1730 | repeat | |
1731 | Swait() | |
1732 | ROOT.Anchored = true | |
1733 | until GORED == true | |
1734 | ROOT.Anchored = false | |
1735 | end)) | |
1736 | RootPart.CFrame = ROOT.CFrame*CF(0,0,2.25) | |
1737 | if TARGET.Name == "Torso" then | |
1738 | - | sick.SoundId = "rbxassetid://1696854181" |
1738 | + | |
1739 | local LARM = TARGET.Parent:FindFirstChild("Left Arm") | |
1740 | if RARM and LARM then | |
1741 | for i=0, 1, 0.1 / Animation_Speed do | |
1742 | Swait() | |
1743 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1744 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1745 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1746 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1747 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1748 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1749 | end | |
1750 | for _, c in pairs(TARGET.Parent:GetDescendants()) do | |
1751 | if c:IsA("JointInstance") then | |
1752 | if c.Part1 == RARM or c.Part1 == LARM or c.Part0 == RARM or c.Part0 == LARM then | |
1753 | c:remove() | |
1754 | end | |
1755 | end | |
1756 | end | |
1757 | CreateSound(363808674, TARGET, 3, MRANDOM(7,9)/10, false) | |
1758 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, RARM, CF(0,-1.35,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1759 | CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, LARM, CF(0,-1.35,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1760 | for i=0, 1, 0.1 / Animation_Speed do | |
1761 | Swait() | |
1762 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1763 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1764 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(160), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1765 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(160), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1766 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1767 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1768 | end | |
1769 | for i=0, 1, 0.1 / Animation_Speed do | |
1770 | Swait() | |
1771 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.25) * ANGLES(RAD(-25), RAD(0), RAD(80)), 1 / Animation_Speed) | |
1772 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-30)), 1 / Animation_Speed) | |
1773 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(160), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1774 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(160), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1775 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.6) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-65), RAD(0), RAD(0)) * CF(0,1.5,0), 1 / Animation_Speed) | |
1776 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1777 | end | |
1778 | for i=0, 0.1, 0.1 / Animation_Speed do | |
1779 | Swait() | |
1780 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.2, 0.25) * ANGLES(RAD(-35), RAD(0), RAD(80)), 1 / Animation_Speed) | |
1781 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-30)), 1 / Animation_Speed) | |
1782 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(160), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1783 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(160), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1784 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.6) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-65), RAD(0), RAD(0)) * CF(0,-0.3,0), 1 / Animation_Speed) | |
1785 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1786 | end | |
1787 | GORED = true | |
1788 | Ragdoll(TARGET.Parent,Torso) | |
1789 | if ROOT.Name ~= "Torso" then | |
1790 | ROOT:remove() | |
1791 | end | |
1792 | local RGRAB = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, RARM, CF(0,-1.35,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1793 | local LGRAB = CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, LARM, CF(0,-1.35,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1794 | local bv = Instance.new("BodyVelocity",TARGET) | |
1795 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1796 | bv.velocity = TARGET.CFrame.lookVector*75 | |
1797 | Debris:AddItem(bv,0.05) | |
1798 | CreateSound(621557962, RightLeg, 1, MRANDOM(7,9)/10, false) | |
1799 | for i=0, 0.5, 0.1 / Animation_Speed do | |
1800 | Swait() | |
1801 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.2, 0.25) * ANGLES(RAD(-35), RAD(0), RAD(80)), 1 / Animation_Speed) | |
1802 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-30)), 1 / Animation_Speed) | |
1803 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(160), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1804 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(160), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1805 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.6) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-65), RAD(0), RAD(0)) * CF(0,-0.3,0), 1 / Animation_Speed) | |
1806 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1807 | end | |
1808 | for i=0, 1, 0.1 / Animation_Speed do | |
1809 | Swait() | |
1810 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1811 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1812 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.6 / Animation_Speed) | |
1813 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.6 / Animation_Speed) | |
1814 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1815 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1816 | end | |
1817 | local HITBOX = CreatePart(3, RARM, "Metal", 0, 1, "Really black", "Part", RARM.Size, false) | |
1818 | HITBOX.CFrame = RARM.CFrame | |
1819 | HITBOX.CanCollide = true | |
1820 | weldBetween(RARM,HITBOX) | |
1821 | local HITBOX = CreatePart(3, LARM, "Metal", 0, 1, "Really black", "Part", RARM.Size, false) | |
1822 | HITBOX.CFrame = LARM.CFrame | |
1823 | HITBOX.CanCollide = true | |
1824 | weldBetween(LARM,HITBOX) | |
1825 | RGRAB:remove() | |
1826 | LGRAB:remove() | |
1827 | for i=0, 0.4, 0.1 / Animation_Speed do | |
1828 | Swait() | |
1829 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1830 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1831 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(0), RAD(0), RAD(110)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1832 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(0), RAD(0), RAD(-110)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1833 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1834 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1835 | end | |
1836 | end | |
1837 | elseif TARGET.Name == "UpperTorso" then | |
1838 | if TARGET.Parent:FindFirstChild("RightUpperArm") and TARGET.Parent:FindFirstChild("LeftUpperArm") then | |
1839 | for i=0, 0.3, 0.1 / Animation_Speed do | |
1840 | Swait() | |
1841 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
1842 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
1843 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.5) * ANGLES(RAD(140), RAD(0), RAD(45)) * ANGLES(RAD(0), RAD(25), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1844 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1845 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1846 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1847 | end | |
1848 | local SAWBLADE = CreatePart(3, Weapon, "Neon", 0, 0.5, "Really red", "Part", VT(0,0,0),false) | |
1849 | local WELD = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, SAWBLADE, CF(0,-1,0) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0)) | |
1850 | local BLADE = true | |
1851 | CreateMesh("SpecialMesh", SAWBLADE, "FileMesh", "74322089", "", VT(1,1,1), VT(0,0,0)) | |
1852 | coroutine.resume(coroutine.create(function() | |
1853 | repeat | |
1854 | Swait() | |
1855 | WELD.C1 = WELD.C1 * ANGLES(RAD(0), RAD(0), RAD(25)) | |
1856 | until BLADE == false | |
1857 | SAWBLADE:remove() | |
1858 | end)) | |
1859 | CreateSound(1165167936, SAWBLADE, 2, 1, true) | |
1860 | for i=0, 1, 0.1 / Animation_Speed do | |
1861 | Swait() | |
1862 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
1863 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
1864 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.5) * ANGLES(RAD(140), RAD(0), RAD(45)) * ANGLES(RAD(0), RAD(25), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1865 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1866 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1867 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1868 | end | |
1869 | for i=0, 3, 0.1 / Animation_Speed do | |
1870 | Swait() | |
1871 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
1872 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
1873 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.5) * ANGLES(RAD(15), RAD(0), RAD(45)) * ANGLES(RAD(0), RAD(-25), RAD(0)) * RIGHTSHOULDERC0, 0.1 / Animation_Speed) | |
1874 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1875 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1876 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1877 | end | |
1878 | CreateSound(363808674, TARGET, 3, MRANDOM(7,9)/10, false) | |
1879 | TARGET.Parent:FindFirstChild("RightUpperArm").RightShoulder:remove() | |
1880 | for i=0, 1, 0.1 / Animation_Speed do | |
1881 | Swait() | |
1882 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(1, 0, 0.3) * ANGLES(RAD(0), RAD(0), RAD(90)), 1 / Animation_Speed) | |
1883 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-80)), 1 / Animation_Speed) | |
1884 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, 0) * ANGLES(RAD(140), RAD(0), RAD(90)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1885 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1886 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1887 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1888 | end | |
1889 | for i=0, 3, 0.1 / Animation_Speed do | |
1890 | Swait() | |
1891 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(1, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 1 / Animation_Speed) | |
1892 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-80)), 1 / Animation_Speed) | |
1893 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(15)) * ANGLES(RAD(0), RAD(-45), RAD(0)) * RIGHTSHOULDERC0, 0.1 / Animation_Speed) | |
1894 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1895 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1896 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1897 | end | |
1898 | CreateSound(363808674, TARGET, 3, MRANDOM(7,9)/10, false) | |
1899 | TARGET.Parent:FindFirstChild("LeftUpperArm").LeftShoulder:remove() | |
1900 | BLADE = false | |
1901 | for i=0, 0.5, 0.1 / Animation_Speed do | |
1902 | Swait() | |
1903 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.25) * ANGLES(RAD(-25), RAD(0), RAD(80)), 1 / Animation_Speed) | |
1904 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-30)), 1 / Animation_Speed) | |
1905 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-25), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1906 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1907 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.6) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-65), RAD(0), RAD(0)) * CF(0,1.5,0), 1 / Animation_Speed) | |
1908 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1909 | end | |
1910 | for i=0, 0.1, 0.1 / Animation_Speed do | |
1911 | Swait() | |
1912 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.2, 0.25) * ANGLES(RAD(-35), RAD(0), RAD(80)), 1 / Animation_Speed) | |
1913 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-30)), 1 / Animation_Speed) | |
1914 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-32), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1915 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1916 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.6) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-65), RAD(0), RAD(0)) * CF(0,-0.3,0), 1 / Animation_Speed) | |
1917 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1918 | end | |
1919 | GORED = true | |
1920 | TARGET.Parent:BreakJoints() | |
1921 | R15Ragdoll(TARGET.Parent) | |
1922 | if ROOT.Name ~= "Torso" then | |
1923 | ROOT:remove() | |
1924 | end | |
1925 | local bv = Instance.new("BodyVelocity",TARGET) | |
1926 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1927 | bv.velocity = TARGET.CFrame.lookVector*75 | |
1928 | Debris:AddItem(bv,0.05) | |
1929 | CreateSound(621557962, RightLeg, 1, MRANDOM(7,9)/10, false) | |
1930 | for i=0, 0.3, 0.1 / Animation_Speed do | |
1931 | Swait() | |
1932 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.2, 0.25) * ANGLES(RAD(-35), RAD(0), RAD(80)), 1 / Animation_Speed) | |
1933 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-30)), 1 / Animation_Speed) | |
1934 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-32), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1935 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1936 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.6) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-65), RAD(0), RAD(0)) * CF(0,-0.3,0), 1 / Animation_Speed) | |
1937 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1938 | end | |
1939 | end | |
1940 | end | |
1941 | end | |
1942 | ATTACK = false | |
1943 | Rooted = false | |
1944 | end | |
1945 | ||
1946 | function ScrewThis() | |
1947 | ATTACK = true | |
1948 | Rooted = true | |
1949 | local SCREW = CreatePart(3, Weapon, "Neon", 0, 1, "Really red", "Part", VT(2, 0.4, 0.4)/2,false) | |
1950 | SCREW.CanCollide = true | |
1951 | local WELD = CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, SCREW, CF(0,-1,0.2) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0)) | |
1952 | CreateMesh("SpecialMesh", SCREW, "FileMesh", "70265804", "70265794", VT(1,1,1)/1.5, VT(0,0,0)) | |
1953 | for i=0, 0.4, 0.1 / Animation_Speed do | |
1954 | Swait() | |
1955 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1956 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(45)), 1 / Animation_Speed) | |
1957 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1958 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1959 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1960 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1961 | end | |
1962 | SCREW.Transparency = 0 | |
1963 | for i=0, 0.1, 0.1 / Animation_Speed do | |
1964 | Swait() | |
1965 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1966 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
1967 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(60), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1968 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1969 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1970 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1971 | end | |
1972 | for i=0, 1, 0.1 / Animation_Speed do | |
1973 | Swait() | |
1974 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1975 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
1976 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.15, -0.5) * ANGLES(RAD(40), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1977 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.7, 0.5, -0.3) * ANGLES(RAD(120), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(15), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1978 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1979 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1980 | end | |
1981 | for i = 1, 3 do | |
1982 | for i=0, 0.3, 0.1 / Animation_Speed do | |
1983 | Swait() | |
1984 | WELD.C1 = WELD.C1 * ANGLES(RAD(5), RAD(0), RAD(0)) | |
1985 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1986 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
1987 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.15, -0.5) * ANGLES(RAD(40), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1988 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.7, 0.5, -0.3) * ANGLES(RAD(120), RAD(0), RAD(78)) * ANGLES(RAD(0), RAD(15), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1989 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1990 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1991 | end | |
1992 | for i=0, 1, 0.1 / Animation_Speed do | |
1993 | Swait() | |
1994 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1995 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
1996 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.15, -0.5) * ANGLES(RAD(40), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1997 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.7, 0.5, -0.3) * ANGLES(RAD(120), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(15), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1998 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1999 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2000 | end | |
2001 | end | |
2002 | if MRANDOM(1, 5) == 1 then | |
2003 | DUST:Emit(25) | |
2004 | WELD:remove() | |
2005 | CreateSound(328460122, RightArm, 3, 1, false) | |
2006 | SCREW.Velocity = CF(RightArm.Position,SCREW.Position).lookVector*65 | |
2007 | Debris:AddItem(SCREW,6) | |
2008 | for i=0, 3, 0.1 / Animation_Speed do | |
2009 | Swait() | |
2010 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2011 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
2012 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.15, -0.5) * ANGLES(RAD(40), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2013 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.7, 0.5, -0.3) * ANGLES(RAD(120), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(15), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2014 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2015 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2016 | end | |
2017 | for i = 1, 3 do | |
2018 | for i=0, 0.35, 0.1 / Animation_Speed do | |
2019 | Swait() | |
2020 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2021 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(15)), 1 / Animation_Speed) | |
2022 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.15, -0.5) * ANGLES(RAD(40), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2023 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.7, 0.5, -0.3) * ANGLES(RAD(120), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(15), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2024 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2025 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2026 | end | |
2027 | for i=0, 0.35, 0.1 / Animation_Speed do | |
2028 | Swait() | |
2029 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2030 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-15)), 1 / Animation_Speed) | |
2031 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.15, -0.5) * ANGLES(RAD(40), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2032 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.7, 0.5, -0.3) * ANGLES(RAD(120), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(15), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2033 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2034 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2035 | end | |
2036 | end | |
2037 | else | |
2038 | for i=0, 0.5, 0.1 / Animation_Speed do | |
2039 | Swait() | |
2040 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2041 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(60)), 1 / Animation_Speed) | |
2042 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2043 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2044 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2045 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2046 | end | |
2047 | WELD:remove() | |
2048 | for i=0, 0.15, 0.1 / Animation_Speed do | |
2049 | Swait() | |
2050 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2051 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(60)), 1 / Animation_Speed) | |
2052 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2053 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-110)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2054 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2055 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2056 | end | |
2057 | Debris:AddItem(SCREW,6) | |
2058 | end | |
2059 | ATTACK = false | |
2060 | Rooted = false | |
2061 | end | |
2062 | ||
2063 | --//=================================\\ | |
2064 | --|| ASSIGN THINGS TO KEYS | |
2065 | --\\=================================// | |
2066 | ||
2067 | function MouseDown(Mouse) | |
2068 | if ATTACK == false then | |
2069 | end | |
2070 | end | |
2071 | ||
2072 | function MouseUp(Mouse) | |
2073 | HOLD = false | |
2074 | end | |
2075 | ||
2076 | function KeyDown(Key) | |
2077 | KEYHOLD = true | |
2078 | if Key == "z" and ATTACK == false then | |
2079 | Warp() | |
2080 | end | |
2081 | ||
2082 | if Key == "b" and ATTACK == false then | |
2083 | Dash() | |
2084 | end | |
2085 | ||
2086 | if Key == "f" and ATTACK == false then | |
2087 | BANSLAM() | |
2088 | end | |
2089 | ||
2090 | if Key == "c" and ATTACK == false then | |
2091 | LimbRip() | |
2092 | end | |
2093 | ||
2094 | if Key == "v" and ATTACK == false then | |
2095 | Buzzsaw() | |
2096 | end | |
2097 | ||
2098 | if Key == "e" and ATTACK == false then | |
2099 | ReeeEEEEEE() | |
2100 | end | |
2101 | ||
2102 | if Key == "q" and ATTACK == false then | |
2103 | Bloodbath() | |
2104 | end | |
2105 | ||
2106 | if Key == "x" and ATTACK == false then | |
2107 | Needle() | |
2108 | end | |
2109 | ||
2110 | if Key == "r" and ATTACK == false then | |
2111 | TurretCannon() | |
2112 | end | |
2113 | ||
2114 | if Key == "t" and ATTACK == false then | |
2115 | ScrewThis() | |
2116 | end | |
2117 | end | |
2118 | ||
2119 | function KeyUp(Key) | |
2120 | KEYHOLD = false | |
2121 | end | |
2122 | ||
2123 | Mouse.Button1Down:connect(function(NEWKEY) | |
2124 | MouseDown(NEWKEY) | |
2125 | end) | |
2126 | Mouse.Button1Up:connect(function(NEWKEY) | |
2127 | MouseUp(NEWKEY) | |
2128 | end) | |
2129 | Mouse.KeyDown:connect(function(NEWKEY) | |
2130 | KeyDown(NEWKEY) | |
2131 | end) | |
2132 | Mouse.KeyUp:connect(function(NEWKEY) | |
2133 | KeyUp(NEWKEY) | |
2134 | end) | |
2135 | ||
2136 | --//=================================\\ | |
2137 | --\\=================================// | |
2138 | ||
2139 | function AntiTimeStop() | |
2140 | for _, c in pairs(Character:GetChildren()) do | |
2141 | if c:IsA("BasePart") then | |
2142 | c.Anchored = false | |
2143 | end | |
2144 | end | |
2145 | for _, c in pairs(Weapon:GetChildren()) do | |
2146 | if c:IsA("BasePart") then | |
2147 | c.Anchored = false | |
2148 | end | |
2149 | end | |
2150 | end | |
2151 | ||
2152 | --//=================================\\ | |
2153 | --|| WRAP THE WHOLE SCRIPT UP | |
2154 | --\\=================================// | |
2155 | ||
2156 | Humanoid.Changed:connect(function(Jump) | |
2157 | if Jump == "Jump" and (Disable_Jump == true) then | |
2158 | Humanoid.Jump = false | |
2159 | end | |
2160 | end) | |
2161 | ||
2162 | local sick = IT("Sound") | |
2163 | ||
2164 | while true do | |
2165 | Swait() | |
2166 | script.Parent = WEAPONGUI | |
2167 | ANIMATE.Parent = nil | |
2168 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
2169 | v:Stop(); | |
2170 | end | |
2171 | SINE = SINE + CHANGE | |
2172 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
2173 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
2174 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
2175 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
2176 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
2177 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2178 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2179 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2- 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(90 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2180 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(90 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2181 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
2182 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2183 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2184 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2185 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2186 | end | |
2187 | if HITFLOOR == nil then | |
2188 | ANIM = "Midair" | |
2189 | if ATTACK == false then | |
2190 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2191 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2192 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75, 0) * ANGLES(RAD(-15), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2193 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(-15), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2194 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.2, -0.6) * ANGLES(RAD(15), RAD(70), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2195 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.2, -0.6) * ANGLES(RAD(15), RAD(-70), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2196 | end | |
2197 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
2198 | ANIM = "Idle" | |
2199 | if ATTACK == false then | |
2200 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2201 | if VALUE1 == false then | |
2202 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2203 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.35 * SIN(SINE / 12), 0) * ANGLES(RAD(0), RAD(0), RAD(10 - 15 * COS(SINE / 12))) * ANGLES(RAD(0), RAD(-15), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2204 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.35 * SIN(SINE / 12), 0) * ANGLES(RAD(0), RAD(0), RAD(-10 + 15 * COS(SINE / 12))) * ANGLES(RAD(0), RAD(15), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2205 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2206 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2207 | if VALUE1 == false and MRANDOM(1,200) == 1 then | |
2208 | VALUE1 = true | |
2209 | for i = 1, 25 do | |
2210 | Swait() | |
2211 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-5), RAD((15+MRANDOM(-15,15)/15)), RAD(0)), 3 / Animation_Speed) | |
2212 | end | |
2213 | VALUE1 = false | |
2214 | end | |
2215 | end | |
2216 | end | |
2217 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
2218 | ANIM = "Walk" | |
2219 | if ATTACK == false then | |
2220 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(10 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed) | |
2221 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-10 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed) | |
2222 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * ANGLES(RAD(0), RAD(-15), RAD(0)) * RIGHTSHOULDERC0, 0.8 / Animation_Speed) | |
2223 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * ANGLES(RAD(0), RAD(15), RAD(0)) * LEFTSHOULDERC0, 0.8 / Animation_Speed) | |
2224 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed) | |
2225 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed) | |
2226 | end | |
2227 | end | |
2228 | if Head:FindFirstChild("face") then | |
2229 | Head.face.Texture = "http://www.roblox.com/asset/?id=120463437" | |
2230 | end | |
2231 | ||
2232 | sick.SoundId = "rbxassetid://720316845" | |
2233 | sick.Looped = true | |
2234 | sick.Pitch = 1 | |
2235 | sick.Volume = 2 | |
2236 | sick.Playing = true | |
2237 | sick.Parent = Effects | |
2238 | AntiTimeStop() | |
2239 | if Rooted == false then | |
2240 | Disable_Jump = false | |
2241 | Humanoid.WalkSpeed = Speed | |
2242 | elseif Rooted == true then | |
2243 | Disable_Jump = true | |
2244 | Humanoid.WalkSpeed = 0 | |
2245 | end | |
2246 | end | |
2247 | ||
2248 | --//=================================\\ | |
2249 | --\\=================================// | |
2250 | ||
2251 | --//====================================================\\-- | |
2252 | --|| END OF SCRIPT | |
2253 | --\\====================================================//-- |