SHOW:
|
|
- or go back to the newest paste.
1 | - | --[[ |
1 | + | -- This script has been converted to FE by iPxter |
2 | ||
3 | ||
4 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
5 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
6 | do | |
7 | print("FE Compatibility code by Mokiros | Translated to FE by iPxter") | |
8 | script.Parent = Player.Character | |
9 | ||
10 | --RemoteEvent for communicating | |
11 | local Event = Instance.new("RemoteEvent") | |
12 | Event.Name = "UserInput_Event" | |
13 | ||
14 | --Fake event to make stuff like Mouse.KeyDown work | |
15 | local function fakeEvent() | |
16 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} | |
17 | t.connect = t.Connect | |
18 | return t | |
19 | end | |
20 | ||
21 | --Creating fake input objects with fake variables | |
22 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
23 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
24 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
25 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
26 | end} | |
27 | --Merged 2 functions into one by checking amount of arguments | |
28 | CAS.UnbindAction = CAS.BindAction | |
29 | ||
30 | --This function will trigger the events that have been :Connect()'ed | |
31 | local function te(self,ev,...) | |
32 | local t = m[ev] | |
33 | if t and t._fakeEvent and t.Function then | |
34 | t.Function(...) | |
35 | end | |
36 | end | |
37 | m.TrigEvent = te | |
38 | UIS.TrigEvent = te | |
39 | ||
40 | Event.OnServerEvent:Connect(function(plr,io) | |
41 | if plr~=Player then return end | |
42 | if io.isMouse then | |
43 | m.Target = io.Target | |
44 | m.Hit = io.Hit | |
45 | else | |
46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
49 | end | |
50 | for _,t in pairs(CAS.Actions) do | |
51 | for _,k in pairs(t.Keys) do | |
52 | if k==io.KeyCode then | |
53 | t.Function(t.Name,io.UserInputState,io) | |
54 | end | |
55 | end | |
56 | end | |
57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
59 | end | |
60 | end) | |
61 | Event.Parent = NLS([==[ | |
62 | local Player = game:GetService("Players").LocalPlayer | |
63 | local Event = script:WaitForChild("UserInput_Event") | |
64 | ||
65 | local UIS = game:GetService("UserInputService") | |
66 | local input = function(io,a) | |
67 | if a then return end | |
68 | --Since InputObject is a client-side instance, we create and pass table instead | |
69 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
70 | end | |
71 | UIS.InputBegan:Connect(input) | |
72 | UIS.InputEnded:Connect(input) | |
73 | ||
74 | local Mouse = Player:GetMouse() | |
75 | local h,t | |
76 | --Give the server mouse data 30 times every second, but only if the values changed | |
77 | --If player is not moving their mouse, client won't fire events | |
78 | while wait(1/30) do | |
79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
80 | h,t=Mouse.Hit,Mouse.Target | |
81 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
82 | end | |
83 | end]==],Player.Character) | |
84 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
85 | end--[[ | |
86 | REANIMATED | |
87 | { Never.. Give.. Up.. } | |
88 | Created by Quil_Cyndaquil (ROBLOX) [UserID 5719877] | |
89 | MintyLatios (V3rmillion) | |
90 | Nebula Zorua#1938 | |
91 | ||
92 | ||
93 | --]] | |
94 | wait(3) | |
95 | wait(1 / 60) | |
96 | Effects = { } | |
97 | local debugIt = false | |
98 | local Player = game.Players.localPlayer | |
99 | local Character = Player.Character | |
100 | Character.Archivable=true | |
101 | local FCharacter = Character:Clone() | |
102 | Character.Archivable=false | |
103 | local Humanoid = Character.Humanoid | |
104 | local Mouse = Player:GetMouse() | |
105 | local LeftArm = Character["Left Arm"] | |
106 | local RightArm = Character["Right Arm"] | |
107 | local LeftLeg = Character["Left Leg"] | |
108 | local RightLeg = Character["Right Leg"] | |
109 | local Head = Character.Head | |
110 | local Torso = Character.Torso | |
111 | local Camera = game.Workspace.CurrentCamera | |
112 | local RootPart = Character.HumanoidRootPart | |
113 | local RootJoint = RootPart.RootJoint | |
114 | local attack = false | |
115 | local Anim = 'Idle' | |
116 | local attacktype = 1 | |
117 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
118 | local velocity = RootPart.Velocity.y | |
119 | local sine = 0 | |
120 | local change = 1 | |
121 | local Create = LoadLibrary("RbxUtility").Create | |
122 | ||
123 | local m = Create("Model"){ | |
124 | Parent = Character, | |
125 | Name = "WeaponModel", | |
126 | } | |
127 | ||
128 | Humanoid.Animator.Parent = nil | |
129 | Character.Animate.Parent = nil | |
130 | ||
131 | local newMotor = function(part0, part1, c0, c1) | |
132 | local w = Create('Weld'){ | |
133 | Parent = part0, | |
134 | Part0 = part0, | |
135 | Part1 = part1, | |
136 | C0 = c0, | |
137 | C1 = c1, | |
138 | } | |
139 | return w | |
140 | end | |
141 | ||
142 | function clerp(a, b, t) | |
143 | return a:lerp(b, t) | |
144 | end | |
145 | ||
146 | RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
147 | NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
148 | ||
149 | local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) | |
150 | local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0)) | |
151 | local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0)) | |
152 | local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0)) | |
153 | RootJoint.C1 = CFrame.new(0, 0, 0) | |
154 | RootJoint.C0 = CFrame.new(0, 0, 0) | |
155 | Torso.Neck.C1 = CFrame.new(0, 0, 0) | |
156 | Torso.Neck.C0 = CFrame.new(0, 1.5, 0) | |
157 | ||
158 | local rarmc1 = RW.C1 | |
159 | local larmc1 = LW.C1 | |
160 | local rlegc1 = RH.C1 | |
161 | local llegc1 = LH.C1 | |
162 | ||
163 | local resetc1 = false | |
164 | ||
165 | function PlayAnimationFromTable(table, speed, bool) | |
166 | RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) | |
167 | Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) | |
168 | RW.C0 = clerp(RW.C0, table[3], speed) | |
169 | LW.C0 = clerp(LW.C0, table[4], speed) | |
170 | RH.C0 = clerp(RH.C0, table[5], speed) | |
171 | LH.C0 = clerp(LH.C0, table[6], speed) | |
172 | LH.C1 = clerp(LH.C1,CFrame.new(0,0,0),speed) | |
173 | RH.C1 = clerp(RH.C1,CFrame.new(0,0,0),speed) | |
174 | if bool == true then | |
175 | if resetc1 == false then | |
176 | resetc1 = true | |
177 | RootJoint.C1 = RootJoint.C1 | |
178 | Torso.Neck.C1 = Torso.Neck.C1 | |
179 | RW.C1 = rarmc1 | |
180 | LW.C1 = larmc1 | |
181 | RH.C1 = rlegc1 | |
182 | LH.C1 = llegc1 | |
183 | end | |
184 | end | |
185 | end | |
186 | ||
187 | ArtificialHB = Create("BindableEvent", script){ | |
188 | Parent = script, | |
189 | Name = "Heartbeat", | |
190 | } | |
191 | ||
192 | script:WaitForChild("Heartbeat") | |
193 | ||
194 | frame = 1 / 30 | |
195 | tf = 0 | |
196 | allowframeloss = false | |
197 | tossremainder = false | |
198 | lastframe = tick() | |
199 | script.Heartbeat:Fire() | |
200 | ||
201 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
202 | tf = tf + s | |
203 | if tf >= frame then | |
204 | if allowframeloss then | |
205 | script.Heartbeat:Fire() | |
206 | lastframe = tick() | |
207 | else | |
208 | for i = 1, math.floor(tf / frame) do | |
209 | script.Heartbeat:Fire() | |
210 | end | |
211 | lastframe = tick() | |
212 | end | |
213 | if tossremainder then | |
214 | tf = 0 | |
215 | else | |
216 | tf = tf - frame * math.floor(tf / frame) | |
217 | end | |
218 | end | |
219 | end) | |
220 | ||
221 | function swait(num) | |
222 | if num == 0 or num == nil then | |
223 | ArtificialHB.Event:wait() | |
224 | else | |
225 | for i = 0, num do | |
226 | ArtificialHB.Event:wait() | |
227 | end | |
228 | end | |
229 | end | |
230 | ||
231 | function RemoveOutlines(part) | |
232 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
233 | end | |
234 | ||
235 | CFuncs = { | |
236 | ["Part"] = { | |
237 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
238 | local Part = Create("Part"){ | |
239 | Parent = Parent, | |
240 | Reflectance = Reflectance, | |
241 | Transparency = Transparency, | |
242 | CanCollide = false, | |
243 | Locked = true, | |
244 | BrickColor = BrickColor.new(tostring(BColor)), | |
245 | Name = Name, | |
246 | Size = Size, | |
247 | Material = Material, | |
248 | } | |
249 | RemoveOutlines(Part) | |
250 | return Part | |
251 | end; | |
252 | }; | |
253 | ||
254 | ["Mesh"] = { | |
255 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
256 | local Msh = Create(Mesh){ | |
257 | Parent = Part, | |
258 | Offset = OffSet, | |
259 | Scale = Scale, | |
260 | } | |
261 | if Mesh == "SpecialMesh" then | |
262 | Msh.MeshType = MeshType | |
263 | Msh.MeshId = MeshId | |
264 | end | |
265 | return Msh | |
266 | end; | |
267 | }; | |
268 | ||
269 | ["Mesh"] = { | |
270 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
271 | local Msh = Create(Mesh){ | |
272 | Parent = Part, | |
273 | Offset = OffSet, | |
274 | Scale = Scale, | |
275 | } | |
276 | if Mesh == "SpecialMesh" then | |
277 | Msh.MeshType = MeshType | |
278 | Msh.MeshId = MeshId | |
279 | end | |
280 | return Msh | |
281 | end; | |
282 | }; | |
283 | ||
284 | ["Weld"] = { | |
285 | Create = function(Parent, Part0, Part1, C0, C1) | |
286 | local Weld = Create("Weld"){ | |
287 | Parent = Parent, | |
288 | Part0 = Part0, | |
289 | Part1 = Part1, | |
290 | C0 = C0, | |
291 | C1 = C1, | |
292 | } | |
293 | return Weld | |
294 | end; | |
295 | }; | |
296 | ||
297 | ["Sound"] = { | |
298 | Create = function(id, par, vol, pit) | |
299 | coroutine.resume(coroutine.create(function() | |
300 | local S = Create("Sound"){ | |
301 | Volume = vol, | |
302 | Pitch = pit or 1, | |
303 | SoundId = id, | |
304 | Parent = par or workspace, | |
305 | } | |
306 | wait() | |
307 | S:play() | |
308 | game:GetService("Debris"):AddItem(S, 6) | |
309 | end)) | |
310 | end; | |
311 | }; | |
312 | ||
313 | ["ParticleEmitter"] = { | |
314 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
315 | local fp = Create("ParticleEmitter"){ | |
316 | Parent = Parent, | |
317 | Color = ColorSequence.new(Color1, Color2), | |
318 | LightEmission = LightEmission, | |
319 | Size = Size, | |
320 | Texture = Texture, | |
321 | Transparency = Transparency, | |
322 | ZOffset = ZOffset, | |
323 | Acceleration = Accel, | |
324 | Drag = Drag, | |
325 | LockedToPart = LockedToPart, | |
326 | VelocityInheritance = VelocityInheritance, | |
327 | EmissionDirection = EmissionDirection, | |
328 | Enabled = Enabled, | |
329 | Lifetime = LifeTime, | |
330 | Rate = Rate, | |
331 | Rotation = Rotation, | |
332 | RotSpeed = RotSpeed, | |
333 | Speed = Speed, | |
334 | VelocitySpread = VelocitySpread, | |
335 | } | |
336 | return fp | |
337 | end; | |
338 | }; | |
339 | ||
340 | CreateTemplate = { | |
341 | ||
342 | }; | |
343 | } | |
344 | ||
345 | function rayCast(Position, Direction, Range, Ignore) | |
346 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
347 | end | |
348 | ||
349 | --[[FindNearestTorso = function(pos) | |
350 | local list = (game.Workspace:children()) | |
351 | local torso = nil | |
352 | local dist = 1000 | |
353 | local temp, human, temp2 = nil, nil, nil | |
354 | for x = 1, #list do | |
355 | temp2 = list[x] | |
356 | if temp2.className == "Model" and temp2.Name ~= Character.Name then | |
357 | temp = temp2:findFirstChild("Torso") | |
358 | human = temp2:findFirstChild("Humanoid") | |
359 | if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then | |
360 | local dohit = true | |
361 | if dohit == true then | |
362 | torso = temp | |
363 | dist = (temp.Position - pos).magnitude | |
364 | end | |
365 | end | |
366 | end | |
367 | end | |
368 | return torso, dist | |
369 | end]] | |
370 | function FindNearestTorso(Position, Distance, SinglePlayer) | |
371 | if SinglePlayer then | |
372 | return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance | |
373 | end | |
374 | local List = {} | |
375 | for i, v in pairs(workspace:GetChildren()) do | |
376 | if v:IsA("Model") then | |
377 | if v:findFirstChild("Torso") then | |
378 | if v ~= Character then | |
379 | if (v.Torso.Position - Position).magnitude <= Distance then | |
380 | table.insert(List, v) | |
381 | end | |
382 | end | |
383 | end | |
384 | end | |
385 | end | |
386 | return List | |
387 | end | |
388 | ||
389 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
390 | if hit.Parent == nil then | |
391 | return | |
392 | end | |
393 | local h = hit.Parent:FindFirstChild("Humanoid") | |
394 | for _, v in pairs(hit.Parent:children()) do | |
395 | if v:IsA("Humanoid") then | |
396 | h = v | |
397 | end | |
398 | end | |
399 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
400 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then | |
401 | if hit.Parent.DebounceHit.Value == true then | |
402 | return | |
403 | end | |
404 | end | |
405 | local c = Create("ObjectValue"){ | |
406 | Name = "creator", | |
407 | Value = game:service("Players").LocalPlayer, | |
408 | Parent = h, | |
409 | } | |
410 | game:GetService("Debris"):AddItem(c, .5) | |
411 | if HitSound ~= nil and HitPitch ~= nil then | |
412 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
413 | end | |
414 | local Damage = math.random(minim, maxim) | |
415 | local blocked = false | |
416 | local block = hit.Parent:findFirstChild("Block") | |
417 | if block ~= nil then | |
418 | if block.className == "IntValue" then | |
419 | if block.Value > 0 then | |
420 | blocked = true | |
421 | block.Value = block.Value - 1 | |
422 | print(block.Value) | |
423 | end | |
424 | end | |
425 | end | |
426 | if blocked == false then | |
427 | h.Health = h.Health - Damage | |
428 | 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) | |
429 | else | |
430 | h.Health = h.Health - (Damage / 2) | |
431 | 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) | |
432 | end | |
433 | if Type == "Knockdown" then | |
434 | local hum = hit.Parent.Humanoid | |
435 | hum.PlatformStand = true | |
436 | coroutine.resume(coroutine.create(function(HHumanoid) | |
437 | swait(1) | |
438 | HHumanoid.PlatformStand = false | |
439 | end), hum) | |
440 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
441 | local bodvol = Create("BodyVelocity"){ | |
442 | velocity = angle * knockback, | |
443 | P = 5000, | |
444 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
445 | Parent = hit, | |
446 | } | |
447 | local rl = Create("BodyAngularVelocity"){ | |
448 | P = 3000, | |
449 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
450 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
451 | Parent = hit, | |
452 | } | |
453 | game:GetService("Debris"):AddItem(bodvol, .5) | |
454 | game:GetService("Debris"):AddItem(rl, .5) | |
455 | elseif Type == "Normal" then | |
456 | local vp = Create("BodyVelocity"){ | |
457 | P = 500, | |
458 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
459 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
460 | } | |
461 | if knockback > 0 then | |
462 | vp.Parent = hit.Parent.Torso | |
463 | end | |
464 | game:GetService("Debris"):AddItem(vp, .5) | |
465 | elseif Type == "Up" then | |
466 | local bodyVelocity = Create("BodyVelocity"){ | |
467 | velocity = Vector3.new(0, 20, 0), | |
468 | P = 5000, | |
469 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
470 | Parent = hit, | |
471 | } | |
472 | game:GetService("Debris"):AddItem(bodyVelocity, .5) | |
473 | elseif Type == "DarkUp" then | |
474 | coroutine.resume(coroutine.create(function() | |
475 | for i = 0, 1, 0.1 do | |
476 | swait() | |
477 | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1) | |
478 | end | |
479 | end)) | |
480 | local bodyVelocity = Create("BodyVelocity"){ | |
481 | velocity = Vector3.new(0, 20, 0), | |
482 | P = 5000, | |
483 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
484 | Parent = hit, | |
485 | } | |
486 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
487 | elseif Type == "Snare" then | |
488 | local bp = Create("BodyPosition"){ | |
489 | P = 2000, | |
490 | D = 100, | |
491 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
492 | position = hit.Parent.Torso.Position, | |
493 | Parent = hit.Parent.Torso, | |
494 | } | |
495 | game:GetService("Debris"):AddItem(bp, 1) | |
496 | elseif Type == "Freeze" then | |
497 | local BodPos = Create("BodyPosition"){ | |
498 | P = 50000, | |
499 | D = 1000, | |
500 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
501 | position = hit.Parent.Torso.Position, | |
502 | Parent = hit.Parent.Torso, | |
503 | } | |
504 | local BodGy = Create("BodyGyro") { | |
505 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
506 | P = 20e+003, | |
507 | Parent = hit.Parent.Torso, | |
508 | cframe = hit.Parent.Torso.CFrame, | |
509 | } | |
510 | hit.Parent.Torso.Anchored = true | |
511 | coroutine.resume(coroutine.create(function(Part) | |
512 | swait(1.5) | |
513 | Part.Anchored = false | |
514 | end), hit.Parent.Torso) | |
515 | game:GetService("Debris"):AddItem(BodPos, 3) | |
516 | game:GetService("Debris"):AddItem(BodGy, 3) | |
517 | end | |
518 | local debounce = Create("BoolValue"){ | |
519 | Name = "DebounceHit", | |
520 | Parent = hit.Parent, | |
521 | Value = true, | |
522 | } | |
523 | game:GetService("Debris"):AddItem(debounce, Delay) | |
524 | c = Create("ObjectValue"){ | |
525 | Name = "creator", | |
526 | Value = Player, | |
527 | Parent = h, | |
528 | } | |
529 | game:GetService("Debris"):AddItem(c, .5) | |
530 | end | |
531 | end | |
532 | ||
533 | function ShowDamage(Pos, Text, Time, Color) | |
534 | local Rate = (1 / 30) | |
535 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
536 | local Text = (Text or "") | |
537 | local Time = (Time or 2) | |
538 | local Color = (Color or Color3.new(1, 0, 1)) | |
539 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
540 | EffectPart.Anchored = true | |
541 | local BillboardGui = Create("BillboardGui"){ | |
542 | Size = UDim2.new(3, 0, 3, 0), | |
543 | Adornee = EffectPart, | |
544 | Parent = EffectPart, | |
545 | } | |
546 | local TextLabel = Create("TextLabel"){ | |
547 | BackgroundTransparency = 1, | |
548 | Size = UDim2.new(1, 0, 1, 0), | |
549 | Text = Text, | |
550 | Font = "SciFi", | |
551 | TextColor3 = Color, | |
552 | TextScaled = true, | |
553 | Parent = BillboardGui, | |
554 | } | |
555 | game.Debris:AddItem(EffectPart, (Time)) | |
556 | EffectPart.Parent = game:GetService("Workspace") | |
557 | delay(0, function() | |
558 | local Frames = (Time / Rate) | |
559 | for Frame = 1, Frames do | |
560 | wait(Rate) | |
561 | local Percent = (Frame / Frames) | |
562 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
563 | TextLabel.TextTransparency = Percent | |
564 | end | |
565 | if EffectPart and EffectPart.Parent then | |
566 | EffectPart:Destroy() | |
567 | end | |
568 | end) | |
569 | end | |
570 | ||
571 | function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch) | |
572 | for _, c in pairs(workspace:children()) do | |
573 | local hum = c:findFirstChild("Humanoid") | |
574 | if hum ~= nil then | |
575 | local head = c:findFirstChild("Torso") | |
576 | if head ~= nil then | |
577 | local targ = head.Position - Part.Position | |
578 | local mag = targ.magnitude | |
579 | if mag <= Magnitude and c.Name ~= Player.Name then | |
580 | Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch) | |
581 | end | |
582 | end | |
583 | end | |
584 | end | |
585 | end | |
586 | ||
587 | EffectModel = Create("Model"){ | |
588 | Parent = Character, | |
589 | Name = "Effects", | |
590 | } | |
591 | ||
592 | Effects = { | |
593 | Block = { | |
594 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
595 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
596 | prt.Anchored = true | |
597 | prt.CFrame = cframe | |
598 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
599 | game:GetService("Debris"):AddItem(prt, 10) | |
600 | if Type == 1 or Type == nil then | |
601 | table.insert(Effects, { | |
602 | prt, | |
603 | "Block1", | |
604 | delay, | |
605 | x3, | |
606 | y3, | |
607 | z3, | |
608 | msh | |
609 | }) | |
610 | elseif Type == 2 then | |
611 | table.insert(Effects, { | |
612 | prt, | |
613 | "Block2", | |
614 | delay, | |
615 | x3, | |
616 | y3, | |
617 | z3, | |
618 | msh | |
619 | }) | |
620 | end | |
621 | end; | |
622 | }; | |
623 | ||
624 | Cylinder = { | |
625 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
626 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
627 | prt.Anchored = true | |
628 | prt.CFrame = cframe | |
629 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
630 | game:GetService("Debris"):AddItem(prt, 10) | |
631 | table.insert(Effects, { | |
632 | prt, | |
633 | "Cylinder", | |
634 | delay, | |
635 | x3, | |
636 | y3, | |
637 | z3, | |
638 | msh | |
639 | }) | |
640 | end; | |
641 | }; | |
642 | Head = { | |
643 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
644 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
645 | prt.Anchored = true | |
646 | prt.CFrame = cframe | |
647 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
648 | game:GetService("Debris"):AddItem(prt, 10) | |
649 | table.insert(Effects, { | |
650 | prt, | |
651 | "Cylinder", | |
652 | delay, | |
653 | x3, | |
654 | y3, | |
655 | z3, | |
656 | msh | |
657 | }) | |
658 | end; | |
659 | }; | |
660 | ||
661 | Sphere = { | |
662 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
663 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
664 | prt.Anchored = true | |
665 | prt.CFrame = cframe | |
666 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
667 | game:GetService("Debris"):AddItem(prt, 10) | |
668 | table.insert(Effects, { | |
669 | prt, | |
670 | "Cylinder", | |
671 | delay, | |
672 | x3, | |
673 | y3, | |
674 | z3, | |
675 | msh | |
676 | }) | |
677 | end; | |
678 | }; | |
679 | ||
680 | Elect = { | |
681 | Create = function(cff, x, y, z) | |
682 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1)) | |
683 | prt.Anchored = true | |
684 | prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z)) | |
685 | prt.CFrame = CFrame.new(prt.Position) | |
686 | game:GetService("Debris"):AddItem(prt, 2) | |
687 | local xval = math.random() / 2 | |
688 | local yval = math.random() / 2 | |
689 | local zval = math.random() / 2 | |
690 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval)) | |
691 | table.insert(Effects, { | |
692 | prt, | |
693 | "Elec", | |
694 | 0.1, | |
695 | x, | |
696 | y, | |
697 | z, | |
698 | xval, | |
699 | yval, | |
700 | zval | |
701 | }) | |
702 | end; | |
703 | ||
704 | }; | |
705 | ||
706 | Ring = { | |
707 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
708 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
709 | prt.Anchored = true | |
710 | prt.CFrame = cframe | |
711 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
712 | game:GetService("Debris"):AddItem(prt, 10) | |
713 | table.insert(Effects, { | |
714 | prt, | |
715 | "Cylinder", | |
716 | delay, | |
717 | x3, | |
718 | y3, | |
719 | z3, | |
720 | msh | |
721 | }) | |
722 | end; | |
723 | }; | |
724 | ||
725 | ||
726 | Wave = { | |
727 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
728 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
729 | prt.Anchored = true | |
730 | prt.CFrame = cframe | |
731 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
732 | game:GetService("Debris"):AddItem(prt, 10) | |
733 | table.insert(Effects, { | |
734 | prt, | |
735 | "Cylinder", | |
736 | delay, | |
737 | x3, | |
738 | y3, | |
739 | z3, | |
740 | msh | |
741 | }) | |
742 | end; | |
743 | }; | |
744 | ||
745 | Break = { | |
746 | Create = function(brickcolor, cframe, x1, y1, z1) | |
747 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
748 | prt.Anchored = true | |
749 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
750 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
751 | local num = math.random(10, 50) / 1000 | |
752 | game:GetService("Debris"):AddItem(prt, 10) | |
753 | table.insert(Effects, { | |
754 | prt, | |
755 | "Shatter", | |
756 | num, | |
757 | prt.CFrame, | |
758 | math.random() - math.random(), | |
759 | 0, | |
760 | math.random(50, 100) / 100 | |
761 | }) | |
762 | end; | |
763 | }; | |
764 | ||
765 | Fire = { | |
766 | Create = function(brickcolor, cframe, x1, y1, z1, delay) | |
767 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
768 | prt.Anchored = true | |
769 | prt.CFrame = cframe | |
770 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
771 | game:GetService("Debris"):AddItem(prt, 10) | |
772 | table.insert(Effects, { | |
773 | prt, | |
774 | "Fire", | |
775 | delay, | |
776 | 1, | |
777 | 1, | |
778 | 1, | |
779 | msh | |
780 | }) | |
781 | end; | |
782 | }; | |
783 | ||
784 | FireWave = { | |
785 | Create = function(brickcolor, cframe, x1, y1, z1) | |
786 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new()) | |
787 | prt.Anchored = true | |
788 | prt.CFrame = cframe | |
789 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
790 | local d = Create("Decal"){ | |
791 | Parent = prt, | |
792 | Texture = "rbxassetid://26356434", | |
793 | Face = "Top", | |
794 | } | |
795 | local d = Create("Decal"){ | |
796 | Parent = prt, | |
797 | Texture = "rbxassetid://26356434", | |
798 | Face = "Bottom", | |
799 | } | |
800 | game:GetService("Debris"):AddItem(prt, 10) | |
801 | table.insert(Effects, { | |
802 | prt, | |
803 | "FireWave", | |
804 | 1, | |
805 | 30, | |
806 | math.random(400, 600) / 100, | |
807 | msh | |
808 | }) | |
809 | end; | |
810 | }; | |
811 | ||
812 | Lightning = { | |
813 | Create = function(p0, p1, tym, ofs, col, th, tra, last) | |
814 | local magz = (p0 - p1).magnitude | |
815 | local curpos = p0 | |
816 | local trz = { | |
817 | -ofs, | |
818 | ofs | |
819 | } | |
820 | for i = 1, tym do | |
821 | local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym)) | |
822 | local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)]) | |
823 | local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz | |
824 | li.Material = "Neon" | |
825 | if tym == i then | |
826 | local magz2 = (curpos - p1).magnitude | |
827 | li.Size = Vector3.new(th, th, magz2) | |
828 | li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2) | |
829 | table.insert(Effects, { | |
830 | li, | |
831 | "Disappear", | |
832 | last | |
833 | }) | |
834 | else | |
835 | do | |
836 | do | |
837 | li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2) | |
838 | curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p | |
839 | game.Debris:AddItem(li, 10) | |
840 | table.insert(Effects, { | |
841 | li, | |
842 | "Disappear", | |
843 | last | |
844 | }) | |
845 | end | |
846 | end | |
847 | end | |
848 | end | |
849 | end | |
850 | }; | |
851 | ||
852 | EffectTemplate = { | |
853 | ||
854 | }; | |
855 | } | |
856 | ||
857 | coroutine.wrap(function() | |
858 | while wait() do | |
859 | if 0 < #Effects then | |
860 | for e = 1, #Effects do | |
861 | if Effects[e] ~= nil then | |
862 | local Thing = Effects[e] | |
863 | if Thing ~= nil then | |
864 | local Part = Thing[1] | |
865 | local Mode = Thing[2] | |
866 | local Delay = Thing[3] | |
867 | local IncX = Thing[4] | |
868 | local IncY = Thing[5] | |
869 | local IncZ = Thing[6] | |
870 | if Thing[2] == "Shoot" then | |
871 | local Look = Thing[1] | |
872 | local move = 30 | |
873 | if Thing[8] == 3 then | |
874 | move = 10 | |
875 | end | |
876 | local hit, pos = rayCast(Thing[4], Thing[1], move, m) | |
877 | if Thing[10] ~= nil then | |
878 | da = pos | |
879 | cf2 = CFrame.new(Thing[4], Thing[10].Position) | |
880 | cfa = CFrame.new(Thing[4], pos) | |
881 | tehCF = cfa:lerp(cf2, 0.2) | |
882 | Thing[1] = tehCF.lookVector | |
883 | end | |
884 | local mag = (Thing[4] - pos).magnitude | |
885 | 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) | |
886 | if Thing[8] == 2 then | |
887 | 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) | |
888 | end | |
889 | Thing[4] = Thing[4] + Look * move | |
890 | Thing[3] = Thing[3] - 1 | |
891 | if 2 < Thing[5] then | |
892 | Thing[5] = Thing[5] - 0.3 | |
893 | Thing[6] = Thing[6] - 0.3 | |
894 | end | |
895 | if hit ~= nil then | |
896 | Thing[3] = 0 | |
897 | if Thing[8] == 1 or Thing[8] == 3 then | |
898 | Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1) | |
899 | else | |
900 | if Thing[8] == 2 then | |
901 | Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1) | |
902 | if (hit.Parent:findFirstChild("Humanoid")) ~= nil or (hit.Parent.Parent:findFirstChild("Humanoid")) ~= nil then | |
903 | ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new()) | |
904 | ref.Anchored = true | |
905 | ref.CFrame = CFrame.new(pos) | |
906 | CFuncs["Sound"].Create("161006093", ref, 1, 1.2) | |
907 | game:GetService("Debris"):AddItem(ref, 0.2) | |
908 | 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) | |
909 | 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) | |
910 | MagnitudeDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", "", 1) | |
911 | end | |
912 | end | |
913 | end | |
914 | ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new()) | |
915 | ref.Anchored = true | |
916 | ref.CFrame = CFrame.new(pos) | |
917 | Effects["Sphere"].Create(Torso.BrickColor, CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07) | |
918 | game:GetService("Debris"):AddItem(ref, 1) | |
919 | end | |
920 | if Thing[3] <= 0 then | |
921 | table.remove(Effects, e) | |
922 | end | |
923 | end | |
924 | do | |
925 | do | |
926 | if Thing[2] == "FireWave" then | |
927 | if Thing[3] <= Thing[4] then | |
928 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0) | |
929 | Thing[3] = Thing[3] + 1 | |
930 | Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5]) | |
931 | else | |
932 | Part.Parent = nil | |
933 | table.remove(Effects, e) | |
934 | end | |
935 | end | |
936 | if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then | |
937 | if Thing[1].Transparency <= 1 then | |
938 | if Thing[2] == "Block1" then | |
939 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
940 | Mesh = Thing[7] | |
941 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
942 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
943 | else | |
944 | if Thing[2] == "Block2" then | |
945 | Thing[1].CFrame = Thing[1].CFrame | |
946 | Mesh = Thing[7] | |
947 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
948 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
949 | else | |
950 | if Thing[2] == "Fire" then | |
951 | Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0) | |
952 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
953 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
954 | else | |
955 | if Thing[2] == "Cylinder" then | |
956 | Mesh = Thing[7] | |
957 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
958 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
959 | else | |
960 | if Thing[2] == "Blood" then | |
961 | Mesh = Thing[7] | |
962 | Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0) | |
963 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
964 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
965 | else | |
966 | if Thing[2] == "Elec" then | |
967 | Mesh = Thing[10] | |
968 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
969 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
970 | else | |
971 | if Thing[2] == "Disappear" then | |
972 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
973 | else | |
974 | if Thing[2] == "Shatter" then | |
975 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
976 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
977 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
978 | Thing[6] = Thing[6] + Thing[5] | |
979 | end | |
980 | end | |
981 | end | |
982 | end | |
983 | end | |
984 | end | |
985 | end | |
986 | end | |
987 | else | |
988 | Part.Parent = nil | |
989 | table.remove(Effects, e) | |
990 | end | |
991 | end | |
992 | end | |
993 | end | |
994 | end | |
995 | end | |
996 | end | |
997 | end | |
998 | end | |
999 | end)() | |
1000 | function attackone() | |
1001 | attack = true | |
1002 | for i = 0, 1, 0.1 do | |
1003 | swait() | |
1004 | PlayAnimationFromTable({ | |
1005 | CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
1006 | CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
1007 | CFrame.new(1.5, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
1008 | CFrame.new(-1.5, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
1009 | CFrame.new(0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
1010 | CFrame.new(-0.5, -2, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
1011 | }, .3, false) | |
1012 | end | |
1013 | attack = false | |
1014 | end | |
1015 | ||
1016 | Humanoid.WalkSpeed = 0; | |
1017 | ||
1018 | FCharacter.Parent = Character; | |
1019 | ||
1020 | local FLeftArm = FCharacter["Left Arm"] | |
1021 | local FRightArm = FCharacter["Right Arm"] | |
1022 | local FLeftLeg = FCharacter["Left Leg"] | |
1023 | local FRightLeg = FCharacter["Right Leg"] | |
1024 | ||
1025 | local FRW = newMotor(FCharacter.Torso, FRightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) | |
1026 | local FLW = newMotor(FCharacter.Torso, FLeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0)) | |
1027 | local FRH = newMotor(FCharacter.Torso, FRightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0)) | |
1028 | local FLH = newMotor(FCharacter.Torso, FLeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0)) | |
1029 | local FRootPart = FCharacter.HumanoidRootPart | |
1030 | local FRootJoint = FRootPart.RootJoint | |
1031 | FRootJoint.C1 = CFrame.new(0, 0, 0) | |
1032 | FRootJoint.C0 = CFrame.new(0, 0, 0) | |
1033 | FCharacter.Torso.Neck.C1 = CFrame.new(0, 0, 0) | |
1034 | FCharacter.Torso.Neck.C0 = CFrame.new(0, 1.5, 0) | |
1035 | FRootPart.CFrame = RootPart.CFrame * CFrame.new(0,0,10) | |
1036 | ||
1037 | New = function(Object, Parent, Name, Data) | |
1038 | local Object = Instance.new(Object) | |
1039 | for Index, Value in pairs(Data or {}) do | |
1040 | Object[Index] = Value | |
1041 | end | |
1042 | Object.Parent = Parent | |
1043 | Object.Name = Name | |
1044 | return Object | |
1045 | end | |
1046 | ||
1047 | ||
1048 | ||
1049 | local fgm = New("Model",FCharacter,"GunModel",{}) | |
1050 | 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,}) | |
1051 | moter = New("Weld",FHandle,"mot",{Part0 = FLeftArm,Part1 = FHandle,}) | |
1052 | moter.C0 = CFrame.new(0.0111980997, -1.6377027, -0.318750381, -0.0172109306, 0, -0.999851882, 0.999851882, 0, -0.0172109306, 0, -1, 0) | |
1053 | 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,}) | |
1054 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.492160469, 0.24608025, 0.123040132),}) | |
1055 | 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),}) | |
1056 | 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,}) | |
1057 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.123040125, 1, 1),MeshType = Enum.MeshType.Cylinder,}) | |
1058 | 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),}) | |
1059 | 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,}) | |
1060 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1, 1.00999999, 1),}) | |
1061 | 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),}) | |
1062 | 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,}) | |
1063 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1, 0.246080264, 1),}) | |
1064 | 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),}) | |
1065 | 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,}) | |
1066 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1, 0.492160618, 0.492160439),MeshType = Enum.MeshType.Cylinder,}) | |
1067 | 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),}) | |
1068 | 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,}) | |
1069 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.492160469, 0.246080235, 0.123040132),}) | |
1070 | 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),}) | |
1071 | 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,}) | |
1072 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1, 0.369120389, 0.7382406),}) | |
1073 | 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),}) | |
1074 | 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),}) | |
1075 | Mesh = New("SpecialMesh",Partss,"Mesh",{Scale = Vector3.new(0.123040125, 1, 1),MeshType = Enum.MeshType.Cylinder,}) | |
1076 | 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),}) | |
1077 | 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,}) | |
1078 | 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,}) | |
1079 | 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),}) | |
1080 | 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),}) | |
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,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,}) | |
1083 | 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),}) | |
1084 | 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,}) | |
1085 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1, 0.492160618, 0.492160439),MeshType = Enum.MeshType.Cylinder,}) | |
1086 | 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),}) | |
1087 | 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,}) | |
1088 | Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(0.24608025, 0.246080264, 0.615200639),MeshType = Enum.MeshType.Wedge,}) | |
1089 | 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),}) | |
1090 | 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,}) | |
1091 | Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(1, 1, 0.861280859),MeshType = Enum.MeshType.Wedge,}) | |
1092 | 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),}) | |
1093 | 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,}) | |
1094 | Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(0.24608025, 0.369120389, 0.861280918),MeshType = Enum.MeshType.Wedge,}) | |
1095 | 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),}) | |
1096 | 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,}) | |
1097 | Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(1, 0.369120389, 0.492160529),MeshType = Enum.MeshType.Wedge,}) | |
1098 | 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),}) | |
1099 | 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,}) | |
1100 | Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(1, 0.369120389, 0.492160529),MeshType = Enum.MeshType.Wedge,}) | |
1101 | 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),}) | |
1102 | 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,}) | |
1103 | Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(1, 0.369120389, 0.492160529),MeshType = Enum.MeshType.Wedge,}) | |
1104 | 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),}) | |
1105 | 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),}) | |
1106 | Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(1, 1, 0.738240719),MeshType = Enum.MeshType.Wedge,}) | |
1107 | 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),}) | |
1108 | 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,}) | |
1109 | Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(1, 1, 0.861280859),MeshType = Enum.MeshType.Wedge,}) | |
1110 | 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),}) | |
1111 | 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),}) | |
1112 | Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(1, 1, 0.738240719),MeshType = Enum.MeshType.Wedge,}) | |
1113 | 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),}) | |
1114 | ||
1115 | for _,v in pairs(m:children()) do | |
1116 | if v:IsA("Part") then | |
1117 | v.CanCollide = false | |
1118 | end | |
1119 | end | |
1120 | ||
1121 | local knife = Instance.new("Part", FCharacter) | |
1122 | knife.Locked = true | |
1123 | knife.Name ="Knife" | |
1124 | knife.CanCollide = false | |
1125 | knife.CFrame = FCharacter.Torso.CFrame | |
1126 | knife.Size = Vector3.new(2.4,1,1) | |
1127 | local sbox = Instance.new("SelectionBox",knife) | |
1128 | sbox.Adornee=knife | |
1129 | sbox.Transparency = 1 | |
1130 | local mesh = Instance.new("SpecialMesh",knife) | |
1131 | mesh.MeshType = Enum.MeshType.FileMesh | |
1132 | mesh.TextureId = "rbxassetid://430991793" | |
1133 | mesh.MeshId = "rbxassetid://430991742" | |
1134 | mesh.Scale = Vector3.new(0.3,0.3,0.3) | |
1135 | local holder = Instance.new("Part",FCharacter) | |
1136 | holder.BrickColor = BrickColor.new("Brown") | |
1137 | holder.TopSurface,holder.BottomSurface = "SmoothNoOutlines" ,"SmoothNoOutlines" | |
1138 | holder.Size = Vector3.new(.2,2,.6) | |
1139 | holder.CanCollide = false | |
1140 | local knifweld = Instance.new("Weld",FCharacter) | |
1141 | knifweld.Part1 = holder | |
1142 | knifweld.Part0 = knife | |
1143 | knifweld.C0 = CFrame.new(-.3,0,0) * CFrame.Angles(math.rad(90),0,math.rad(-90)) | |
1144 | local holderweld = Instance.new("Weld",FCharacter) | |
1145 | holderweld.Part0 = holder | |
1146 | holderweld.Part1 = FCharacter['Left Leg'] | |
1147 | holderweld.C0 = CFrame.new(0.5,-0.5,-0.5) * CFrame.Angles(math.rad(50),0,0) | |
1148 | wait() | |
1149 | FRootPart.Anchored = true | |
1150 | RootPart.Anchored = true | |
1151 | wait(1) | |
1152 | if debugIt == false then | |
1153 | for i = 0,1,0.1 do | |
1154 | local speed = .3 | |
1155 | local table = { | |
1156 | 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), | |
1157 | 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), | |
1158 | 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), | |
1159 | 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), | |
1160 | 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), | |
1161 | 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) | |
1162 | } | |
1163 | FRootJoint.C0 = clerp(FRootJoint.C0, table[1], speed) | |
1164 | FCharacter.Torso.Neck.C0 = clerp(FCharacter.Torso.Neck.C0, table[2], speed) | |
1165 | FRW.C0 = clerp(FRW.C0, table[3], speed) | |
1166 | FLW.C0 = clerp(FLW.C0, table[4], speed) | |
1167 | FRH.C0 = clerp(FRH.C0, table[5], speed) | |
1168 | FLH.C0 = clerp(FLH.C0, table[6], speed) | |
1169 | 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) | |
1170 | swait() | |
1171 | end | |
1172 | ||
1173 | wait(1) | |
1174 | coroutine.wrap(function() | |
1175 | Effects.Block.Create(BrickColor.new("Bright red"), Partss.CFrame, 2, 2, 2, 0.9, 0.9, 0.9, 0.05) | |
1176 | Effects.Block.Create(BrickColor.new("Deep orange"), Partss.CFrame, 2, 2, 2, 0.5, 0.5, 0.5, 0.05) | |
1177 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=136523485", Character, 1, .5) | |
1178 | for i = 0,1,0.1 do | |
1179 | local speed = .3 | |
1180 | local table = { | |
1181 | 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), | |
1182 | 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), | |
1183 | 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), | |
1184 | 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), | |
1185 | 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), | |
1186 | 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) | |
1187 | } | |
1188 | FRootJoint.C0 = clerp(FRootJoint.C0, table[1], speed) | |
1189 | FCharacter.Torso.Neck.C0 = clerp(FCharacter.Torso.Neck.C0, table[2], speed) | |
1190 | FRW.C0 = clerp(FRW.C0, table[3], speed) | |
1191 | FLW.C0 = clerp(FLW.C0, table[4], speed) | |
1192 | FRH.C0 = clerp(FRH.C0, table[5], speed) | |
1193 | FLH.C0 = clerp(FLH.C0, table[6], speed) | |
1194 | 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) | |
1195 | swait() | |
1196 | end | |
1197 | wait() | |
1198 | for i = 0,1,0.1 do | |
1199 | local speed = .3 | |
1200 | local table = { | |
1201 | 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), | |
1202 | 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), | |
1203 | 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), | |
1204 | 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), | |
1205 | 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), | |
1206 | 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) | |
1207 | } | |
1208 | FRootJoint.C0 = clerp(FRootJoint.C0, table[1], speed) | |
1209 | FCharacter.Torso.Neck.C0 = clerp(FCharacter.Torso.Neck.C0, table[2], speed) | |
1210 | FRW.C0 = clerp(FRW.C0, table[3], speed) | |
1211 | FLW.C0 = clerp(FLW.C0, table[4], speed) | |
1212 | FRH.C0 = clerp(FRH.C0, table[5], speed) | |
1213 | FLH.C0 = clerp(FLH.C0, table[6], speed) | |
1214 | 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) | |
1215 | swait() | |
1216 | end | |
1217 | end)() | |
1218 | ||
1219 | ||
1220 | ||
1221 | for i = 0, 1, 0.1 do | |
1222 | swait() | |
1223 | PlayAnimationFromTable({ | |
1224 | 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), | |
1225 | 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), | |
1226 | 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), | |
1227 | 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), | |
1228 | 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), | |
1229 | 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), | |
1230 | }, .3, false) | |
1231 | end | |
1232 | wait(1) | |
1233 | for i = 0,1,.1 do | |
1234 | local speed = .3 | |
1235 | local table = { | |
1236 | 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), | |
1237 | 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), | |
1238 | 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), | |
1239 | 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), | |
1240 | 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), | |
1241 | 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), | |
1242 | } | |
1243 | FRootJoint.C0 = clerp(FRootJoint.C0, table[1], speed) | |
1244 | FCharacter.Torso.Neck.C0 = clerp(FCharacter.Torso.Neck.C0, table[2], speed) | |
1245 | FRW.C0 = clerp(FRW.C0, table[3], speed) | |
1246 | FLW.C0 = clerp(FLW.C0, table[4], speed) | |
1247 | FRH.C0 = clerp(FRH.C0, table[5], speed) | |
1248 | FLH.C0 = clerp(FLH.C0, table[6], speed) | |
1249 | 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) | |
1250 | swait() | |
1251 | end | |
1252 | ||
1253 | wait(1) | |
1254 | for i = 0, 1, .1 do | |
1255 | local speed = .3 | |
1256 | local table = { | |
1257 | 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), | |
1258 | 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), | |
1259 | 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), | |
1260 | 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), | |
1261 | 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), | |
1262 | 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), | |
1263 | } | |
1264 | swait() | |
1265 | FRootJoint.C0 = clerp(FRootJoint.C0, table[1], speed) | |
1266 | FCharacter.Torso.Neck.C0 = clerp(FCharacter.Torso.Neck.C0, table[2], speed) | |
1267 | FRW.C0 = clerp(FRW.C0, table[3], speed) | |
1268 | FLW.C0 = clerp(FLW.C0, table[4], speed) | |
1269 | FRH.C0 = clerp(FRH.C0, table[5], speed) | |
1270 | FLH.C0 = clerp(FLH.C0, table[6], speed) | |
1271 | 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) | |
1272 | end | |
1273 | ||
1274 | knifweld.Part1 = FCharacter['Right Arm'] | |
1275 | knifweld.C0 = CFrame.new(1,1,0)*CFrame.Angles(0,math.rad(-90),0) | |
1276 | for i = 0,1,.1 do | |
1277 | local speed = .3 | |
1278 | local table = { | |
1279 | 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), | |
1280 | 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), | |
1281 | 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), | |
1282 | 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), | |
1283 | 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), | |
1284 | 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), | |
1285 | } | |
1286 | FRootJoint.C0 = clerp(FRootJoint.C0, table[1], speed) | |
1287 | FCharacter.Torso.Neck.C0 = clerp(FCharacter.Torso.Neck.C0, table[2], speed) | |
1288 | FRW.C0 = clerp(FRW.C0, table[3], speed) | |
1289 | FLW.C0 = clerp(FLW.C0, table[4], speed) | |
1290 | FRH.C0 = clerp(FRH.C0, table[5], speed) | |
1291 | FLH.C0 = clerp(FLH.C0, table[6], speed) | |
1292 | 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) | |
1293 | swait() | |
1294 | end | |
1295 | ||
1296 | wait(1) | |
1297 | for i = 0, 1, 0.1 do | |
1298 | swait() | |
1299 | PlayAnimationFromTable({ | |
1300 | 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), | |
1301 | 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), | |
1302 | 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), | |
1303 | 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), | |
1304 | 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), | |
1305 | 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), | |
1306 | }, .3, false) | |
1307 | end | |
1308 | wait(1) | |
1309 | for i = 0,1,.1 do | |
1310 | local speed = .3 | |
1311 | local table = { | |
1312 | 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), | |
1313 | 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), | |
1314 | 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), | |
1315 | 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), | |
1316 | 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), | |
1317 | 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), | |
1318 | } | |
1319 | end | |
1320 | coroutine.wrap(function() | |
1321 | for i = 1, 11,.1 do | |
1322 | sine = sine + 1 | |
1323 | local speed = .3 | |
1324 | FRootPart.CFrame = FRootPart.CFrame * CFrame.new(0,0,-.1) | |
1325 | local table = { | |
1326 | 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), | |
1327 | 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), | |
1328 | 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), | |
1329 | 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), | |
1330 | 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), | |
1331 | 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), | |
1332 | } | |
1333 | FRootJoint.C0 = clerp(FRootJoint.C0, table[1], speed) | |
1334 | FCharacter.Torso.Neck.C0 = clerp(FCharacter.Torso.Neck.C0, table[2], speed) | |
1335 | FRW.C0 = clerp(FRW.C0, table[3], speed) | |
1336 | FLW.C0 = clerp(FLW.C0, table[4], speed) | |
1337 | FRH.C0 = clerp(FRH.C0, table[5], speed) | |
1338 | FLH.C0 = clerp(FLH.C0, table[6], speed) | |
1339 | 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) | |
1340 | swait() | |
1341 | end | |
1342 | for i = 0,1,.1 do | |
1343 | local speed = .3 | |
1344 | local table = { | |
1345 | 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), | |
1346 | 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), | |
1347 | 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), | |
1348 | 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), | |
1349 | 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), | |
1350 | 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), | |
1351 | } | |
1352 | FRootJoint.C0 = clerp(FRootJoint.C0, table[1], speed) | |
1353 | FCharacter.Torso.Neck.C0 = clerp(FCharacter.Torso.Neck.C0, table[2], speed) | |
1354 | FRW.C0 = clerp(FRW.C0, table[3], speed) | |
1355 | FLW.C0 = clerp(FLW.C0, table[4], speed) | |
1356 | FRH.C0 = clerp(FRH.C0, table[5], speed) | |
1357 | FLH.C0 = clerp(FLH.C0, table[6], speed) | |
1358 | 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) | |
1359 | swait() | |
1360 | end | |
1361 | end)() | |
1362 | wait(3) | |
1363 | for i = 0, 1, 0.1 do | |
1364 | swait() | |
1365 | PlayAnimationFromTable({ | |
1366 | 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), | |
1367 | 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), | |
1368 | 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), | |
1369 | 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), | |
1370 | 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), | |
1371 | 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), | |
1372 | }, .3, false) | |
1373 | end | |
1374 | ||
1375 | wait(2) | |
1376 | for i = 0,1,.1 do | |
1377 | local speed = .3 | |
1378 | local table = { | |
1379 | 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), | |
1380 | 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), | |
1381 | 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), | |
1382 | 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), | |
1383 | 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), | |
1384 | 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), | |
1385 | } | |
1386 | FRootJoint.C0 = clerp(FRootJoint.C0, table[1], speed) | |
1387 | FCharacter.Torso.Neck.C0 = clerp(FCharacter.Torso.Neck.C0, table[2], speed) | |
1388 | FRW.C0 = clerp(FRW.C0, table[3], speed) | |
1389 | FLW.C0 = clerp(FLW.C0, table[4], speed) | |
1390 | FRH.C0 = clerp(FRH.C0, table[5], speed) | |
1391 | FLH.C0 = clerp(FLH.C0, table[6], speed) | |
1392 | 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) | |
1393 | swait() | |
1394 | end | |
1395 | wait(0.5) | |
1396 | for i = 0,.7,.1 do | |
1397 | local speed = .3 | |
1398 | local table = { | |
1399 | 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), | |
1400 | 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), | |
1401 | 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), | |
1402 | 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), | |
1403 | 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), | |
1404 | 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), | |
1405 | } | |
1406 | FRootJoint.C0 = clerp(FRootJoint.C0, table[1], speed) | |
1407 | FCharacter.Torso.Neck.C0 = clerp(FCharacter.Torso.Neck.C0, table[2], speed) | |
1408 | FRW.C0 = clerp(FRW.C0, table[3], speed) | |
1409 | FLW.C0 = clerp(FLW.C0, table[4], speed) | |
1410 | FRH.C0 = clerp(FRH.C0, table[5], speed) | |
1411 | FLH.C0 = clerp(FLH.C0, table[6], speed) | |
1412 | 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) | |
1413 | swait() | |
1414 | end | |
1415 | knife.Parent = Character | |
1416 | knifweld.Parent = Character | |
1417 | knifweld.Part0 = knife | |
1418 | knifweld.Part1 = Torso | |
1419 | knifweld.C0 = CFrame.new(-1,0,0)*CFrame.Angles(0,math.rad(90),0) | |
1420 | for i = 0, 1, 0.1 do | |
1421 | swait() | |
1422 | PlayAnimationFromTable({ | |
1423 | 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), | |
1424 | 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), | |
1425 | 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), | |
1426 | 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), | |
1427 | 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), | |
1428 | 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), | |
1429 | }, .3, false) | |
1430 | end | |
1431 | for i = 0,1,.1 do | |
1432 | local speed = .3 | |
1433 | local table = { | |
1434 | 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), | |
1435 | 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), | |
1436 | 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), | |
1437 | 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), | |
1438 | 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), | |
1439 | 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), | |
1440 | } | |
1441 | FRootJoint.C0 = clerp(FRootJoint.C0, table[1], speed) | |
1442 | FCharacter.Torso.Neck.C0 = clerp(FCharacter.Torso.Neck.C0, table[2], speed) | |
1443 | FRW.C0 = clerp(FRW.C0, table[3], speed) | |
1444 | FLW.C0 = clerp(FLW.C0, table[4], speed) | |
1445 | FRH.C0 = clerp(FRH.C0, table[5], speed) | |
1446 | FLH.C0 = clerp(FLH.C0, table[6], speed) | |
1447 | 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) | |
1448 | swait() | |
1449 | end | |
1450 | wait(1) | |
1451 | for i = 0,1,.1 do | |
1452 | local speed = .3 | |
1453 | local table = { | |
1454 | 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), | |
1455 | 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), | |
1456 | 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), | |
1457 | 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), | |
1458 | 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), | |
1459 | 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), | |
1460 | } | |
1461 | FRootJoint.C0 = clerp(FRootJoint.C0, table[1], speed) | |
1462 | FCharacter.Torso.Neck.C0 = clerp(FCharacter.Torso.Neck.C0, table[2], speed) | |
1463 | FRW.C0 = clerp(FRW.C0, table[3], speed) | |
1464 | FLW.C0 = clerp(FLW.C0, table[4], speed) | |
1465 | FRH.C0 = clerp(FRH.C0, table[5], speed) | |
1466 | FLH.C0 = clerp(FLH.C0, table[6], speed) | |
1467 | 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) | |
1468 | swait() | |
1469 | end | |
1470 | wait(1) | |
1471 | coroutine.wrap(function() | |
1472 | FRootJoint.C0 = CFrame.new(0,0,0) | |
1473 | for i = 1, 500 do | |
1474 | FRootJoint.C0 = FRootJoint.C0 * CFrame.new(0,3,0) | |
1475 | swait() | |
1476 | end | |
1477 | end)() | |
1478 | wait(2) | |
1479 | FCharacter:destroy() | |
1480 | wait(2) | |
1481 | local Fire = Instance.new("Sound",Character.Torso) | |
1482 | Fire.SoundId = "rbxassetid://192104941" | |
1483 | Fire.Looped = true | |
1484 | Fire.Pitch = 1 | |
1485 | Fire.Volume = 1 | |
1486 | Fire.Name = "cackle cackle" | |
1487 | Fire:play() | |
1488 | local fire = Instance.new("ParticleEmitter", Character.Torso) | |
1489 | fire.Lifetime = NumberRange.new(0.5) | |
1490 | fire.Speed = NumberRange.new(1, 3) | |
1491 | fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 3.564, 2.521), NumberSequenceKeypoint.new(1, 3.534, 2.521)}) | |
1492 | fire.Rate = 1000 | |
1493 | fire.Name = "FireParticie" | |
1494 | fire.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.627, 0.587), NumberSequenceKeypoint.new(1, 1)}) | |
1495 | fire.LightEmission = 0.6 | |
1496 | fire.Texture = "http://www.roblox.com/asset/?id=242911609" | |
1497 | fire.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0.666667, 0)) | |
1498 | wait(3) | |
1499 | for i = 0,4,.1 do | |
1500 | RootJoint.C0 = RootJoint.C0 * CFrame.new(0,0,-.1) | |
1501 | swait() | |
1502 | end | |
1503 | wait(5) | |
1504 | end | |
1505 | if FCharacter then | |
1506 | FCharacter:destroy() | |
1507 | end | |
1508 | local s = Instance.new("Sound",Character) | |
1509 | s.Name = "Reanimate" | |
1510 | s.Volume = 5 | |
1511 | s.Pitch = 0.66 | |
1512 | s.Looped = true | |
1513 | s.SoundId = "rbxassetid://450193952" | |
1514 | s:Play() | |
1515 | ||
1516 | ||
1517 | local hideName = Head:Clone() | |
1518 | hideName.Parent = Character | |
1519 | hideName.Name = "Hide" | |
1520 | ||
1521 | hideName.BrickColor = BrickColor.new("Really black") | |
1522 | hideName:FindFirstChildOfClass"Decal":destroy() | |
1523 | Head:FindFirstChildOfClass"Decal":destroy() | |
1524 | for i,v in next, Character:children() do | |
1525 | if v:IsA"BasePart" and v ~= RootPart then | |
1526 | v.Transparency = 0.5 | |
1527 | v.BrickColor = BrickColor.new"Really black" | |
1528 | end | |
1529 | end | |
1530 | Head.Transparency = 1 | |
1531 | ||
1532 | local nametag = Instance.new("BillboardGui",Character.Head) | |
1533 | nametag.StudsOffset = Vector3.new(0,2,0) | |
1534 | nametag.Adornee = Character.Head | |
1535 | nametag.Size = UDim2.new(0,200,0,50) | |
1536 | ||
1537 | local text = Instance.new("TextLabel",nametag) | |
1538 | text.Size = UDim2.new(0,200,0,50) | |
1539 | text.BackgroundTransparency = 1 | |
1540 | text.Text = "The Reanimated" | |
1541 | text.TextColor3 = Color3.new(180/255,0,0) | |
1542 | text.TextStrokeColor3 = Color3.new(0,0,0) | |
1543 | text.Font = Enum.Font.Fantasy | |
1544 | text.TextScaled = true | |
1545 | text.TextStrokeTransparency = 0 | |
1546 | coroutine.wrap(function() | |
1547 | while wait() do | |
1548 | wait(3) | |
1549 | text.Text = "GIVE UP" | |
1550 | wait() | |
1551 | text.Text = "The Reanimated"; | |
1552 | wait(2) | |
1553 | local str = "" | |
1554 | for i = 1, math.random(3,25) do | |
1555 | str = str..string.char(math.random(65,122)) | |
1556 | end | |
1557 | text.Text = str | |
1558 | wait() | |
1559 | str = "" | |
1560 | for i = 1, math.random(12,25) do | |
1561 | str = str..string.char(math.random(48,122)) | |
1562 | end | |
1563 | wait() | |
1564 | text.Text = str | |
1565 | wait() | |
1566 | text.Text = "The Reanimated"; | |
1567 | wait(1) | |
1568 | text.Text = "BE GONE THOT" | |
1569 | wait() | |
1570 | text.Text = "Burn in hell." | |
1571 | wait() | |
1572 | text.Text = "The Reanimated"; | |
1573 | wait(2) | |
1574 | text.Text = "You made me do this."; | |
1575 | wait() | |
1576 | text.Text = "edgy"; | |
1577 | wait() | |
1578 | for i = 1, math.random(12,25) do | |
1579 | str = str..string.char(math.random(48,57)) | |
1580 | end | |
1581 | text.Text = str | |
1582 | wait() | |
1583 | text.Text = "The Reanimated"; | |
1584 | wait(2) | |
1585 | end | |
1586 | end)() | |
1587 | New("Weld",hideName,"Weld",{Part0=hideName,Part1=Head}) | |
1588 | local BodyColors = Character:FindFirstChildOfClass"BodyColors" | |
1589 | if BodyColors then | |
1590 | BodyColors.HeadColor = BrickColor.new"Really black" | |
1591 | BodyColors.TorsoColor = BrickColor.new"Really black" | |
1592 | BodyColors.LeftArmColor = BrickColor.new"Really black" | |
1593 | BodyColors.RightArmColor = BrickColor.new"Really black" | |
1594 | BodyColors.LeftLegColor = BrickColor.new"Really black" | |
1595 | BodyColors.RightLegColor = BrickColor.new"Really black" | |
1596 | end | |
1597 | local fire; | |
1598 | local Fire; | |
1599 | if Character.Torso:FindFirstChild"FireParticie" then | |
1600 | fire = Character.Torso:FindFirstChild"FireParticie" | |
1601 | end | |
1602 | if Character.Torso:FindFirstChild"cackle cackle" then | |
1603 | Fire = Character.Torso:FindFirstChild"cackle cackle" | |
1604 | end | |
1605 | wait(1) | |
1606 | for i = 0, 1, 0.1 do | |
1607 | swait() | |
1608 | PlayAnimationFromTable({ | |
1609 | 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), | |
1610 | 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), | |
1611 | 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), | |
1612 | 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), | |
1613 | 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), | |
1614 | 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), | |
1615 | }, .3, false) | |
1616 | end | |
1617 | wait(2) | |
1618 | for i = 1, 3 do | |
1619 | for i = 0, 1, 0.1 do | |
1620 | swait() | |
1621 | PlayAnimationFromTable({ | |
1622 | 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), | |
1623 | 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), | |
1624 | 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), | |
1625 | 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), | |
1626 | 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), | |
1627 | 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), | |
1628 | }, .3, false) | |
1629 | end | |
1630 | wait() | |
1631 | for i = 0, 1, 0.1 do | |
1632 | swait() | |
1633 | PlayAnimationFromTable({ | |
1634 | 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), | |
1635 | 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), | |
1636 | 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), | |
1637 | 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), | |
1638 | 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), | |
1639 | 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), | |
1640 | }, .3, false) | |
1641 | end | |
1642 | end | |
1643 | ||
1644 | wait(1) | |
1645 | coroutine.wrap(function() | |
1646 | if fire then | |
1647 | for i = fire.Rate, 0, -5 do | |
1648 | fire.Rate = i | |
1649 | wait() | |
1650 | end | |
1651 | fire:destroy() | |
1652 | end | |
1653 | if Fire then | |
1654 | Fire:Stop() | |
1655 | Fire:destroy() | |
1656 | end | |
1657 | end)() | |
1658 | ||
1659 | if knife and knifweld then | |
1660 | for i = 0, 1, 0.1 do | |
1661 | swait() | |
1662 | PlayAnimationFromTable({ | |
1663 | 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), | |
1664 | 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), | |
1665 | 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), | |
1666 | 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), | |
1667 | 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), | |
1668 | 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), | |
1669 | }, .3, false) | |
1670 | end | |
1671 | ||
1672 | knifweld.Part1 = LeftArm; | |
1673 | for i = 0, 1, 0.1 do | |
1674 | swait() | |
1675 | PlayAnimationFromTable({ | |
1676 | 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), | |
1677 | 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), | |
1678 | 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), | |
1679 | 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), | |
1680 | 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), | |
1681 | 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), | |
1682 | }, .3, false) | |
1683 | 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) | |
1684 | end | |
1685 | wait(1) | |
1686 | for i = 0, 0.3, 0.1 do | |
1687 | swait() | |
1688 | PlayAnimationFromTable({ | |
1689 | 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), | |
1690 | 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), | |
1691 | 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), | |
1692 | 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), | |
1693 | 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), | |
1694 | 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), | |
1695 | }, .7, false) | |
1696 | end | |
1697 | knifweld:destroy() | |
1698 | knife.CanCollide = true | |
1699 | knife.Velocity = Vector3.new(0,3,0) + Torso.CFrame.lookVector * 150 | |
1700 | knife.Touched:connect(function(o) | |
1701 | if o and o.Parent and o.Parent:FindFirstChildOfClass"Humanoid" and o.Parent ~= Character then | |
1702 | o.Parent:BreakJoints() | |
1703 | end | |
1704 | end) | |
1705 | game:service'Debris':AddItem(knife,3) | |
1706 | wait(1) | |
1707 | end | |
1708 | local spike = Instance.new("Part",Character) | |
1709 | spike.Size = Vector3.new(1,5,1) | |
1710 | spike.BrickColor = BrickColor.new"Really black" | |
1711 | spike.CanCollide=false | |
1712 | local mesh = Instance.new("SpecialMesh",spike) | |
1713 | mesh.MeshType = Enum.MeshType.FileMesh | |
1714 | mesh.Scale = Vector3.new(0.5,0,0.5) | |
1715 | mesh.MeshId = "http://www.roblox.com/asset/?id=1033714" | |
1716 | local w = Instance.new("Weld",spike) | |
1717 | w.Part0 = spike; | |
1718 | w.Part1 = RightArm | |
1719 | w.C0 = CFrame.new(0,-1,0)*CFrame.Angles(math.rad(180),0,0) | |
1720 | for i = 0, 5, .2 do | |
1721 | mesh.Scale = Vector3.new(0.5,i,0.5) | |
1722 | wait() | |
1723 | end | |
1724 | Humanoid.Name = "..?" | |
1725 | Humanoid.MaxHealth = 6666 | |
1726 | wait() | |
1727 | Humanoid.Health = 6666 | |
1728 | local sitting = false | |
1729 | RootPart.Anchored = false | |
1730 | Humanoid.WalkSpeed = 16 | |
1731 | ||
1732 | ||
1733 | Mouse.KeyDown:connect(function(k) | |
1734 | k = k:lower() | |
1735 | if attack == false and k == 'n' then | |
1736 | sitting = not sitting | |
1737 | end | |
1738 | end) | |
1739 | ||
1740 | Mouse.KeyDown:connect(function(k) | |
1741 | k = k:lower() | |
1742 | if attack == false and k == '\\' then | |
1743 | attack = true | |
1744 | for i = 0, 1, .1 do | |
1745 | PlayAnimationFromTable({ | |
1746 | CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1747 | 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), | |
1748 | 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), | |
1749 | 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), | |
1750 | 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), | |
1751 | 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), | |
1752 | }, .3, false) | |
1753 | end | |
1754 | for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 30)) do | |
1755 | if v:FindFirstChild('Torso') and v:FindFirstChildOfClass"Humanoid" then | |
1756 | if v:FindFirstChildOfClass"Humanoid".Health > 0 then | |
1757 | v:BreakJoints() | |
1758 | end | |
1759 | end | |
1760 | end | |
1761 | wait(3) | |
1762 | attack = false | |
1763 | end | |
1764 | end) | |
1765 | Mouse.KeyDown:connect(function(k) | |
1766 | k = k:lower() | |
1767 | if attack == false and k == 'z' then | |
1768 | attack=true | |
1769 | local grab = nil | |
1770 | local Grabbed = false | |
1771 | for i, v in pairs(FindNearestTorso(spike.CFrame.p, 5)) do | |
1772 | if v:FindFirstChild('Torso') and v:FindFirstChildOfClass"Humanoid" then | |
1773 | if v:FindFirstChildOfClass"Humanoid".Health > 0 then | |
1774 | Grabbed = true | |
1775 | grab = v | |
1776 | end | |
1777 | end | |
1778 | end | |
1779 | coroutine.wrap(function() | |
1780 | if grab then | |
1781 | while wait() do | |
1782 | if not grab then break end | |
1783 | if grab:FindFirstChild"Torso" then | |
1784 | grab.Torso.CFrame = spike.CFrame * CFrame.new(0,4,0) | |
1785 | end | |
1786 | end | |
1787 | end | |
1788 | end)() | |
1789 | for i = 0, 1, 0.1 do | |
1790 | swait() | |
1791 | PlayAnimationFromTable({ | |
1792 | CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1793 | 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), | |
1794 | 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), | |
1795 | 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), | |
1796 | 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), | |
1797 | 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), | |
1798 | }, .8, false) | |
1799 | end | |
1800 | wait(2) | |
1801 | if grab then | |
1802 | grab:BreakJoints() | |
1803 | grab = nil | |
1804 | end | |
1805 | attack = false | |
1806 | end | |
1807 | end) | |
1808 | ||
1809 | local stomps = Instance.new("Sound", Character) | |
1810 | stomps.SoundId = "http://www.roblox.com/asset/?id=198360408" | |
1811 | stomps.Looped = true | |
1812 | stomps.Volume = 10 | |
1813 | local footsteps = false | |
1814 | ||
1815 | while true do | |
1816 | swait() | |
1817 | for i, v in pairs(Character:GetChildren()) do | |
1818 | if v:IsA("Part") then | |
1819 | v.Material = "SmoothPlastic" | |
1820 | elseif v:IsA("Accessory") then | |
1821 | v:WaitForChild("Handle").Material = "SmoothPlastic" | |
1822 | end | |
1823 | end | |
1824 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
1825 | velocity = RootPart.Velocity.y | |
1826 | sine = sine + change | |
1827 | local RightLeg = CFrame.new(0.5,-1,0) | |
1828 | local LeftLeg = CFrame.new(-0.5,-1,0) | |
1829 | ||
1830 | local lefth = (Torso.CFrame*LeftLeg) | |
1831 | local righth = (Torso.CFrame*RightLeg) | |
1832 | ||
1833 | local speed = Vector3.new(Torso.Velocity.X,0,Torso.Velocity.Z) | |
1834 | ||
1835 | local TiltOnAxis = (Torso.CFrame-Torso.CFrame.p):vectorToObjectSpace(speed/100) | |
1836 | ||
1837 | local AngleThetaR = (righth-righth.p):vectorToObjectSpace(speed/100) | |
1838 | local AngleThetaL = (lefth-lefth.p):vectorToObjectSpace(speed/100) | |
1839 | ||
1840 | local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character) | |
1841 | if RootPart.Velocity.y > 1 and hit == nil then | |
1842 | Anim = "Jump" | |
1843 | if attack == false then | |
1844 | PlayAnimationFromTable({ | |
1845 | 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), | |
1846 | 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), | |
1847 | 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), | |
1848 | 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), | |
1849 | 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), | |
1850 | 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), | |
1851 | }, .3, false) | |
1852 | LH.C1 = clerp(LH.C1,CFrame.new(0,0,0),1) | |
1853 | RH.C1 = clerp(RH.C1,CFrame.new(0,0,0),1) | |
1854 | RW.C1 = clerp(RW.C1,CFrame.new(0,0,0),1) | |
1855 | LW.C1 = clerp(LW.C1,CFrame.new(0,0,0),1) | |
1856 | end | |
1857 | elseif RootPart.Velocity.y < -1 and hit == nil then | |
1858 | Anim = "Fall" | |
1859 | if attack == false then | |
1860 | PlayAnimationFromTable({ | |
1861 | 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), | |
1862 | 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), | |
1863 | 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), | |
1864 | 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), | |
1865 | 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), | |
1866 | 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), | |
1867 | }, .3, false) | |
1868 | LH.C1 = clerp(LH.C1,CFrame.new(0,0,0),1) | |
1869 | RH.C1 = clerp(RH.C1,CFrame.new(0,0,0),1) | |
1870 | RW.C1 = clerp(RW.C1,CFrame.new(0,0,0),1) | |
1871 | LW.C1 = clerp(LW.C1,CFrame.new(0,0,0),1) | |
1872 | end | |
1873 | elseif Torsovelocity < 1 and hit ~= nil then | |
1874 | Anim = "Idle" | |
1875 | if attack == false then | |
1876 | if sitting then | |
1877 | PlayAnimationFromTable({ | |
1878 | 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), | |
1879 | 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), | |
1880 | 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), | |
1881 | 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), | |
1882 | 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), | |
1883 | 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), | |
1884 | }, .3, false) | |
1885 | else | |
1886 | change = 1 | |
1887 | PlayAnimationFromTable({ | |
1888 | 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), | |
1889 | 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), | |
1890 | 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)), | |
1891 | 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)), | |
1892 | 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)), | |
1893 | 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)), | |
1894 | }, .3, false) | |
1895 | LH.C1 = clerp(LH.C1,CFrame.new(0,0,0),1) | |
1896 | RH.C1 = clerp(RH.C1,CFrame.new(0,0,0),1) | |
1897 | RW.C1 = clerp(RW.C1,CFrame.new(0,0,0),1) | |
1898 | LW.C1 = clerp(LW.C1,CFrame.new(0,0,0),1) | |
1899 | end | |
1900 | end | |
1901 | elseif Torsovelocity > 2 and hit ~= nil then | |
1902 | Anim = "Walk" | |
1903 | if attack == false then | |
1904 | 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) | |
1905 | 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) | |
1906 | 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) | |
1907 | RW.C1 = clerp(RW.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7) | |
1908 | 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) | |
1909 | LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7) | |
1910 | 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) | |
1911 | RH.C1 = RH.C1:lerp(CFrame.new(0, 1, 0),.8) | |
1912 | ||
1913 | --RH.C0 = clerp(RH.C0, CFrame.new(.5, -2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
1914 | 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) | |
1915 | LH.C1 = LH.C1:lerp(CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8) | |
1916 | ||
1917 | --LH.C0 = clerp(LH.C0, CFrame.new(-.5, -2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
1918 | end | |
1919 | end | |
1920 | if Anim == "Walk" then | |
1921 | stomps.Pitch = 1.1 | |
1922 | if stomps.Playing == false then | |
1923 | stomps:Play() | |
1924 | end | |
1925 | elseif Anim == "Idle" then | |
1926 | stomps:Stop() | |
1927 | end | |
1928 | end |