SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
2 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
3 | do | |
4 | print("FE Compatibility code by Mokiros | Translated to FE by iPxter") | |
5 | script.Parent = Player.Character | |
6 | ||
7 | --RemoteEvent for communicating | |
8 | local Event = Instance.new("RemoteEvent") | |
9 | Event.Name = "UserInput_Event" | |
10 | ||
11 | --Fake event to make stuff like Mouse.KeyDown work | |
12 | local function fakeEvent() | |
13 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} | |
14 | - | local Player = game.Players.localPlayer |
14 | + | t.connect = t.Connect |
15 | return t | |
16 | end | |
17 | ||
18 | --Creating fake input objects with fake variables | |
19 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
20 | - | local Mouse = Player:GetMouse() |
20 | + | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} |
21 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
22 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
23 | end} | |
24 | --Merged 2 functions into one by checking amount of arguments | |
25 | CAS.UnbindAction = CAS.BindAction | |
26 | ||
27 | --This function will trigger the events that have been :Connect()'ed | |
28 | local function te(self,ev,...) | |
29 | local t = m[ev] | |
30 | if t and t._fakeEvent and t.Function then | |
31 | t.Function(...) | |
32 | end | |
33 | end | |
34 | m.TrigEvent = te | |
35 | UIS.TrigEvent = te | |
36 | ||
37 | Event.OnServerEvent:Connect(function(plr,io) | |
38 | if plr~=Player then return end | |
39 | if io.isMouse then | |
40 | m.Target = io.Target | |
41 | m.Hit = io.Hit | |
42 | else | |
43 | local b = io.UserInputState == Enum.UserInputState.Begin | |
44 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
45 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
46 | end | |
47 | for _,t in pairs(CAS.Actions) do | |
48 | for _,k in pairs(t.Keys) do | |
49 | if k==io.KeyCode then | |
50 | t.Function(t.Name,io.UserInputState,io) | |
51 | end | |
52 | end | |
53 | end | |
54 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
55 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
56 | end | |
57 | end) | |
58 | Event.Parent = NLS([==[ | |
59 | local Player = game:GetService("Players").LocalPlayer | |
60 | local Event = script:WaitForChild("UserInput_Event") | |
61 | ||
62 | local UIS = game:GetService("UserInputService") | |
63 | local input = function(io,a) | |
64 | if a then return end | |
65 | --Since InputObject is a client-side instance, we create and pass table instead | |
66 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
67 | end | |
68 | UIS.InputBegan:Connect(input) | |
69 | UIS.InputEnded:Connect(input) | |
70 | ||
71 | local Mouse = Player:GetMouse() | |
72 | local h,t | |
73 | --Give the server mouse data 30 times every second, but only if the values changed | |
74 | --If player is not moving their mouse, client won't fire events | |
75 | while wait(1/30) do | |
76 | if h~=Mouse.Hit or t~=Mouse.Target then | |
77 | h,t=Mouse.Hit,Mouse.Target | |
78 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
79 | end | |
80 | end]==],Player.Character) | |
81 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
82 | end | |
83 | ||
84 | --[[ | |
85 | REANIMATED | |
86 | { Never.. Give.. Up.. } | |
87 | Created by Quil_Cyndaquil (ROBLOX) [UserID 5719877] | |
88 | MintyLatios (V3rmillion) | |
89 | Nebula Zorua#1938 | |
90 | ||
91 | ||
92 | --]] | |
93 | wait(3) | |
94 | wait(1 / 60) | |
95 | Effects = { } | |
96 | local debugIt = false | |
97 | local Player = owner | |
98 | local Character = Player.Character | |
99 | Character.Archivable=true | |
100 | local FCharacter = Character:Clone() | |
101 | Character.Archivable=false | |
102 | local Humanoid = Character.Humanoid | |
103 | local LeftArm = Character["Left Arm"] | |
104 | local RightArm = Character["Right Arm"] | |
105 | local LeftLeg = Character["Left Leg"] | |
106 | local RightLeg = Character["Right Leg"] | |
107 | local Head = Character.Head | |
108 | local Torso = Character.Torso | |
109 | local Camera = game.Workspace.CurrentCamera | |
110 | local RootPart = Character.HumanoidRootPart | |
111 | local RootJoint = RootPart.RootJoint | |
112 | local attack = false | |
113 | local Anim = 'Idle' | |
114 | local attacktype = 1 | |
115 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
116 | local velocity = RootPart.Velocity.y | |
117 | local sine = 0 | |
118 | local change = 1 | |
119 | local Create = LoadLibrary("RbxUtility").Create | |
120 | ||
121 | local m = Create("Model"){ | |
122 | Parent = Character, | |
123 | Name = "WeaponModel", | |
124 | } | |
125 | ||
126 | Humanoid.Animator.Parent = nil | |
127 | Character.Animate.Parent = nil | |
128 | ||
129 | local newMotor = function(part0, part1, c0, c1) | |
130 | local w = Create('Weld'){ | |
131 | Parent = part0, | |
132 | Part0 = part0, | |
133 | Part1 = part1, | |
134 | C0 = c0, | |
135 | C1 = c1, | |
136 | } | |
137 | return w | |
138 | end | |
139 | ||
140 | function clerp(a, b, t) | |
141 | return a:lerp(b, t) | |
142 | end | |
143 | ||
144 | RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
145 | NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
146 | ||
147 | local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) | |
148 | local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0)) | |
149 | local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0)) | |
150 | local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0)) | |
151 | RootJoint.C1 = CFrame.new(0, 0, 0) | |
152 | RootJoint.C0 = CFrame.new(0, 0, 0) | |
153 | Torso.Neck.C1 = CFrame.new(0, 0, 0) | |
154 | Torso.Neck.C0 = CFrame.new(0, 1.5, 0) | |
155 | ||
156 | local rarmc1 = RW.C1 | |
157 | local larmc1 = LW.C1 | |
158 | local rlegc1 = RH.C1 | |
159 | local llegc1 = LH.C1 | |
160 | ||
161 | local resetc1 = false | |
162 | ||
163 | function PlayAnimationFromTable(table, speed, bool) | |
164 | RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) | |
165 | Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) | |
166 | RW.C0 = clerp(RW.C0, table[3], speed) | |
167 | LW.C0 = clerp(LW.C0, table[4], speed) | |
168 | RH.C0 = clerp(RH.C0, table[5], speed) | |
169 | LH.C0 = clerp(LH.C0, table[6], speed) | |
170 | LH.C1 = clerp(LH.C1,CFrame.new(0,0,0),speed) | |
171 | RH.C1 = clerp(RH.C1,CFrame.new(0,0,0),speed) | |
172 | if bool == true then | |
173 | if resetc1 == false then | |
174 | resetc1 = true | |
175 | RootJoint.C1 = RootJoint.C1 | |
176 | Torso.Neck.C1 = Torso.Neck.C1 | |
177 | RW.C1 = rarmc1 | |
178 | LW.C1 = larmc1 | |
179 | RH.C1 = rlegc1 | |
180 | LH.C1 = llegc1 | |
181 | end | |
182 | end | |
183 | end | |
184 | ||
185 | ArtificialHB = Create("BindableEvent", script){ | |
186 | Parent = script, | |
187 | Name = "Heartbeat", | |
188 | } | |
189 | ||
190 | script:WaitForChild("Heartbeat") | |
191 | ||
192 | frame = 1 / 30 | |
193 | tf = 0 | |
194 | allowframeloss = false | |
195 | tossremainder = false | |
196 | lastframe = tick() | |
197 | script.Heartbeat:Fire() | |
198 | ||
199 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
200 | tf = tf + s | |
201 | if tf >= frame then | |
202 | if allowframeloss then | |
203 | script.Heartbeat:Fire() | |
204 | lastframe = tick() | |
205 | else | |
206 | for i = 1, math.floor(tf / frame) do | |
207 | script.Heartbeat:Fire() | |
208 | end | |
209 | lastframe = tick() | |
210 | end | |
211 | if tossremainder then | |
212 | tf = 0 | |
213 | else | |
214 | tf = tf - frame * math.floor(tf / frame) | |
215 | end | |
216 | end | |
217 | end) | |
218 | ||
219 | function swait(num) | |
220 | if num == 0 or num == nil then | |
221 | ArtificialHB.Event:wait() | |
222 | else | |
223 | for i = 0, num do | |
224 | ArtificialHB.Event:wait() | |
225 | end | |
226 | end | |
227 | end | |
228 | ||
229 | function RemoveOutlines(part) | |
230 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
231 | end | |
232 | ||
233 | CFuncs = { | |
234 | ["Part"] = { | |
235 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
236 | local Part = Create("Part"){ | |
237 | Parent = Parent, | |
238 | Reflectance = Reflectance, | |
239 | Transparency = Transparency, | |
240 | CanCollide = false, | |
241 | Locked = true, | |
242 | BrickColor = BrickColor.new(tostring(BColor)), | |
243 | Name = Name, | |
244 | Size = Size, | |
245 | Material = Material, | |
246 | } | |
247 | RemoveOutlines(Part) | |
248 | return Part | |
249 | end; | |
250 | }; | |
251 | ||
252 | ["Mesh"] = { | |
253 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
254 | local Msh = Create(Mesh){ | |
255 | Parent = Part, | |
256 | Offset = OffSet, | |
257 | Scale = Scale, | |
258 | } | |
259 | if Mesh == "SpecialMesh" then | |
260 | Msh.MeshType = MeshType | |
261 | Msh.MeshId = MeshId | |
262 | end | |
263 | return Msh | |
264 | end; | |
265 | }; | |
266 | ||
267 | ["Mesh"] = { | |
268 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
269 | local Msh = Create(Mesh){ | |
270 | Parent = Part, | |
271 | Offset = OffSet, | |
272 | Scale = Scale, | |
273 | } | |
274 | if Mesh == "SpecialMesh" then | |
275 | Msh.MeshType = MeshType | |
276 | Msh.MeshId = MeshId | |
277 | end | |
278 | return Msh | |
279 | end; | |
280 | }; | |
281 | ||
282 | ["Weld"] = { | |
283 | Create = function(Parent, Part0, Part1, C0, C1) | |
284 | local Weld = Create("Weld"){ | |
285 | Parent = Parent, | |
286 | Part0 = Part0, | |
287 | Part1 = Part1, | |
288 | C0 = C0, | |
289 | C1 = C1, | |
290 | } | |
291 | return Weld | |
292 | end; | |
293 | }; | |
294 | ||
295 | ["Sound"] = { | |
296 | Create = function(id, par, vol, pit) | |
297 | coroutine.resume(coroutine.create(function() | |
298 | local S = Create("Sound"){ | |
299 | Volume = vol, | |
300 | Pitch = pit or 1, | |
301 | SoundId = id, | |
302 | Parent = par or workspace, | |
303 | } | |
304 | wait() | |
305 | S:play() | |
306 | game:GetService("Debris"):AddItem(S, 6) | |
307 | end)) | |
308 | end; | |
309 | }; | |
310 | ||
311 | ["ParticleEmitter"] = { | |
312 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
313 | local fp = Create("ParticleEmitter"){ | |
314 | Parent = Parent, | |
315 | Color = ColorSequence.new(Color1, Color2), | |
316 | LightEmission = LightEmission, | |
317 | Size = Size, | |
318 | Texture = Texture, | |
319 | Transparency = Transparency, | |
320 | ZOffset = ZOffset, | |
321 | Acceleration = Accel, | |
322 | Drag = Drag, | |
323 | - | Value = game:service("Players").LocalPlayer, |
323 | + | |
324 | VelocityInheritance = VelocityInheritance, | |
325 | EmissionDirection = EmissionDirection, | |
326 | Enabled = Enabled, | |
327 | Lifetime = LifeTime, | |
328 | Rate = Rate, | |
329 | Rotation = Rotation, | |
330 | RotSpeed = RotSpeed, | |
331 | Speed = Speed, | |
332 | VelocitySpread = VelocitySpread, | |
333 | } | |
334 | return fp | |
335 | end; | |
336 | }; | |
337 | ||
338 | CreateTemplate = { | |
339 | ||
340 | }; | |
341 | } | |
342 | ||
343 | function rayCast(Position, Direction, Range, Ignore) | |
344 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
345 | end | |
346 | ||
347 | --[[FindNearestTorso = function(pos) | |
348 | local list = (game.Workspace:children()) | |
349 | local torso = nil | |
350 | local dist = 1000 | |
351 | local temp, human, temp2 = nil, nil, nil | |
352 | for x = 1, #list do | |
353 | temp2 = list[x] | |
354 | if temp2.className == "Model" and temp2.Name ~= Character.Name then | |
355 | temp = temp2:findFirstChild("Torso") | |
356 | human = temp2:findFirstChild("Humanoid") | |
357 | if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then | |
358 | local dohit = true | |
359 | if dohit == true then | |
360 | torso = temp | |
361 | dist = (temp.Position - pos).magnitude | |
362 | end | |
363 | end | |
364 | end | |
365 | end | |
366 | return torso, dist | |
367 | end]] | |
368 | function FindNearestTorso(Position, Distance, SinglePlayer) | |
369 | if SinglePlayer then | |
370 | return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance | |
371 | end | |
372 | local List = {} | |
373 | for i, v in pairs(workspace:GetChildren()) do | |
374 | if v:IsA("Model") then | |
375 | if v:findFirstChild("Torso") then | |
376 | if v ~= Character then | |
377 | if (v.Torso.Position - Position).magnitude <= Distance then | |
378 | table.insert(List, v) | |
379 | end | |
380 | end | |
381 | end | |
382 | end | |
383 | end | |
384 | return List | |
385 | end | |
386 | ||
387 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
388 | if hit.Parent == nil then | |
389 | return | |
390 | end | |
391 | local h = hit.Parent:FindFirstChild("Humanoid") | |
392 | for _, v in pairs(hit.Parent:children()) do | |
393 | if v:IsA("Humanoid") then | |
394 | h = v | |
395 | end | |
396 | end | |
397 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
398 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then | |
399 | if hit.Parent.DebounceHit.Value == true then | |
400 | return | |
401 | end | |
402 | end | |
403 | local c = Create("ObjectValue"){ | |
404 | Name = "creator", | |
405 | Value = owner, | |
406 | Parent = h, | |
407 | } | |
408 | game:GetService("Debris"):AddItem(c, .5) | |
409 | if HitSound ~= nil and HitPitch ~= nil then | |
410 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
411 | end | |
412 | local Damage = math.random(minim, maxim) | |
413 | local blocked = false | |
414 | local block = hit.Parent:findFirstChild("Block") | |
415 | if block ~= nil then | |
416 | if block.className == "IntValue" then | |
417 | if block.Value > 0 then | |
418 | blocked = true | |
419 | block.Value = block.Value - 1 | |
420 | print(block.Value) | |
421 | end | |
422 | end | |
423 | end | |
424 | if blocked == false then | |
425 | h.Health = h.Health - Damage | |
426 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color) | |
427 | else | |
428 | h.Health = h.Health - (Damage / 2) | |
429 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color) | |
430 | end | |
431 | if Type == "Knockdown" then | |
432 | local hum = hit.Parent.Humanoid | |
433 | hum.PlatformStand = true | |
434 | coroutine.resume(coroutine.create(function(HHumanoid) | |
435 | swait(1) | |
436 | HHumanoid.PlatformStand = false | |
437 | end), hum) | |
438 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
439 | local bodvol = Create("BodyVelocity"){ | |
440 | velocity = angle * knockback, | |
441 | P = 5000, | |
442 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
443 | Parent = hit, | |
444 | } | |
445 | local rl = Create("BodyAngularVelocity"){ | |
446 | P = 3000, | |
447 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
448 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
449 | Parent = hit, | |
450 | } | |
451 | game:GetService("Debris"):AddItem(bodvol, .5) | |
452 | game:GetService("Debris"):AddItem(rl, .5) | |
453 | elseif Type == "Normal" then | |
454 | local vp = Create("BodyVelocity"){ | |
455 | P = 500, | |
456 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
457 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
458 | } | |
459 | if knockback > 0 then | |
460 | vp.Parent = hit.Parent.Torso | |
461 | end | |
462 | game:GetService("Debris"):AddItem(vp, .5) | |
463 | elseif Type == "Up" then | |
464 | local bodyVelocity = Create("BodyVelocity"){ | |
465 | velocity = Vector3.new(0, 20, 0), | |
466 | P = 5000, | |
467 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
468 | Parent = hit, | |
469 | } | |
470 | game:GetService("Debris"):AddItem(bodyVelocity, .5) | |
471 | elseif Type == "DarkUp" then | |
472 | coroutine.resume(coroutine.create(function() | |
473 | for i = 0, 1, 0.1 do | |
474 | swait() | |
475 | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1) | |
476 | end | |
477 | end)) | |
478 | local bodyVelocity = Create("BodyVelocity"){ | |
479 | velocity = Vector3.new(0, 20, 0), | |
480 | P = 5000, | |
481 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
482 | Parent = hit, | |
483 | } | |
484 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
485 | elseif Type == "Snare" then | |
486 | local bp = Create("BodyPosition"){ | |
487 | P = 2000, | |
488 | D = 100, | |
489 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
490 | position = hit.Parent.Torso.Position, | |
491 | Parent = hit.Parent.Torso, | |
492 | } | |
493 | game:GetService("Debris"):AddItem(bp, 1) | |
494 | elseif Type == "Freeze" then | |
495 | local BodPos = Create("BodyPosition"){ | |
496 | P = 50000, | |
497 | D = 1000, | |
498 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
499 | position = hit.Parent.Torso.Position, | |
500 | Parent = hit.Parent.Torso, | |
501 | } | |
502 | local BodGy = Create("BodyGyro") { | |
503 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
504 | P = 20e+003, | |
505 | Parent = hit.Parent.Torso, | |
506 | cframe = hit.Parent.Torso.CFrame, | |
507 | } | |
508 | hit.Parent.Torso.Anchored = true | |
509 | coroutine.resume(coroutine.create(function(Part) | |
510 | swait(1.5) | |
511 | Part.Anchored = false | |
512 | end), hit.Parent.Torso) | |
513 | game:GetService("Debris"):AddItem(BodPos, 3) | |
514 | game:GetService("Debris"):AddItem(BodGy, 3) | |
515 | end | |
516 | local debounce = Create("BoolValue"){ | |
517 | Name = "DebounceHit", | |
518 | Parent = hit.Parent, | |
519 | Value = true, | |
520 | } | |
521 | game:GetService("Debris"):AddItem(debounce, Delay) | |
522 | c = Create("ObjectValue"){ | |
523 | Name = "creator", | |
524 | Value = Player, | |
525 | Parent = h, | |
526 | } | |
527 | game:GetService("Debris"):AddItem(c, .5) | |
528 | end | |
529 | end | |
530 | ||
531 | function ShowDamage(Pos, Text, Time, Color) | |
532 | local Rate = (1 / 30) | |
533 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
534 | local Text = (Text or "") | |
535 | local Time = (Time or 2) | |
536 | local Color = (Color or Color3.new(1, 0, 1)) | |
537 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
538 | EffectPart.Anchored = true | |
539 | local BillboardGui = Create("BillboardGui"){ | |
540 | Size = UDim2.new(3, 0, 3, 0), | |
541 | Adornee = EffectPart, | |
542 | Parent = EffectPart, | |
543 | } | |
544 | local TextLabel = Create("TextLabel"){ | |
545 | BackgroundTransparency = 1, | |
546 | Size = UDim2.new(1, 0, 1, 0), | |
547 | Text = Text, | |
548 | Font = "SciFi", | |
549 | TextColor3 = Color, | |
550 | TextScaled = true, | |
551 | Parent = BillboardGui, | |
552 | } | |
553 | game.Debris:AddItem(EffectPart, (Time)) | |
554 | EffectPart.Parent = game:GetService("Workspace") | |
555 | delay(0, function() | |
556 | local Frames = (Time / Rate) | |
557 | for Frame = 1, Frames do | |
558 | wait(Rate) | |
559 | local Percent = (Frame / Frames) | |
560 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
561 | TextLabel.TextTransparency = Percent | |
562 | end | |
563 | if EffectPart and EffectPart.Parent then | |
564 | EffectPart:Destroy() | |
565 | end | |
566 | end) | |
567 | end | |
568 | ||
569 | function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch) | |
570 | for _, c in pairs(workspace:children()) do | |
571 | local hum = c:findFirstChild("Humanoid") | |
572 | if hum ~= nil then | |
573 | local head = c:findFirstChild("Torso") | |
574 | if head ~= nil then | |
575 | local targ = head.Position - Part.Position | |
576 | local mag = targ.magnitude | |
577 | if mag <= Magnitude and c.Name ~= Player.Name then | |
578 | Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch) | |
579 | end | |
580 | end | |
581 | end | |
582 | end | |
583 | end | |
584 | ||
585 | EffectModel = Create("Model"){ | |
586 | Parent = Character, | |
587 | Name = "Effects", | |
588 | } | |
589 | ||
590 | Effects = { | |
591 | Block = { | |
592 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
593 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
594 | prt.Anchored = true | |
595 | prt.CFrame = cframe | |
596 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
597 | game:GetService("Debris"):AddItem(prt, 10) | |
598 | if Type == 1 or Type == nil then | |
599 | table.insert(Effects, { | |
600 | prt, | |
601 | "Block1", | |
602 | delay, | |
603 | x3, | |
604 | y3, | |
605 | z3, | |
606 | msh | |
607 | }) | |
608 | elseif Type == 2 then | |
609 | table.insert(Effects, { | |
610 | prt, | |
611 | "Block2", | |
612 | delay, | |
613 | x3, | |
614 | y3, | |
615 | z3, | |
616 | msh | |
617 | }) | |
618 | end | |
619 | end; | |
620 | }; | |
621 | ||
622 | Cylinder = { | |
623 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
624 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
625 | prt.Anchored = true | |
626 | prt.CFrame = cframe | |
627 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
628 | game:GetService("Debris"):AddItem(prt, 10) | |
629 | table.insert(Effects, { | |
630 | prt, | |
631 | "Cylinder", | |
632 | delay, | |
633 | x3, | |
634 | y3, | |
635 | z3, | |
636 | msh | |
637 | }) | |
638 | end; | |
639 | }; | |
640 | Head = { | |
641 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
642 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
643 | prt.Anchored = true | |
644 | prt.CFrame = cframe | |
645 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
646 | game:GetService("Debris"):AddItem(prt, 10) | |
647 | table.insert(Effects, { | |
648 | prt, | |
649 | "Cylinder", | |
650 | delay, | |
651 | x3, | |
652 | y3, | |
653 | z3, | |
654 | msh | |
655 | }) | |
656 | end; | |
657 | }; | |
658 | ||
659 | Sphere = { | |
660 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
661 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
662 | prt.Anchored = true | |
663 | prt.CFrame = cframe | |
664 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
665 | game:GetService("Debris"):AddItem(prt, 10) | |
666 | table.insert(Effects, { | |
667 | prt, | |
668 | "Cylinder", | |
669 | delay, | |
670 | x3, | |
671 | y3, | |
672 | z3, | |
673 | msh | |
674 | }) | |
675 | end; | |
676 | }; | |
677 | ||
678 | Elect = { | |
679 | Create = function(cff, x, y, z) | |
680 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1)) | |
681 | prt.Anchored = true | |
682 | prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z)) | |
683 | prt.CFrame = CFrame.new(prt.Position) | |
684 | game:GetService("Debris"):AddItem(prt, 2) | |
685 | local xval = math.random() / 2 | |
686 | local yval = math.random() / 2 | |
687 | local zval = math.random() / 2 | |
688 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval)) | |
689 | table.insert(Effects, { | |
690 | prt, | |
691 | "Elec", | |
692 | 0.1, | |
693 | x, | |
694 | y, | |
695 | z, | |
696 | xval, | |
697 | yval, | |
698 | zval | |
699 | }) | |
700 | end; | |
701 | ||
702 | }; | |
703 | ||
704 | Ring = { | |
705 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
706 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
707 | prt.Anchored = true | |
708 | prt.CFrame = cframe | |
709 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
710 | game:GetService("Debris"):AddItem(prt, 10) | |
711 | table.insert(Effects, { | |
712 | prt, | |
713 | "Cylinder", | |
714 | delay, | |
715 | x3, | |
716 | y3, | |
717 | z3, | |
718 | msh | |
719 | }) | |
720 | end; | |
721 | }; | |
722 | ||
723 | ||
724 | Wave = { | |
725 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
726 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
727 | prt.Anchored = true | |
728 | prt.CFrame = cframe | |
729 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
730 | game:GetService("Debris"):AddItem(prt, 10) | |
731 | table.insert(Effects, { | |
732 | prt, | |
733 | "Cylinder", | |
734 | delay, | |
735 | x3, | |
736 | y3, | |
737 | z3, | |
738 | msh | |
739 | }) | |
740 | end; | |
741 | }; | |
742 | ||
743 | Break = { | |
744 | Create = function(brickcolor, cframe, x1, y1, z1) | |
745 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
746 | prt.Anchored = true | |
747 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
748 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
749 | local num = math.random(10, 50) / 1000 | |
750 | game:GetService("Debris"):AddItem(prt, 10) | |
751 | table.insert(Effects, { | |
752 | prt, | |
753 | "Shatter", | |
754 | num, | |
755 | prt.CFrame, | |
756 | math.random() - math.random(), | |
757 | 0, | |
758 | math.random(50, 100) / 100 | |
759 | }) | |
760 | end; | |
761 | }; | |
762 | ||
763 | Fire = { | |
764 | Create = function(brickcolor, cframe, x1, y1, z1, delay) | |
765 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
766 | prt.Anchored = true | |
767 | prt.CFrame = cframe | |
768 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
769 | game:GetService("Debris"):AddItem(prt, 10) | |
770 | table.insert(Effects, { | |
771 | prt, | |
772 | "Fire", | |
773 | delay, | |
774 | 1, | |
775 | 1, | |
776 | 1, | |
777 | msh | |
778 | }) | |
779 | end; | |
780 | }; | |
781 | ||
782 | FireWave = { | |
783 | Create = function(brickcolor, cframe, x1, y1, z1) | |
784 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new()) | |
785 | prt.Anchored = true | |
786 | prt.CFrame = cframe | |
787 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
788 | local d = Create("Decal"){ | |
789 | Parent = prt, | |
790 | Texture = "rbxassetid://26356434", | |
791 | Face = "Top", | |
792 | } | |
793 | local d = Create("Decal"){ | |
794 | Parent = prt, | |
795 | Texture = "rbxassetid://26356434", | |
796 | Face = "Bottom", | |
797 | } | |
798 | game:GetService("Debris"):AddItem(prt, 10) | |
799 | table.insert(Effects, { | |
800 | prt, | |
801 | "FireWave", | |
802 | 1, | |
803 | 30, | |
804 | math.random(400, 600) / 100, | |
805 | msh | |
806 | }) | |
807 | end; | |
808 | }; | |
809 | ||
810 | Lightning = { | |
811 | Create = function(p0, p1, tym, ofs, col, th, tra, last) | |
812 | local magz = (p0 - p1).magnitude | |
813 | local curpos = p0 | |
814 | local trz = { | |
815 | -ofs, | |
816 | ofs | |
817 | } | |
818 | for i = 1, tym do | |
819 | local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym)) | |
820 | local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)]) | |
821 | local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz | |
822 | li.Material = "Neon" | |
823 | if tym == i then | |
824 | local magz2 = (curpos - p1).magnitude | |
825 | li.Size = Vector3.new(th, th, magz2) | |
826 | li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2) | |
827 | table.insert(Effects, { | |
828 | li, | |
829 | "Disappear", | |
830 | last | |
831 | }) | |
832 | else | |
833 | do | |
834 | do | |
835 | li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2) | |
836 | curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p | |
837 | game.Debris:AddItem(li, 10) | |
838 | table.insert(Effects, { | |
839 | li, | |
840 | "Disappear", | |
841 | last | |
842 | }) | |
843 | end | |
844 | end | |
845 | end | |
846 | end | |
847 | end | |
848 | }; | |
849 | ||
850 | EffectTemplate = { | |
851 | ||
852 | }; | |
853 | } | |
854 | ||
855 | coroutine.wrap(function() | |
856 | while wait() do | |
857 | if 0 < #Effects then | |
858 | for e = 1, #Effects do | |
859 | if Effects[e] ~= nil then | |
860 | local Thing = Effects[e] | |
861 | if Thing ~= nil then | |
862 | local Part = Thing[1] | |
863 | local Mode = Thing[2] | |
864 | local Delay = Thing[3] | |
865 | local IncX = Thing[4] | |
866 | local IncY = Thing[5] | |
867 | local IncZ = Thing[6] | |
868 | if Thing[2] == "Shoot" then | |
869 | local Look = Thing[1] | |
870 | local move = 30 | |
871 | if Thing[8] == 3 then | |
872 | move = 10 | |
873 | end | |
874 | local hit, pos = rayCast(Thing[4], Thing[1], move, m) | |
875 | if Thing[10] ~= nil then | |
876 | da = pos | |
877 | cf2 = CFrame.new(Thing[4], Thing[10].Position) | |
878 | cfa = CFrame.new(Thing[4], pos) | |
879 | tehCF = cfa:lerp(cf2, 0.2) | |
880 | Thing[1] = tehCF.lookVector | |
881 | end | |
882 | local mag = (Thing[4] - pos).magnitude | |
883 | Effects["Head"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.2) | |
884 | if Thing[8] == 2 then | |
885 | Effects["Ring"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0) * CFrame.fromEulerAnglesXYZ(1.57, 0, 0), 1, 1, 0.1, 0.5, 0.5, 0.1, 0.1, 1) | |
886 | end | |
887 | Thing[4] = Thing[4] + Look * move | |
888 | Thing[3] = Thing[3] - 1 | |
889 | if 2 < Thing[5] then | |
890 | Thing[5] = Thing[5] - 0.3 | |
891 | Thing[6] = Thing[6] - 0.3 | |
892 | end | |
893 | if hit ~= nil then | |
894 | Thing[3] = 0 | |
895 | if Thing[8] == 1 or Thing[8] == 3 then | |
896 | Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1) | |
897 | else | |
898 | if Thing[8] == 2 then | |
899 | Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1) | |
900 | if (hit.Parent:findFirstChild("Humanoid")) ~= nil or (hit.Parent.Parent:findFirstChild("Humanoid")) ~= nil then | |
901 | ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new()) | |
902 | ref.Anchored = true | |
903 | ref.CFrame = CFrame.new(pos) | |
904 | CFuncs["Sound"].Create("161006093", ref, 1, 1.2) | |
905 | game:GetService("Debris"):AddItem(ref, 0.2) | |
906 | Effects["Block"].Create(Torso.BrickColor, CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 10, 10, 10, 0.1, 2) | |
907 | Effects["Ring"].Create(BrickColor.new("Bright yellow"), CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 0.1, 4, 4, 0.1, 0.1) | |
908 | MagnitudeDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", "", 1) | |
909 | end | |
910 | end | |
911 | end | |
912 | ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new()) | |
913 | ref.Anchored = true | |
914 | ref.CFrame = CFrame.new(pos) | |
915 | Effects["Sphere"].Create(Torso.BrickColor, CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07) | |
916 | game:GetService("Debris"):AddItem(ref, 1) | |
917 | end | |
918 | if Thing[3] <= 0 then | |
919 | table.remove(Effects, e) | |
920 | end | |
921 | end | |
922 | do | |
923 | do | |
924 | if Thing[2] == "FireWave" then | |
925 | if Thing[3] <= Thing[4] then | |
926 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0) | |
927 | Thing[3] = Thing[3] + 1 | |
928 | Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5]) | |
929 | else | |
930 | Part.Parent = nil | |
931 | table.remove(Effects, e) | |
932 | end | |
933 | end | |
934 | if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then | |
935 | if Thing[1].Transparency <= 1 then | |
936 | if Thing[2] == "Block1" then | |
937 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
938 | Mesh = Thing[7] | |
939 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
940 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
941 | else | |
942 | if Thing[2] == "Block2" then | |
943 | Thing[1].CFrame = Thing[1].CFrame | |
944 | Mesh = Thing[7] | |
945 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
946 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
947 | else | |
948 | if Thing[2] == "Fire" then | |
949 | Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0) | |
950 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
951 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
952 | else | |
953 | if Thing[2] == "Cylinder" then | |
954 | Mesh = Thing[7] | |
955 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
956 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
957 | else | |
958 | if Thing[2] == "Blood" then | |
959 | Mesh = Thing[7] | |
960 | Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0) | |
961 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
962 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
963 | else | |
964 | if Thing[2] == "Elec" then | |
965 | Mesh = Thing[10] | |
966 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
967 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
968 | else | |
969 | if Thing[2] == "Disappear" then | |
970 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
971 | else | |
972 | if Thing[2] == "Shatter" then | |
973 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
974 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
975 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
976 | Thing[6] = Thing[6] + Thing[5] | |
977 | end | |
978 | end | |
979 | end | |
980 | end | |
981 | end | |
982 | end | |
983 | end | |
984 | end | |
985 | else | |
986 | Part.Parent = nil | |
987 | table.remove(Effects, e) | |
988 | end | |
989 | end | |
990 | end | |
991 | end | |
992 | end | |
993 | end | |
994 | end | |
995 | end | |
996 | end | |
997 | end)() | |
998 | function attackone() | |
999 | attack = true | |
1000 | for i = 0, 1, 0.1 do | |
1001 | swait() | |
1002 | PlayAnimationFromTable({ | |
1003 | CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
1004 | CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
1005 | CFrame.new(1.5, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
1006 | CFrame.new(-1.5, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
1007 | CFrame.new(0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
1008 | CFrame.new(-0.5, -2, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
1009 | }, .3, false) | |
1010 | end | |
1011 | attack = false | |
1012 | end | |
1013 | ||
1014 | Humanoid.WalkSpeed = 0; | |
1015 | ||
1016 | FCharacter.Parent = Character; | |
1017 | ||
1018 | local FLeftArm = FCharacter["Left Arm"] | |
1019 | local FRightArm = FCharacter["Right Arm"] | |
1020 | local FLeftLeg = FCharacter["Left Leg"] | |
1021 | local FRightLeg = FCharacter["Right Leg"] | |
1022 | ||
1023 | local FRW = newMotor(FCharacter.Torso, FRightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) | |
1024 | local FLW = newMotor(FCharacter.Torso, FLeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0)) | |
1025 | local FRH = newMotor(FCharacter.Torso, FRightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0)) | |
1026 | local FLH = newMotor(FCharacter.Torso, FLeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0)) | |
1027 | local FRootPart = FCharacter.HumanoidRootPart | |
1028 | local FRootJoint = FRootPart.RootJoint | |
1029 | FRootJoint.C1 = CFrame.new(0, 0, 0) | |
1030 | FRootJoint.C0 = CFrame.new(0, 0, 0) | |
1031 | FCharacter.Torso.Neck.C1 = CFrame.new(0, 0, 0) | |
1032 | FCharacter.Torso.Neck.C0 = CFrame.new(0, 1.5, 0) | |
1033 | FRootPart.CFrame = RootPart.CFrame * CFrame.new(0,0,10) | |
1034 | ||
1035 | New = function(Object, Parent, Name, Data) | |
1036 | local Object = Instance.new(Object) | |
1037 | for Index, Value in pairs(Data or {}) do | |
1038 | Object[Index] = Value | |
1039 | end | |
1040 | Object.Parent = Parent | |
1041 | Object.Name = Name | |
1042 | return Object | |
1043 | end | |
1044 | ||
1045 | ||
1046 | ||
1047 | local fgm = New("Model",FCharacter,"GunModel",{}) | |
1048 | FHandle = New("Part",fgm,"FHandle",{Material = Enum.Material.SmoothPlastic,Transparency = 1,Transparency = 1,Size = Vector3.new(1.78105354, 1.21267569, 0.446083069),CFrame = CFrame.new(3.48884702, 1.89424598, -23.6011944, 0.0172098875, -7.30156898e-07, 0.999851942, 0.999853492, 1.19907781e-08, -0.0172098596, -1.80598714e-09, 1.00000083, 1.4975667e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
1049 | moter = New("Weld",FHandle,"mot",{Part0 = FLeftArm,Part1 = FHandle,}) | |
1050 | moter.C0 = CFrame.new(0.0111980997, -1.6377027, -0.318750381, -0.0172109306, 0, -0.999851882, 0.999851882, 0, -0.0172109306, 0, -1, 0) | |
1051 | Part = New("Part",fgm,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(3.46324158, 2.55061626, -23.0996056, 0.0172099378, 1.26508749e-05, 0.999852061, 0.999856234, 0.000737910799, -0.0172098614, -0.000738026109, 1.00000215, 2.29468287e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
1052 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.492160469, 0.24608025, 0.123040132),}) | |
1053 | mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = FHandle,C0 = CFrame.new(0, 0, 0, 0.0172098838, 0.999853015, -0.000738022442, 1.18836761e-05, 0.000737924012, 1.00000048, 0.999851942, -0.0172098614, 1.52736902e-06),C1 = CFrame.new(0.655831456, 0.501588821, -0.0368974209, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
1054 | Part = New("Part",fgm,"Part",{Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.200000003, 0.270688266, 0.270688266),CFrame = CFrame.new(3.47537327, 1.11045444, -23.2953625, 0.0172099359, 1.26359728e-05, 0.999851942, 0.999856234, 0.000738034665, -0.0172098596, -0.000738148578, 1.00000226, 2.36918868e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
1055 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.123040125, 1, 1),MeshType = Enum.MeshType.Cylinder,}) | |
1056 | mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = FHandle,C0 = CFrame.new(0, 0, 0, 0.0172098819, 0.999853015, -0.00073814491, 1.18687749e-05, 0.000738047936, 1.0000006, 0.999851882, -0.0172098596, 1.60187483e-06),C1 = CFrame.new(-0.783906102, 0.305831909, 1.74045563e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
1057 | Part = New("Part",fgm,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.47648132, 0.221472263, 0.344512314),CFrame = CFrame.new(3.48828244, 1.86040294, -23.3093491, 0.0172099452, 3.70001203e-08, 0.999852061, 0.99985671, -3.59708352e-09, -0.0172098596, -4.18887769e-09, 1.0000025, 2.26488032e-06),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
1058 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1, 1.00999999, 1),}) | |
1059 | mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = FHandle,C0 = CFrame.new(0, 0, 0, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),C1 = CFrame.new(-0.0338476896, 0.291845322, 1.8119812e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
1060 | Part = New("Part",fgm,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.98432076, 0.200000003, 0.24608022),CFrame = CFrame.new(3.48404813, 1.61474013, -23.4433804, 0.0172099359, 1.26359728e-05, 0.999851942, 0.999856234, 0.000738034665, -0.0172098596, -0.000738148578, 1.00000226, 2.36918868e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
1061 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1, 0.246080264, 1),}) | |
1062 | mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = FHandle,C0 = CFrame.new(0, 0, 0, 0.0172098819, 0.999853015, -0.00073814491, 1.18687749e-05, 0.000738047936, 1.0000006, 0.999851882, -0.0172098596, 1.60187483e-06),C1 = CFrame.new(-0.279546618, 0.157814026, 1.21593475e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
1063 | Part = New("Part",fgm,"Part",{Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.984321058, 0.200000003, 0.200000003),CFrame = CFrame.new(3.36101127, 1.61687815, -23.4187717, 0.0172099359, 1.26359728e-05, 0.999851942, 0.999856234, 0.000738034665, -0.0172098596, -0.000738148578, 1.00000226, 2.36918868e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
1064 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1, 0.492160618, 0.492160439),MeshType = Enum.MeshType.Cylinder,}) | |
1065 | mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = FHandle,C0 = CFrame.new(0, 0, 0, 0.0172098819, 0.999853015, -0.00073814491, 1.18687749e-05, 0.000738047936, 1.0000006, 0.999851882, -0.0172098596, 1.60187483e-06),C1 = CFrame.new(-0.279526353, 0.182422638, -0.123043299, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
1066 | Part = New("Part",fgm,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(3.53706741, 2.54934502, -23.0996056, 0.0172099378, 1.26508749e-05, 0.999852061, 0.999856234, 0.000737910799, -0.0172098614, -0.000738026109, 1.00000215, 2.29468287e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
1067 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.492160469, 0.246080235, 0.123040132),}) | |
1068 | mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = FHandle,C0 = CFrame.new(0, 0, 0, 0.0172098838, 0.999853015, -0.000738022442, 1.18836761e-05, 0.000737924012, 1.00000048, 0.999851942, -0.0172098614, 1.52736902e-06),C1 = CFrame.new(0.655830979, 0.501588821, 0.0369393826, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
1069 | Part = New("Part",fgm,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.47648132, 0.200000003, 0.200000003),CFrame = CFrame.new(3.48828554, 1.86097884, -23.1606178, 0.0172099359, 1.26359728e-05, 0.999851942, 0.999856234, 0.000738034665, -0.0172098596, -0.000738148578, 1.00000226, 2.36918868e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
1070 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1, 0.369120389, 0.7382406),}) | |
1071 | mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = FHandle,C0 = CFrame.new(0, 0, 0, 0.0172098819, 0.999853015, -0.00073814491, 1.18687749e-05, 0.000738047936, 1.0000006, 0.999851882, -0.0172098596, 1.60187483e-06),C1 = CFrame.new(-0.0332717896, 0.440576553, 1.14440918e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
1072 | Partss = New("Part",fgm,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.200000003, 0.221472204, 0.221472189),CFrame = CFrame.new(3.47526526, 1.10428262, -23.2953568, 0.0172099359, 1.26359728e-05, 0.999851942, 0.999856234, 0.000738034665, -0.0172098596, -0.000738148578, 1.00000226, 2.36918868e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
1073 | Mesh = New("SpecialMesh",Partss,"Mesh",{Scale = Vector3.new(0.123040125, 1, 1),MeshType = Enum.MeshType.Cylinder,}) | |
1074 | mot = New("Weld",Partss,"mot",{Part0 = Partss,Part1 = FHandle,C0 = CFrame.new(0, 0, 0, 0.0172098819, 0.999853015, -0.00073814491, 1.18687749e-05, 0.000738047936, 1.0000006, 0.999851882, -0.0172098596, 1.60187483e-06),C1 = CFrame.new(-0.790078878, 0.305837631, 1.57356262e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
1075 | Part = New("Part",fgm,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(3.49040294, 1.9837563, -23.5174713, 0.0172099359, 1.26359728e-05, 0.999851942, 0.999856234, 0.000738034665, -0.0172098596, -0.000738148578, 1.00000226, 2.36918868e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
1076 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.615200579, 0.36912033, 0.24608025),MeshId = "http://www.roblox.com/asset/?id=3270017",MeshType = Enum.MeshType.FileMesh,}) | |
1077 | mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = FHandle,C0 = CFrame.new(0, 0, 0, 0.0172098819, 0.999853015, -0.00073814491, 1.18687749e-05, 0.000738047936, 1.0000006, 0.999851882, -0.0172098596, 1.60187483e-06),C1 = CFrame.new(0.0895236731, 0.0837230682, 1.52587891e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
1078 | Part = New("Part",fgm,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.295296252, 0.738240778, 0.369120389),CFrame = CFrame.new(3.49802279, 2.42631888, -23.8138046, 0.0172099452, 3.70001203e-08, 0.999852061, 0.99985671, -3.59708352e-09, -0.0172098596, -4.18887769e-09, 1.0000025, 2.26488032e-06),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
1079 | mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = FHandle,C0 = CFrame.new(0, 0, 0, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),C1 = CFrame.new(0.532151103, -0.212610245, 1.74045563e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
1080 | Part = New("Part",fgm,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.344512314, 0.78745681, 0.344512314),CFrame = CFrame.new(3.49802279, 2.42631888, -23.8138046, 0.0172099452, 3.70001203e-08, 0.999852061, 0.99985671, -3.59708352e-09, -0.0172098596, -4.18887769e-09, 1.0000025, 2.26488032e-06),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
1081 | mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = FHandle,C0 = CFrame.new(0, 0, 0, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),C1 = CFrame.new(0.532151103, -0.212610245, 1.74045563e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
1082 | Part = New("Part",fgm,"Part",{Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.984321058, 0.200000003, 0.200000003),CFrame = CFrame.new(3.60706425, 1.61264217, -23.4187698, 0.0172099359, 1.26359728e-05, 0.999851942, 0.999856234, 0.000738034665, -0.0172098596, -0.000738148578, 1.00000226, 2.36918868e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
1083 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1, 0.492160618, 0.492160439),MeshType = Enum.MeshType.Cylinder,}) | |
1084 | mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = FHandle,C0 = CFrame.new(0, 0, 0, 0.0172098819, 0.999853015, -0.00073814491, 1.18687749e-05, 0.000738047936, 1.0000006, 0.999851882, -0.0172098596, 1.60187483e-06),C1 = CFrame.new(-0.279527187, 0.182424545, 0.12304616, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
1085 | Wedge = New("WedgePart",fgm,"Wedge",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(3.47672749, 1.18911982, -23.1232109, 0.999851942, 0.00638213893, 0.0159827713, -0.0172098316, 0.37065956, 0.928613782, 4.44045327e-06, -0.928749561, 0.370713741),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
1086 | Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(0.24608025, 0.246080264, 0.615200639),MeshType = Enum.MeshType.Wedge,}) | |
1087 | mot = New("Weld",Wedge,"mot",{Part0 = Wedge,Part1 = FHandle,C0 = CFrame.new(0, 0, 0, 0.999851882, -0.0172098316, 3.67313623e-06, 0.00638283044, 0.370658338, -0.928748012, 0.0159824342, 0.928610861, 0.370713145),C1 = CFrame.new(-0.705229163, 0.477983475, 1.76429749e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
1088 | Wedge = New("WedgePart",fgm,"Wedge",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.344512254, 0.787456751, 0.200000003),CFrame = CFrame.new(3.50247502, 2.68478155, -23.8132839, 0.999851942, 1.0713723e-05, -0.0172099732, -0.0172098912, 0.000738376984, -0.999856234, 4.21693585e-06, 1.00000226, 0.000738456321),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
1089 | Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(1, 1, 0.861280859),MeshType = Enum.MeshType.Wedge,}) | |
1090 | mot = New("Weld",Wedge,"mot",{Part0 = Wedge,Part1 = FHandle,C0 = CFrame.new(0, 0, 0, 0.999851882, -0.0172098912, 3.44961882e-06, 9.9465251e-06, 0.000738390256, 1.0000006, -0.0172099192, -0.999853015, 0.000738452654),C1 = CFrame.new(0.790651679, -0.212089539, 2.07424164e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
1091 | Wedge = New("WedgePart",fgm,"Wedge",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(3.4904809, 1.98827124, -23.5162678, -0.999852061, -0.0148990965, 0.00861407723, 0.0172099397, -0.865535975, 0.500560343, -4.36594746e-06, 0.500633478, 0.865662456),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
1092 | Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(0.24608025, 0.369120389, 0.861280918),MeshType = Enum.MeshType.Wedge,}) | |
1093 | mot = New("Weld",Wedge,"mot",{Part0 = Wedge,Part1 = FHandle,C0 = CFrame.new(0, 0, 0, -0.999851942, 0.0172099397, -3.59863043e-06, -0.0148994327, -0.865533173, 0.500632644, 0.00861338526, 0.500558794, 0.865661025),C1 = CFrame.new(0.0940393209, 0.0849266052, 1.54972076e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
1094 | Wedge = New("WedgePart",fgm,"Wedge",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.442944348, 0.200000003, 0.200000003),CFrame = CFrame.new(3.37415838, 2.37982368, -23.1609974, 0.0172098633, 1.48413446e-05, 0.999851882, 0.999856234, 0.0007376945, -0.0172097869, -0.000737846654, 1.00000215, 7.44058752e-08),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
1095 | Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(1, 0.369120389, 0.492160529),MeshType = Enum.MeshType.Wedge,}) | |
1096 | mot = New("Weld",Wedge,"mot",{Part0 = Wedge,Part1 = FHandle,C0 = CFrame.new(0, 0, 0, 0.0172098093, 0.999853015, -0.000737842987, 1.40741467e-05, 0.000737707771, 1.00000048, 0.999851823, -0.0172097888, -6.92903996e-07),C1 = CFrame.new(0.483531356, 0.440196991, -0.12302804, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
1097 | Wedge = New("WedgePart",fgm,"Wedge",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.61520052, 0.200000003, 0.200000003),CFrame = CFrame.new(3.35783243, 1.43252242, -23.1602993, 0.0172098633, 1.48413446e-05, 0.999851882, 0.999856234, 0.0007376945, -0.0172097869, -0.000737846654, 1.00000215, 7.44058752e-08),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
1098 | Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(1, 0.369120389, 0.492160529),MeshType = Enum.MeshType.Wedge,}) | |
1099 | mot = New("Weld",Wedge,"mot",{Part0 = Wedge,Part1 = FHandle,C0 = CFrame.new(0, 0, 0, 0.0172098093, 0.999853015, -0.000737842987, 1.40741467e-05, 0.000737707771, 1.00000048, 0.999851823, -0.0172097888, -6.92903996e-07),C1 = CFrame.new(-0.463909149, 0.440895081, -0.123048544, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
1100 | Wedge = New("WedgePart",fgm,"Wedge",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.47648132, 0.200000003, 0.200000003),CFrame = CFrame.new(3.61130548, 1.85886192, -23.160614, -0.0172098689, 1.04156998e-05, -0.99985218, -0.999856234, 0.000738191127, 0.0172097925, 0.000738266157, 1.00000238, -4.55221243e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
1101 | Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(1, 0.369120389, 0.492160529),MeshType = Enum.MeshType.Wedge,}) | |
1102 | mot = New("Weld",Wedge,"mot",{Part0 = Wedge,Part1 = FHandle,C0 = CFrame.new(0, 0, 0, -0.0172098149, -0.999853075, 0.00073826249, 9.64850187e-06, 0.00073820434, 1.00000072, -0.999852121, 0.0172097944, -3.78489494e-06),C1 = CFrame.new(-0.0332713127, 0.440580368, 0.123049498, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
1103 | Wedge = New("WedgePart",fgm,"Wedge",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.36912033, 0.738240778, 0.200000003),CFrame = CFrame.new(3.50183868, 2.64789343, -23.8132629, 0.999851942, 1.0818032e-05, -0.017209895, -0.0172098186, 0.000737608876, -0.999856234, 4.13497901e-06, 1.00000238, 0.000737691764),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
1104 | Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(1, 1, 0.738240719),MeshType = Enum.MeshType.Wedge,}) | |
1105 | mot = New("Weld",Wedge,"mot",{Part0 = Wedge,Part1 = FHandle,C0 = CFrame.new(0, 0, 0, 0.999851882, -0.0172098186, 3.36766243e-06, 1.00508332e-05, 0.000737622147, 1.00000072, -0.0172098409, -0.999853015, 0.000737688097),C1 = CFrame.new(0.753758311, -0.212068558, 1.93119049e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
1106 | Wedge = New("WedgePart",fgm,"Wedge",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.344512254, 0.787456751, 0.200000003),CFrame = CFrame.new(3.49357963, 2.16808391, -23.8129005, 0.999852061, -1.05647114e-05, 0.0172100067, -0.0172099303, -0.000737611321, 0.999856114, 4.36594746e-06, -1.00000226, -0.000737689785),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) | |
1107 | Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(1, 1, 0.861280859),MeshType = Enum.MeshType.Wedge,}) | |
1108 | mot = New("Weld",Wedge,"mot",{Part0 = Wedge,Part1 = FHandle,C0 = CFrame.new(0, 0, 0, 0.999851942, -0.0172099303, 3.59863043e-06, -9.79751348e-06, -0.000737624592, -1.0000006, 0.0172099527, 0.999852955, -0.000737686118),C1 = CFrame.new(0.273878455, -0.211706161, 1.90734863e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
1109 | Wedge = New("WedgePart",fgm,"Wedge",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.36912033, 0.738240659, 0.200000003),CFrame = CFrame.new(3.49420977, 2.20497489, -23.8129292, 0.999852061, -1.05647114e-05, 0.0172100067, -0.0172099303, -0.000737611321, 0.999856114, 4.36594746e-06, -1.00000226, -0.000737689785),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
1110 | Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(1, 1, 0.738240719),MeshType = Enum.MeshType.Wedge,}) | |
1111 | mot = New("Weld",Wedge,"mot",{Part0 = Wedge,Part1 = FHandle,C0 = CFrame.new(0, 0, 0, 0.999851942, -0.0172099303, 3.59863043e-06, -9.79751348e-06, -0.000737624592, -1.0000006, 0.0172099527, 0.999852955, -0.000737686118),C1 = CFrame.new(0.310774684, -0.211734772, 1.43051147e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),}) | |
1112 | ||
1113 | for _,v in pairs(m:children()) do | |
1114 | if v:IsA("Part") then | |
1115 | v.CanCollide = false | |
1116 | end | |
1117 | end | |
1118 | ||
1119 | local knife = Instance.new("Part", FCharacter) | |
1120 | knife.Locked = true | |
1121 | knife.Name ="Knife" | |
1122 | knife.CanCollide = false | |
1123 | knife.CFrame = FCharacter.Torso.CFrame | |
1124 | knife.Size = Vector3.new(2.4,1,1) | |
1125 | local sbox = Instance.new("SelectionBox",knife) | |
1126 | sbox.Adornee=knife | |
1127 | sbox.Transparency = 1 | |
1128 | local mesh = Instance.new("SpecialMesh",knife) | |
1129 | mesh.MeshType = Enum.MeshType.FileMesh | |
1130 | mesh.TextureId = "rbxassetid://430991793" | |
1131 | mesh.MeshId = "rbxassetid://430991742" | |
1132 | mesh.Scale = Vector3.new(0.3,0.3,0.3) | |
1133 | local holder = Instance.new("Part",FCharacter) | |
1134 | holder.BrickColor = BrickColor.new("Brown") | |
1135 | holder.TopSurface,holder.BottomSurface = "SmoothNoOutlines" ,"SmoothNoOutlines" | |
1136 | holder.Size = Vector3.new(.2,2,.6) | |
1137 | holder.CanCollide = false | |
1138 | local knifweld = Instance.new("Weld",FCharacter) | |
1139 | knifweld.Part1 = holder | |
1140 | knifweld.Part0 = knife | |
1141 | knifweld.C0 = CFrame.new(-.3,0,0) * CFrame.Angles(math.rad(90),0,math.rad(-90)) | |
1142 | local holderweld = Instance.new("Weld",FCharacter) | |
1143 | holderweld.Part0 = holder | |
1144 | holderweld.Part1 = FCharacter['Left Leg'] | |
1145 | holderweld.C0 = CFrame.new(0.5,-0.5,-0.5) * CFrame.Angles(math.rad(50),0,0) | |
1146 | wait() | |
1147 | FRootPart.Anchored = true | |
1148 | RootPart.Anchored = true | |
1149 | wait(1) | |
1150 | if debugIt == false then | |
1151 | for i = 0,1,0.1 do | |
1152 | local speed = .3 | |
1153 | local table = { | |
1154 | CFrame.new(0, 2.98023224e-08, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1155 | CFrame.new(7.62939453e-06, 1.49997091, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1156 | CFrame.new(1.49999273, 0.120001435, 0, 0.949446321, -0.313935041, 0, 0.313935041, 0.949446321, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1157 | CFrame.new(-1.80998349, 0.550002098, 0, -0.0958094522, 0.995400369, 0, -0.995401978, -0.0958093852, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1158 | CFrame.new(0.659994006, -1.99997091, 0, 0.985384941, -0.170343637, 0, 0.170343637, 0.985384941, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1159 | CFrame.new(-0.619998693, -1.99998927, -0, 0.970477402, 0.241212875, 0, -0.24121283, 0.970477402, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0) | |
1160 | } | |
1161 | FRootJoint.C0 = clerp(FRootJoint.C0, table[1], speed) | |
1162 | FCharacter.Torso.Neck.C0 = clerp(FCharacter.Torso.Neck.C0, table[2], speed) | |
1163 | FRW.C0 = clerp(FRW.C0, table[3], speed) | |
1164 | FLW.C0 = clerp(FLW.C0, table[4], speed) | |
1165 | FRH.C0 = clerp(FRH.C0, table[5], speed) | |
1166 | FLH.C0 = clerp(FLH.C0, table[6], speed) | |
1167 | moter.C0 = clerp(moter.C0, CFrame.new(0.0111932121, -1.63769805, -0.318755955, -0.0172044784, -1.3951445e-05, -0.999852121, 0.999852002, 3.55020165e-06, -0.0172044784, 3.78862023e-06, -1.00000012, 1.38879986e-05) * CFrame.new(0, 0, 0.25) * CFrame.Angles(math.rad(90), 0, 0), 0.3) | |
1168 | swait() | |
1169 | end | |
1170 | ||
1171 | wait(1) | |
1172 | coroutine.wrap(function() | |
1173 | Effects.Block.Create(BrickColor.new("Bright red"), Partss.CFrame, 2, 2, 2, 0.9, 0.9, 0.9, 0.05) | |
1174 | Effects.Block.Create(BrickColor.new("Deep orange"), Partss.CFrame, 2, 2, 2, 0.5, 0.5, 0.5, 0.05) | |
1175 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=136523485", Character, 1, .5) | |
1176 | for i = 0,1,0.1 do | |
1177 | local speed = .3 | |
1178 | local table = { | |
1179 | CFrame.new(0, 2.98023224e-08, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1180 | CFrame.new(7.62939453e-06, 1.49997091, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1181 | CFrame.new(1.49999273, 0.120001435, 0, 0.949446321, -0.313935041, 0, 0.313935041, 0.949446321, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1182 | CFrame.new(-1.80998576, 0.949998736, -0, -0.743379056, 0.668870509, 0, -0.668870509, -0.743379056, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1183 | CFrame.new(0.659994006, -1.99997091, 0, 0.985384941, -0.170343637, 0, 0.170343637, 0.985384941, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1184 | CFrame.new(-0.619998693, -1.99998927, -0, 0.970477402, 0.241212875, 0, -0.24121283, 0.970477402, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0) | |
1185 | } | |
1186 | FRootJoint.C0 = clerp(FRootJoint.C0, table[1], speed) | |
1187 | FCharacter.Torso.Neck.C0 = clerp(FCharacter.Torso.Neck.C0, table[2], speed) | |
1188 | FRW.C0 = clerp(FRW.C0, table[3], speed) | |
1189 | FLW.C0 = clerp(FLW.C0, table[4], speed) | |
1190 | FRH.C0 = clerp(FRH.C0, table[5], speed) | |
1191 | FLH.C0 = clerp(FLH.C0, table[6], speed) | |
1192 | moter.C0 = clerp(moter.C0, CFrame.new(0.0111932121, -1.63769805, -0.318755955, -0.0172044784, -1.3951445e-05, -0.999852121, 0.999852002, 3.55020165e-06, -0.0172044784, 3.78862023e-06, -1.00000012, 1.38879986e-05) * CFrame.new(0, 0, 0.25) * CFrame.Angles(math.rad(90), 0, 0), 0.3) | |
1193 | swait() | |
1194 | end | |
1195 | wait() | |
1196 | for i = 0,1,0.1 do | |
1197 | local speed = .3 | |
1198 | local table = { | |
1199 | CFrame.new(0, 2.98023224e-08, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1200 | CFrame.new(7.62939453e-06, 1.49997091, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1201 | CFrame.new(1.49999273, 0.120001435, 0, 0.949446321, -0.313935041, 0, 0.313935041, 0.949446321, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1202 | CFrame.new(-1.80998349, 0.550002098, 0, -0.0958094522, 0.995400369, 0, -0.995401978, -0.0958093852, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1203 | CFrame.new(0.659994006, -1.99997091, 0, 0.985384941, -0.170343637, 0, 0.170343637, 0.985384941, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1204 | CFrame.new(-0.619998693, -1.99998927, -0, 0.970477402, 0.241212875, 0, -0.24121283, 0.970477402, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0) | |
1205 | } | |
1206 | FRootJoint.C0 = clerp(FRootJoint.C0, table[1], speed) | |
1207 | FCharacter.Torso.Neck.C0 = clerp(FCharacter.Torso.Neck.C0, table[2], speed) | |
1208 | FRW.C0 = clerp(FRW.C0, table[3], speed) | |
1209 | FLW.C0 = clerp(FLW.C0, table[4], speed) | |
1210 | FRH.C0 = clerp(FRH.C0, table[5], speed) | |
1211 | FLH.C0 = clerp(FLH.C0, table[6], speed) | |
1212 | moter.C0 = clerp(moter.C0, CFrame.new(0.0111932121, -1.63769805, -0.318755955, -0.0172044784, -1.3951445e-05, -0.999852121, 0.999852002, 3.55020165e-06, -0.0172044784, 3.78862023e-06, -1.00000012, 1.38879986e-05) * CFrame.new(0, 0, 0.25) * CFrame.Angles(math.rad(90), 0, 0), 0.3) | |
1213 | swait() | |
1214 | end | |
1215 | end)() | |
1216 | ||
1217 | ||
1218 | ||
1219 | for i = 0, 1, 0.1 do | |
1220 | swait() | |
1221 | PlayAnimationFromTable({ | |
1222 | CFrame.new(0, -2.53465056, -3.14089251, 1, 0, 0, 0, -0.026162995, 0.99965775, 0, -0.99965775, -0.026162995) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1223 | CFrame.new(7.62939453e-06, 1.49996197, -5.48362777e-06, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1224 | CFrame.new(1.76997232, 0.969703615, 0.0185622945, -0.825149953, -0.564913094, 2.90976971e-07, 0.56491369, -0.825144649, -7.52694905e-06, 4.50573862e-06, -5.99585474e-06, 1.00000489) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1225 | CFrame.new(-1.80998182, 0.310005337, -2.61630303e-05, 0.918722868, 0.394903064, 1.61788887e-06, -0.394903064, 0.918722928, -3.44775617e-06, -2.84798443e-06, 2.52947211e-06, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1226 | CFrame.new(0.819993675, -1.99995661, -8.79401341e-06, 0.950523973, -0.310651302, 8.76989304e-07, 0.310651362, 0.950523973, -4.51132655e-06, 5.69038093e-07, 4.56348062e-06, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1227 | CFrame.new(-0.659999847, -1.99995279, -8.66005939e-06, 0.972906768, 0.231197968, 2.30545061e-06, -0.231197998, 0.972906768, -6.87874854e-06, -3.83378938e-06, 6.15976751e-06, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1228 | }, .3, false) | |
1229 | end | |
1230 | wait(1) | |
1231 | for i = 0,1,.1 do | |
1232 | local speed = .3 | |
1233 | local table = { | |
1234 | CFrame.new(-0, -0, -0, 1, 0, 5.29395592e-23, 0, 1, 0, 5.29395592e-23, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1235 | CFrame.new(7.62939453e-06, 1.50001144, 4.03896783e-28, 1, 0, 5.29395592e-23, 0, 1, 0, 5.29395592e-23, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1236 | CFrame.new(1.6600095, -2.38418579e-06, -4.63128478e-15, 0.987662673, -0.156602472, 1.49340781e-15, 0.156602204, 0.987670064, 4.79616347e-14, 5.55111512e-16, 2.13162821e-14, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1237 | CFrame.new(-1.54000187, -1.44541264e-06, 1.69182539e-13, 0.990279555, 0.13909173, 1.10008167e-13, -0.139091685, 0.990279555, 8.2600593e-14, -9.75886039e-14, -9.50350909e-14, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1238 | CFrame.new(0.499999404, -2.00002313, 6.14590166e-17, 0.997888803, -0.064946577, 1.11021297e-16, 0.0649465844, 0.997888744, 0, 1.66533454e-16, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1239 | CFrame.new(-0.500009298, -2.00002384, -8.40476912e-17, 0.998180985, 0.060290534, -5.55106748e-17, -0.0602905415, 0.998180926, 0, 2.22044605e-16, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1240 | } | |
1241 | FRootJoint.C0 = clerp(FRootJoint.C0, table[1], speed) | |
1242 | FCharacter.Torso.Neck.C0 = clerp(FCharacter.Torso.Neck.C0, table[2], speed) | |
1243 | FRW.C0 = clerp(FRW.C0, table[3], speed) | |
1244 | FLW.C0 = clerp(FLW.C0, table[4], speed) | |
1245 | FRH.C0 = clerp(FRH.C0, table[5], speed) | |
1246 | FLH.C0 = clerp(FLH.C0, table[6], speed) | |
1247 | moter.C0 = clerp(moter.C0, CFrame.new(0.0111932121, -1.63769805, -0.318755955, -0.0172044784, -1.3951445e-05, -0.999852121, 0.999852002, 3.55020165e-06, -0.0172044784, 3.78862023e-06, -1.00000012, 1.38879986e-05) * CFrame.new(0, 0, 0.25) * CFrame.Angles(math.rad(90), 0, 0), 0.3) | |
1248 | swait() | |
1249 | end | |
1250 | ||
1251 | wait(1) | |
1252 | for i = 0, 1, .1 do | |
1253 | local speed = .3 | |
1254 | local table = { | |
1255 | CFrame.new(-0, -0, -0, 1, 0, 5.29395592e-23, 0, 1, 0, 5.29395592e-23, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1256 | CFrame.new(7.62939453e-06, 1.50001144, 4.03896783e-28, 1, 0, 5.29395592e-23, 0, 1, 0, 5.29395592e-23, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1257 | CFrame.new(-0.289989859, -3.27825546e-07, -0.770015359, 0.282591939, 0.951313019, 0.123073883, -0.569866359, 0.269702584, -0.776217401, -0.771619499, 0.14921695, 0.618335962) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1258 | CFrame.new(-1.54000187, -1.44541264e-06, 1.69182539e-13, 0.990279555, 0.13909173, 1.10008167e-13, -0.139091685, 0.990279555, 8.2600593e-14, -9.75886039e-14, -9.50350909e-14, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1259 | CFrame.new(0.499999404, -2.00002313, 6.14590166e-17, 0.997888803, -0.064946577, 1.11021297e-16, 0.0649465844, 0.997888744, 0, 1.66533454e-16, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1260 | CFrame.new(-0.500009298, -2.00002384, -8.40476912e-17, 0.998180985, 0.060290534, -5.55106748e-17, -0.0602905415, 0.998180926, 0, 2.22044605e-16, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1261 | } | |
1262 | swait() | |
1263 | FRootJoint.C0 = clerp(FRootJoint.C0, table[1], speed) | |
1264 | FCharacter.Torso.Neck.C0 = clerp(FCharacter.Torso.Neck.C0, table[2], speed) | |
1265 | FRW.C0 = clerp(FRW.C0, table[3], speed) | |
1266 | FLW.C0 = clerp(FLW.C0, table[4], speed) | |
1267 | FRH.C0 = clerp(FRH.C0, table[5], speed) | |
1268 | FLH.C0 = clerp(FLH.C0, table[6], speed) | |
1269 | moter.C0 = clerp(moter.C0, CFrame.new(0.0111932121, -1.63769805, -0.318755955, -0.0172044784, -1.3951445e-05, -0.999852121, 0.999852002, 3.55020165e-06, -0.0172044784, 3.78862023e-06, -1.00000012, 1.38879986e-05) * CFrame.new(0, 0, 0.25) * CFrame.Angles(math.rad(90), 0, 0), 0.3) | |
1270 | end | |
1271 | ||
1272 | knifweld.Part1 = FCharacter['Right Arm'] | |
1273 | knifweld.C0 = CFrame.new(1,1,0)*CFrame.Angles(0,math.rad(-90),0) | |
1274 | for i = 0,1,.1 do | |
1275 | local speed = .3 | |
1276 | local table = { | |
1277 | CFrame.new(-0, -0, -0, 1, 0, 5.29395592e-23, 0, 1, 0, 5.29395592e-23, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1278 | CFrame.new(7.62939453e-06, 1.50001144, 4.03896783e-28, 1, 0, 5.29395592e-23, 0, 1, 0, 5.29395592e-23, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1279 | CFrame.new(1.6600095, -2.38418579e-06, -4.63128478e-15, 0.987662673, -0.156602472, 1.49340781e-15, 0.156602204, 0.987670064, 4.79616347e-14, 5.55111512e-16, 2.13162821e-14, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1280 | CFrame.new(-1.54000187, -1.44541264e-06, 1.69182539e-13, 0.990279555, 0.13909173, 1.10008167e-13, -0.139091685, 0.990279555, 8.2600593e-14, -9.75886039e-14, -9.50350909e-14, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1281 | CFrame.new(0.499999404, -2.00002313, 6.14590166e-17, 0.997888803, -0.064946577, 1.11021297e-16, 0.0649465844, 0.997888744, 0, 1.66533454e-16, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1282 | CFrame.new(-0.500009298, -2.00002384, -8.40476912e-17, 0.998180985, 0.060290534, -5.55106748e-17, -0.0602905415, 0.998180926, 0, 2.22044605e-16, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1283 | } | |
1284 | FRootJoint.C0 = clerp(FRootJoint.C0, table[1], speed) | |
1285 | FCharacter.Torso.Neck.C0 = clerp(FCharacter.Torso.Neck.C0, table[2], speed) | |
1286 | FRW.C0 = clerp(FRW.C0, table[3], speed) | |
1287 | FLW.C0 = clerp(FLW.C0, table[4], speed) | |
1288 | FRH.C0 = clerp(FRH.C0, table[5], speed) | |
1289 | FLH.C0 = clerp(FLH.C0, table[6], speed) | |
1290 | moter.C0 = clerp(moter.C0, CFrame.new(0.0111980997, -1.6377027, -0.318750381, -0.0172109306, 0, -0.999851882, 0.999851882, 0, -0.0172109306, 0, -1, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
1291 | swait() | |
1292 | end | |
1293 | ||
1294 | wait(1) | |
1295 | for i = 0, 1, 0.1 do | |
1296 | swait() | |
1297 | PlayAnimationFromTable({ | |
1298 | CFrame.new(0, -2.24408007, -3.19489694, 1, 0, 0, 0, 0.452725112, 0.891650259, 0, -0.891650259, 0.452725112) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1299 | CFrame.new(7.62939453e-06, 1.4999584, -3.81469818e-06, 1, 0, 0, 0, 1.00000024, 0, 0, 0, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1300 | CFrame.new(1.61997747, 0.704635978, -0.635224581, -0.825147271, -0.352566004, 0.441395015, 0.496845663, -0.0810818374, 0.864043713, -0.268842638, 0.932268381, 0.242075145) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1301 | CFrame.new(-1.80998445, 0.192538664, -0.186033189, 0.494757533, 0.782224536, -0.378605217, -0.853971958, 0.518376589, -0.0449554324, 0.161094487, 0.345559716, 0.924467504) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1302 | CFrame.new(0.819988847, -1.93866265, 0.717127383, 0.950523973, -0.310651302, 8.76989304e-07, 0.273218215, 0.835988283, 0.475894451, -0.147837952, -0.452348769, 0.879502594) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1303 | CFrame.new(-0.659997702, -1.93866444, 0.717128515, 0.972906768, 0.231197968, 2.30545061e-06, -0.203340545, 0.855674803, 0.475892335, 0.110023372, -0.462999344, 0.879503667) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1304 | }, .3, false) | |
1305 | end | |
1306 | wait(1) | |
1307 | for i = 0,1,.1 do | |
1308 | local speed = .3 | |
1309 | local table = { | |
1310 | CFrame.new(-0, -0, -0, 1, 0, 5.29395592e-23, 0, 1, 0, 5.29395592e-23, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1311 | CFrame.new(7.62939453e-06, 1.50001144, 4.03896783e-28, 1, 0, 5.29395592e-23, 0, 1, 0, 5.29395592e-23, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1312 | CFrame.new(0.798612654, 0.382908493, -0.976742506, 0.486478955, 0.828752995, -0.276598603, 0.346117944, -0.473492295, -0.809942782, -0.802209854, 0.298284382, -0.517190278) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1313 | CFrame.new(-1.54000938, 5.51342964e-07, 1.6918319e-13, 0.990279555, 0.13909173, 1.10008167e-13, -0.139091685, 0.990279555, 8.2600593e-14, -9.75886039e-14, -9.50350909e-14, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1314 | CFrame.new(0.499999404, -2.0000236, 6.14590166e-17, 0.997888803, -0.064946577, 1.11021297e-16, 0.0649465844, 0.997888744, 0, 1.66533454e-16, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1315 | CFrame.new(-0.500009298, -2.00002384, -8.40476912e-17, 0.998180985, 0.060290534, -5.55106748e-17, -0.0602905415, 0.998180926, 0, 2.22044605e-16, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1316 | } | |
1317 | end | |
1318 | coroutine.wrap(function() | |
1319 | for i = 1, 11,.1 do | |
1320 | sine = sine + 1 | |
1321 | local speed = .3 | |
1322 | FRootPart.CFrame = FRootPart.CFrame * CFrame.new(0,0,-.1) | |
1323 | local table = { | |
1324 | CFrame.new(0, 0, 0, 1, -2.21689355e-12, -5.11591203e-13, -2.21689355e-12, 1, 7.74860496e-07, -5.11591203e-13, 7.74860496e-07, 1.00000048) * CFrame.new(0, 0- .08 * math.cos((sine) / 5), 0) * CFrame.Angles(0, 0, 0), | |
1325 | CFrame.new(-0.0595112406, 1.55331731, -0.0425721854, 0.999631822, -0.0248252042, -0.010953242, 0.0262294486, 0.987443328, 0.155781403, 0.00694842171, -0.156010598, 0.987731278) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1326 | CFrame.new(1.54809988, 0.041232653, 1.35168499e-08, 0.996376455, -0.0850530341, -3.41060513e-13, 0.0850530341, 0.996376455, 4.47034836e-07, 2.78823862e-08, 3.26637689e-07, 1.00000024) * CFrame.new(0, 0, 0- .5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 10)), 0, 0), | |
1327 | CFrame.new(-1.53598976, 0.0413191095, -1.86092848e-06, 0.995650649, 0.0931596532, -2.61508148e-07, -0.0931649953, 0.995651186, -1.00695124e-05, -7.49969331e-07, 1.08217946e-05, 1.00000024) * CFrame.new(0, 0, 0+ .5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 10)), 0, 0), | |
1328 | CFrame.new(0.540300786, -1.99793816, -9.82598067e-07, 0.998698533, -0.0510031395, 6.36324955e-07, 0.0510031395, 0.998698533, -1.00461093e-05, -8.35937328e-08, 1.08393433e-05, 1.00000024) * CFrame.new(0, 0, 0+ .5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 10)), 0, 0), | |
1329 | CFrame.new(-0.539563596, -1.99794078, 1.12228372e-06, 0.998635888, 0.0523072146, -1.77852357e-07, -0.0523072146, 0.998635888, -1.00715051e-05, -3.89727461e-07, 1.08406466e-05, 1.00000024) * CFrame.new(0, 0, 0- .5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 10)), 0, 0), | |
1330 | } | |
1331 | FRootJoint.C0 = clerp(FRootJoint.C0, table[1], speed) | |
1332 | FCharacter.Torso.Neck.C0 = clerp(FCharacter.Torso.Neck.C0, table[2], speed) | |
1333 | FRW.C0 = clerp(FRW.C0, table[3], speed) | |
1334 | FLW.C0 = clerp(FLW.C0, table[4], speed) | |
1335 | FRH.C0 = clerp(FRH.C0, table[5], speed) | |
1336 | FLH.C0 = clerp(FLH.C0, table[6], speed) | |
1337 | moter.C0 = clerp(moter.C0, CFrame.new(0.0111980997, -1.6377027, -0.318750381, -0.0172109306, 0, -0.999851882, 0.999851882, 0, -0.0172109306, 0, -1, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
1338 | swait() | |
1339 | end | |
1340 | for i = 0,1,.1 do | |
1341 | local speed = .3 | |
1342 | local table = { | |
1343 | CFrame.new(-0, -0, -0, 1, 0, 5.29395592e-23, 0, 1, 0, 5.29395592e-23, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1344 | CFrame.new(7.62939453e-06, 1.50001144, 4.03896783e-28, 1, 0, 5.29395592e-23, 0, 1, 0, 5.29395592e-23, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1345 | CFrame.new(1.6600095, -2.38418579e-06, -4.63128478e-15, 0.987662673, -0.156602472, 1.49340781e-15, 0.156602204, 0.987670064, 4.79616347e-14, 5.55111512e-16, 2.13162821e-14, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1346 | CFrame.new(-1.54000187, -1.44541264e-06, 1.69182539e-13, 0.990279555, 0.13909173, 1.10008167e-13, -0.139091685, 0.990279555, 8.2600593e-14, -9.75886039e-14, -9.50350909e-14, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1347 | CFrame.new(0.499999404, -2.00002313, 6.14590166e-17, 0.997888803, -0.064946577, 1.11021297e-16, 0.0649465844, 0.997888744, 0, 1.66533454e-16, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1348 | CFrame.new(-0.500009298, -2.00002384, -8.40476912e-17, 0.998180985, 0.060290534, -5.55106748e-17, -0.0602905415, 0.998180926, 0, 2.22044605e-16, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1349 | } | |
1350 | FRootJoint.C0 = clerp(FRootJoint.C0, table[1], speed) | |
1351 | FCharacter.Torso.Neck.C0 = clerp(FCharacter.Torso.Neck.C0, table[2], speed) | |
1352 | FRW.C0 = clerp(FRW.C0, table[3], speed) | |
1353 | FLW.C0 = clerp(FLW.C0, table[4], speed) | |
1354 | FRH.C0 = clerp(FRH.C0, table[5], speed) | |
1355 | FLH.C0 = clerp(FLH.C0, table[6], speed) | |
1356 | moter.C0 = clerp(moter.C0, CFrame.new(0.0111980997, -1.6377027, -0.318750381, -0.0172109306, 0, -0.999851882, 0.999851882, 0, -0.0172109306, 0, -1, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
1357 | swait() | |
1358 | end | |
1359 | end)() | |
1360 | wait(3) | |
1361 | for i = 0, 1, 0.1 do | |
1362 | swait() | |
1363 | PlayAnimationFromTable({ | |
1364 | CFrame.new(0, -1.61013091, -2.7208631, 1, 0, 0, 0, 0.784842849, 0.619694889, 0, -0.619694889, 0.784842849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1365 | CFrame.new(7.62939453e-06, 1.49995804, -3.81469727e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1366 | CFrame.new(1.6199764, 0.0526405573, -0.633618712, -0.825147271, -0.352566004, 0.441395015, 0.338357478, 0.317245364, 0.885929346, -0.452378333, 0.880371392, -0.142481118) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1367 | CFrame.new(-1.48999131, 0.159032702, -0.689792395, -0.925652206, 0.121316604, 0.35839963, 0.3763749, 0.392493248, 0.839220524, -0.038858071, 0.911718965, -0.40897283) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1368 | CFrame.new(0.81999141, -1.66318786, 0.698954165, 0.950523973, -0.310651302, 8.76989304e-07, 0.186064735, 0.56931895, 0.800784588, -0.24876529, -0.761164725, 0.598952591) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1369 | CFrame.new(-0.65999639, -1.66319084, 0.698958337, 0.972906768, 0.231197968, 2.30545061e-06, -0.138478845, 0.582726359, 0.800783157, 0.185138091, -0.779087663, 0.598954439) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1370 | }, .3, false) | |
1371 | end | |
1372 | ||
1373 | wait(2) | |
1374 | for i = 0,1,.1 do | |
1375 | local speed = .3 | |
1376 | local table = { | |
1377 | CFrame.new(-0, -0, -0, 1, 0, 5.29395592e-23, 0, 1, 0, 5.29395592e-23, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1378 | CFrame.new(7.62939453e-06, 1.50001144, 4.03896783e-28, 1, 0, 5.29395592e-23, 0, 1, 0, 5.29395592e-23, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1379 | CFrame.new(0.798612654, 0.382908493, -0.976742506, 0.486478955, 0.828752995, -0.276598603, 0.346117944, -0.473492295, -0.809942782, -0.802209854, 0.298284382, -0.517190278) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1380 | CFrame.new(-1.54000938, 5.51342964e-07, 1.6918319e-13, 0.990279555, 0.13909173, 1.10008167e-13, -0.139091685, 0.990279555, 8.2600593e-14, -9.75886039e-14, -9.50350909e-14, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1381 | CFrame.new(0.499999404, -2.0000236, 6.14590166e-17, 0.997888803, -0.064946577, 1.11021297e-16, 0.0649465844, 0.997888744, 0, 1.66533454e-16, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1382 | CFrame.new(-0.500009298, -2.00002384, -8.40476912e-17, 0.998180985, 0.060290534, -5.55106748e-17, -0.0602905415, 0.998180926, 0, 2.22044605e-16, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1383 | } | |
1384 | FRootJoint.C0 = clerp(FRootJoint.C0, table[1], speed) | |
1385 | FCharacter.Torso.Neck.C0 = clerp(FCharacter.Torso.Neck.C0, table[2], speed) | |
1386 | FRW.C0 = clerp(FRW.C0, table[3], speed) | |
1387 | FLW.C0 = clerp(FLW.C0, table[4], speed) | |
1388 | FRH.C0 = clerp(FRH.C0, table[5], speed) | |
1389 | FLH.C0 = clerp(FLH.C0, table[6], speed) | |
1390 | moter.C0 = clerp(moter.C0, CFrame.new(0.0111980997, -1.6377027, -0.318750381, -0.0172109306, 0, -0.999851882, 0.999851882, 0, -0.0172109306, 0, -1, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
1391 | swait() | |
1392 | end | |
1393 | wait(0.5) | |
1394 | for i = 0,.7,.1 do | |
1395 | local speed = .3 | |
1396 | local table = { | |
1397 | CFrame.new(-0, -0, -0, 1, 0, 5.29395592e-23, 0, 1, 0, 5.29395592e-23, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1398 | CFrame.new(7.62939453e-06, 1.50001144, 4.03896783e-28, 1, 0, 5.29395592e-23, 0, 1, 0, 5.29395592e-23, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1399 | CFrame.new(0.1415039, -0.250491381, -0.976747632, -0.180687964, 0.704339802, 0.686481893, 0.569043994, 0.644152701, -0.51113236, -0.802209973, 0.298282892, -0.517191052) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1400 | CFrame.new(-1.54000938, 5.51342964e-07, 1.6918319e-13, 0.990279555, 0.13909173, 1.10008167e-13, -0.139091685, 0.990279555, 8.2600593e-14, -9.75886039e-14, -9.50350909e-14, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1401 | CFrame.new(0.499999404, -2.0000236, 6.14590166e-17, 0.997888803, -0.064946577, 1.11021297e-16, 0.0649465844, 0.997888744, 0, 1.66533454e-16, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1402 | CFrame.new(-0.500009298, -2.00002384, -8.40476912e-17, 0.998180985, 0.060290534, -5.55106748e-17, -0.0602905415, 0.998180926, 0, 2.22044605e-16, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1403 | } | |
1404 | FRootJoint.C0 = clerp(FRootJoint.C0, table[1], speed) | |
1405 | FCharacter.Torso.Neck.C0 = clerp(FCharacter.Torso.Neck.C0, table[2], speed) | |
1406 | FRW.C0 = clerp(FRW.C0, table[3], speed) | |
1407 | FLW.C0 = clerp(FLW.C0, table[4], speed) | |
1408 | FRH.C0 = clerp(FRH.C0, table[5], speed) | |
1409 | FLH.C0 = clerp(FLH.C0, table[6], speed) | |
1410 | moter.C0 = clerp(moter.C0, CFrame.new(0.0111932121, -1.63769805, -0.318755955, -0.0172044784, -1.3951445e-05, -0.999852121, 0.999852002, 3.55020165e-06, -0.0172044784, 3.78862023e-06, -1.00000012, 1.38879986e-05) * CFrame.new(0, 0, 0.25) * CFrame.Angles(math.rad(90), 0, 0), 0.3) | |
1411 | swait() | |
1412 | end | |
1413 | knife.Parent = Character | |
1414 | knifweld.Parent = Character | |
1415 | knifweld.Part0 = knife | |
1416 | knifweld.Part1 = Torso | |
1417 | knifweld.C0 = CFrame.new(-1,0,0)*CFrame.Angles(0,math.rad(90),0) | |
1418 | for i = 0, 1, 0.1 do | |
1419 | swait() | |
1420 | PlayAnimationFromTable({ | |
1421 | CFrame.new(0, -2.53465056, -3.14089251, 1, 0, 0, 0, -0.026162995, 0.99965775, 0, -0.99965775, -0.026162995) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1422 | CFrame.new(7.62939453e-06, 1.49996197, -5.48362777e-06, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1423 | CFrame.new(1.76997232, 0.969703615, 0.0185622945, -0.825149953, -0.564913094, 2.90976971e-07, 0.56491369, -0.825144649, -7.52694905e-06, 4.50573862e-06, -5.99585474e-06, 1.00000489) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1424 | CFrame.new(-1.80998182, 0.310005337, -2.61630303e-05, 0.918722868, 0.394903064, 1.61788887e-06, -0.394903064, 0.918722928, -3.44775617e-06, -2.84798443e-06, 2.52947211e-06, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1425 | CFrame.new(0.819993675, -1.99995661, -8.79401341e-06, 0.950523973, -0.310651302, 8.76989304e-07, 0.310651362, 0.950523973, -4.51132655e-06, 5.69038093e-07, 4.56348062e-06, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1426 | CFrame.new(-0.659999847, -1.99995279, -8.66005939e-06, 0.972906768, 0.231197968, 2.30545061e-06, -0.231197998, 0.972906768, -6.87874854e-06, -3.83378938e-06, 6.15976751e-06, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1427 | }, .3, false) | |
1428 | end | |
1429 | for i = 0,1,.1 do | |
1430 | local speed = .3 | |
1431 | local table = { | |
1432 | CFrame.new(-0, -0, -0, 1, 0, 5.29395592e-23, 0, 1, 0, 5.29395592e-23, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1433 | CFrame.new(7.62939453e-06, 1.50001144, 4.03896783e-28, 1, 0, 5.29395592e-23, 0, 1, 0, 5.29395592e-23, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1434 | CFrame.new(1.6600095, -2.38418579e-06, -4.63128478e-15, 0.987662673, -0.156602472, 1.49340781e-15, 0.156602204, 0.987670064, 4.79616347e-14, 5.55111512e-16, 2.13162821e-14, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1435 | CFrame.new(-1.54000187, -1.44541264e-06, 1.69182539e-13, 0.990279555, 0.13909173, 1.10008167e-13, -0.139091685, 0.990279555, 8.2600593e-14, -9.75886039e-14, -9.50350909e-14, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1436 | CFrame.new(0.499999404, -2.00002313, 6.14590166e-17, 0.997888803, -0.064946577, 1.11021297e-16, 0.0649465844, 0.997888744, 0, 1.66533454e-16, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1437 | CFrame.new(-0.500009298, -2.00002384, -8.40476912e-17, 0.998180985, 0.060290534, -5.55106748e-17, -0.0602905415, 0.998180926, 0, 2.22044605e-16, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1438 | } | |
1439 | FRootJoint.C0 = clerp(FRootJoint.C0, table[1], speed) | |
1440 | FCharacter.Torso.Neck.C0 = clerp(FCharacter.Torso.Neck.C0, table[2], speed) | |
1441 | FRW.C0 = clerp(FRW.C0, table[3], speed) | |
1442 | FLW.C0 = clerp(FLW.C0, table[4], speed) | |
1443 | FRH.C0 = clerp(FRH.C0, table[5], speed) | |
1444 | FLH.C0 = clerp(FLH.C0, table[6], speed) | |
1445 | moter.C0 = clerp(moter.C0, CFrame.new(0.0111932121, -1.63769805, -0.318755955, -0.0172044784, -1.3951445e-05, -0.999852121, 0.999852002, 3.55020165e-06, -0.0172044784, 3.78862023e-06, -1.00000012, 1.38879986e-05) * CFrame.new(0, 0, 0.25) * CFrame.Angles(math.rad(90), 0, 0), 0.3) | |
1446 | swait() | |
1447 | end | |
1448 | wait(1) | |
1449 | for i = 0,1,.1 do | |
1450 | local speed = .3 | |
1451 | local table = { | |
1452 | CFrame.new(-1.13150174e-08, -0.233643144, -0.531754971, 1, 4.6356714e-08, 1.40138434e-08, -4.84286318e-08, 0.957217097, 0.289371043, -5.41235154e-16, -0.289371043, 0.957217097) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1453 | CFrame.new(7.62939453e-06, 1.50000799, 0, 1, 0, 0, 0, 1.00000024, 0, 0, 0, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1454 | CFrame.new(1.52783501, 0.00880410615, -0.0600301139, 0.985311627, -0.17076619, 1.32775563e-06, 0.170766205, 0.985311747, -3.87430191e-07, -1.24797225e-06, 5.96046448e-07, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1455 | CFrame.new(-1.54000914, -4.91738319e-07, -7.69009716e-07, 0.990279853, 0.139089808, -5.03203808e-07, -0.139089808, 0.990279853, -2.68220901e-07, 4.58210707e-07, 3.27825546e-07, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1456 | CFrame.new(0.500001609, -2.00094748, 0.514751852, 0.997889757, -0.0544961505, -0.0353313722, 0.0621684566, 0.95890981, 0.276820749, 0.0187938847, -0.278432727, 0.96027267) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1457 | CFrame.new(-0.499998927, -1.73762023, -0.356294215, 0.998180985, 0.0602904856, -5.96745882e-16, -0.0577110909, 0.955475867, -0.289371043, -0.0174463224, 0.288844645, 0.957217097) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1458 | } | |
1459 | FRootJoint.C0 = clerp(FRootJoint.C0, table[1], speed) | |
1460 | FCharacter.Torso.Neck.C0 = clerp(FCharacter.Torso.Neck.C0, table[2], speed) | |
1461 | FRW.C0 = clerp(FRW.C0, table[3], speed) | |
1462 | FLW.C0 = clerp(FLW.C0, table[4], speed) | |
1463 | FRH.C0 = clerp(FRH.C0, table[5], speed) | |
1464 | FLH.C0 = clerp(FLH.C0, table[6], speed) | |
1465 | moter.C0 = clerp(moter.C0, CFrame.new(0.0111932121, -1.63769805, -0.318755955, -0.0172044784, -1.3951445e-05, -0.999852121, 0.999852002, 3.55020165e-06, -0.0172044784, 3.78862023e-06, -1.00000012, 1.38879986e-05) * CFrame.new(0, 0, 0.25) * CFrame.Angles(math.rad(90), 0, 0), 0.3) | |
1466 | swait() | |
1467 | end | |
1468 | wait(1) | |
1469 | coroutine.wrap(function() | |
1470 | FRootJoint.C0 = CFrame.new(0,0,0) | |
1471 | for i = 1, 500 do | |
1472 | FRootJoint.C0 = FRootJoint.C0 * CFrame.new(0,3,0) | |
1473 | swait() | |
1474 | end | |
1475 | end)() | |
1476 | wait(2) | |
1477 | FCharacter:destroy() | |
1478 | wait(2) | |
1479 | local Fire = Instance.new("Sound",Character.Torso) | |
1480 | Fire.SoundId = "rbxassetid://192104941" | |
1481 | Fire.Looped = true | |
1482 | Fire.Pitch = 1 | |
1483 | Fire.Volume = 1 | |
1484 | Fire.Name = "cackle cackle" | |
1485 | Fire:play() | |
1486 | local fire = Instance.new("ParticleEmitter", Character.Torso) | |
1487 | fire.Lifetime = NumberRange.new(0.5) | |
1488 | fire.Speed = NumberRange.new(1, 3) | |
1489 | fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 3.564, 2.521), NumberSequenceKeypoint.new(1, 3.534, 2.521)}) | |
1490 | fire.Rate = 1000 | |
1491 | fire.Name = "FireParticie" | |
1492 | fire.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.627, 0.587), NumberSequenceKeypoint.new(1, 1)}) | |
1493 | fire.LightEmission = 0.6 | |
1494 | fire.Texture = "http://www.roblox.com/asset/?id=242911609" | |
1495 | fire.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0.666667, 0)) | |
1496 | wait(3) | |
1497 | for i = 0,4,.1 do | |
1498 | RootJoint.C0 = RootJoint.C0 * CFrame.new(0,0,-.1) | |
1499 | swait() | |
1500 | end | |
1501 | wait(5) | |
1502 | end | |
1503 | if FCharacter then | |
1504 | FCharacter:destroy() | |
1505 | end | |
1506 | local s = Instance.new("Sound",Character) | |
1507 | s.Name = "Reanimate" | |
1508 | s.Volume = 5 | |
1509 | s.Pitch = 0.66 | |
1510 | s.Looped = true | |
1511 | s.SoundId = "rbxassetid://450193952" | |
1512 | s:Play() | |
1513 | ||
1514 | ||
1515 | local hideName = Head:Clone() | |
1516 | hideName.Parent = Character | |
1517 | hideName.Name = "Hide" | |
1518 | ||
1519 | hideName.BrickColor = BrickColor.new("Really black") | |
1520 | hideName:FindFirstChildOfClass"Decal":destroy() | |
1521 | Head:FindFirstChildOfClass"Decal":destroy() | |
1522 | for i,v in next, Character:children() do | |
1523 | if v:IsA"BasePart" and v ~= RootPart then | |
1524 | v.Transparency = 0.5 | |
1525 | v.BrickColor = BrickColor.new"Really black" | |
1526 | end | |
1527 | end | |
1528 | Head.Transparency = 1 | |
1529 | ||
1530 | local nametag = Instance.new("BillboardGui",Character.Head) | |
1531 | nametag.StudsOffset = Vector3.new(0,2,0) | |
1532 | nametag.Adornee = Character.Head | |
1533 | nametag.Size = UDim2.new(0,200,0,50) | |
1534 | ||
1535 | local text = Instance.new("TextLabel",nametag) | |
1536 | text.Size = UDim2.new(0,200,0,50) | |
1537 | text.BackgroundTransparency = 1 | |
1538 | text.Text = "The Reanimated" | |
1539 | text.TextColor3 = Color3.new(180/255,0,0) | |
1540 | text.TextStrokeColor3 = Color3.new(0,0,0) | |
1541 | text.Font = Enum.Font.Fantasy | |
1542 | text.TextScaled = true | |
1543 | text.TextStrokeTransparency = 0 | |
1544 | coroutine.wrap(function() | |
1545 | while wait() do | |
1546 | wait(3) | |
1547 | text.Text = "GIVE UP" | |
1548 | wait() | |
1549 | text.Text = "The Reanimated"; | |
1550 | wait(2) | |
1551 | local str = "" | |
1552 | for i = 1, math.random(3,25) do | |
1553 | str = str..string.char(math.random(65,122)) | |
1554 | end | |
1555 | text.Text = str | |
1556 | wait() | |
1557 | str = "" | |
1558 | for i = 1, math.random(12,25) do | |
1559 | str = str..string.char(math.random(48,122)) | |
1560 | end | |
1561 | wait() | |
1562 | text.Text = str | |
1563 | wait() | |
1564 | text.Text = "The Reanimated"; | |
1565 | wait(1) | |
1566 | text.Text = "BE GONE THOT" | |
1567 | wait() | |
1568 | text.Text = "Burn in hell." | |
1569 | wait() | |
1570 | text.Text = "The Reanimated"; | |
1571 | wait(2) | |
1572 | text.Text = "You made me do this."; | |
1573 | wait() | |
1574 | text.Text = "edgy"; | |
1575 | wait() | |
1576 | for i = 1, math.random(12,25) do | |
1577 | str = str..string.char(math.random(48,57)) | |
1578 | end | |
1579 | text.Text = str | |
1580 | wait() | |
1581 | text.Text = "The Reanimated"; | |
1582 | wait(2) | |
1583 | end | |
1584 | end)() | |
1585 | New("Weld",hideName,"Weld",{Part0=hideName,Part1=Head}) | |
1586 | local BodyColors = Character:FindFirstChildOfClass"BodyColors" | |
1587 | if BodyColors then | |
1588 | BodyColors.HeadColor = BrickColor.new"Really black" | |
1589 | BodyColors.TorsoColor = BrickColor.new"Really black" | |
1590 | BodyColors.LeftArmColor = BrickColor.new"Really black" | |
1591 | BodyColors.RightArmColor = BrickColor.new"Really black" | |
1592 | BodyColors.LeftLegColor = BrickColor.new"Really black" | |
1593 | BodyColors.RightLegColor = BrickColor.new"Really black" | |
1594 | end | |
1595 | local fire; | |
1596 | local Fire; | |
1597 | if Character.Torso:FindFirstChild"FireParticie" then | |
1598 | fire = Character.Torso:FindFirstChild"FireParticie" | |
1599 | end | |
1600 | if Character.Torso:FindFirstChild"cackle cackle" then | |
1601 | Fire = Character.Torso:FindFirstChild"cackle cackle" | |
1602 | end | |
1603 | wait(1) | |
1604 | for i = 0, 1, 0.1 do | |
1605 | swait() | |
1606 | PlayAnimationFromTable({ | |
1607 | CFrame.new(-0, 0, 0, 1, 2.74374239e-42, 0, -4.14784345e-43, 1, 3.94815568e-21, 0, -3.94815568e-21, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1608 | CFrame.new(4.11561359e-42, 1.5, 0, 1, 2.74374239e-42, 0, 2.74374239e-42, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1609 | CFrame.new(1.70000088, -1.07288361e-06, -1.90953349e-22, 0.976871967, -0.213825449, 1.12325362e-22, 0.213825434, 0.976871967, 4.79021585e-25, -1.09829936e-22, 2.35504137e-23, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1610 | CFrame.new(-1.68000042, 1.1920929e-06, -2.14759493e-22, 0.960208833, 0.279283047, -1.27832979e-22, -0.279283017, 0.960208833, 2.26565901e-23, 1.29073825e-22, 1.39469598e-23, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1611 | CFrame.new(0.810000062, -1.99999988, 8.44388509e-23, 0.977508307, -0.210897148, 7.18926177e-24, 0.210897148, 0.977508307, 4.51306188e-23, -1.65455308e-23, -4.25998015e-23, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1612 | CFrame.new(-0.760003924, -1.99999833, 8.66891997e-23, 0.958771527, 0.284177125, -5.31260585e-24, -0.284177125, 0.958771527, 4.5364475e-23, 1.79848674e-23, -4.19834551e-23, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1613 | }, .3, false) | |
1614 | end | |
1615 | wait(2) | |
1616 | for i = 1, 3 do | |
1617 | for i = 0, 1, 0.1 do | |
1618 | swait() | |
1619 | PlayAnimationFromTable({ | |
1620 | CFrame.new(-0, 0, 0, 1, 2.74374239e-42, 0, -4.14784345e-43, 1, 3.94815568e-21, 0, -3.94815568e-21, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1621 | CFrame.new(-1.46917455e-25, 1.5, 5.57377561e-26, 0.845658779, -9.794497e-26, -0.533723354, 6.01806207e-26, 1, -8.32027374e-26, 0.533723354, 3.71585041e-26, 0.845658779) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1622 | CFrame.new(1.70000088, -1.07288361e-06, -1.90953349e-22, 0.976871967, -0.213825449, 1.12325362e-22, 0.213825434, 0.976871967, 4.79021585e-25, -1.09829936e-22, 2.35504137e-23, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1623 | CFrame.new(-1.68000042, 1.1920929e-06, -2.14759493e-22, 0.960208833, 0.279283047, -1.27832979e-22, -0.279283017, 0.960208833, 2.26565901e-23, 1.29073825e-22, 1.39469598e-23, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1624 | CFrame.new(0.810000062, -1.99999988, 8.44388509e-23, 0.977508307, -0.210897148, 7.18926177e-24, 0.210897148, 0.977508307, 4.51306188e-23, -1.65455308e-23, -4.25998015e-23, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1625 | CFrame.new(-0.760003924, -1.99999833, 8.66891997e-23, 0.958771527, 0.284177125, -5.31260585e-24, -0.284177125, 0.958771527, 4.5364475e-23, 1.79848674e-23, -4.19834551e-23, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1626 | }, .3, false) | |
1627 | end | |
1628 | wait() | |
1629 | for i = 0, 1, 0.1 do | |
1630 | swait() | |
1631 | PlayAnimationFromTable({ | |
1632 | CFrame.new(-0, 0, 0, 1, 2.74374239e-42, 0, -4.14784345e-43, 1, 3.94815568e-21, 0, -3.94815568e-21, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1633 | CFrame.new(-1.48432068e-25, 1.5, 5.99786723e-26, 0.533723056, -9.8954712e-26, 0.845658302, 8.05774083e-26, 1, 6.07864659e-26, -0.845658302, 3.99857816e-26, 0.533723056) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1634 | CFrame.new(1.70000088, -1.07288361e-06, -1.90953349e-22, 0.976871967, -0.213825449, 1.12325362e-22, 0.213825434, 0.976871967, 4.79021585e-25, -1.09829936e-22, 2.35504137e-23, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1635 | CFrame.new(-1.68000042, 1.1920929e-06, -2.14759493e-22, 0.960208833, 0.279283047, -1.27832979e-22, -0.279283017, 0.960208833, 2.26565901e-23, 1.29073825e-22, 1.39469598e-23, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1636 | CFrame.new(0.810000062, -1.99999988, 8.44388509e-23, 0.977508307, -0.210897148, 7.18926177e-24, 0.210897148, 0.977508307, 4.51306188e-23, -1.65455308e-23, -4.25998015e-23, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1637 | CFrame.new(-0.760003924, -1.99999833, 8.66891997e-23, 0.958771527, 0.284177125, -5.31260585e-24, -0.284177125, 0.958771527, 4.5364475e-23, 1.79848674e-23, -4.19834551e-23, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1638 | }, .3, false) | |
1639 | end | |
1640 | end | |
1641 | ||
1642 | wait(1) | |
1643 | coroutine.wrap(function() | |
1644 | if fire then | |
1645 | for i = fire.Rate, 0, -5 do | |
1646 | fire.Rate = i | |
1647 | wait() | |
1648 | end | |
1649 | fire:destroy() | |
1650 | end | |
1651 | if Fire then | |
1652 | Fire:Stop() | |
1653 | Fire:destroy() | |
1654 | end | |
1655 | end)() | |
1656 | ||
1657 | if knife and knifweld then | |
1658 | for i = 0, 1, 0.1 do | |
1659 | swait() | |
1660 | PlayAnimationFromTable({ | |
1661 | CFrame.new(-0, 0, 0, 1, 2.74374239e-42, 0, -4.14784345e-43, 1, 3.94815568e-21, 0, -3.94815568e-21, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1662 | CFrame.new(6.27267406e-22, 1.5, 5.14489943e-21, 1, 4.18178271e-22, -7.99910562e-22, -4.18178271e-22, 1, -3.42993309e-21, 7.99910562e-22, 3.42993309e-21, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1663 | CFrame.new(1.70000088, -1.07288361e-06, -1.90953349e-22, 0.976871967, -0.213825449, 1.12325362e-22, 0.213825434, 0.976871967, 4.79021585e-25, -1.09829936e-22, 2.35504137e-23, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1664 | CFrame.new(-0.850000083, 0.490011454, 1.23001456, 0.713302493, -0.651785433, 0.25761947, 0.0951224491, 0.454213858, 0.885803401, -0.694377124, -0.607336044, 0.385999024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1665 | CFrame.new(0.810000062, -1.99999988, 8.44388509e-23, 0.977508307, -0.210897148, 7.18926177e-24, 0.210897148, 0.977508307, 4.51306188e-23, -1.65455308e-23, -4.25998015e-23, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1666 | CFrame.new(-0.760003924, -1.99999833, 8.66891997e-23, 0.958771527, 0.284177125, -5.31260585e-24, -0.284177125, 0.958771527, 4.5364475e-23, 1.79848674e-23, -4.19834551e-23, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1667 | }, .3, false) | |
1668 | end | |
1669 | ||
1670 | knifweld.Part1 = LeftArm; | |
1671 | for i = 0, 1, 0.1 do | |
1672 | swait() | |
1673 | PlayAnimationFromTable({ | |
1674 | CFrame.new(-0, 0, 0, 1, 2.74374239e-42, 0, -4.14784345e-43, 1, 3.94815568e-21, 0, -3.94815568e-21, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1675 | CFrame.new(6.272668e-22, 1.49999857, 5.14489458e-21, 1, 4.18178271e-22, -7.99910562e-22, -4.18178271e-22, 1, -3.42993309e-21, 7.99910562e-22, 3.42993309e-21, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1676 | CFrame.new(1.70000052, 7.74860382e-07, -1.90953299e-22, 0.976871967, -0.213825449, 1.12325362e-22, 0.213825434, 0.976871967, 4.79021585e-25, -1.09829936e-22, 2.35504137e-23, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1677 | CFrame.new(-1.86429644, 0.490001321, 0.353379637, 0.43522808, 0.781304598, -0.447369784, 0.0951220244, 0.454214871, 0.885799527, 0.895281255, -0.428079516, 0.123367772) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1678 | CFrame.new(0.810000479, -2.00000167, 8.44389392e-23, 0.977508307, -0.210897148, 7.18926177e-24, 0.210897148, 0.977508307, 4.51306188e-23, -1.65455308e-23, -4.25998015e-23, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1679 | CFrame.new(-0.759997129, -2.00000238, 8.66894142e-23, 0.958771527, 0.284177125, -5.31260585e-24, -0.284177125, 0.958771527, 4.5364475e-23, 1.79848674e-23, -4.19834551e-23, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1680 | }, .3, false) | |
1681 | knifweld.C0 = clerp(knifweld.C0, CFrame.new(0.719429076, -0.636934459, -0.303826034, -0.694375217, 0.0951220244, -0.713298857, -0.607333899, 0.454214871, 0.651793361, 0.385990798, 0.885799527, -0.257624656):inverse(), 0.3) | |
1682 | end | |
1683 | wait(1) | |
1684 | for i = 0, 0.3, 0.1 do | |
1685 | swait() | |
1686 | PlayAnimationFromTable({ | |
1687 | CFrame.new(-0, 0, 0, 1, 2.74374239e-42, 0, -4.14784345e-43, 1, 3.94815568e-21, 0, -3.94815568e-21, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1688 | CFrame.new(6.272668e-22, 1.49999857, 5.14489458e-21, 1, 4.18178271e-22, -7.99910562e-22, -4.18178271e-22, 1, -3.42993309e-21, 7.99910562e-22, 3.42993309e-21, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1689 | CFrame.new(1.70000052, 7.74860382e-07, -1.90953299e-22, 0.976871967, -0.213825449, 1.12325362e-22, 0.213825434, 0.976871967, 4.79021585e-25, -1.09829936e-22, 2.35504137e-23, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1690 | CFrame.new(-1.6177212, 0.490001768, -0.561156034, -0.897470236, 0.424123824, -0.121104449, 0.0951220244, 0.45421502, 0.885799348, 0.4306961, 0.783458829, -0.447987944) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1691 | CFrame.new(0.810000479, -2.00000167, 8.44389392e-23, 0.977508307, -0.210897148, 7.18926177e-24, 0.210897148, 0.977508307, 4.51306188e-23, -1.65455308e-23, -4.25998015e-23, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1692 | CFrame.new(-0.759997129, -2.00000238, 8.66894142e-23, 0.958771527, 0.284177125, -5.31260585e-24, -0.284177125, 0.958771527, 4.5364475e-23, 1.79848674e-23, -4.19834551e-23, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1693 | }, .7, false) | |
1694 | end | |
1695 | knifweld:destroy() | |
1696 | knife.CanCollide = true | |
1697 | knife.Velocity = Vector3.new(0,3,0) + Torso.CFrame.lookVector * 150 | |
1698 | knife.Touched:connect(function(o) | |
1699 | if o and o.Parent and o.Parent:FindFirstChildOfClass"Humanoid" and o.Parent ~= Character then | |
1700 | o.Parent:BreakJoints() | |
1701 | end | |
1702 | end) | |
1703 | game:service'Debris':AddItem(knife,3) | |
1704 | wait(1) | |
1705 | end | |
1706 | local spike = Instance.new("Part",Character) | |
1707 | spike.Size = Vector3.new(1,5,1) | |
1708 | spike.BrickColor = BrickColor.new"Really black" | |
1709 | spike.CanCollide=false | |
1710 | local mesh = Instance.new("SpecialMesh",spike) | |
1711 | mesh.MeshType = Enum.MeshType.FileMesh | |
1712 | mesh.Scale = Vector3.new(0.5,0,0.5) | |
1713 | mesh.MeshId = "http://www.roblox.com/asset/?id=1033714" | |
1714 | local w = Instance.new("Weld",spike) | |
1715 | w.Part0 = spike; | |
1716 | w.Part1 = RightArm | |
1717 | w.C0 = CFrame.new(0,-1,0)*CFrame.Angles(math.rad(180),0,0) | |
1718 | for i = 0, 5, .2 do | |
1719 | mesh.Scale = Vector3.new(0.5,i,0.5) | |
1720 | wait() | |
1721 | end | |
1722 | Humanoid.Name = "..?" | |
1723 | Humanoid.MaxHealth = 6666 | |
1724 | wait() | |
1725 | Humanoid.Health = 6666 | |
1726 | local sitting = false | |
1727 | RootPart.Anchored = false | |
1728 | Humanoid.WalkSpeed = 16 | |
1729 | ||
1730 | ||
1731 | Mouse.KeyDown:connect(function(k) | |
1732 | k = k:lower() | |
1733 | if attack == false and k == 'n' then | |
1734 | sitting = not sitting | |
1735 | end | |
1736 | end) | |
1737 | ||
1738 | Mouse.KeyDown:connect(function(k) | |
1739 | k = k:lower() | |
1740 | if attack == false and k == '\\' then | |
1741 | attack = true | |
1742 | for i = 0, 1, .1 do | |
1743 | PlayAnimationFromTable({ | |
1744 | CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1745 | CFrame.new(-3.12924385e-06, 1.49999845, -0.190008759, 0.830971599, -3.46708561e-07, -0.556314826, 0.432258785, 0.629496157, 0.645667791, 0.350197822, -0.777003586, 0.523093581) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1746 | CFrame.new(0.229988158, 0.77000308, -0.809998631, 0.526497126, 0.849815786, 0.024786748, 0.125237852, -0.0486874878, -0.990931571, -0.840902209, 0.524826705, -0.132062897) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1747 | CFrame.new(-1.58000278, 0.540002823, -0.709999025, 0.270906031, 0.962609172, 4.37134879e-08, -0.962609172, 0.270906031, -1.83186105e-12, -1.18440182e-08, -4.20786073e-08, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1748 | CFrame.new(0.729982853, -1.99999952, -3.19085629e-08, 0.986256778, -0.165219754, 4.37113883e-08, 0.165219754, 0.986256778, 0, -4.31106528e-08, 7.22198479e-09, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1749 | CFrame.new(-0.66998899, -1.99999726, 2.92861486e-08, 0.986263514, 0.165178567, 4.37112391e-08, -0.165178567, 0.986263514, 4.9156893e-14, -4.31107914e-08, -7.22021065e-09, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1750 | }, .3, false) | |
1751 | end | |
1752 | for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 30)) do | |
1753 | if v:FindFirstChild('Torso') and v:FindFirstChildOfClass"Humanoid" then | |
1754 | if v:FindFirstChildOfClass"Humanoid".Health > 0 then | |
1755 | v:BreakJoints() | |
1756 | end | |
1757 | end | |
1758 | end | |
1759 | wait(3) | |
1760 | attack = false | |
1761 | end | |
1762 | end) | |
1763 | Mouse.KeyDown:connect(function(k) | |
1764 | k = k:lower() | |
1765 | if attack == false and k == 'z' then | |
1766 | attack=true | |
1767 | local grab = nil | |
1768 | local Grabbed = false | |
1769 | for i, v in pairs(FindNearestTorso(spike.CFrame.p, 5)) do | |
1770 | if v:FindFirstChild('Torso') and v:FindFirstChildOfClass"Humanoid" then | |
1771 | if v:FindFirstChildOfClass"Humanoid".Health > 0 then | |
1772 | Grabbed = true | |
1773 | grab = v | |
1774 | end | |
1775 | end | |
1776 | end | |
1777 | coroutine.wrap(function() | |
1778 | if grab then | |
1779 | while wait() do | |
1780 | if not grab then break end | |
1781 | if grab:FindFirstChild"Torso" then | |
1782 | grab.Torso.CFrame = spike.CFrame * CFrame.new(0,4,0) | |
1783 | end | |
1784 | end | |
1785 | end | |
1786 | end)() | |
1787 | for i = 0, 1, 0.1 do | |
1788 | swait() | |
1789 | PlayAnimationFromTable({ | |
1790 | CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1791 | CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1792 | CFrame.new(0.929986954, 0.769999504, -0.809990883, 0.814206779, 0.580045819, 0.0247832965, 0.0966590643, -0.0933407471, -0.990931332, -0.572472274, 0.809218228, -0.132065386) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1793 | CFrame.new(-1.57999754, 0.0700003654, 6.90638799e-08, 0.987661004, 0.156606853, 4.37113883e-08, -0.156606853, 0.987661004, 0, -4.31720331e-08, -6.84550283e-09, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1794 | CFrame.new(0.729982853, -1.99999952, -3.19085629e-08, 0.986256778, -0.165219754, 4.37113883e-08, 0.165219754, 0.986256778, 0, -4.31106528e-08, 7.22198479e-09, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1795 | CFrame.new(-0.66998899, -1.99999726, 2.92861486e-08, 0.986263514, 0.165178567, 4.37112391e-08, -0.165178567, 0.986263514, 4.9156893e-14, -4.31107914e-08, -7.22021065e-09, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1796 | }, .8, false) | |
1797 | end | |
1798 | wait(2) | |
1799 | if grab then | |
1800 | grab:BreakJoints() | |
1801 | grab = nil | |
1802 | end | |
1803 | attack = false | |
1804 | end | |
1805 | end) | |
1806 | ||
1807 | local stomps = Instance.new("Sound", Character) | |
1808 | stomps.SoundId = "http://www.roblox.com/asset/?id=198360408" | |
1809 | stomps.Looped = true | |
1810 | stomps.Volume = 10 | |
1811 | local footsteps = false | |
1812 | ||
1813 | while true do | |
1814 | swait() | |
1815 | for i, v in pairs(Character:GetChildren()) do | |
1816 | if v:IsA("Part") then | |
1817 | v.Material = "SmoothPlastic" | |
1818 | elseif v:IsA("Accessory") then | |
1819 | v:WaitForChild("Handle").Material = "SmoothPlastic" | |
1820 | end | |
1821 | end | |
1822 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
1823 | velocity = RootPart.Velocity.y | |
1824 | sine = sine + change | |
1825 | local RightLeg = CFrame.new(0.5,-1,0) | |
1826 | local LeftLeg = CFrame.new(-0.5,-1,0) | |
1827 | ||
1828 | local lefth = (Torso.CFrame*LeftLeg) | |
1829 | local righth = (Torso.CFrame*RightLeg) | |
1830 | ||
1831 | local speed = Vector3.new(Torso.Velocity.X,0,Torso.Velocity.Z) | |
1832 | ||
1833 | local TiltOnAxis = (Torso.CFrame-Torso.CFrame.p):vectorToObjectSpace(speed/100) | |
1834 | ||
1835 | local AngleThetaR = (righth-righth.p):vectorToObjectSpace(speed/100) | |
1836 | local AngleThetaL = (lefth-lefth.p):vectorToObjectSpace(speed/100) | |
1837 | ||
1838 | local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character) | |
1839 | if RootPart.Velocity.y > 1 and hit == nil then | |
1840 | Anim = "Jump" | |
1841 | if attack == false then | |
1842 | PlayAnimationFromTable({ | |
1843 | CFrame.new(0, 0, 0, 1, -2.21689355e-12, -5.11591203e-13, -2.21689355e-12, 1, 7.74860496e-07, -5.11591203e-13, 7.74860496e-07, 1.00000048) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1844 | CFrame.new(-0.0579944476, 1.48445117, -0.000906195492, 0.999631822, -0.0259140469, -0.00804444961, 0.0262291897, 0.998776913, 0.0419151038, 0.0069484422, -0.0421099029, 0.999089062) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1845 | CFrame.new(1.68067598, 0.167780995, 5.50026158e-08, 0.965881884, -0.258982956, -3.41060513e-13, 0.258982956, 0.965881884, 4.47034836e-07, 8.49010675e-08, 3.16640808e-07, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1846 | CFrame.new(-1.67620921, 0.188169807, -3.04922651e-07, 0.95698452, 0.290146649, -2.61441073e-07, -0.290146649, 0.95698452, -1.0069979e-05, -2.89639524e-06, 1.04542296e-05, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1847 | CFrame.new(0.537238836, -1.93797374, 0.176598221, 0.998698533, -0.0506777391, -0.00574572897, 0.0510024093, 0.992341697, 0.112511501, -6.35704041e-08, -0.112657718, 0.993634105) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1848 | CFrame.new(-0.536944568, -1.94808352, 0.126473114, 0.998626292, 0.0520468242, 0.00521374354, -0.0523067154, 0.993665218, 0.0995327011, -3.84102691e-07, -0.099668026, 0.995023906) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1849 | }, .3, false) | |
1850 | LH.C1 = clerp(LH.C1,CFrame.new(0,0,0),1) | |
1851 | RH.C1 = clerp(RH.C1,CFrame.new(0,0,0),1) | |
1852 | RW.C1 = clerp(RW.C1,CFrame.new(0,0,0),1) | |
1853 | LW.C1 = clerp(LW.C1,CFrame.new(0,0,0),1) | |
1854 | end | |
1855 | elseif RootPart.Velocity.y < -1 and hit == nil then | |
1856 | Anim = "Fall" | |
1857 | if attack == false then | |
1858 | PlayAnimationFromTable({ | |
1859 | CFrame.new(0, 0, 0, 1, -2.21689355e-12, -5.11591203e-13, -2.21689355e-12, 1, 7.74860496e-07, -5.11591203e-13, 7.74860496e-07, 1.00000048) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1860 | CFrame.new(-0.0576509275, 1.50532985, -0.129091382, 0.999631822, -0.0231846143, -0.0140984114, 0.0262298863, 0.958684564, 0.283279002, 0.00694822101, -0.283544153, 0.958935201) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1861 | CFrame.new(1.68622994, 0.21415168, 7.02040666e-08, 0.881990671, -0.471266806, -3.41060513e-13, 0.471266806, 0.881990671, 4.47034836e-07, 1.54493137e-07, 2.89139166e-07, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1862 | CFrame.new(-1.72513735, 0.240890861, 2.54038241e-07, 0.814108491, 0.58071363, -2.61430017e-07, -0.580713034, 0.814108849, -1.00698489e-05, -6.08482924e-06, 8.98058715e-06, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1863 | CFrame.new(0.536720514, -1.92783141, 0.223740995, 0.998698533, -0.0498600565, -0.0107376017, 0.0510031059, 0.976314366, 0.210260883, -3.04512355e-07, -0.210534185, 0.977587521) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1864 | CFrame.new(-0.535922825, -1.92850935, 0.222419083, 0.99863112, 0.0512506701, 0.0104565797, -0.0523065142, 0.978474379, 0.199629858, -3.7062793e-07, -0.199902818, 0.97981596) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1865 | }, .3, false) | |
1866 | LH.C1 = clerp(LH.C1,CFrame.new(0,0,0),1) | |
1867 | RH.C1 = clerp(RH.C1,CFrame.new(0,0,0),1) | |
1868 | RW.C1 = clerp(RW.C1,CFrame.new(0,0,0),1) | |
1869 | LW.C1 = clerp(LW.C1,CFrame.new(0,0,0),1) | |
1870 | end | |
1871 | elseif Torsovelocity < 1 and hit ~= nil then | |
1872 | Anim = "Idle" | |
1873 | if attack == false then | |
1874 | if sitting then | |
1875 | PlayAnimationFromTable({ | |
1876 | CFrame.new(0, -1.79429209, 1.46916926, 1, 0, 0, 0, 0.686436713, -0.72718966, 0, 0.72718966, 0.686436713) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1877 | CFrame.new(0, 1.49587059, -0.388922036, 1, 0, 0, 0, 0.926760077, 0.37564832, 0, -0.37564832, 0.926760077) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1878 | CFrame.new(1.57999742, 0.115062252, 0.493130147, 0.905118704, -0.402649224, -0.136505559, 0.309478283, 0.403816581, 0.860903978, -0.291519076, -0.821465731, 0.49011308) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1879 | CFrame.new(-1.57999468, -0.083268106, 0.472244143, 0.913947523, 0.383825779, 0.131824896, -0.312791735, 0.45925644, 0.831411481, 0.258575737, -0.801100194, 0.539793789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1880 | CFrame.new(0.729981065, -1.6900773, -0.349870145, 0.94077301, -0.296055317, 0.165220842, 0.326471359, 0.659609675, -0.677002609, 0.0914489403, 0.690846324, 0.717195749) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1881 | CFrame.new(-0.669989347, -1.66948545, -0.371685445, 0.98626411, 0.00139324146, -0.165173233, -0.11338535, 0.732872367, -0.67085284, 0.120116085, 0.68036586, 0.722963512) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1882 | }, .3, false) | |
1883 | else | |
1884 | change = 1 | |
1885 | PlayAnimationFromTable({ | |
1886 | CFrame.new(-0, -0, 0, 1, 0, 0, 0, 1, 3.94815568e-21, 0, -3.94815568e-21, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1887 | CFrame.new(0, 1.5, 5.92223352e-21, 1, 0, 0, 0, 1, -3.94815568e-21, 0, 3.94815568e-21, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1888 | CFrame.new(1.57999372, 0.0500014573, -6.90637165e-08, 0.987661004, -0.156606853, 4.37113883e-08, 0.156606853, 0.987661004, -3.94815568e-21, -4.31720331e-08, 6.84550283e-09, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0) * CFrame.Angles(0, 0, 0+0.05*math.cos(sine/22)), | |
1889 | CFrame.new(-1.57999754, 0.0700003654, 6.90638799e-08, 0.987661004, 0.156606853, 4.37113883e-08, -0.156606853, 0.987661004, -3.94815568e-21, -4.31720331e-08, -6.84550283e-09, 1) * CFrame.new(0-0.05*math.cos(sine/22), 0, 0) * CFrame.Angles(0, 0, 0-0.05*math.cos(sine/22)), | |
1890 | CFrame.new(0.729982853, -1.99999952, -3.19085629e-08, 0.986256778, -0.165219754, 4.37113883e-08, 0.165219754, 0.986256778, -3.94815568e-21, -4.31106528e-08, 7.22198479e-09, 1) * CFrame.new(0+0.05*math.cos(sine/22), 0, 0) * CFrame.Angles(0, 0, 0+0.05*math.cos(sine/22)), | |
1891 | CFrame.new(-0.66998899, -1.99999726, 2.92861486e-08, 0.986263514, 0.165178567, 4.37112391e-08, -0.165178567, 0.986263514, 4.91568896e-14, -4.31107914e-08, -7.22021065e-09, 1) * CFrame.new(0-0.05*math.cos(sine/22), 0, 0) * CFrame.Angles(0, 0, 0-0.05*math.cos(sine/22)), | |
1892 | }, .3, false) | |
1893 | LH.C1 = clerp(LH.C1,CFrame.new(0,0,0),1) | |
1894 | RH.C1 = clerp(RH.C1,CFrame.new(0,0,0),1) | |
1895 | RW.C1 = clerp(RW.C1,CFrame.new(0,0,0),1) | |
1896 | LW.C1 = clerp(LW.C1,CFrame.new(0,0,0),1) | |
1897 | end | |
1898 | end | |
1899 | elseif Torsovelocity > 2 and hit ~= nil then | |
1900 | Anim = "Walk" | |
1901 | if attack == false then | |
1902 | RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0+0.12*math.cos(sine/2), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/2)), math.rad(0+10*math.cos(sine/4)/2.3)+RootPart.RotVelocity.Y/30, math.rad(0)+RootPart.RotVelocity.Y/30), 0.4) | |
1903 | Torso.Neck.C0 = clerp(Torso.Neck.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
1904 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5-.05*math.cos(sine/2), math.sin(sine/4)/4) * CFrame.Angles(-math.sin(sine/4)/2.8, -math.sin(sine/4)/3, (math.rad(10+7*math.cos(sine/2))+RootPart.RotVelocity.Y/30)), 0.4) | |
1905 | RW.C1 = clerp(RW.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7) | |
1906 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+.05*math.cos(sine/2), -math.sin(sine/4)/4)*CFrame.Angles(math.sin(sine/4)/2.8, -math.sin(sine/4)/3, (math.rad(-10-7*math.cos(sine/2))+RootPart.RotVelocity.Y/30)), 0.4) | |
1907 | LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7) | |
1908 | RH.C0 = RH.C0:lerp(CFrame.new(0.5,-1+math.cos(sine/4)*.3,0-math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*-AngleThetaR.Z,AngleThetaR.X,(math.sin(sine/4)*3*AngleThetaR.X)-RootPart.RotVelocity.Y/20),0.8) | |
1909 | RH.C1 = RH.C1:lerp(CFrame.new(0, 1, 0),.8) | |
1910 | ||
1911 | --RH.C0 = clerp(RH.C0, CFrame.new(.5, -2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
1912 | LH.C0 = LH.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/4)*.3,0+math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*AngleThetaL.Z,AngleThetaL.X,(math.sin(sine/4)*3*-AngleThetaL.X)-RootPart.RotVelocity.Y/20),0.8) | |
1913 | LH.C1 = LH.C1:lerp(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8) | |
1914 | ||
1915 | --LH.C0 = clerp(LH.C0, CFrame.new(-.5, -2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
1916 | end | |
1917 | end | |
1918 | if Anim == "Walk" then | |
1919 | stomps.Pitch = 1.1 | |
1920 | if stomps.Playing == false then | |
1921 | stomps:Play() | |
1922 | end | |
1923 | elseif Anim == "Idle" then | |
1924 | stomps:Stop() | |
1925 | end | |
1926 | end |