SHOW:
|
|
- or go back to the newest paste.
| 1 | -- Created by Nebula_Zorua -- | |
| 2 | -- Your DeTERMINATION -- | |
| 3 | -- Y o u a c t l i k e y o u h a v e a c h o i c e. =) -- | |
| 4 | --Edited by SHYIMe (Please Support :D-- | |
| 5 | -- Discord: Nebula the Zorua#6969 | |
| 6 | -- Youtube: https://www.youtube.com/channel/UCo9oU9dCw8jnuVLuy4_SATA | |
| 7 | ||
| 8 | ||
| 9 | --// Initializing \\-- | |
| 10 | Player = game:GetService("Players").LocalPlayer
| |
| 11 | PlayerGui = Player.PlayerGui | |
| 12 | Cam = workspace.CurrentCamera | |
| 13 | Backpack = Player.Backpack | |
| 14 | Character = Player.Character | |
| 15 | Humanoid = Character.Humanoid | |
| 16 | Mouse = Player:GetMouse() | |
| 17 | RootPart = Character["HumanoidRootPart"] | |
| 18 | Torso = Character["Torso"] | |
| 19 | Head = Character["Head"] | |
| 20 | RightArm = Character["Right Arm"] | |
| 21 | LeftArm = Character["Left Arm"] | |
| 22 | RightLeg = Character["Right Leg"] | |
| 23 | LeftLeg = Character["Left Leg"] | |
| 24 | RootJoint = RootPart["RootJoint"] | |
| 25 | Neck = Torso["Neck"] | |
| 26 | RightShoulder = Torso["Right Shoulder"] | |
| 27 | LeftShoulder = Torso["Left Shoulder"] | |
| 28 | RightHip = Torso["Right Hip"] | |
| 29 | LeftHip = Torso["Left Hip"] | |
| 30 | LeftArm = Character["Left Arm"] | |
| 31 | ||
| 32 | IT = Instance.new | |
| 33 | CF = CFrame.new | |
| 34 | VT = Vector3.new | |
| 35 | RAD = math.rad | |
| 36 | C3 = Color3.new | |
| 37 | UD2 = UDim2.new | |
| 38 | BRICKC = BrickColor.new | |
| 39 | ANGLES = CFrame.Angles | |
| 40 | EULER = CFrame.fromEulerAnglesXYZ | |
| 41 | COS = math.cos | |
| 42 | ACOS = math.acos | |
| 43 | SIN = math.sin | |
| 44 | ASIN = math.asin | |
| 45 | ABS = math.abs | |
| 46 | MRANDOM = math.random | |
| 47 | FLOOR = math.floor | |
| 48 | local Weapon = IT("Model")
| |
| 49 | Weapon.Name = "Adds" | |
| 50 | Player_Size = 1 | |
| 51 | local LEFTWINGS = {}
| |
| 52 | local RIGHTWINGS = {}
| |
| 53 | local toggleTag = true | |
| 54 | local txt = Instance.new("BillboardGui", Head)
| |
| 55 | txt.Adornee = nil | |
| 56 | txt.Name = "NameDetect" | |
| 57 | txt.Size = UDim2.new(4, 0, 1.2, 0) | |
| 58 | txt.StudsOffset = Vector3.new(-8, 8/1.5, 0) | |
| 59 | local text = Instance.new("TextLabel", txt)
| |
| 60 | text.Size = UDim2.new(10/2, 0, 7/2, 0) | |
| 61 | text.FontSize = "Size8" | |
| 62 | text.TextScaled = true | |
| 63 | text.TextTransparency = 0 | |
| 64 | text.BackgroundTransparency = 1 | |
| 65 | text.TextTransparency = 0 | |
| 66 | text.TextStrokeTransparency = 0 | |
| 67 | text.Font = "Garamond" | |
| 68 | - | text.TextStrokeColor3 = Color3.new(0,1,0) |
| 68 | + | text.TextStrokeColor3 = Color3.new(1,0,0) |
| 69 | text.TextColor3 = Color3.new(0,0,0) | |
| 70 | - | text.Text = "Deathside" |
| 70 | + | text.Text = "The Undead Sheriff" |
| 71 | ||
| 72 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
| 73 | local NEWPART = IT("Part")
| |
| 74 | NEWPART.formFactor = FORMFACTOR | |
| 75 | NEWPART.Reflectance = REFLECTANCE | |
| 76 | NEWPART.Transparency = TRANSPARENCY | |
| 77 | NEWPART.CanCollide = false | |
| 78 | NEWPART.Locked = true | |
| 79 | NEWPART.Anchored = true | |
| 80 | if ANCHOR == false then | |
| 81 | NEWPART.Anchored = false | |
| 82 | end | |
| 83 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
| 84 | NEWPART.Name = NAME | |
| 85 | NEWPART.Size = SIZE | |
| 86 | NEWPART.Position = Torso.Position | |
| 87 | NEWPART.Material = MATERIAL | |
| 88 | NEWPART:BreakJoints() | |
| 89 | NEWPART.Parent = PARENT | |
| 90 | return NEWPART | |
| 91 | end | |
| 92 | ||
| 93 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
| 94 | local NEWWELD = IT(TYPE) | |
| 95 | NEWWELD.Part0 = PART0 | |
| 96 | NEWWELD.Part1 = PART1 | |
| 97 | NEWWELD.C0 = C0 | |
| 98 | NEWWELD.C1 = C1 | |
| 99 | NEWWELD.Parent = PARENT | |
| 100 | return NEWWELD | |
| 101 | end | |
| 102 | ||
| 103 | - | local Back = CreatePart(3, Character, "Granite", 0, 0, "Lime green", "Wing", VT(1,1,0.35),false) |
| 103 | + | |
| 104 | - | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Back, CF(0, 0.5, 1.2) * ANGLES(RAD(0),RAD(0),RAD(45)), CF(0, 0, 0))
|
| 104 | + | |
| 105 | local Plr = Plrs.LocalPlayer | |
| 106 | - | local ANGLE = 35 |
| 106 | + | |
| 107 | - | for i = 1, 5 do |
| 107 | + | |
| 108 | - | local Wing = CreatePart(3, Character, "Granite", 0, 0, "Really black", "Wing", VT(0.15,2+(i/2),0.15),false) |
| 108 | + | |
| 109 | - | local WingWeld = CreateWeldOrSnapOrMotor("Weld", Wing, Torso, Wing, CF(0, 1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0,1,0) * ANGLES(RAD(0), RAD(0), RAD(90)) * ANGLES(RAD(ANGLE), RAD(0), RAD(0)) * CF(0,3+(i/10),0) , CF(0, 0, 0))
|
| 109 | + | |
| 110 | - | local Wing2 = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Wing", VT(0.25,1,0.25),false) |
| 110 | + | |
| 111 | - | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 2+(i/2), 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 1, 0))
|
| 111 | + | |
| 112 | - | ANGLE = ANGLE - 15 |
| 112 | + | |
| 113 | - | table.insert(LEFTWINGS,WingWeld) |
| 113 | + | |
| 114 | local Head = Char.Head | |
| 115 | - | ANGLE = 35 |
| 115 | + | |
| 116 | - | for i = 1, 5 do |
| 116 | + | |
| 117 | - | local Wing = CreatePart(3, Character, "Granite", 0, 0, "Lime green", "Wing", VT(0.15,2+(i/2),0.15),false) |
| 117 | + | |
| 118 | - | local WingWeld = CreateWeldOrSnapOrMotor("Weld", Wing, Torso, Wing, CF(0, 1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0,1,0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * ANGLES(RAD(ANGLE), RAD(0), RAD(0)) * CF(0,3+(i/10),0) , CF(0, 0, 0))
|
| 118 | + | |
| 119 | - | local Wing2 = CreatePart(3, Character, "Neon", 0, 0, "Lime green", "Wing", VT(0.25,1,0.25),false) |
| 119 | + | |
| 120 | - | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 2+(i/2), 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 1, 0))
|
| 120 | + | |
| 121 | - | ANGLE = ANGLE - 15 |
| 121 | + | |
| 122 | - | table.insert(RIGHTWINGS,WingWeld) |
| 122 | + | |
| 123 | local Change = 1 | |
| 124 | local Souls = 0 | |
| 125 | --// Debounce System \\-- | |
| 126 | ||
| 127 | ||
| 128 | New = function(Object, Parent, Name, Data) | |
| 129 | local Object = Instance.new(Object) | |
| 130 | for Index, Value in pairs(Data or {}) do
| |
| 131 | Object[Index] = Value | |
| 132 | end | |
| 133 | Object.Parent = Parent | |
| 134 | Object.Name = Name | |
| 135 | return Object | |
| 136 | end | |
| 137 | ||
| 138 | function Debounces:New(name,cooldown) | |
| 139 | local aaaaa = {Usable=true,Cooldown=cooldown or 2,CoolingDown=false,LastUse=0}
| |
| 140 | setmetatable(aaaaa,{__index = Debounces})
| |
| 141 | Debounces.Debounces[name] = aaaaa | |
| 142 | return aaaaa | |
| 143 | end | |
| 144 | ||
| 145 | function Debounces:Use(overrideUsable) | |
| 146 | assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use") | |
| 147 | if(self.Usable or overrideUsable)then | |
| 148 | self.Usable = false | |
| 149 | self.CoolingDown = true | |
| 150 | local LastUse = time() | |
| 151 | self.LastUse = LastUse | |
| 152 | delay(self.Cooldown or 2,function() | |
| 153 | if(self.LastUse == LastUse)then | |
| 154 | self.CoolingDown = false | |
| 155 | self.Usable = true | |
| 156 | end | |
| 157 | end) | |
| 158 | end | |
| 159 | end | |
| 160 | - | CyborgArm = New("Model",Char,"CyborgArm",{})
|
| 160 | + | |
| 161 | - | Handle = New("Part",CyborgArm,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Size = Vector3.new(1.0500015, 2.02999949, 1.07999992),CFrame = CFrame.new(-138.347275, 2.99473095, 41.7816849, 0.999635339, 8.27677286e-06, 0.0270056836, -0.000191000072, 0.999977112, 0.00676353322, -0.0270050094, -0.00676622428, 0.999612451),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0,0,0),})
|
| 161 | + | |
| 162 | - | Part = New("Part",CyborgArm,"Part",{BrickColor = BrickColor.new("Lime green"),Material = Enum.Material.Neon,Size = Vector3.new(0.429999948, 0.100000001, 1.04999983),CFrame = CFrame.new(-138.369171, 2.89115906, 41.8271637, 0.505694926, -0.862284958, 0.0271573812, 0.862490892, 0.506027818, 0.0067293453, -0.019545, 0.0200200025, 0.999608755),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0, 1, 0),})
|
| 162 | + | |
| 163 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = RArm,C0 = CFrame.new(0, 0, 0, 0.505694926, 0.862490892, -0.0195449982, -0.862284899, 0.506027818, 0.0200199969, 0.0271573793, 0.00672934437, 0.999608576),C1 = CFrame.new(0.0136108398, -0.108844995, -0.0342674255, -0.99999994, 1.23908515e-22, -0.000331714633, 1.23944917e-22, 1, -1.09697344e-22, 0.000331714633, -1.09738441e-22, -0.99999994),})
|
| 163 | + | |
| 164 | - | Part = New("Part",CyborgArm,"Part",{BrickColor = BrickColor.new("Lime green"),Material = Enum.Material.Neon,Size = Vector3.new(0.600001693, 0.100000001, 1.04999983),CFrame = CFrame.new(-138.268127, 3.26462603, 41.8218994, 0.0100010047, -0.999581397, 0.0271513518, 0.999925494, 0.010187286, 0.00673122332, -0.00700500328, 0.027082013, 0.999608815),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0, 1, 0),})
|
| 164 | + | |
| 165 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = RArm,C0 = CFrame.new(0, 0, 0, 0.0100010047, 0.999925494, -0.00700500328, -0.999581337, 0.010187286, 0.0270820074, 0.0271513499, 0.00673122238, 0.999608636),C1 = CFrame.new(-0.0874328613, 0.264621973, -0.028968811, -0.99999994, 1.23908515e-22, -0.000331714633, 1.23944917e-22, 1, -1.09697344e-22, 0.000331714633, -1.09738441e-22, -0.99999994),})
|
| 165 | + | |
| 166 | - | Part = New("Part",CyborgArm,"Part",{BrickColor = BrickColor.new("Lime green"),Material = Enum.Material.Neon,Size = Vector3.new(0.3000018, 0.100000001, 1.04999983),CFrame = CFrame.new(-138.217133, 3.61339307, 41.8189926, 0.778245091, -0.627379835, 0.0270029604, 0.627452075, 0.778625846, 0.00676273741, -0.0252680089, 0.0116800005, 0.999612689),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0, 1, 0),})
|
| 166 | + | |
| 167 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = RArm,C0 = CFrame.new(0, 0, 0, 0.778245091, 0.627452075, -0.0252680033, -0.627379835, 0.778625846, 0.0116799958, 0.0270029567, 0.00676273648, 0.99961251),C1 = CFrame.new(-0.138427734, 0.613389015, -0.0260467529, -0.99999994, 1.23908515e-22, -0.000331714633, 1.23944917e-22, 1, -1.09697344e-22, 0.000331714633, -1.09738441e-22, -0.99999994),})
|
| 167 | + | |
| 168 | - | Part = New("Part",CyborgArm,"Part",{BrickColor = BrickColor.new("Lime green"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.840000331, 0.420000285, 1),CFrame = CFrame.new(-138.395523, 2.38962889, 41.7660217, -0.00574199716, -0.999983609, 1.77533366e-09, 0.999983549, -0.00574199716, 9.3131769e-10, 9.41781764e-10, 1.77533366e-09, 1.00000012),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0, 1, 0),})
|
| 168 | + | |
| 169 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = RArm,C0 = CFrame.new(0, 0, 0, -0.00574199716, 0.999983549, 0, -0.999983549, -0.00574199716, 0, 0, 0, 1),C1 = CFrame.new(0.0399932861, -0.610375166, 0.0268669128, -0.99999994, 1.23908515e-22, -0.000331714633, 1.23944917e-22, 1, -1.09697344e-22, 0.000331714633, -1.09738441e-22, -0.99999994),})
|
| 169 | + | |
| 170 | - | Part = New("Part",CyborgArm,"Part",{BrickColor = BrickColor.new("Lime green"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.840000331, 0.420000285, 0.2900002),CFrame = CFrame.new(-138.540939, 3.80931711, 41.9832687, 2.29982252e-05, -0.999983609, -0.00574393803, -0.00452899979, -0.00574398367, 0.999973238, -0.999989927, 3.01669934e-06, -0.00452905567),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0, 1, 0),})
|
| 170 | + | |
| 171 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = RArm,C0 = CFrame.new(0, 0, 0, 2.29999951e-05, -0.00452899886, -0.999989748, -0.999983549, -0.00574398367, 3.01490991e-06, -0.00574393803, 0.999973238, -0.00452905614),C1 = CFrame.new(0.185333252, 0.809313059, -0.190429688, -0.99999994, 1.23908515e-22, -0.000331714633, 1.23944917e-22, 1, -1.09697344e-22, 0.000331714633, -1.09738441e-22, -0.99999994),})
|
| 171 | + | |
| 172 | - | Part = New("Part",CyborgArm,"Part",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,Shape = Enum.PartType.Ball,Size = Vector3.new(1.15999990, 1.16000044, 1.16000044),CFrame = CFrame.new(-138.563065, 3.74006891, 41.8137894, 1, -1.23944917e-22, 1.77533366e-09, -1.48608469e-11, 1, 9.3131769e-10, -1.80443749e-09, 9.31322575e-10, 1.00000012),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0,0,0),})
|
| 172 | + | |
| 173 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = RArm,C1 = CFrame.new(0.207519531, 0.740064859, -0.0209579468, -0.99999994, 1.23908515e-22, -0.000331714633, 1.23944917e-22, 1, -1.09697344e-22, 0.000331714633, -1.09738441e-22, -0.99999994),})
|
| 173 | + | |
| 174 | - | Part = New("Part",CyborgArm,"Part",{BrickColor = BrickColor.new("Lime green"),Material = Enum.Material.Neon,Size = Vector3.new(0.660001755, 0.100000001, 0.799999833),CFrame = CFrame.new(-138.557587, 3.57138705, 41.9535294, 0.999635398, 8.27676195e-06, 0.0270056874, -0.000191000116, 0.999977112, 0.00676353415, -0.0270050168, -0.00676622475, 0.999612629),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0, 1, 0),})
|
| 174 | + | |
| 175 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = RArm,C0 = CFrame.new(0, 0, 0, 0.999635339, -0.000191000072, -0.0270050094, 8.27677377e-06, 0.999977112, -0.00676622428, 0.0270056836, 0.00676353322, 0.999612451),C1 = CFrame.new(0.20199585, 0.571382999, -0.160697937, -0.99999994, 1.23908515e-22, -0.000331714633, 1.23944917e-22, 1, -1.09697344e-22, 0.000331714633, -1.09738441e-22, -0.99999994),})
|
| 175 | + | |
| 176 | - | Part = New("Part",CyborgArm,"Part",{BrickColor = BrickColor.new("Lime green"),Material = Enum.Material.Neon,Size = Vector3.new(0.660001755, 0.100000001, 0.0899999291),CFrame = CFrame.new(-138.548004, 3.20288205, 42.3108978, 0.999635398, 8.27676195e-06, 0.0270056874, -0.000191000116, 0.999977112, 0.00676353415, -0.0270050168, -0.00676622475, 0.999612629),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0, 1, 0),})
|
| 176 | + | |
| 177 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = RArm,C0 = CFrame.new(0, 0, 0, 0.999635339, -0.000191000072, -0.0270050094, 8.27677377e-06, 0.999977112, -0.00676622428, 0.0270056836, 0.00676353322, 0.999612451),C1 = CFrame.new(0.19229126, 0.202877998, -0.518062592, -0.99999994, 1.23908515e-22, -0.000331714633, 1.23944917e-22, 1, -1.09697344e-22, 0.000331714633, -1.09738441e-22, -0.99999994),})
|
| 177 | + | |
| 178 | - | Part = New("Part",CyborgArm,"Part",{BrickColor = BrickColor.new("Lime green"),Material = Enum.Material.Neon,Size = Vector3.new(0.390001893, 0.100000001, 1.04999983),CFrame = CFrame.new(-138.031433, 3.68374205, 41.8135147, 0.999635398, 8.27676195e-06, 0.0270056874, -0.000191000116, 0.999977112, 0.00676353415, -0.0270050168, -0.00676622475, 0.999612629),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0, 1, 0),})
|
| 178 | + | |
| 179 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = RArm,C0 = CFrame.new(0, 0, 0, 0.999635339, -0.000191000072, -0.0270050094, 8.27677377e-06, 0.999977112, -0.00676622428, 0.0270056836, 0.00676353322, 0.999612451),C1 = CFrame.new(-0.324111938, 0.683737993, -0.0205078125, -0.99999994, 1.23908515e-22, -0.000331714633, 1.23944917e-22, 1, -1.09697344e-22, 0.000331714633, -1.09738441e-22, -0.99999994),})
|
| 179 | + | |
| 180 | - | Part = New("Part",CyborgArm,"Part",{BrickColor = BrickColor.new("Lime green"),Material = Enum.Material.Neon,Size = Vector3.new(0.2800017, 0.100000001, 0.690000117),CFrame = CFrame.new(-138.393951, 2.11307812, 42.0131454, 0.0100010047, -0.999581397, 0.0271513518, 0.999925494, 0.010187286, 0.00673122332, -0.00700500328, 0.027082013, 0.999608815),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0, 1, 0),})
|
| 180 | + | |
| 181 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = RArm,C0 = CFrame.new(0, 0, 0, 0.0100010047, 0.999925494, -0.00700500328, -0.999581337, 0.010187286, 0.0270820074, 0.0271513499, 0.00673122238, 0.999608636),C1 = CFrame.new(0.0383300781, -0.886925936, -0.220256805, -0.99999994, 1.23908515e-22, -0.000331714633, 1.23944917e-22, 1, -1.09697344e-22, 0.000331714633, -1.09738441e-22, -0.99999994),})
|
| 181 | + | |
| 182 | - | Part = New("Part",CyborgArm,"Part",{BrickColor = BrickColor.new("Lime green"),Material = Enum.Material.Neon,Size = Vector3.new(0.600001693, 0.100000001, 1.04999983),CFrame = CFrame.new(-138.452835, 2.48128104, 41.8321991, -0.223359078, -0.974358141, 0.027149044, 0.974736214, -0.223258108, 0.00673288852, -0.000498998852, 0.0279670097, 0.999608934),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0, 1, 0),})
|
| 182 | + | |
| 183 | - | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = RArm,C0 = CFrame.new(0, 0, 0, -0.223359063, 0.974736214, -0.000499000133, -0.974358141, -0.223258108, 0.0279670041, 0.0271490421, 0.00673288759, 0.999608755),C1 = CFrame.new(0.0972747803, -0.518723011, -0.0393295288, -0.99999994, 1.23908515e-22, -0.000331714633, 1.23944917e-22, 1, -1.09697344e-22, 0.000331714633, -1.09738441e-22, -0.99999994),})
|
| 183 | + | |
| 184 | ||
| 185 | --// Shortcut Variables \\-- | |
| 186 | local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ}
| |
| 187 | local C3 = {N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV}
| |
| 188 | local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis}
| |
| 189 | local M = {C=math.cos,R=math.rad,S=math.sin,P=math.pi,RNG=math.random,MRS=math.randomseed,H=math.huge,RRNG = function(min,max,div) return math.rad(math.random(min,max)/(div or 1)) end}
| |
| 190 | local R3 = {N=Region3.new}
| |
| 191 | local De = S.Debris | |
| 192 | local WS = workspace | |
| 193 | local Lght = S.Lighting | |
| 194 | local RepS = S.ReplicatedStorage | |
| 195 | local IN = Instance.new | |
| 196 | local CSK = ColorSequenceKeypoint.new | |
| 197 | local CS = ColorSequence.new | |
| 198 | --// Instance Creation Functions \\-- | |
| 199 | ||
| 200 | function Sound(parent,id,pitch,volume,looped,effect,autoPlay) | |
| 201 | local Sound = IN("Sound")
| |
| 202 | Sound.SoundId = "rbxassetid://".. tostring(id or 0) | |
| 203 | Sound.Pitch = pitch or 1 | |
| 204 | Sound.Volume = volume or 1 | |
| 205 | Sound.Looped = looped or false | |
| 206 | if(autoPlay)then | |
| 207 | coroutine.wrap(function() | |
| 208 | repeat wait() until Sound.IsLoaded | |
| 209 | Sound.Playing = autoPlay or false | |
| 210 | end)() | |
| 211 | end | |
| 212 | if(not looped and effect)then | |
| 213 | Sound.Stopped:connect(function() | |
| 214 | Sound.Volume = 0 | |
| 215 | Sound:destroy() | |
| 216 | end) | |
| 217 | elseif(effect)then | |
| 218 | warn("Sound can't be looped and a sound effect!")
| |
| 219 | end | |
| 220 | Sound.Parent =parent or Torso | |
| 221 | return Sound | |
| 222 | end | |
| 223 | function Part(parent,color,material,size,cframe,anchored,cancollide) | |
| 224 | local part = IN("Part")
| |
| 225 | part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3.N(0,0,0) | |
| 226 | part.Material = (material or Enum.Material.SmoothPlastic) | |
| 227 | part.TopSurface,part.BottomSurface=10,10 | |
| 228 | part.Size = (size or V3.N(1,1,1)) | |
| 229 | part.CFrame = (cframe or CF.N(0,0,0)) | |
| 230 | part.Anchored = (anchored or false) | |
| 231 | part.CanCollide = (cancollide or false) | |
| 232 | part.Parent = (parent or Char) | |
| 233 | return part | |
| 234 | end | |
| 235 | function Mesh(parent,meshtype,meshid,textid,scale,offset) | |
| 236 | local part = IN("SpecialMesh")
| |
| 237 | part.MeshId = meshid or "" | |
| 238 | part.TextureId = textid or "" | |
| 239 | part.Scale = scale or V3.N(1,1,1) | |
| 240 | part.Offset = offset or V3.N(0,0,0) | |
| 241 | part.MeshType = meshtype or Enum.MeshType.Sphere | |
| 242 | part.Parent = parent | |
| 243 | return part | |
| 244 | end | |
| 245 | ||
| 246 | NewInstance = function(instance,parent,properties) | |
| 247 | local inst = Instance.new(instance,parent) | |
| 248 | if(properties)then | |
| 249 | for i,v in next, properties do | |
| 250 | pcall(function() inst[i] = v end) | |
| 251 | end | |
| 252 | end | |
| 253 | return inst; | |
| 254 | end | |
| 255 | ||
| 256 | ||
| 257 | ||
| 258 | --// Extended ROBLOX tables \\-- | |
| 259 | local Instance = setmetatable({ClearChildrenOfClass = function(where,class,recursive) local children = (recursive and where:GetDescendants() or where:GetChildren()) for _,v in next, children do if(v:IsA(class))then v:destroy();end;end;end},{__index = Instance})
| |
| 260 | --// Customization \\-- | |
| 261 | ||
| 262 | local Frame_Speed = 60 -- The frame speed for swait. 1 is automatically divided by this | |
| 263 | local Remove_Hats = false | |
| 264 | local Remove_Clothing = true | |
| 265 | local PlayerSize = 1 | |
| 266 | local DamageColor = BrickColor.new'Really red' | |
| 267 | local MusicID = 298262441 | |
| 268 | local WalkSpeed = 13 | |
| 269 | local MaxSouls = 100 | |
| 270 | local MaxHealth = 500 | |
| 271 | ||
| 272 | ||
| 273 | if(_G.RefusedAnimation == nil) then _G.RefusedAnimation = false end | |
| 274 | ||
| 275 | --// Weapon and GUI creation, and Character Customization \\-- | |
| 276 | ||
| 277 | if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end | |
| 278 | if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end | |
| 279 | local Effects = IN("Folder",Char)
| |
| 280 | Effects.Name = "Effects" | |
| 281 | ||
| 282 | Hum.MaxHealth = MaxHealth | |
| 283 | Hum.Health = MaxHealth | |
| 284 | ||
| 285 | local Knife = NewInstance("Part",Char,{Name='Knife',Size=V3.N(.4,3,.7),Anchored=false,CanCollide=false,Locked=true,Archivable=false,Reflectance=.01,Color=C3.N(0,0,0)})
| |
| 286 | local KnifeMesh = Mesh(Knife,Enum.MeshType.FileMesh,"rbxassetid://42583419","rbxassetid://42584198",V3.N(1,1,1),V3.N()) | |
| 287 | local AuraEmitter = NewInstance("ParticleEmitter",Knife,{EmissionDirection='Back',Color=CS{CSK(0,C3.N(1,1,1)),CSK(0.5,C3.N(1,1,1)),CSK(1,C3.RGB(0,255,0))},LightEmission=.5,LightInfluence=0,Size=NumberSequence.new(0.3),Texture="rbxassetid://141116476",Transparency=NumberSequence.new(0,1),LockedToPart=true,Lifetime=NumberRange.new(1),Rate=150,Speed=NumberRange.new(0)})
| |
| 288 | local FireEmitter = NewInstance("ParticleEmitter",Knife,{EmissionDirection='Back',Color=CS(C3.N(1,1,1),C3.N(1,1,1)),LightEmission=.5,LightInfluence=0,Size=NumberSequence.new{NumberSequenceKeypoint.new(0,.5,0),NumberSequenceKeypoint.new(0.755,0,0),NumberSequenceKeypoint.new(1,0,0)},Texture="rbxassetid://247236503",Transparency=NumberSequence.new(0.35,1),Lifetime=NumberRange.new(1,2),Rate=150,Speed=NumberRange.new(3)})
| |
| 289 | ||
| 290 | local KTrail = NewInstance("Trail",Knife,{
| |
| 291 | Attachment0=NewInstance("Attachment",Knife,{Position=V3.N(0,-.4,0)}),
| |
| 292 | Attachment1=NewInstance("Attachment",Knife,{Position=V3.N(0,1.2,0)}),
| |
| 293 | Color=CS(C3.N(1,0,0)), | |
| 294 | Enabled=false, | |
| 295 | Transparency=NumberSequence.new(0,1), | |
| 296 | Lifetime=1.25, | |
| 297 | }) | |
| 298 | local Hair = Part(Char,C3.N(0,0,0),Enum.Material.SmoothPlastic,V3.N(1,1,1),CF.N(),false,false) | |
| 299 | local HairMesh = Mesh(Hair,Enum.MeshType.FileMesh,"rbxassetid://167549828","rbxassetid://62509661",V3.N(1.05,1.05,1.05),V3.N()) | |
| 300 | ||
| 301 | NewInstance("PointLight",Knife,{Color=C3.N(0,1,1),Range=10,Brightness=3})
| |
| 302 | ||
| 303 | ||
| 304 | Hum.DisplayDistanceType = 'None' | |
| 305 | ||
| 306 | local naeeym2 = IN("BillboardGui",Char)
| |
| 307 | naeeym2.AlwaysOnTop = true | |
| 308 | naeeym2.Size = UDim2.new(5,35,2,15) | |
| 309 | naeeym2.StudsOffset = V3.N(0,2.5,0) | |
| 310 | naeeym2.Adornee = Char.Head | |
| 311 | naeeym2.Name = "Name" | |
| 312 | naeeym2.PlayerToHideFrom = Plr | |
| 313 | local tecks2 = IN("TextLabel",naeeym2)
| |
| 314 | - | local DamageColor = BrickColor.new'Lime green' |
| 314 | + | |
| 315 | - | local MusicID = 1504604335 |
| 315 | + | |
| 316 | tecks2.BorderSizePixel = 0 | |
| 317 | tecks2.Text = "The Scary Sheriff" | |
| 318 | tecks2.Font = Enum.Font.Bodoni | |
| 319 | tecks2.TextSize = 30 | |
| 320 | tecks2.TextStrokeTransparency = 0 | |
| 321 | tecks2.TextColor3 = C3.N(0,0,0) | |
| 322 | tecks2.TextStrokeColor3 = C3.N(0,0,0) | |
| 323 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
| 324 | tecks2.Parent = naeeym2 | |
| 325 | ||
| 326 | ||
| 327 | IN("Shirt",Char)
| |
| 328 | IN("Pants",Char)
| |
| 329 | ||
| 330 | Hum.WalkSpeed = WalkSpeed | |
| 331 | if(PlayerSize ~= 1)then | |
| 332 | for _,v in next, Char:GetDescendats() do | |
| 333 | if(v:IsA'BasePart')then | |
| 334 | - | local KnifeMesh = Mesh(Knife,Enum.MeshType.FileMesh,"rbxassetid://156092238","rbxassetid://156092253",V3.N(1,1,1),V3.N()) |
| 334 | + | |
| 335 | - | local AuraEmitter = NewInstance("ParticleEmitter",Knife,{EmissionDirection='Back',Color=CS{CSK(0,C3.N(0,1,0)),CSK(0.5,C3.N(0,1,0)),CSK(1,C3.RGB(0,255,0))},LightEmission=.5,LightInfluence=0,Size=NumberSequence.new(0.3),Texture="rbxassetid://141116476",Transparency=NumberSequence.new(0,1),LockedToPart=true,Lifetime=NumberRange.new(1),Rate=150,Speed=NumberRange.new(0)})
|
| 335 | + | |
| 336 | - | local FireEmitter = NewInstance("ParticleEmitter",Knife,{EmissionDirection='Back',Color=CS(C3.N(0,1,0),C3.N(0,1,0)),LightEmission=.5,LightInfluence=0,Size=NumberSequence.new{NumberSequenceKeypoint.new(0,.5,0),NumberSequenceKeypoint.new(0.755,0,0),NumberSequenceKeypoint.new(1,0,0)},Texture="rbxassetid://141116476",Transparency=NumberSequence.new(0.35,1),Lifetime=NumberRange.new(1,2),Rate=150,Speed=NumberRange.new(3)})
|
| 336 | + | |
| 337 | end | |
| 338 | ||
| 339 | ||
| 340 | for i = 1, 35 do | |
| 341 | - | Color=CS(C3.N(0,1,0)), |
| 341 | + | |
| 342 | FACE.Transparency = 0+(i-1)/35.2 | |
| 343 | FACE.Name = 'ShadowFace' | |
| 344 | Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
| |
| 345 | NewInstance("Weld",Head,{Part0=Head,Part1=FACE,C0=CF.N(0,.35-(i-1)/75,0)})
| |
| 346 | --CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0))
| |
| 347 | - | local HairMesh = Mesh(Hair,Enum.MeshType.FileMesh,"rbxassetid://62246019","rbxassetid://62246077",V3.N(1.05,1.05,1.05),V3.N()) |
| 347 | + | |
| 348 | ||
| 349 | - | NewInstance("PointLight",Knife,{Color=C3.N(0,1,0),Range=10,Brightness=3})
|
| 349 | + | |
| 350 | pcall(function() | |
| 351 | Char.LeftWing:destroy() | |
| 352 | Char.ReaperShadowHead:destroy() | |
| 353 | end) | |
| 354 | ||
| 355 | ||
| 356 | local Music = Sound(Torso,MusicID,1,3,true,false,true) | |
| 357 | Music.Name = 'Music' | |
| 358 | ||
| 359 | --// Stop animations \\-- | |
| 360 | for _,v in next, Hum:GetPlayingAnimationTracks() do | |
| 361 | v:Stop(); | |
| 362 | end | |
| 363 | ||
| 364 | pcall(game.Destroy,Char:FindFirstChild'Animate') | |
| 365 | - | tecks2.Text = "The Lord Of Darkness And Forest" |
| 365 | + | |
| 366 | ||
| 367 | --// Joints \\-- | |
| 368 | ||
| 369 | local LS = NewInstance('Motor',Char,{Part0=Torso,Part1=LArm,C0 = CF.N(-1.5 * PlayerSize,0.5 * PlayerSize,0),C1 = CF.N(0,.5 * PlayerSize,0)})
| |
| 370 | - | tecks2.TextStrokeColor3 = C3.N(0,1,0) |
| 370 | + | |
| 371 | local NK = NewInstance('Motor',Char,{Part0=Torso,Part1=Head,C0 = CF.N(0,1.5 * PlayerSize,0)})
| |
| 372 | local LH = NewInstance('Motor',Char,{Part0=Torso,Part1=LLeg,C0 = CF.N(-.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
| |
| 373 | local RH = NewInstance('Motor',Char,{Part0=Torso,Part1=RLeg,C0 = CF.N(.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)})
| |
| 374 | local RJ = NewInstance('Motor',Char,{Part0=Root,Part1=Torso})
| |
| 375 | local HW = NewInstance('Motor',Char,{Part0=RArm,Part1=Knife,C0=CF.N(0,-1,-1)*CF.A(M.R(-90),0,0)})
| |
| 376 | local HW2 = NewInstance('Motor',Char,{Part0=Head,Part1=Hair,C0=CF.N(0,.25,0)})
| |
| 377 | ||
| 378 | local LSC0 = LS.C0 | |
| 379 | local RSC0 = RS.C0 | |
| 380 | local NKC0 = NK.C0 | |
| 381 | local LHC0 = LH.C0 | |
| 382 | local RHC0 = RH.C0 | |
| 383 | local RJC0 = RJ.C0 | |
| 384 | ||
| 385 | --// Artificial HB \\-- | |
| 386 | ||
| 387 | local ArtificialHB = IN("BindableEvent", script)
| |
| 388 | ArtificialHB.Name = "Heartbeat" | |
| 389 | ||
| 390 | script:WaitForChild("Heartbeat")
| |
| 391 | ||
| 392 | local tf = 0 | |
| 393 | local allowframeloss = false | |
| 394 | local tossremainder = false | |
| 395 | local lastframe = tick() | |
| 396 | local frame = 1/Frame_Speed | |
| 397 | - | local LEye = Part(Char,C3.N(0,1,0),Enum.Material.Neon,V3.N(.15,.25,.2),CF.N(),false,false) |
| 397 | + | |
| 398 | - | local LEyeM = Mesh(LEye,Enum.MeshType.Sphere,"","",V3.N(1,1,1),V3.N()) |
| 398 | + | |
| 399 | - | local LEyeW = NewInstance("Weld",LEye,{Part0=Head,Part1=LEye,C0=CF.N(-.2,.2,-.49)})
|
| 399 | + | |
| 400 | tf = tf + s | |
| 401 | if tf >= frame then | |
| 402 | if allowframeloss then | |
| 403 | script.Heartbeat:Fire() | |
| 404 | lastframe = tick() | |
| 405 | else | |
| 406 | for i = 1, math.floor(tf / frame) do | |
| 407 | ArtificialHB:Fire() | |
| 408 | end | |
| 409 | lastframe = tick() | |
| 410 | end | |
| 411 | if tossremainder then | |
| 412 | tf = 0 | |
| 413 | else | |
| 414 | tf = tf - frame * math.floor(tf / frame) | |
| 415 | end | |
| 416 | end | |
| 417 | end) | |
| 418 | ||
| 419 | function swait(num) | |
| 420 | if num == 0 or num == nil then | |
| 421 | ArtificialHB.Event:wait() | |
| 422 | else | |
| 423 | for i = 0, num do | |
| 424 | ArtificialHB.Event:wait() | |
| 425 | end | |
| 426 | end | |
| 427 | end | |
| 428 | ||
| 429 | --// Effect Function(s) \\-- | |
| 430 | ||
| 431 | Circle = nil | |
| 432 | CircleParts = {}
| |
| 433 | Equipped = false | |
| 434 | ||
| 435 | function RayCast(Position, Direction, MaxDistance, IgnoreList) | |
| 436 | return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList)
| |
| 437 | end | |
| 438 | Humanoid = Char:FindFirstChildOfClass("Humanoid")
| |
| 439 | Torso = Char:FindFirstChild("Torso")
| |
| 440 | if not Plr or not Humanoid or Humanoid.Health == 0 or not Torso then | |
| 441 | return | |
| 442 | end | |
| 443 | Equipped = true | |
| 444 | Circle = Instance.new("Model")
| |
| 445 | Circle.Name = "Circle" | |
| 446 | Angle = 0 | |
| 447 | for i = 1, 1 do | |
| 448 | local CirclePart = Instance.new("Part")
| |
| 449 | CirclePart.Name = "CirclePart" | |
| 450 | CirclePart.Transparency = 1 | |
| 451 | CirclePart.BrickColor = BrickColor.new("Really red")
| |
| 452 | CirclePart.Material = Enum.Material.Plastic | |
| 453 | CirclePart.Shape = Enum.PartType.Block | |
| 454 | CirclePart.FormFactor = Enum.FormFactor.Custom | |
| 455 | CirclePart.TopSurface = Enum.SurfaceType.Smooth | |
| 456 | CirclePart.BottomSurface = Enum.SurfaceType.Smooth | |
| 457 | CirclePart.Anchored = true | |
| 458 | CirclePart.CanCollide = false | |
| 459 | CirclePart.Locked = true | |
| 460 | CirclePart.Size = Vector3.new(10, 0.2, 10) | |
| 461 | local BlockMesh = Instance.new("BlockMesh")
| |
| 462 | BlockMesh.Scale = Vector3.new(1, (1 + (0.005 * i)), 1) | |
| 463 | BlockMesh.Parent = CirclePart | |
| 464 | CirclePart.Parent = Circle | |
| 465 | local Star = Instance.new("Decal", CirclePart)
| |
| 466 | Star.Texture = "http://www.roblox.com/asset/?id=176677966" | |
| 467 | Star.Face = "Top" | |
| 468 | local Light = Instance.new("PointLight", CirclePart)
| |
| 469 | Light.Color = Color3.new(1,0,0) | |
| 470 | Light.Brightness = 100 | |
| 471 | Light.Range = 15 | |
| 472 | table.insert(CircleParts, CirclePart) | |
| 473 | end | |
| 474 | Spawn(function() | |
| 475 | while Equipped and Humanoid.Parent and Humanoid.Health > 0 and Torso.Parent do | |
| 476 | if Angle == 360 then | |
| 477 | Angle = 0 | |
| 478 | end | |
| 479 | Angle = Angle + 0.05 | |
| 480 | local Hit, EndPosition = RayCast(Torso.Position, Vector3.new(0, -1, 0), (Torso.Size.Y * 6.5), {Char})
| |
| 481 | if Hit then | |
| 482 | if not Circle.Parent then | |
| 483 | Circle.Parent = Char | |
| 484 | end | |
| 485 | for i, v in pairs(CircleParts) do | |
| 486 | v.CFrame = CFrame.new(Torso.Position.X, EndPosition.Y, Torso.Position.Z) * CFrame.Angles(0, (Angle + i), 0) | |
| 487 | end | |
| 488 | else | |
| 489 | Circle.Parent = nil | |
| 490 | end | |
| 491 | wait() | |
| 492 | end | |
| 493 | end) | |
| 494 | ||
| 495 | function Bezier(startpos, pos2, pos3, endpos, t) | |
| 496 | local A = startpos:lerp(pos2, t) | |
| 497 | local B = pos2:lerp(pos3, t) | |
| 498 | local C = pos3:lerp(endpos, t) | |
| 499 | local lerp1 = A:lerp(B, t) | |
| 500 | local lerp2 = B:lerp(C, t) | |
| 501 | local cubic = lerp1:lerp(lerp2, t) | |
| 502 | return cubic | |
| 503 | end | |
| 504 | ||
| 505 | - | CirclePart.BrickColor = BrickColor.new("Really black")
|
| 505 | + | |
| 506 | local info = TweenInfo.new(time or .5, easing or Enum.EasingStyle.Quad, direction or Enum.EasingDirection.Out, repeats or 0, backwards or false) | |
| 507 | local tween = S.TweenService:Create(obj, info, props) | |
| 508 | ||
| 509 | tween:Play() | |
| 510 | end | |
| 511 | ||
| 512 | local FXTable = {}
| |
| 513 | ||
| 514 | coroutine.resume(coroutine.create(function() | |
| 515 | while true do | |
| 516 | for i = 1, #FXTable do | |
| 517 | local data = FXTable[i] | |
| 518 | if(data)then | |
| 519 | local Frame = data.Frame | |
| 520 | - | Star.Texture = "http://www.roblox.com/asset/?id=43997508" |
| 520 | + | |
| 521 | local Parent = data.Parent or Effects | |
| 522 | local Color = data.Color or C3.N(0,0,0) | |
| 523 | local Size = data.Size or V3.N(1,1,1) | |
| 524 | local MoveDir = data.MoveDirection or nil | |
| 525 | local MeshData = data.Mesh or nil | |
| 526 | local SndData = data.Sound or nil | |
| 527 | local Frames = data.Frames or 45 | |
| 528 | local CFra = data.CFrame or Torso.CFrame | |
| 529 | local Settings = data.FXSettings or {}
| |
| 530 | local Prt,Msh,Snd = data.Part,data.Mesh,data.Sound | |
| 531 | local grow = data.Grow | |
| 532 | ||
| 533 | local MoveSpeed = nil; | |
| 534 | if(MoveDir)then | |
| 535 | MoveSpeed = (CFra.p - MoveDir).magnitude/Frames | |
| 536 | end | |
| 537 | if(FX ~= 'Arc')then | |
| 538 | Frame = Frame + 1 | |
| 539 | if(FX == "Fade")then | |
| 540 | Prt.Transparency = (Frame/Frames) | |
| 541 | elseif(FX == "Resize")then | |
| 542 | if(not Settings.EndSize)then | |
| 543 | Settings.EndSize = V3.N(0,0,0) | |
| 544 | end | |
| 545 | if(Settings.EndIsIncrement)then | |
| 546 | if(Msh)then | |
| 547 | Msh.Scale = Msh.Scale + Settings.EndSize | |
| 548 | else | |
| 549 | Prt.Size = Prt.Size + Settings.EndSize | |
| 550 | end | |
| 551 | else | |
| 552 | if(Msh)then | |
| 553 | Msh.Scale = Msh.Scale - grow/Frames | |
| 554 | else | |
| 555 | Prt.Size = Prt.Size - grow/Frames | |
| 556 | end | |
| 557 | end | |
| 558 | elseif(FX == "ResizeAndFade")then | |
| 559 | if(not Settings.EndSize)then | |
| 560 | Settings.EndSize = V3.N(0,0,0) | |
| 561 | end | |
| 562 | if(Settings.EndIsIncrement)then | |
| 563 | if(Msh)then | |
| 564 | Msh.Scale = Msh.Scale + Settings.EndSize | |
| 565 | else | |
| 566 | Prt.Size = Prt.Size + Settings.EndSize | |
| 567 | end | |
| 568 | else | |
| 569 | if(Msh)then | |
| 570 | Msh.Scale = Msh.Scale - grow/Frames | |
| 571 | else | |
| 572 | Prt.Size = Prt.Size - grow/Frames | |
| 573 | end | |
| 574 | end | |
| 575 | Prt.Transparency = (Frame/Frames) | |
| 576 | end | |
| 577 | if(Settings.RandomizeCFrame)then | |
| 578 | Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360)) | |
| 579 | end | |
| 580 | if(MoveDir and MoveSpeed)then | |
| 581 | local Orientation = Prt.Orientation | |
| 582 | Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed) | |
| 583 | Prt.Orientation = Orientation | |
| 584 | end | |
| 585 | if(Prt.Transparency >= 1 or Frame >= Frames)then | |
| 586 | Prt:destroy() | |
| 587 | table.remove(FXTable,i) | |
| 588 | else | |
| 589 | data.Frame = Frame | |
| 590 | end | |
| 591 | else | |
| 592 | local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End | |
| 593 | if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end | |
| 594 | if(start and endP)then | |
| 595 | local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25)) | |
| 596 | local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25)) | |
| 597 | Frame = Frame + (Settings.Speed or 0.01) | |
| 598 | if(Settings.Home)then | |
| 599 | endP = Settings.Home.CFrame | |
| 600 | end | |
| 601 | Prt.CFrame = Bezier(start, quarter, threequarter, endP, Frame) | |
| 602 | if(Prt.Transparency >= 1 or Frame >= Frames)then | |
| 603 | if(Settings.RemoveOnGoal)then | |
| 604 | Prt:destroy() | |
| 605 | end | |
| 606 | end | |
| 607 | else | |
| 608 | Prt:destroy() | |
| 609 | end | |
| 610 | end | |
| 611 | end | |
| 612 | end | |
| 613 | swait() | |
| 614 | end | |
| 615 | end)) | |
| 616 | ||
| 617 | function Effect(data) | |
| 618 | local FX = data.Effect or 'ResizeAndFade' | |
| 619 | local Parent = data.Parent or Effects | |
| 620 | local Color = data.Color or C3.N(0,0,0) | |
| 621 | local Size = data.Size or V3.N(1,1,1) | |
| 622 | local MoveDir = data.MoveDirection or nil | |
| 623 | local MeshData = data.Mesh or nil | |
| 624 | local SndData = data.Sound or nil | |
| 625 | local Frames = data.Frames or 45 | |
| 626 | local Manual = data.Manual or nil | |
| 627 | local Material = data.Material or nil | |
| 628 | local CFra = data.CFrame or Torso.CFrame | |
| 629 | local Settings = data.FXSettings or {}
| |
| 630 | local Shape = data.Shape or Enum.PartType.Block | |
| 631 | local Snd,Prt,Msh; | |
| 632 | coroutine.wrap(function() | |
| 633 | if(Manual and typeof(Manual) == 'Instance' and Manual:IsA'BasePart')then | |
| 634 | Prt = Manual | |
| 635 | else | |
| 636 | Prt = Part(Parent,Color,Material,Size,CFra,true,false) | |
| 637 | Prt.Shape = Shape | |
| 638 | end | |
| 639 | if(typeof(MeshData) == 'table')then | |
| 640 | Msh = Mesh(Prt,MeshData.MeshType,MeshData.MeshId,MeshData.TextureId,MeshData.Scale,MeshData.Offset) | |
| 641 | elseif(typeof(MeshData) == 'Instance')then | |
| 642 | Msh = MeshData:Clone() | |
| 643 | Msh.Parent = Prt | |
| 644 | elseif(Shape == Enum.PartType.Block)then | |
| 645 | Msh = Mesh(Prt,Enum.MeshType.Brick) | |
| 646 | end | |
| 647 | if(typeof(SndData) == 'table' or typeof(SndData) == 'Instance')then | |
| 648 | Snd = Sound(Prt,SndData.SoundId,SndData.Pitch,SndData.Volume,false,false,true) | |
| 649 | end | |
| 650 | if(Snd)then | |
| 651 | repeat swait() until Snd.Playing and Snd.IsLoaded and Snd.TimeLength > 0 | |
| 652 | Frames = Snd.TimeLength * Frame_Speed/Snd.Pitch | |
| 653 | end | |
| 654 | Size = (Msh and Msh.Scale or Size) | |
| 655 | local grow = Size-(Settings.EndSize or (Msh and Msh.Scale or Size)/2) | |
| 656 | ||
| 657 | local MoveSpeed = nil; | |
| 658 | if(MoveDir)then | |
| 659 | MoveSpeed = (CFra.p - MoveDir).magnitude/Frames | |
| 660 | end | |
| 661 | if(FX ~= 'Arc')then | |
| 662 | for Frame = 1, Frames do | |
| 663 | if(FX == "Fade")then | |
| 664 | Prt.Transparency = (Frame/Frames) | |
| 665 | elseif(FX == "Resize")then | |
| 666 | if(not Settings.EndSize)then | |
| 667 | Settings.EndSize = V3.N(0,0,0) | |
| 668 | end | |
| 669 | if(Settings.EndIsIncrement)then | |
| 670 | if(Msh)then | |
| 671 | Msh.Scale = Msh.Scale + Settings.EndSize | |
| 672 | else | |
| 673 | Prt.Size = Prt.Size + Settings.EndSize | |
| 674 | end | |
| 675 | else | |
| 676 | if(Msh)then | |
| 677 | Msh.Scale = Msh.Scale - grow/Frames | |
| 678 | else | |
| 679 | Prt.Size = Prt.Size - grow/Frames | |
| 680 | end | |
| 681 | end | |
| 682 | elseif(FX == "ResizeAndFade")then | |
| 683 | if(not Settings.EndSize)then | |
| 684 | Settings.EndSize = V3.N(0,0,0) | |
| 685 | end | |
| 686 | if(Settings.EndIsIncrement)then | |
| 687 | if(Msh)then | |
| 688 | Msh.Scale = Msh.Scale + Settings.EndSize | |
| 689 | else | |
| 690 | Prt.Size = Prt.Size + Settings.EndSize | |
| 691 | end | |
| 692 | else | |
| 693 | if(Msh)then | |
| 694 | Msh.Scale = Msh.Scale - grow/Frames | |
| 695 | else | |
| 696 | Prt.Size = Prt.Size - grow/Frames | |
| 697 | end | |
| 698 | end | |
| 699 | Prt.Transparency = (Frame/Frames) | |
| 700 | end | |
| 701 | if(Settings.RandomizeCFrame)then | |
| 702 | Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360)) | |
| 703 | end | |
| 704 | if(MoveDir and MoveSpeed)then | |
| 705 | local Orientation = Prt.Orientation | |
| 706 | Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed) | |
| 707 | Prt.Orientation = Orientation | |
| 708 | end | |
| 709 | swait() | |
| 710 | end | |
| 711 | Prt:destroy() | |
| 712 | else | |
| 713 | local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End | |
| 714 | if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end | |
| 715 | if(start and endP)then | |
| 716 | local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25)) | |
| 717 | local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25)) | |
| 718 | for Frame = 0, 1, (Settings.Speed or 0.01) do | |
| 719 | if(Settings.Home)then | |
| 720 | endP = Settings.Home.CFrame | |
| 721 | end | |
| 722 | Prt.CFrame = Bezier(start, quarter, threequarter, endP, Frame) | |
| 723 | end | |
| 724 | if(Settings.RemoveOnGoal)then | |
| 725 | Prt:destroy() | |
| 726 | end | |
| 727 | else | |
| 728 | Prt:destroy() | |
| 729 | assert(start,"You need a start position!") | |
| 730 | assert(endP,"You need a start position!") | |
| 731 | end | |
| 732 | end | |
| 733 | end)() | |
| 734 | return Prt,Msh,Snd | |
| 735 | end | |
| 736 | ||
| 737 | ||
| 738 | ||
| 739 | function SoulSteal(whom,human) | |
| 740 | local torso = (whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso' or whom:FindFirstChild'LowerTorso' or whom:FindFirstChild'HumanoidRootPart' or whom:FindFirstChild'Torso') | |
| 741 | local succ, health, alive = pcall(function() return whom:FindFirstChildOfClass'Humanoid'.Health, whom:FindFirstChildOfClass'Humanoid'.Health > 0 end) | |
| 742 | if(torso and torso:IsA'BasePart' and alive == true)then | |
| 743 | whom:FindFirstChildOfClass'Humanoid'.Health = 0 | |
| 744 | whom:BreakJoints() | |
| 745 | local Model = IN("Model",Effects)
| |
| 746 | warn('Soul stolen from '..whom.Name)
| |
| 747 | Model.Name = whom.Name.."'s Soul" | |
| 748 | local Soul = Part(Model,(human and BrickColor.new'Lime green' or BrickColor.new(C3.N(1,1,1))),'Glass',V3.N(1,1,1),torso.CFrame,true,false) | |
| 749 | Soul.CanCollide=false | |
| 750 | Mesh(Soul,Enum.MeshType.Sphere) | |
| 751 | Soul.Name = 'Head' | |
| 752 | if(whom.Name == 'CKbackup')then | |
| 753 | Soul.Color = C3.N(1,1,1) | |
| 754 | local DripEmitter = NewInstance("ParticleEmitter",Soul,{EmissionDirection='Bottom',Color=CS(Soul.Color),LightEmission=.5,LightInfluence=0,Size=NumberSequence.new(0.3),Texture="rbxassetid://243132757",Transparency=NumberSequence.new(0,1),LockedToPart=false,Lifetime=NumberRange.new(1),Rate=150,Speed=NumberRange.new(5)})
| |
| 755 | end | |
| 756 | local Hoom = NewInstance("Humanoid",Model,{MaxHealth=(health <= 10000 and health/2 or 10000),Health=(health <= 10000 and health/2 or 10000)})
| |
| 757 | local AT0 = NewInstance("Attachment",Soul,{Position=V3.N(0,.5,0)})
| |
| 758 | local AT1 = NewInstance("Attachment",Soul,{Position=V3.N(0,-.5,0)})
| |
| 759 | local Trail = NewInstance("Trail",Soul,{Attachment0=AT0,Attachment1=AT1,Transparency=NumberSequence.new(0),FaceCamera = true,Texture="rbxassetid://945758042",LightEmission=.3,Color=CS(Soul.Color),Lifetime=.5,MinLength=0})
| |
| 760 | NewInstance("PointLight",Soul,{Color=Soul.Color,Range=10,Brightness=(human and 3 or .5)})
| |
| 761 | ||
| 762 | local turdso = Soul:Clone() | |
| 763 | turdso.Name = "Torso" | |
| 764 | turdso.CanCollide = false | |
| 765 | turdso.Anchored = true | |
| 766 | turdso.CFrame = Soul.CFrame | |
| 767 | turdso.Parent = Model | |
| 768 | turdso.Size = V3.N() | |
| 769 | turdso.Transparency=1 | |
| 770 | local Distance = math.huge | |
| 771 | repeat | |
| 772 | Soul.CFrame = CF.N(Soul.Position,Torso.Position)*CF.N(0,0,-1) | |
| 773 | turdso.CFrame = Soul.CFrame | |
| 774 | Distance = (Soul.CFrame.p-Torso.CFrame.p).magnitude | |
| 775 | swait() | |
| 776 | until Hoom.Health <= 0 or not Soul.Parent or Distance <= 1.2 | |
| 777 | if(Soul.Parent and Hoom.Health > 0)then | |
| 778 | Model:destroy() | |
| 779 | Effect{
| |
| 780 | Effect="ResizeAndFade", | |
| 781 | Mesh={Enum.MeshType.Sphere},
| |
| 782 | Color = Soul.Color, | |
| 783 | CFrame=Torso.CFrame, | |
| 784 | Size=V3.N(3,3,3), | |
| 785 | Material=Enum.Material.Neon, | |
| 786 | Sound={SoundId=444667859,Pitch=1,Volume=2.5},
| |
| 787 | FXSettings={
| |
| 788 | EndSize=V3.N(6,6,6), | |
| 789 | } | |
| 790 | } | |
| 791 | Souls = Souls + (human and 1 or .1) | |
| 792 | warn("Souls: "..Souls)
| |
| 793 | MaxHealth = MaxHealth + Hoom.Health | |
| 794 | Hum.Health = Hum.Health + Hoom.Health | |
| 795 | for i = 1, 5 do | |
| 796 | Effect{
| |
| 797 | Effect="Fade", | |
| 798 | Color = Soul.Color, | |
| 799 | MoveDirection = (Torso.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p | |
| 800 | } | |
| 801 | end | |
| 802 | else | |
| 803 | ||
| 804 | warn("Soul destroyed!")
| |
| 805 | for i = 1, 5 do | |
| 806 | Effect{
| |
| 807 | Effect="Fade", | |
| 808 | Color = Soul.Color, | |
| 809 | CFrame=Soul.CFrame, | |
| 810 | MoveDirection = (Soul.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p | |
| 811 | } | |
| 812 | end | |
| 813 | Effect{
| |
| 814 | Effect="ResizeAndFade", | |
| 815 | Mesh={Enum.MeshType.Sphere},
| |
| 816 | Sound={SoundId=444667859,Pitch=1,Volume=5},
| |
| 817 | Color = Soul.Color, | |
| 818 | CFrame=Soul.CFrame, | |
| 819 | Size=V3.N(3,3,3), | |
| 820 | Material=Enum.Material.Neon, | |
| 821 | FXSettings={
| |
| 822 | EndSize=V3.N(6,6,6), | |
| 823 | } | |
| 824 | } | |
| 825 | Model:destroy() | |
| 826 | end | |
| 827 | end | |
| 828 | end | |
| 829 | ||
| 830 | --// Other Functions \\ -- | |
| 831 | ||
| 832 | function getRegion(point,range,ignore) | |
| 833 | return workspace:FindPartsInRegion3WithIgnoreList(R3.N(point-V3.N(1,1,1)*range/2,point+V3.N(1,1,1)*range/2),ignore,100) | |
| 834 | end | |
| 835 | ||
| 836 | function clerp(startCF,endCF,alpha) | |
| 837 | return startCF:lerp(endCF, alpha) | |
| 838 | end | |
| 839 | ||
| 840 | function GetTorso(char) | |
| 841 | return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart' | |
| 842 | end | |
| 843 | ||
| 844 | function ShowDamage(Pos, Text, Time, Color) | |
| 845 | coroutine.wrap(function() | |
| 846 | local Rate = (1 / Frame_Speed) | |
| 847 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
| 848 | local Text = (Text or "") | |
| 849 | local Time = (Time or 2) | |
| 850 | local Color = (Color or Color3.new(1, 0, 1)) | |
| 851 | local EffectPart = NewInstance("Part",Effects,{
| |
| 852 | Material=Enum.Material.SmoothPlastic, | |
| 853 | Reflectance = 0, | |
| 854 | Transparency = 1, | |
| 855 | BrickColor = BrickColor.new(Color), | |
| 856 | Name = "Effect", | |
| 857 | Size = Vector3.new(0,0,0), | |
| 858 | Anchored = true, | |
| 859 | CFrame = CF.N(Pos) | |
| 860 | }) | |
| 861 | local BillboardGui = NewInstance("BillboardGui",EffectPart,{
| |
| 862 | Size = UDim2.new(1.25, 0, 1.25, 0), | |
| 863 | Adornee = EffectPart, | |
| 864 | }) | |
| 865 | local TextLabel = NewInstance("TextLabel",BillboardGui,{
| |
| 866 | BackgroundTransparency = 1, | |
| 867 | Size = UDim2.new(1, 0, 1, 0), | |
| 868 | Text = Text, | |
| 869 | Font = "Arcade", | |
| 870 | TextColor3 = Color, | |
| 871 | TextStrokeColor3 = Color3.new(0,0,0), | |
| 872 | TextStrokeTransparency=0, | |
| 873 | TextScaled = true, | |
| 874 | }) | |
| 875 | S.Debris:AddItem(EffectPart, (Time)) | |
| 876 | EffectPart.Parent = workspace | |
| 877 | delay(0, function() | |
| 878 | Tween(EffectPart,{CFrame=CF.N(Pos)*CF.N(0,3,0)},Time,Enum.EasingStyle.Elastic,Enum.EasingDirection.Out)
| |
| 879 | local Frames = (Time / Rate) | |
| 880 | for Frame = 1, Frames do | |
| 881 | swait() | |
| 882 | local Percent = (Frame / Frames) | |
| 883 | TextLabel.TextTransparency = Percent | |
| 884 | TextLabel.TextStrokeTransparency = Percent | |
| 885 | end | |
| 886 | if EffectPart and EffectPart.Parent then | |
| 887 | EffectPart:Destroy() | |
| 888 | end | |
| 889 | end) end)() | |
| 890 | end | |
| 891 | ||
| 892 | function Kill(whom) | |
| 893 | if(whom.Name ~= 'SHYIME')then | |
| 894 | local isPlr = Plrs:GetPlayerFromCharacter(whom) ~= nil | |
| 895 | coroutine.wrap(SoulSteal)(whom,isPlr) | |
| 896 | for _,v in next, whom:children() do | |
| 897 | if(v:IsA'BasePart')then | |
| 898 | v.Parent = Effects | |
| 899 | v:ClearAllChildren() | |
| 900 | v.Anchored = true | |
| 901 | v.CanCollide = false | |
| 902 | v.Transparency = 1 | |
| 903 | local dust = NewInstance("ParticleEmitter",v,{
| |
| 904 | Color = ColorSequence.new(C3.N(1,1,1)), | |
| 905 | LightEmission=0, | |
| 906 | LightInfluence=1, | |
| 907 | Size=NumberSequence.new{NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0,0)},
| |
| 908 | Texture="rbxassetid://284205403", | |
| 909 | Transparency=NumberSequence.new{NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)},
| |
| 910 | Lifetime = NumberRange.new(1), | |
| 911 | Rate=150, | |
| 912 | Acceleration = V3.N(0,10,0), | |
| 913 | Speed = NumberRange.new(5), | |
| 914 | Enabled = true | |
| 915 | }) | |
| 916 | delay(1, function() | |
| 917 | dust.Enabled = false | |
| 918 | S.Debris:AddItem(v,2) | |
| 919 | end) | |
| 920 | end | |
| 921 | end | |
| 922 | else | |
| 923 | warn"nope. nawt happenin'" | |
| 924 | end | |
| 925 | end | |
| 926 | ||
| 927 | function DealDamage(who,minDam,maxDam,Knock,Type,critChance,critMult) | |
| 928 | if(who)then | |
| 929 | local hum = who:FindFirstChildOfClass'Humanoid' | |
| 930 | local Damage = M.RNG(minDam,maxDam) | |
| 931 | local canHit = true | |
| 932 | if(hum)then | |
| 933 | for _, p in pairs(Hit) do | |
| 934 | if p[1] == hum then | |
| 935 | if(time() - p[2] < 0.4) then | |
| 936 | canHit = false | |
| 937 | else | |
| 938 | Hit[_] = nil | |
| 939 | end | |
| 940 | end | |
| 941 | end | |
| 942 | if(canHit)then | |
| 943 | table.insert(Hit,{hum,time()})
| |
| 944 | if(GetTorso(who))then | |
| 945 | Sound(GetTorso(who),406913243,1,10,false,true,true) | |
| 946 | end | |
| 947 | if(hum.Health >= math.huge)then | |
| 948 | Kill(who) | |
| 949 | if(who:FindFirstChild'Head' and hum.Health > 0)then | |
| 950 | ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), "INSTANT", 3, DamageColor.Color) | |
| 951 | end | |
| 952 | else | |
| 953 | local player = S.Players:GetPlayerFromCharacter(who) | |
| 954 | if(Type == "Fire")then | |
| 955 | --idk.. | |
| 956 | else | |
| 957 | local c = Instance.new("ObjectValue",hum)
| |
| 958 | c.Name = "creator" | |
| 959 | c.Value = Plr | |
| 960 | game:service'Debris':AddItem(c,0.35) | |
| 961 | local Crit = false | |
| 962 | if(M.RNG(1,100) <= (critChance or 0) and critMult > 1)then | |
| 963 | Crit = true | |
| 964 | Damage = Damage*(critMult or 2) | |
| 965 | end | |
| 966 | Damage = Damage*((Souls/5)+1) | |
| 967 | if(who:FindFirstChild'Head' and hum.Health > 0)then | |
| 968 | ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), (Crit and "[CRIT] " or "").. math.floor(Damage), 3, (Crit and BrickColor.new'New Yeller'.Color or DamageColor.Color)) | |
| 969 | end | |
| 970 | ||
| 971 | if(hum.Health - Damage <= 0)then | |
| 972 | Kill(who) | |
| 973 | else | |
| 974 | hum.Health = hum.Health - Damage | |
| 975 | if(Type == 'Knockback' and GetTorso(who))then | |
| 976 | local angle = GetTorso(who).Position - Root.Position + Vector3.new(0, 0, 0).unit | |
| 977 | local body = NewInstance('BodyVelocity',GetTorso(who),{
| |
| 978 | P = 500, | |
| 979 | maxForce = V3.N(math.huge,0,math.huge), | |
| 980 | velocity = Root.CFrame.lookVector * Knock + Root.Velocity / 1.05 | |
| 981 | }) | |
| 982 | game:service'Debris':AddItem(body,.5) | |
| 983 | elseif(Type == "Electric")then | |
| 984 | if(M.RNG(1,100) >= critChance)then | |
| 985 | if(who:FindFirstChild'Head' and hum.Health > 0)then | |
| 986 | ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), "[PARALYZED]", 3, BrickColor.new"New Yeller".Color) | |
| 987 | end | |
| 988 | local asd = hum.WalkSpeed/2 | |
| 989 | hum.WalkSpeed = asd | |
| 990 | local paralyzed = true | |
| 991 | coroutine.wrap(function() | |
| 992 | while paralyzed do | |
| 993 | swait(25) | |
| 994 | if(M.RNG(1,25) == 1)then | |
| 995 | if(who:FindFirstChild'Head' and hum.Health > 0)then | |
| 996 | ShowDamage((who.Head.CFrame * CF.N(0, 0, (who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), "[STATIC]", 3, BrickColor.new"New Yeller".Color) | |
| 997 | end | |
| 998 | hum.PlatformStand = true | |
| 999 | end | |
| 1000 | end | |
| 1001 | end)() | |
| 1002 | delay(4, function() | |
| 1003 | paralyzed = false | |
| 1004 | hum.WalkSpeed = hum.WalkSpeed + asd | |
| 1005 | end) | |
| 1006 | end | |
| 1007 | ||
| 1008 | elseif(Type == 'Knockdown' and GetTorso(who))then | |
| 1009 | local rek = GetTorso(who) | |
| 1010 | hum.PlatformStand = true | |
| 1011 | delay(1,function() | |
| 1012 | hum.PlatformStand = false | |
| 1013 | end) | |
| 1014 | local angle = (GetTorso(who).Position - (Root.Position + Vector3.new(0, 0, 0))).unit | |
| 1015 | local bodvol = NewInstance("BodyVelocity",rek,{
| |
| 1016 | velocity = angle * Knock, | |
| 1017 | P = 5000, | |
| 1018 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 1019 | }) | |
| 1020 | local rl = NewInstance("BodyAngularVelocity",rek,{
| |
| 1021 | P = 3000, | |
| 1022 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
| 1023 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
| 1024 | }) | |
| 1025 | game:GetService("Debris"):AddItem(bodvol, .5)
| |
| 1026 | game:GetService("Debris"):AddItem(rl, .5)
| |
| 1027 | end | |
| 1028 | end | |
| 1029 | end | |
| 1030 | end | |
| 1031 | end | |
| 1032 | end | |
| 1033 | end | |
| 1034 | end | |
| 1035 | ||
| 1036 | ||
| 1037 | function AOEDamage(where,range,minDam,maxDam,Knock,Type,critChance,critMult) | |
| 1038 | for _,v in next, getRegion(where,range,{Char}) do
| |
| 1039 | if(v.Name ~= 'SHYIME')then | |
| 1040 | if(v.Parent and v.Parent:FindFirstChildOfClass'Humanoid')then | |
| 1041 | DealDamage(v.Parent,minDam,maxDam,Knock,Type,critChance,critMult) | |
| 1042 | end | |
| 1043 | end | |
| 1044 | end | |
| 1045 | end | |
| 1046 | ||
| 1047 | function AOEKill(where,range) | |
| 1048 | for _,v in next, getRegion(where,range,{Char,Effects}) do
| |
| 1049 | local succ,alive = pcall(function() return v.Parent:FindFirstChildOfClass'Humanoid'.Health > 0 end) | |
| 1050 | if(v.Name ~= 'SHYIME')then | |
| 1051 | if(v.Parent and alive == true)then | |
| 1052 | coroutine.wrap(Kill)(v.Parent) | |
| 1053 | end | |
| 1054 | end | |
| 1055 | end | |
| 1056 | end | |
| 1057 | ||
| 1058 | function AOEHeal(where,range,amount) | |
| 1059 | local healed = {}
| |
| 1060 | for _,v in next, getRegion(where,range,{Char}) do
| |
| 1061 | local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' or nil) | |
| 1062 | if(hum and not healed[hum])then | |
| 1063 | hum.Health = hum.Health + amount | |
| 1064 | if(v.Parent:FindFirstChild'Head' and hum.Health > 0)then | |
| 1065 | ShowDamage((v.Parent.Head.CFrame * CF.N(0, 0, (v.Parent.Head.Size.Z / 2)).p+V3.N(0,1.5,0)), "+"..amount, 1.5, BrickColor.new'Lime green'.Color) | |
| 1066 | end | |
| 1067 | end | |
| 1068 | end | |
| 1069 | end | |
| 1070 | ||
| 1071 | ||
| 1072 | --// Attack Functions \\-- | |
| 1073 | ||
| 1074 | ||
| 1075 | function Slash() | |
| 1076 | Attack = true | |
| 1077 | NeutralAnims = false | |
| 1078 | local sound = Sound(Knife,145080998,1,5,false,true,false) | |
| 1079 | for i = 0, 2, 0.1 do | |
| 1080 | swait() | |
| 1081 | local Alpha = .2 | |
| 1082 | RJ.C0 = clerp(RJ.C0,CFrame.new(0.0343287587, 0.00629056804, 0.0572580174, 0.943793893, 0.00207689893, 0.330528289, 1.0000764e-06, 0.99998033, -0.00628630351, -0.330534875, 0.00593330665, 0.943775296),Alpha) | |
| 1083 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496478021, -0.990818381, 0.021652732, 0.999878168, 0, 0.0156089365, -9.80779296e-05, 0.99998033, 0.00628268253, -0.0156086385, -0.00628344761, 0.999858379),Alpha) | |
| 1084 | RH.C0 = clerp(RH.C0,CFrame.new(0.498511612, -0.990985274, 0.0154910646, 0.999878168, 0, 0.0156089365, -9.80779296e-05, 0.99998033, 0.00628268253, -0.0156086385, -0.00628344761, 0.999858379),Alpha) | |
| 1085 | LS.C0 = clerp(LS.C0,CFrame.new(-1.32692134, 0.474511296, -0.0055731535, 0.934981823, 0.354351997, 0.0156129003, -0.354479939, 0.93504262, 0.00628374517, -0.0123721063, -0.0114096552, 0.999858379),Alpha) | |
| 1086 | RS.C0 = clerp(RS.C0,CFrame.new(1.12629449, 0.369358033, -0.486052871, 0.490151912, 0.65154773, 0.57899636, 0.721657813, 0.0691910982, -0.688783586, -0.488836735, 0.755445719, -0.436280251),Alpha) | |
| 1087 | NK.C0 = clerp(NK.C0,CFrame.new(-0.0118216109, 1.49854016, -0.0795068145, 0.943793833, 0.0190048125, -0.329988182, 0.00207654224, 0.997985244, 0.0634154305, 0.330528468, -0.0605363287, 0.94185257),Alpha) | |
| 1088 | HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha) | |
| 1089 | end | |
| 1090 | KTrail.Enabled = true | |
| 1091 | sound:Play() | |
| 1092 | for i = 0, 2.5, 0.1 do | |
| 1093 | swait() | |
| 1094 | AOEDamage(Knife.CFrame.p,1,15,30,0,"Normal",0,1) | |
| 1095 | local Alpha = .25 | |
| 1096 | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.0352100767, 0.00629066909, -0.0097481478, 0.817972422, -0.00361463916, -0.575246274, -1.74103582e-06, 0.99998033, -0.00628598873, 0.575257719, 0.00514276745, 0.817956269),Alpha) | |
| 1097 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496478021, -0.990818381, 0.0216572341, 0.999878287, 0, 0.015610218, -9.80866607e-05, 0.99998033, 0.00628274865, -0.0156098902, -0.00628351374, 0.999858499),Alpha) | |
| 1098 | RH.C0 = clerp(RH.C0,CFrame.new(0.498511702, -0.990985274, 0.0154905058, 0.999878287, 0, 0.015610218, -9.80866607e-05, 0.99998033, 0.00628274865, -0.0156098902, -0.00628351374, 0.999858499),Alpha) | |
| 1099 | LS.C0 = clerp(LS.C0,CFrame.new(-1.32694602, 0.474510223, -0.00555660389, 0.934981823, 0.354351729, 0.0156157613, -0.354479671, 0.935042739, 0.00628153514, -0.012375474, -0.0114085823, 0.999858379),Alpha) | |
| 1100 | RS.C0 = clerp(RS.C0,CFrame.new(1.23906493, 0.406229913, 0.00231830776, 0.49015066, -0.849889755, 0.193494052, 0.721655607, 0.520183682, 0.456752002, -0.488841236, -0.0842411816, 0.868295968),Alpha) | |
| 1101 | NK.C0 = clerp(NK.C0,CFrame.new(0.0315471888, 1.49887729, -0.0257819965, 0.817972481, -0.0330747738, 0.574305832, -0.00361499586, 0.998030663, 0.0626262054, -0.575246155, -0.0533026271, 0.81624186),Alpha) | |
| 1102 | HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha) | |
| 1103 | end | |
| 1104 | KTrail.Enabled = false | |
| 1105 | Attack = false | |
| 1106 | NeutralAnims = true | |
| 1107 | end | |
| 1108 | ||
| 1109 | Mouse.Button1Down:connect(function() | |
| 1110 | if(Attack)then return end | |
| 1111 | Slash() | |
| 1112 | end) | |
| 1113 | ||
| 1114 | Mouse.KeyDown:connect(function(k) | |
| 1115 | if(Attack)then return end | |
| 1116 | if(k == 'z')then AOEKill(Root.CFrame.p,25) end -- TODO: Animation and effects | |
| 1117 | if(k == 'q')then WalkSpeed = (WalkSpeed == 8 and 48 or 8) end | |
| 1118 | end) | |
| 1119 | ||
| 1120 | ||
| 1121 | function Refuse() | |
| 1122 | Attack = true | |
| 1123 | warn("B u t i t r e f u s e d.")
| |
| 1124 | local oMH = MaxHealth | |
| 1125 | MaxHealth = "inf" | |
| 1126 | Hum.MaxHealth = "inf" | |
| 1127 | Hum.Health = "inf" | |
| 1128 | Char.Parent = nil | |
| 1129 | Hum:destroy() | |
| 1130 | if(not _G.RefusedAnimation)then | |
| 1131 | _G.RefusedAnimation = true | |
| 1132 | - | local sound = Sound(Knife,615910787,1,5,false,true,false) |
| 1132 | + | |
| 1133 | while Part.Parent~=nil do | |
| 1134 | wait(2) | |
| 1135 | for i=0,1,0.2 do | |
| 1136 | wait() | |
| 1137 | m.Scale = Vector3.new(.9,.9-.8*i,.5) | |
| 1138 | end | |
| 1139 | for i=0,1,0.2 do | |
| 1140 | wait() | |
| 1141 | m.Scale = Vector3.new(.9,.9+.8*i,.5) | |
| 1142 | end | |
| 1143 | end | |
| 1144 | end),leye,weld) | |
| 1145 | ||
| 1146 | ||
| 1147 | wait(1) | |
| 1148 | char.Head.face:Destroy() | |
| 1149 | ||
| 1150 | local Soul; | |
| 1151 | function Soul(where,decalId) | |
| 1152 | local destroy = false | |
| 1153 | local soul = NewInstance("Part",workspace)
| |
| 1154 | soul.Name = "Soul" | |
| 1155 | soul.Transparency=1 | |
| 1156 | soul.Size = V3.N(2,2,.05) | |
| 1157 | soul.Anchored=true | |
| 1158 | soul.CanCollide=false | |
| 1159 | soul.CFrame = where | |
| 1160 | local heartF = NewInstance("Decal",soul,{Face=Enum.NormalId.Front,Texture="rbxassetid://"..decalId})
| |
| 1161 | local heartB = NewInstance("Decal",soul,{Face=Enum.NormalId.Back,Texture="rbxassetid://"..decalId})
| |
| 1162 | return soul,heartF,heartB | |
| 1163 | end | |
| 1164 | local owo = Root.CFrame | |
| 1165 | local s,f,b = Soul(owo,1569347904) | |
| 1166 | swait(60) | |
| 1167 | local snd = Sound(s,862552636,1,5,false,false,false) | |
| 1168 | snd:Play() | |
| 1169 | f.Texture = "rbxassetid://1569348344" | |
| 1170 | b.Texture = "rbxassetid://1569348344" | |
| 1171 | swait(15) | |
| 1172 | snd:Stop() | |
| 1173 | swait(60) | |
| 1174 | print'lol' | |
| 1175 | for i = 0, 6, .1 do | |
| 1176 | swait() | |
| 1177 | s.CFrame = owo * CF.N(M.RNG(-50,50)/100,M.RNG(-50,50)/100,M.RNG(-50,50)/100) | |
| 1178 | end | |
| 1179 | local snd = Sound(s,862552636,1,5,false,false,false) | |
| 1180 | snd:Play() | |
| 1181 | s.CFrame = owo | |
| 1182 | f.Texture = "rbxassetid://1569347904" | |
| 1183 | b.Texture = "rbxassetid://1569347904" | |
| 1184 | swait(15) | |
| 1185 | snd:Stop() | |
| 1186 | swait(60) | |
| 1187 | ||
| 1188 | s:destroy() | |
| 1189 | end | |
| 1190 | ||
| 1191 | RJ.Parent = Char | |
| 1192 | LS.Parent = Char | |
| 1193 | RS.Parent = Char | |
| 1194 | LH.Parent = Char | |
| 1195 | RH.Parent = Char | |
| 1196 | NK.Parent = Char | |
| 1197 | ||
| 1198 | LArm.Parent = Char | |
| 1199 | RArm.Parent = Char | |
| 1200 | LLeg.Parent = Char | |
| 1201 | LArm.Parent = Char | |
| 1202 | Root.Parent = Char | |
| 1203 | Torso.Parent = Char | |
| 1204 | - | local leye = Instance.new("Part", char)
|
| 1204 | + | |
| 1205 | - | leye.CanCollide = false |
| 1205 | + | |
| 1206 | - | leye.BrickColor = BrickColor.new(righteyebrickcolor) |
| 1206 | + | |
| 1207 | - | leye.Material = "Neon" |
| 1207 | + | |
| 1208 | - | leye.Size = Vector3.new(.15,.15,.15) |
| 1208 | + | |
| 1209 | - | weld(leye, char.Head, CFrame.new(-0.15,-0.2,0.55), CFrame.new(1,0,0)) |
| 1209 | + | |
| 1210 | - | local m = Instance.new("SpecialMesh", leye)
|
| 1210 | + | |
| 1211 | - | m.MeshType = "Sphere" |
| 1211 | + | |
| 1212 | - | m.Scale = Vector3.new(0.9,0.9,0.9) |
| 1212 | + | |
| 1213 | - | leye.Locked = true |
| 1213 | + | |
| 1214 | - | leye.Name = "le" |
| 1214 | + | |
| 1215 | for _,v in next, Char:children() do | |
| 1216 | if(v.Name == 'ShadowFace')then v:destroy() end | |
| 1217 | end | |
| 1218 | LEye = Part(Char,C3.N(1,0,0),Enum.Material.Neon,V3.N(.15,.25,.2),CF.N(),false,false) | |
| 1219 | LEyeM = Mesh(LEye,Enum.MeshType.Sphere,"","",V3.N(1,1,1),V3.N()) | |
| 1220 | LEyeW = NewInstance("Weld",LEye,{Part0=Head,Part1=LEye,C0=CF.N(-.2,.2,-.49)})
| |
| 1221 | for i = 1, 35 do | |
| 1222 | local FACE = Part(Char,C3.N(0,0,0),Enum.Material.Neon,V3.N(1.01,.5,1.01),CF.N(),false,false) | |
| 1223 | FACE.Transparency = 0+(i-1)/35.2 | |
| 1224 | FACE.Name = 'ShadowFace' | |
| 1225 | Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
| |
| 1226 | NewInstance("Weld",Head,{Part0=Head,Part1=FACE,C0=CF.N(0,.35-(i-1)/75,0)})
| |
| 1227 | --CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0))
| |
| 1228 | end | |
| 1229 | Hum = NewInstance("Humanoid",Char,{DisplayDistanceType='None'})
| |
| 1230 | ConnectHum() | |
| 1231 | MaxHealth = oMH | |
| 1232 | Hum.MaxHealth = MaxHealth | |
| 1233 | Hum.Health = MaxHealth | |
| 1234 | swait(5) | |
| 1235 | Char.Parent = workspace | |
| 1236 | ||
| 1237 | Attack = false | |
| 1238 | end | |
| 1239 | ||
| 1240 | function ConnectHum() | |
| 1241 | Hum.Died:connect(Refuse) | |
| 1242 | end | |
| 1243 | ConnectHum() | |
| 1244 | ||
| 1245 | ||
| 1246 | --// Wrap it all up \\-- | |
| 1247 | while true do | |
| 1248 | swait() | |
| 1249 | Sine = Sine + Change | |
| 1250 | if(not Music)then | |
| 1251 | Music = Sound(Torso,MusicID,1,3,true,false,true) | |
| 1252 | Music.Name = 'Music' | |
| 1253 | end | |
| 1254 | Music.Pitch = 1 | |
| 1255 | Music.Volume = 5 | |
| 1256 | Music.SoundId = "rbxassetid://"..MusicID | |
| 1257 | Music.Parent = Torso | |
| 1258 | Music:Resume() | |
| 1259 | local hitfloor,posfloor = workspace:FindPartOnRay(Ray.new(Root.CFrame.p,((CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector).unit * 4), Char) | |
| 1260 | local Walking = (math.abs(Root.Velocity.x) > 1 or math.abs(Root.Velocity.z) > 1) | |
| 1261 | local State = (Hum.PlatformStand and 'Paralyzed' or Hum.Sit and 'Sit' or not hitfloor and Root.Velocity.y < -1 and "Fall" or not hitfloor and Root.Velocity.y > 1 and "Jump" or hitfloor and Walking and "Walk" or hitfloor and "Idle") | |
| 1262 | if(not Effects or not Effects.Parent)then | |
| 1263 | Effects = IN("Model",Char)
| |
| 1264 | Effects.Name = "Effects" | |
| 1265 | end | |
| 1266 | Hum.WalkSpeed = WalkSpeed | |
| 1267 | if(State == 'Walk')then | |
| 1268 | if(Hum.WalkSpeed >= 24)then | |
| 1269 | local wsVal = 22 / (Hum.WalkSpeed/16) | |
| 1270 | local Alpha = math.min(.1 * (Hum.WalkSpeed/16),1) | |
| 1271 | Change = 2 | |
| 1272 | RH.C1 = RH.C1:lerp(CF.N(0,1,0)*CF.N(0,0-.2*M.C(Sine/wsVal),0+.4*M.C(Sine/wsVal))*CF.A(M.R(25+45*M.C(Sine/wsVal))+-M.S(Sine/wsVal),0,0),Alpha) | |
| 1273 | LH.C1 = LH.C1:lerp(CF.N(0,1,0)*CF.N(0,0+.2*M.C(Sine/wsVal),0-.4*M.C(Sine/wsVal))*CF.A(M.R(25-45*M.C(Sine/wsVal))+M.S(Sine/wsVal),0,0),Alpha) | |
| 1274 | else | |
| 1275 | Change = .9 | |
| 1276 | local wsVal = 8 / (Hum.WalkSpeed/8) | |
| 1277 | local Alpha = math.min(.2 * (Hum.WalkSpeed/8),1) | |
| 1278 | LH.C1 = LH.C1:lerp(CF.N(0,1-.2*M.C(Sine/wsVal)/2,.4*M.C(Sine/wsVal)/2)*CF.A(M.R(15-2*M.C(Sine/wsVal))-M.S(Sine/wsVal)/2.5,0,0)*CF.A(M.R(0-3*M.C(Sine/wsVal)),0,0),Alpha) | |
| 1279 | RH.C1 = RH.C1:lerp(CF.N(0,1+.2*M.C(Sine/wsVal)/2,-.4*M.C(Sine/wsVal)/2)*CF.A(M.R(15+2*M.C(Sine/wsVal))+M.S(Sine/wsVal)/2.5,0,0)*CF.A(M.R(0+3*M.C(Sine/wsVal)),0,0),Alpha) | |
| 1280 | end | |
| 1281 | else | |
| 1282 | RH.C1 = RH.C1:lerp(CF.N(0,1,0),.1) | |
| 1283 | LH.C1 = LH.C1:lerp(CF.N(0,1,0),.1) | |
| 1284 | end | |
| 1285 | for _,v in next, Char:children() do | |
| 1286 | if(v:IsA'Accessory')then | |
| 1287 | v:destroy() | |
| 1288 | elseif(v:IsA'Shirt')then | |
| 1289 | v.ShirtTemplate = "rbxassetid://939784309" | |
| 1290 | elseif(v:IsA'Pants')then | |
| 1291 | v.PantsTemplate = "rbxassetid://127790257" | |
| 1292 | elseif(v:IsA'CharacterMesh')then | |
| 1293 | v:destroy() | |
| 1294 | elseif(v:FindFirstChildOfClass'ShirtGraphic')then | |
| 1295 | v:FindFirstChildOfClass'ShirtGraphic':destroy() | |
| 1296 | end | |
| 1297 | end | |
| 1298 | local face = Head:FindFirstChild'face' | |
| 1299 | if(not face)then | |
| 1300 | NewInstance("Decal",Head,{Name='face',Face=Enum.NormalId.Front,Texture="rbxassetid://743116128"})
| |
| 1301 | else | |
| 1302 | face.Texture = "rbxassetid://743116128" | |
| 1303 | end | |
| 1304 | RArm.BrickColor = BrickColor.new'Pastel brown' | |
| 1305 | LArm.BrickColor = BrickColor.new'Pastel brown' | |
| 1306 | RLeg.BrickColor = BrickColor.new'Pastel brown' | |
| 1307 | LLeg.BrickColor = BrickColor.new'Pastel brown' | |
| 1308 | Torso.BrickColor = BrickColor.new'Pastel brown' | |
| 1309 | Head.BrickColor = BrickColor.new'Pastel brown' | |
| 1310 | Hum.Name = 'Chara' | |
| 1311 | if(Hum.MaxHealth ~= MaxHealth)then | |
| 1312 | - | LEye = Part(Char,C3.N(0,1,0),Enum.Material.Neon,V3.N(.15,.25,.2),CF.N(),false,false) |
| 1312 | + | |
| 1313 | end | |
| 1314 | Hum.DisplayDistanceType='None' | |
| 1315 | if(NeutralAnims)then | |
| 1316 | if(State == 'Idle')then | |
| 1317 | Change = 1 | |
| 1318 | local Alpha = .1 | |
| 1319 | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.0999571308, 0+.05*M.C(Sine/16), -0.237876296, 0.857335567, -0.00323621999, -0.514731407, 0, 0.99998033, -0.00628707698, 0.51474154, 0.00539013464, 0.85731858),Alpha) | |
| 1320 | LH.C0 = clerp(LH.C0,CFrame.new(-0.536091685, -0.991042495-.05*M.C(Sine/16), -0.0134909991, 0.849195242, 0, 0.528063774, -0.00331997755, 0.99998033, 0.00533895614, -0.528053343, -0.00628707698, 0.849178433),Alpha) | |
| 1321 | RH.C0 = clerp(RH.C0,CFrame.new(0.529067397, -0.991597891-.05*M.C(Sine/16), -0.0818087086, 0.849195242, 0, 0.528063774, -0.00331997755, 0.99998033, 0.00533895614, -0.528053343, -0.00628707698, 0.849178433),Alpha) | |
| 1322 | LS.C0 = clerp(LS.C0,CFrame.new(-1.32175505, 0.156236127+.15*M.C(Sine/16), 0.233877867, 0.877554953, -0.456876248, 0.145469457, 0.259513229, 0.707695842, 0.657129884, -0.403175086, -0.538916171, 0.739607573),Alpha) | |
| 1323 | RS.C0 = clerp(RS.C0,CFrame.new(1.2516855, 0.604915917+.15*M.C(Sine/16), -0.0189059302, 0.915104508, -0.287113011, -0.283108115, 0.301054537, 0.953587949, 0.00603589695, 0.268235415, -0.0907544345, 0.959069014),Alpha) | |
| 1324 | NK.C0 = clerp(NK.C0,CFrame.new(1.79447234e-05, 1.49895597, -0.0143749639, 0.769539058, -0.360377938, 0.527197778, 0.387706369, 0.919646919, 0.0627188534, -0.507438183, 0.156133309, 0.847424924),Alpha) | |
| 1325 | HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha) | |
| 1326 | -- idle | |
| 1327 | elseif(State == 'Walk')then | |
| 1328 | if(Hum.WalkSpeed >= 24)then | |
| 1329 | local wsVal = 22 / (Hum.WalkSpeed/16) | |
| 1330 | local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1) | |
| 1331 | RJ.C0 = RJ.C0:lerp(CF.N(0,0-.15*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(-15),M.R(0-15*M.S(Sine/wsVal)/2),0),Alpha) | |
| 1332 | LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,0-.3*M.S(Sine/wsVal))*CF.A(M.R(0+45*M.S(Sine/wsVal)),0,M.R(-5+15*M.S(Sine/wsVal))),Alpha) | |
| 1333 | RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,0+.3*M.S(Sine/wsVal))*CF.A(M.R(0-45*M.S(Sine/wsVal)),0,M.R(5+15*M.S(Sine/wsVal))),Alpha) | |
| 1334 | NK.C0 = NK.C0:lerp(NKC0*CF.A(M.R(15),0,0),Alpha) | |
| 1335 | LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0+.15*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(15),0,0),Alpha) | |
| 1336 | RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0+.15*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(15),0,0),Alpha) | |
| 1337 | HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha) | |
| 1338 | else | |
| 1339 | local wsVal = 8 / (Hum.WalkSpeed/8) | |
| 1340 | local Alpha = math.min(.2 * (Hum.WalkSpeed/8),1) | |
| 1341 | RJ.C0 = RJ.C0:lerp(CF.N(0,0-.05*M.C(Sine/(wsVal/2)),0)*CF.A(0,M.R(0-5*M.S(Sine/wsVal)/2),0),Alpha) | |
| 1342 | LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,0+.3*M.S(Sine/wsVal))*CF.A(M.R(0-25*M.S(Sine/wsVal)),0,M.R(5-5*M.S(Sine/wsVal))),Alpha) | |
| 1343 | RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,0-.3*M.S(Sine/wsVal))*CF.A(M.R(0+25*M.S(Sine/wsVal)),0,M.R(-5-5*M.S(Sine/wsVal))),Alpha) | |
| 1344 | NK.C0 = NK.C0:lerp(NKC0,Alpha) | |
| 1345 | LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0+.05*M.C(Sine/(wsVal/2)),0),Alpha) | |
| 1346 | RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0+.05*M.C(Sine/(wsVal/2)),0),Alpha) | |
| 1347 | HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha) | |
| 1348 | end | |
| 1349 | elseif(State == 'Jump' or State == 'Fall')then | |
| 1350 | if(Walking)then | |
| 1351 | local Alpha = .2 | |
| 1352 | RJ.C0 = clerp(RJ.C0,RJC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(65)),M.R(65)),0,0),Alpha) | |
| 1353 | LH.C0 = clerp(LH.C0,CFrame.new(-0.497912645, -1.0987643, -0.0683324337, 0.999878228, 0.00860835519, 0.0130246133, -0.00010142161, 0.837816596, -0.545952022, -0.015611981, 0.545884132, 0.837715328),Alpha) | |
| 1354 | RH.C0 = clerp(RH.C0,CFrame.new(0.499978393, -1.16382337, 0.109293163, 0.999878228, -0.0120433727, 0.00993486121, -0.00010142161, 0.631323814, 0.775519371, -0.015611981, -0.775425911, 0.631245613),Alpha) | |
| 1355 | LS.C0 = clerp(LS.C0,CFrame.new(-1.55211556, 0.576563478, -0.00269976072, 0.976067662, 0.216906726, 0.0156116467, -0.217024669, 0.976145923, 0.00628317893, -0.0138763804, -0.00952091813, 0.999858499),Alpha) | |
| 1356 | RS.C0 = clerp(RS.C0,CFrame.new(1.50182188, 0.636661649, 0.00632623257, 0.977592707, -0.209926367, 0.0156121543, 0.209851891, 0.977713108, 0.00628198683, -0.016582964, -0.00286500831, 0.999858439),Alpha) | |
| 1357 | NK.C0 = clerp(NK.C0,CFrame.new(1.14440072e-05, 1.49924362, -0.0143961608, 1.00000024, -5.82076609e-11, 0, 1.23691279e-10, 0.997964919, 0.0637660474, 0, -0.0637660623, 0.997965038),Alpha) | |
| 1358 | HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha) | |
| 1359 | else | |
| 1360 | local Alpha = .2 | |
| 1361 | RJ.C0 = clerp(RJ.C0,RJC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(65)),M.R(65)),0,0),Alpha) | |
| 1362 | LH.C0 = clerp(LH.C0,CFrame.new(-0.504374504, -0.291219354, -0.487436086, 0.999878228, -0.00438931212, 0.0149825988, -0.00010142161, 0.957819223, 0.287371844, -0.015611981, -0.287338346, 0.957701981),Alpha) | |
| 1363 | RH.C0 = clerp(RH.C0,CFrame.new(0.453094482, -0.871358454, 0.0898642987, 0.985589385, -0.168456957, 0.0153662469, 0.162863791, 0.969548643, 0.182895929, -0.0457084104, -0.177757636, 0.983012319),Alpha) | |
| 1364 | LS.C0 = clerp(LS.C0,CFrame.new(-1.55211556, 0.576563478, -0.00269976072, 0.976067662, 0.216906726, 0.0156116467, -0.217024669, 0.976145923, 0.00628317893, -0.0138763804, -0.00952091813, 0.999858499),Alpha) | |
| 1365 | RS.C0 = clerp(RS.C0,CFrame.new(1.50182188, 0.636661649, 0.00632623257, 0.977592707, -0.209926367, 0.0156121543, 0.209851891, 0.977713108, 0.00628198683, -0.016582964, -0.00286500831, 0.999858439),Alpha) | |
| 1366 | NK.C0 = clerp(NK.C0,CFrame.new(1.14440072e-05, 1.49924362, -0.0143961608, 1.00000024, -5.82076609e-11, 0, 1.23691279e-10, 0.997964919, 0.0637660474, 0, -0.0637660623, 0.997965038),Alpha) | |
| 1367 | HW.C0 = HW.C0:lerp(CF.N(0,-1,-1)*CF.A(M.R(-90),0,0),Alpha) | |
| 1368 | end | |
| 1369 | elseif(State == 'Paralyzed')then | |
| 1370 | -- paralyzed | |
| 1371 | elseif(State == 'Sit')then | |
| 1372 | -- sit | |
| 1373 | end | |
| 1374 | end | |
| 1375 | end |