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