SHOW:
|
|
- or go back to the newest paste.
| 1 | Sound0 = Instance.new("Sound")
| |
| 2 | Sound0.Volume = 10 | |
| 3 | Sound0.Parent = game.Players.LocalPlayer.Character.Head | |
| 4 | Sound0.SoundId = "rbxassetid://SOUNDID" | |
| 5 | Sound0.Looped = true | |
| 6 | Sound0:Play() | |
| 7 | ||
| 8 | CV="White" | |
| 9 | ||
| 10 | p = game.Players.LocalPlayer | |
| 11 | char = p.Character | |
| 12 | local txt = Instance.new("BillboardGui", char)
| |
| 13 | txt.Adornee = char .Head | |
| 14 | txt.Name = "_status" | |
| 15 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
| 16 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
| 17 | local text = Instance.new("TextLabel", txt)
| |
| 18 | text.Size = UDim2.new(10, 0, 7, 0) | |
| 19 | text.FontSize = "Size24" | |
| 20 | text.TextScaled = true | |
| 21 | text.TextTransparency = 0 | |
| 22 | text.BackgroundTransparency = 1 | |
| 23 | text.TextTransparency = 0 | |
| 24 | text.TextStrokeTransparency = 0 | |
| 25 | text.Font = "Arcade" | |
| 26 | text.TextStrokeColor3 = Color3.fromRGB(255,0,255) | |
| 27 | ||
| 28 | v=Instance.new("Part")
| |
| 29 | v.Name = "ColorBrick" | |
| 30 | v.Parent=p.Character | |
| 31 | v.FormFactor="Symmetric" | |
| 32 | v.Anchored=true | |
| 33 | v.CanCollide=false | |
| 34 | v.BottomSurface="Smooth" | |
| 35 | v.TopSurface="Smooth" | |
| 36 | v.Size=Vector3.new(10,5,3) | |
| 37 | v.Transparency=1 | |
| 38 | v.CFrame=char.Torso.CFrame | |
| 39 | v.BrickColor=BrickColor.new(CV) | |
| 40 | v.Transparency=1 | |
| 41 | text.TextColor3 = Color3.fromRGB(255, 0, 0) | |
| 42 | v.Shape="Block" | |
| 43 | - | text.Text = "Edit by boss_kiddos." |
| 43 | + | text.Text = "Edit by Erasedcat." |
| 44 | coroutine.wrap(function() | |
| 45 | while wait() do | |
| 46 | wait(3) | |
| 47 | text.Text = "" | |
| 48 | end | |
| 49 | end)() | |
| 50 | p = game.Players.LocalPlayer | |
| 51 | ||
| 52 | ||
| 53 | ||
| 54 | char = p.Character | |
| 55 | torso = char.Torso | |
| 56 | neck = char.Torso.Neck | |
| 57 | warn("Edited by boss_kiddos and made by Theamazingnater.")
| |
| 58 | wait(2) | |
| 59 | -- made by Theamazingnater, And edit by boss_kiddos. | |
| 60 | plr = game.Players.LocalPlayer | |
| 61 | char = plr.Character | |
| 62 | warn("BEGONE TH0T ;C")
| |
| 63 | wait(2) | |
| 64 | local PlayerSize = 1 | |
| 65 | local FT, RA, LA, RL, LL = Instance.new("SpecialMesh"), Instance.new("SpecialMesh"), Instance.new("SpecialMesh"), Instance.new("SpecialMesh"), Instance.new("SpecialMesh")
| |
| 66 | FT.MeshId, FT.Scale = "rbxasset://fonts/torso.mesh", Vector3.new(PlayerSize, PlayerSize, PlayerSize) | |
| 67 | RA.MeshId, RA.Scale = "rbxasset://fonts/rightarm.mesh", Vector3.new(PlayerSize, PlayerSize, PlayerSize) | |
| 68 | LA.MeshId, LA.Scale = "rbxasset://fonts/leftarm.mesh", Vector3.new(PlayerSize, PlayerSize, PlayerSize) | |
| 69 | RL.MeshId, RL.Scale = "rbxasset://fonts/rightleg.mesh", Vector3.new(PlayerSize, PlayerSize, PlayerSize) | |
| 70 | LL.MeshId, LL.Scale = "rbxasset://fonts/leftleg.mesh", Vector3.new(PlayerSize, PlayerSize, PlayerSize) | |
| 71 | function swait(num) | |
| 72 | if num == 0 or num == nil then | |
| 73 | game:service("RunService").Stepped:wait(0)
| |
| 74 | else | |
| 75 | for i = 0, num do | |
| 76 | game:service("RunService").Stepped:wait(0)
| |
| 77 | end | |
| 78 | end | |
| 79 | end | |
| 80 | local sound = Instance.new("Sound",char)
| |
| 81 | sound.SoundId = "rbxassetid://1209871551" | |
| 82 | sound.Volume = 4 | |
| 83 | sound:Play() | |
| 84 | for i = 1,200 do | |
| 85 | swait() | |
| 86 | ||
| 87 | FT.Parent = char.Torso | |
| 88 | RA.Parent = char["Right Arm"] | |
| 89 | LA.Parent = char["Left Arm"] | |
| 90 | RL.Parent = char["Right Leg"] | |
| 91 | LL.Parent = char["Left Leg"] | |
| 92 | for _, v in next, char:GetDescendants() do | |
| 93 | if v:IsA("DataModelMesh") then
| |
| 94 | v.Offset = Vector3.new(math.random(-45, 45) / 100, math.random(-45, 45) / 100, math.random(-45, 45) / 100) | |
| 95 | end | |
| 96 | end | |
| 97 | end | |
| 98 | FT.Parent = nil | |
| 99 | RA.Parent = nil | |
| 100 | LA.Parent = nil | |
| 101 | RL.Parent = nil | |
| 102 | LL.Parent = nil | |
| 103 | for i,v in pairs(char:GetChildren()) do | |
| 104 | if v.ClassName == "CharacterMesh" then | |
| 105 | v:Destroy() | |
| 106 | end | |
| 107 | end | |
| 108 | bdycolors = char["Body Colors"] | |
| 109 | - | bdycolors.HeadColor = BrickColor.new("Pastel brown")
|
| 109 | + | bdycolors.HeadColor = BrickColor.new("Bright orange")
|
| 110 | bdycolors.RightArmColor = BrickColor.new("Pastel brown")
| |
| 111 | bdycolors.RightLegColor = BrickColor.new("Pastel brown")
| |
| 112 | bdycolors.LeftLegColor = BrickColor.new("Pastel brown")
| |
| 113 | bdycolors.TorsoColor = BrickColor.new("Pastel brown")
| |
| 114 | shirt = Instance.new("Shirt", char)
| |
| 115 | shirt.Name = "Shirt" | |
| 116 | pants = Instance.new("Pants", char)
| |
| 117 | pants.Name = "Pants" | |
| 118 | - | char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=1475158322" |
| 118 | + | char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=732890040" |
| 119 | - | char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=1476414054" |
| 119 | + | char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=379753257" |
| 120 | char.Head.face.Texture = "http://www.roblox.com/asset/?id=202183814" | |
| 121 | function hat() | |
| 122 | local hat2 = Instance.new("Part",char)
| |
| 123 | hat2.Size = Vector3.new(3.6, 0.2, 2) | |
| 124 | hat2.CanCollide = false | |
| 125 | local hatmesh = Instance.new("SpecialMesh",hat2)
| |
| 126 | hatmesh.MeshId = "http://www.roblox.com/asset/?id=1374148" | |
| 127 | hatmesh.TextureId = "http://www.roblox.com/asset/?id=413143035" | |
| 128 | - | hat2.Size = Vector3.new(1.6, 2.2, 2) |
| 128 | + | |
| 129 | local hatd = Instance.new("Decal",hat2)
| |
| 130 | hatd.Texture = "http://www.roblox.com/asset/?id=0" | |
| 131 | - | hatmesh.MeshId = "http://www.roblox.com/asset/?id=90817510" |
| 131 | + | |
| 132 | - | hatmesh.TextureId = "http://www.roblox.com/asset/?id=1469429662" |
| 132 | + | |
| 133 | hat2.CFrame = char.Torso.CFrame | |
| 134 | end | |
| 135 | local hatweld = Instance.new("Weld",hat2)
| |
| 136 | hatweld.Part0 = hat2 | |
| 137 | hatweld.Part1 = char.Head | |
| 138 | hatweld.C0 = CFrame.new(-0.0600004196, -0.680000305, -0.230271339, 0.999999523, 7.81437848e-09, 1.1920929e-07, -7.9307938e-09, 1, 3.49245965e-10, 8.94069672e-08, 2.91038305e-10, 0.999999285) | |
| 139 | end | |
| 140 | hat() | |
| 141 | function Character() | |
| 142 | local right = Instance.new("CharacterMesh",char)
| |
| 143 | right.MeshId = "27111882" | |
| 144 | right.BodyPart = Enum.BodyPart.RightLeg | |
| 145 | local torso = Instance.new("CharacterMesh",char)
| |
| 146 | torso.MeshId = "27111894" | |
| 147 | torso.BodyPart = Enum.BodyPart.Torso | |
| 148 | local lefta = Instance.new("CharacterMesh",char)
| |
| 149 | lefta.MeshId = "27111419" | |
| 150 | lefta.BodyPart = Enum.BodyPart.LeftArm | |
| 151 | local leftl = Instance.new("CharacterMesh",char)
| |
| 152 | leftl.MeshId = "27111857" | |
| 153 | leftl.BodyPart = Enum.BodyPart.LeftLeg | |
| 154 | local righta = Instance.new("CharacterMesh",char)
| |
| 155 | righta.MeshId = "27111864" | |
| 156 | righta.BodyPart = Enum.BodyPart.RightArm | |
| 157 | end | |
| 158 | Character() | |
| 159 | local part = Instance.new("Part",char)
| |
| 160 | part.Transparency = 1 | |
| 161 | part.Size = Vector3.new(5.92, 0.05, 5.95) | |
| 162 | part.CanCollide = false | |
| 163 | part.Name = "Pentagram" | |
| 164 | local surfacegui = Instance.new("SurfaceGui",part)
| |
| 165 | surfacegui.Adornee = part | |
| 166 | surfacegui.Face = "Top" | |
| 167 | surfacegui.AlwaysOnTop = false | |
| 168 | local image = Instance.new("ImageLabel",surfacegui)
| |
| 169 | image.Size = UDim2.new(1.066, 0, 0.998, 0) | |
| 170 | image.Image = "rbxassetid://0" | |
| 171 | image.BackgroundTransparency = 1 | |
| 172 | local weld = Instance.new("Weld",part)
| |
| 173 | weld.Part0 = part | |
| 174 | weld.Part1 = char.HumanoidRootPart | |
| 175 | weld.C0 = CFrame.new(0.173749924, 2.49426961, -0.322625637, 1, 0, 0, 0, 0.999996066, 0, 0, 0, 1) | |
| 176 | coroutine.wrap(function() | |
| 177 | while true do | |
| 178 | wait(0.01) | |
| 179 | for i,v in pairs(char:GetChildren()) do | |
| 180 | if v.ClassName == "Hat" or v.ClassName == "Accessory" then | |
| 181 | v:Destroy() | |
| 182 | end | |
| 183 | end | |
| 184 | end | |
| 185 | end)() | |
| 186 | for _, v in next, char:GetDescendants() do | |
| 187 | if v:IsA("DataModelMesh") then
| |
| 188 | v.Offset = Vector3.new(0,0,0) | |
| 189 | end | |
| 190 | end | |
| 191 | kills = 0 | |
| 192 | local knife = Instance.new("Part",game.Players.LocalPlayer.Character)
| |
| 193 | knife.Name = "knifu" | |
| 194 | knife.CanCollide = false | |
| 195 | local knifemesh = Instance.new("FileMesh",knife)
| |
| 196 | knifemesh.MeshId = "http://www.roblox.com/asset/?id=0" | |
| 197 | knifemesh.TextureId = "http://www.roblox.com/asset/?ID=0" | |
| 198 | local weld = Instance.new("Weld",knife)
| |
| 199 | weld.Part0 = knife | |
| 200 | weld.Part1 = game.Players.LocalPlayer.Character["Right Arm"] | |
| 201 | weld.C0 = CFrame.new(0, -0.800003052, 0.999999046, 1, 0, 0, 0, 0, -1, 0, 0.999999523, 0) | |
| 202 | local plr = game:service'Players'.LocalPlayer | |
| 203 | local TrailAtt = Instance.new("Attachment",knife)
| |
| 204 | TrailAtt.Position = Vector3.new(0.02, 0.79, -0.285) | |
| 205 | local TrailAtt2 = Instance.new("Attachment",knife)
| |
| 206 | TrailAtt2.Position = Vector3.new(0.01, -0.54, -0.285) | |
| 207 | local trail = Instance.new("Trail",knife)
| |
| 208 | trail.Enabled = false | |
| 209 | trail.Color = ColorSequence.new(BrickColor.new("Crimson").Color)
| |
| 210 | trail.Attachment0 = TrailAtt | |
| 211 | trail.Attachment1 = TrailAtt2 | |
| 212 | trail.Lifetime = 0.1 | |
| 213 | local char = plr.Character | |
| 214 | local hum = char.Humanoid | |
| 215 | local ra = char["Right Arm"] | |
| 216 | local la= char["Left Arm"] | |
| 217 | local rl= char["Right Leg"] | |
| 218 | local ll = char["Left Leg"] | |
| 219 | local hed = char.Head | |
| 220 | local root = char.HumanoidRootPart | |
| 221 | local rootj = root.RootJoint | |
| 222 | local tors = char.Torso | |
| 223 | local mouse = plr:GetMouse() | |
| 224 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
| 225 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
| 226 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
| 227 | local maincolor = BrickColor.new("Pastel yellow")
| |
| 228 | ||
| 229 | function Ragdoll(dude) | |
| 230 | local humanoid = dude:FindFirstChildOfClass("Humanoid")
| |
| 231 | dude:BreakJoints() | |
| 232 | local isr15 = dude:findFirstChild("UpperTorso")
| |
| 233 | if isr15 then | |
| 234 | if humanoid.Parent:findFirstChild("HumanoidRootPart") then
| |
| 235 | humanoid.Parent.HumanoidRootPart.CanCollide = false | |
| 236 | end | |
| 237 | local function makeballlimb(attachone, attachtwo, upperang, lowang, twist) | |
| 238 | local constraint = Instance.new("BallSocketConstraint", humanoid.Parent)
| |
| 239 | constraint.Attachment0 = attachone | |
| 240 | constraint.Attachment1 = attachtwo | |
| 241 | constraint.LimitsEnabled = true | |
| 242 | constraint.TwistLimitsEnabled = true | |
| 243 | constraint.TwistLowerAngle = lowang | |
| 244 | constraint.TwistUpperAngle = upperang | |
| 245 | constraint.UpperAngle = twist | |
| 246 | end | |
| 247 | local function makehingelimb(attachone, attachtwo, upperang, lowang) | |
| 248 | local constraint = Instance.new("HingeConstraint", humanoid.Parent)
| |
| 249 | constraint.Attachment0 = attachone | |
| 250 | constraint.Attachment1 = attachtwo | |
| 251 | constraint.LimitsEnabled = true | |
| 252 | constraint.LowerAngle = lowang | |
| 253 | constraint.UpperAngle = upperang | |
| 254 | end | |
| 255 | for i,v in pairs(humanoid.Parent:GetChildren()) do --scan player | |
| 256 | if v.ClassName == "Accessory" then | |
| 257 | local findhandle = v:findFirstChild("Handle") --finding handle in accesorry
| |
| 258 | if findhandle then | |
| 259 | local attach = findhandle:findFirstChildOfClass("Attachment")
| |
| 260 | for q,w in pairs(humanoid.Parent:GetChildren()) do --scan player | |
| 261 | if w.Name == "UpperTorso" or w.Name == "Head" then | |
| 262 | attach1 = w:findFirstChild(attach.Name) --finding attachment in head/uppertorso | |
| 263 | end | |
| 264 | end | |
| 265 | if attach and attach1 then | |
| 266 | local constraint = Instance.new("HingeConstraint", humanoid.Parent) --making fake weld
| |
| 267 | constraint.Attachment0 = attach | |
| 268 | constraint.Attachment1 = attach1 | |
| 269 | constraint.LimitsEnabled = true | |
| 270 | constraint.LowerAngle = 0 | |
| 271 | constraint.UpperAngle = 0 | |
| 272 | end | |
| 273 | end | |
| 274 | end | |
| 275 | end | |
| 276 | if humanoid.Parent:findFirstChild("Head") and humanoid.Parent:findFirstChild("UpperTorso") then
| |
| 277 | local attachment = Instance.new("Attachment", humanoid.Parent.Head)
| |
| 278 | attachment.Position = Vector3.new(0, -0.5, 0) | |
| 279 | attachment.Name = "lol" | |
| 280 | attachment.Visible = false | |
| 281 | humanoid.Parent.UpperTorso.NeckAttachment.Visible = false | |
| 282 | humanoid.Parent.UpperTorso.NeckAttachment.Position = humanoid.Parent.UpperTorso.NeckAttachment.Position + Vector3.new(0,0,0) | |
| 283 | local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
| |
| 284 | ball.Attachment0 = humanoid.Parent.UpperTorso.NeckAttachment | |
| 285 | ball.Attachment1 = attachment | |
| 286 | ball.LimitsEnabled = true | |
| 287 | ball.TwistLimitsEnabled = true | |
| 288 | ball.UpperAngle = 40 | |
| 289 | ball.Restitution = 0.5 | |
| 290 | ball.TwistUpperAngle = 40 | |
| 291 | ball.TwistLowerAngle = -40 | |
| 292 | local collidepartofleftleg = Instance.new("Part", humanoid.Parent.UpperTorso)
| |
| 293 | collidepartofleftleg.Name = "Bone" | |
| 294 | collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7) | |
| 295 | collidepartofleftleg.Transparency = 1 | |
| 296 | collidepartofleftleg:BreakJoints() | |
| 297 | local weeld = Instance.new("Weld", collidepartofleftleg)
| |
| 298 | weeld.Part0 = collidepartofleftleg | |
| 299 | weeld.Part1 = humanoid.Parent["Head"] | |
| 300 | if humanoid.Parent.Head:findFirstChild("Neck") then
| |
| 301 | humanoid.Parent.Head.Neck:destroy() | |
| 302 | end | |
| 303 | if humanoid.Parent.Head:findFirstChild("face") then
| |
| 304 | humanoid.Parent.Head.face.Texture = "http://www.roblox.com/asset/?id=810245460" | |
| 305 | end | |
| 306 | end | |
| 307 | local LeftUpperLeg = humanoid.Parent:findFirstChild("LeftUpperLeg")
| |
| 308 | local LeftLowerLeg = humanoid.Parent:findFirstChild("LeftLowerLeg")
| |
| 309 | -- | |
| 310 | local RightUpperLeg = humanoid.Parent:findFirstChild("RightUpperLeg")
| |
| 311 | local RightLowerLeg = humanoid.Parent:findFirstChild("RightLowerLeg")
| |
| 312 | -- | |
| 313 | local RightUpperArm = humanoid.Parent:findFirstChild("RightUpperArm")
| |
| 314 | local RightLowerArm = humanoid.Parent:findFirstChild("RightLowerArm")
| |
| 315 | -- | |
| 316 | local LeftUpperArm = humanoid.Parent:findFirstChild("LeftUpperArm")
| |
| 317 | local LeftLowerArm = humanoid.Parent:findFirstChild("LeftLowerArm")
| |
| 318 | --Foot & Hands-- | |
| 319 | ||
| 320 | local LeftFoot = humanoid.Parent:findFirstChild("LeftFoot")
| |
| 321 | local RightFoot = humanoid.Parent:findFirstChild("RightFoot")
| |
| 322 | -- | |
| 323 | local LeftHand = humanoid.Parent:findFirstChild("LeftHand")
| |
| 324 | local RightHand = humanoid.Parent:findFirstChild("RightHand")
| |
| 325 | ||
| 326 | --END-- | |
| 327 | --TORSOS-- | |
| 328 | ||
| 329 | local UpperTorso = humanoid.Parent:findFirstChild("UpperTorso")
| |
| 330 | local LowerTorso = humanoid.Parent:findFirstChild("LowerTorso")
| |
| 331 | ||
| 332 | --END-- | |
| 333 | if LowerTorso then | |
| 334 | if LeftUpperLeg then | |
| 335 | makeballlimb(LowerTorso["LeftHipRigAttachment"], LeftUpperLeg["LeftHipRigAttachment"], 50,-50, 90) | |
| 336 | end | |
| 337 | if RightUpperLeg then | |
| 338 | makeballlimb(LowerTorso["RightHipRigAttachment"], RightUpperLeg["RightHipRigAttachment"], 50,-50, 90) | |
| 339 | end | |
| 340 | if LeftLowerLeg then | |
| 341 | makehingelimb(LeftUpperLeg["LeftKneeRigAttachment"], LeftLowerLeg["LeftKneeRigAttachment"], 0,-90) | |
| 342 | end | |
| 343 | if RightLowerLeg then | |
| 344 | makehingelimb(RightUpperLeg["RightKneeRigAttachment"], RightLowerLeg["RightKneeRigAttachment"], 0,-90) | |
| 345 | end | |
| 346 | if LeftFoot then | |
| 347 | makehingelimb(LeftLowerLeg["LeftAnkleRigAttachment"], LeftFoot["LeftAnkleRigAttachment"], 30, -30) | |
| 348 | end | |
| 349 | if RightFoot then | |
| 350 | makehingelimb(RightLowerLeg["RightAnkleRigAttachment"], RightFoot["RightAnkleRigAttachment"], 30, -30) | |
| 351 | end | |
| 352 | if UpperTorso then | |
| 353 | makehingelimb(UpperTorso["WaistRigAttachment"], LowerTorso["WaistRigAttachment"], 30, -30) | |
| 354 | end | |
| 355 | end | |
| 356 | if UpperTorso then | |
| 357 | local canhit = true | |
| 358 | local hitval = 15 | |
| 359 | local uptor = humanoid.Parent.UpperTorso | |
| 360 | if RightUpperArm then | |
| 361 | makeballlimb(RightUpperArm["RightShoulderRigAttachment"], UpperTorso["RightShoulderRigAttachment"], 90,-50, 180) | |
| 362 | end | |
| 363 | if RightLowerArm then | |
| 364 | makehingelimb(RightLowerArm["RightElbowRigAttachment"], RightUpperArm["RightElbowRigAttachment"], 0,-90) | |
| 365 | end | |
| 366 | if RightHand then | |
| 367 | makehingelimb(RightHand["RightWristRigAttachment"], RightLowerArm["RightWristRigAttachment"], 30,30) | |
| 368 | end | |
| 369 | if LeftUpperArm then | |
| 370 | makeballlimb(LeftUpperArm["LeftShoulderRigAttachment"], UpperTorso["LeftShoulderRigAttachment"], 90,-50, 180) | |
| 371 | end | |
| 372 | if LeftLowerArm then | |
| 373 | makehingelimb(LeftLowerArm["LeftElbowRigAttachment"], LeftUpperArm["LeftElbowRigAttachment"], 0,-90) | |
| 374 | end | |
| 375 | if LeftHand then | |
| 376 | makehingelimb(LeftHand["LeftWristRigAttachment"], LeftLowerArm["LeftWristRigAttachment"], 30,30) | |
| 377 | end | |
| 378 | end | |
| 379 | elseif dude:findFirstChild("Torso") then
| |
| 380 | canspin = false | |
| 381 | if humanoid.Parent:findFirstChild("Health") then
| |
| 382 | humanoid.Parent.Health:Remove() | |
| 383 | end | |
| 384 | humanoid.WalkSpeed = 0 | |
| 385 | humanoid.JumpPower = 0 | |
| 386 | humanoid.PlatformStand = true | |
| 387 | for z,x in pairs(humanoid.Parent:GetChildren()) do | |
| 388 | if x.ClassName == "Accessory" then | |
| 389 | local handle = x:findFirstChild("Handle")
| |
| 390 | if handle then | |
| 391 | local attachment = handle:findFirstChildOfClass("Attachment")
| |
| 392 | if attachment then | |
| 393 | for q,w in pairs(humanoid.Parent:GetChildren()) do | |
| 394 | if w.Name == "Torso" or w.Name == "Head" then | |
| 395 | local anotherone = w:findFirstChild(attachment.Name) | |
| 396 | if attachment and anotherone then | |
| 397 | local constraint = Instance.new("HingeConstraint", humanoid.Parent) --making fake weld
| |
| 398 | constraint.Attachment0 = attachment | |
| 399 | constraint.Attachment1 = anotherone | |
| 400 | constraint.LimitsEnabled = true | |
| 401 | constraint.LowerAngle = 0 | |
| 402 | constraint.UpperAngle = 0 | |
| 403 | end | |
| 404 | end | |
| 405 | end | |
| 406 | end | |
| 407 | end | |
| 408 | end | |
| 409 | end | |
| 410 | if humanoid.Parent:findFirstChild("Right Arm") and humanoid.Parent:findFirstChild("Torso") then
| |
| 411 | local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
| |
| 412 | attachment.Position = Vector3.new(1, 1, 0) | |
| 413 | local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
| |
| 414 | ball.Attachment0 = humanoid.Parent["Right Arm"].RightShoulderAttachment | |
| 415 | ball.Attachment1 = attachment | |
| 416 | collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
| |
| 417 | collidepartofleftleg.Name = "Bone" | |
| 418 | collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8) | |
| 419 | collidepartofleftleg.Transparency = 1 | |
| 420 | collidepartofleftleg:BreakJoints() | |
| 421 | local weeld = Instance.new("Weld", collidepartofleftleg)
| |
| 422 | weeld.Part0 = humanoid.Parent["Right Arm"] | |
| 423 | weeld.Part1 = collidepartofleftleg | |
| 424 | weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0) | |
| 425 | end | |
| 426 | if humanoid.Parent:findFirstChild("Left Arm") and humanoid.Parent:findFirstChild("Torso") then
| |
| 427 | local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
| |
| 428 | attachment.Position = Vector3.new(-1, 1, 0) | |
| 429 | local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
| |
| 430 | ball.Attachment0 = attachment | |
| 431 | ball.Attachment1 = humanoid.Parent["Left Arm"].LeftShoulderAttachment | |
| 432 | collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
| |
| 433 | collidepartofleftleg.Name = "Bone" | |
| 434 | collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8) | |
| 435 | collidepartofleftleg.Transparency = 1 | |
| 436 | collidepartofleftleg:BreakJoints() | |
| 437 | local weeld = Instance.new("Weld", collidepartofleftleg)
| |
| 438 | weeld.Part0 = humanoid.Parent["Left Arm"] | |
| 439 | weeld.Part1 = collidepartofleftleg | |
| 440 | weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0) | |
| 441 | end | |
| 442 | if humanoid.Parent:findFirstChild("Right Leg") and humanoid.Parent:findFirstChild("Torso") then
| |
| 443 | local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
| |
| 444 | attachment.Position = Vector3.new(0.5, -1, 0) | |
| 445 | local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
| |
| 446 | ball.Attachment0 = humanoid.Parent["Right Leg"].RightFootAttachment | |
| 447 | ball.Attachment1 = attachment | |
| 448 | humanoid.Parent["Right Leg"].RightFootAttachment.Position = Vector3.new(0, 1, 0) | |
| 449 | collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
| |
| 450 | collidepartofleftleg.Name = "Bone" | |
| 451 | collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8) | |
| 452 | collidepartofleftleg.Transparency = 1 | |
| 453 | collidepartofleftleg:BreakJoints() | |
| 454 | local weeld = Instance.new("Weld", collidepartofleftleg)
| |
| 455 | weeld.Part0 = humanoid.Parent["Right Leg"] | |
| 456 | weeld.Part1 = collidepartofleftleg | |
| 457 | weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0) | |
| 458 | end | |
| 459 | if humanoid.Parent:findFirstChild("Left Leg") and humanoid.Parent:findFirstChild("Torso") then
| |
| 460 | local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
| |
| 461 | attachment.Position = Vector3.new(-0.5, -1, 0) | |
| 462 | local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
| |
| 463 | ball.Attachment0 = humanoid.Parent["Left Leg"].LeftFootAttachment | |
| 464 | ball.Attachment1 = attachment | |
| 465 | humanoid.Parent["Left Leg"].LeftFootAttachment.Position = Vector3.new(0, 1, 0) | |
| 466 | collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
| |
| 467 | collidepartofleftleg.Name = "Bone" | |
| 468 | collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8) | |
| 469 | collidepartofleftleg.Transparency = 1 | |
| 470 | collidepartofleftleg:BreakJoints() | |
| 471 | local weeld = Instance.new("Weld", collidepartofleftleg)
| |
| 472 | weeld.Part0 = humanoid.Parent["Left Leg"] | |
| 473 | weeld.Part1 = collidepartofleftleg | |
| 474 | weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0) | |
| 475 | end | |
| 476 | if humanoid.Parent:findFirstChild("Head") and humanoid.Parent:findFirstChild("Torso") then
| |
| 477 | local attachment = Instance.new("Attachment", humanoid.Parent.Head)
| |
| 478 | attachment.Position = Vector3.new(0, -0.5, 0) | |
| 479 | attachment.Name = "lol" | |
| 480 | attachment.Visible = false | |
| 481 | humanoid.Parent.Torso.NeckAttachment.Visible = false | |
| 482 | humanoid.Parent.Torso.NeckAttachment.Position = humanoid.Parent.Torso.NeckAttachment.Position + Vector3.new(0,0,0) | |
| 483 | local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
| |
| 484 | ball.Attachment0 = humanoid.Parent.Torso.NeckAttachment | |
| 485 | ball.Attachment1 = attachment | |
| 486 | ball.LimitsEnabled = true | |
| 487 | ball.TwistLimitsEnabled = true | |
| 488 | ball.UpperAngle = 90 | |
| 489 | ball.Restitution = 0.5 | |
| 490 | ball.TwistUpperAngle = 90 | |
| 491 | ball.TwistLowerAngle = -90 | |
| 492 | local collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
| |
| 493 | collidepartofleftleg.Name = "Bone" | |
| 494 | collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7) | |
| 495 | collidepartofleftleg.Transparency = 1 | |
| 496 | collidepartofleftleg:BreakJoints() | |
| 497 | local weeld = Instance.new("Weld", collidepartofleftleg)
| |
| 498 | weeld.Part0 = collidepartofleftleg | |
| 499 | weeld.Part1 = humanoid.Parent["Head"] | |
| 500 | if humanoid.Parent.Torso:findFirstChild("Neck") then
| |
| 501 | humanoid.Parent.Torso.Neck:destroy() | |
| 502 | end | |
| 503 | if humanoid.Parent.Head:findFirstChild("face") then
| |
| 504 | humanoid.Parent.Head.face.Texture = "http://www.roblox.com/asset/?id=810245460" | |
| 505 | end | |
| 506 | end | |
| 507 | if humanoid.Parent:findFirstChild("Head") then
| |
| 508 | ||
| 509 | end | |
| 510 | end | |
| 511 | end | |
| 512 | ||
| 513 | ------------------------------------------------------- | |
| 514 | --Start Good Stuff-- | |
| 515 | ------------------------------------------------------- | |
| 516 | CF = CFrame.new | |
| 517 | angles = CFrame.Angles | |
| 518 | attack = false | |
| 519 | Euler = CFrame.fromEulerAnglesXYZ | |
| 520 | Rad = math.rad | |
| 521 | IT = Instance.new | |
| 522 | BrickC = BrickColor.new | |
| 523 | Cos = math.cos | |
| 524 | Acos = math.acos | |
| 525 | Sin = math.sin | |
| 526 | Asin = math.asin | |
| 527 | Abs = math.abs | |
| 528 | Mrandom = math.random | |
| 529 | Floor = math.floor | |
| 530 | ------------------------------------------------------- | |
| 531 | --End Good Stuff-- | |
| 532 | ------------------------------------------------------- | |
| 533 | necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 534 | RSH, LSH = nil, nil | |
| 535 | RW = Instance.new("Weld")
| |
| 536 | LW = Instance.new("Weld")
| |
| 537 | RH = tors["Right Hip"] | |
| 538 | LH = tors["Left Hip"] | |
| 539 | RSH = tors["Right Shoulder"] | |
| 540 | LSH = tors["Left Shoulder"] | |
| 541 | RSH.Parent = nil | |
| 542 | LSH.Parent = nil | |
| 543 | RW.Name = "RW" | |
| 544 | RW.Part0 = tors | |
| 545 | RW.C0 = CF(1.5, 0.5, 0) | |
| 546 | RW.C1 = CF(0, 0.5, 0) | |
| 547 | RW.Part1 = ra | |
| 548 | RW.Parent = tors | |
| 549 | LW.Name = "LW" | |
| 550 | LW.Part0 = tors | |
| 551 | LW.C0 = CF(-1.5, 0.5, 0) | |
| 552 | LW.C1 = CF(0, 0.5, 0) | |
| 553 | LW.Part1 = la | |
| 554 | LW.Parent = tors | |
| 555 | Effects = {}
| |
| 556 | ||
| 557 | ------------------------------------------------------- | |
| 558 | --Start HeartBeat-- | |
| 559 | ------------------------------------------------------- | |
| 560 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 561 | ArtificialHB.Name = "Heartbeat" | |
| 562 | script:WaitForChild("Heartbeat")
| |
| 563 | ||
| 564 | frame = 1 / 60 | |
| 565 | tf = 0 | |
| 566 | allowframeloss = false | |
| 567 | tossremainder = false | |
| 568 | ||
| 569 | ||
| 570 | lastframe = tick() | |
| 571 | script.Heartbeat:Fire() | |
| 572 | ||
| 573 | canglitch = true | |
| 574 | local FT, RA, LA, RL, LL = Instance.new("SpecialMesh"), Instance.new("SpecialMesh"), Instance.new("SpecialMesh"), Instance.new("SpecialMesh"), Instance.new("SpecialMesh")
| |
| 575 | local PlayerSize = 1 | |
| 576 | FT.MeshId, FT.Scale = "rbxasset://fonts/torso.mesh", Vector3.new(PlayerSize, PlayerSize, PlayerSize) | |
| 577 | RA.MeshId, RA.Scale = "rbxasset://fonts/rightarm.mesh", Vector3.new(PlayerSize, PlayerSize, PlayerSize) | |
| 578 | LA.MeshId, LA.Scale = "rbxasset://fonts/leftarm.mesh", Vector3.new(PlayerSize, PlayerSize, PlayerSize) | |
| 579 | RL.MeshId, RL.Scale = "rbxasset://fonts/rightleg.mesh", Vector3.new(PlayerSize, PlayerSize, PlayerSize) | |
| 580 | LL.MeshId, LL.Scale = "rbxasset://fonts/leftleg.mesh", Vector3.new(PlayerSize, PlayerSize, PlayerSize) | |
| 581 | local txtfag = Instance.new("BillboardGui", game.Players.LocalPlayer.Character.Head)
| |
| 582 | txtfag.Adornee = suckadick | |
| 583 | txtfag.Name = "kys nigga" | |
| 584 | txtfag.Size = UDim2.new(2, 0, 1.2, 0) | |
| 585 | txtfag.StudsOffset = Vector3.new(-5, 3, 0) | |
| 586 | local textfag = Instance.new("TextLabel", txtfag)
| |
| 587 | textfag.Size = UDim2.new(6, 0, 1, 0) | |
| 588 | textfag.FontSize = "Size8" | |
| 589 | textfag.TextScaled = true | |
| 590 | textfag.TextTransparency = 0 | |
| 591 | textfag.BackgroundTransparency = 1 | |
| 592 | textfag.TextTransparency = 0 | |
| 593 | textfag.TextStrokeTransparency = 0 | |
| 594 | textfag.Font = "Arcade" | |
| 595 | textfag.TextStrokeColor3 = Color3.new(0, 1, 0) | |
| 596 | v = Instance.new("Part")
| |
| 597 | v.Name = "ColorBrick" | |
| 598 | v.Parent = part | |
| 599 | v.FormFactor = "Symmetric" | |
| 600 | v.Anchored = true | |
| 601 | v.CanCollide = false | |
| 602 | v.BottomSurface = "Smooth" | |
| 603 | v.TopSurface = "Smooth" | |
| 604 | v.Size = Vector3.new(10, 5, 3) | |
| 605 | v.Transparency = 0.7 | |
| 606 | v.BrickColor = game.Players.LocalPlayer.Character.Torso.BrickColor | |
| 607 | v.Transparency = 1 | |
| 608 | textfag.TextColor3 = BrickColor.new("Really red").Color
| |
| 609 | textfag.TextStrokeColor3 = BrickColor.new("Really black").Color
| |
| 610 | v.Shape = "Block" | |
| 611 | textfag.Text = "MAD Playful Cat" | |
| 612 | coroutine.resume(coroutine.create(function() | |
| 613 | while textfag ~= nil do | |
| 614 | swait() | |
| 615 | textfag.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3)) | |
| 616 | - | textfag.Text = "MAD Playful Dino" |
| 616 | + | |
| 617 | end | |
| 618 | end)) | |
| 619 | local kills2 = Instance.new("ScreenGui",plr.PlayerGui) -- This will make a ScreenGui, which shows how much kills ya got.
| |
| 620 | local text = Instance.new("TextLabel",kills2)
| |
| 621 | text.Text = "SLASHED " .. kills -- Changes the text to "KILLS: 0" since the value is 0. | |
| 622 | text.Position = UDim2.new(0.728, 0,0.793, 0) -- This position failed, don't know why. | |
| 623 | text.Size = UDim2.new(0.271, 0,0.207, 0) | |
| 624 | text.TextColor3 = textfag.TextColor3 | |
| 625 | text.TextScaled = true | |
| 626 | text.BackgroundTransparency = 1 | |
| 627 | local number = Instance.new("NumberValue",char) -- Creates a NumberValue, which is the Kills value.
| |
| 628 | number.Name = "Slashes" | |
| 629 | number.Value = kills -- Changes the value to 0. | |
| 630 | coroutine.wrap(function() | |
| 631 | while true do | |
| 632 | wait(0.01) | |
| 633 | number.Value = kills -- Keeps up updating. We need this so the text will change. | |
| 634 | end | |
| 635 | end)() | |
| 636 | coroutine.resume(coroutine.create(function() | |
| 637 | while text ~= nil do | |
| 638 | swait() | |
| 639 | text.Text = "SLASHED: " .. number.Value -- Updates each time it changes the value. | |
| 640 | text.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3)) | |
| 641 | text.Rotation = math.random(-3,3) | |
| 642 | end | |
| 643 | end)) | |
| 644 | killall = false | |
| 645 | function IAMGOD(key) | |
| 646 | if key == "q" and not killall then | |
| 647 | killall = true | |
| 648 | local lAuGh = Instance.new("Sound",workspace)
| |
| 649 | lAuGh.SoundId = "rbxassetid://1091083826" | |
| 650 | lAuGh.Volume = 10000 | |
| 651 | lAuGh.Looped = false | |
| 652 | lAuGh:Play() | |
| 653 | for i,v in pairs(workspace:GetChildren()) do | |
| 654 | - | lAuGh.SoundId = "rbxassetid://921897274" |
| 654 | + | |
| 655 | - | lAuGh.Volume = 4 |
| 655 | + | |
| 656 | - | lAuGh.Looped = true |
| 656 | + | |
| 657 | end | |
| 658 | end | |
| 659 | end | |
| 660 | mouse.KeyDown:connect(IAMGOD) | |
| 661 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 662 | tf = tf + s | |
| 663 | if tf >= frame then | |
| 664 | if allowframeloss then | |
| 665 | script.Heartbeat:Fire() | |
| 666 | lastframe = tick() | |
| 667 | else | |
| 668 | for i = 1, math.floor(tf / frame) do | |
| 669 | script.Heartbeat:Fire() | |
| 670 | end | |
| 671 | lastframe = tick() | |
| 672 | end | |
| 673 | if tossremainder then | |
| 674 | tf = 0 | |
| 675 | else | |
| 676 | tf = tf - frame * math.floor(tf / frame) | |
| 677 | end | |
| 678 | end | |
| 679 | end) | |
| 680 | ------------------------------------------------------- | |
| 681 | --End HeartBeat-- | |
| 682 | ------------------------------------------------------- | |
| 683 | ||
| 684 | ------------------------------------------------------- | |
| 685 | --Start Important Functions-- | |
| 686 | ------------------------------------------------------- | |
| 687 | function swait(num) | |
| 688 | if num == 0 or num == nil then | |
| 689 | game:service("RunService").Stepped:wait(0)
| |
| 690 | else | |
| 691 | for i = 0, num do | |
| 692 | game:service("RunService").Stepped:wait(0)
| |
| 693 | end | |
| 694 | end | |
| 695 | end | |
| 696 | function thread(f) | |
| 697 | coroutine.resume(coroutine.create(f)) | |
| 698 | end | |
| 699 | function clerp(a, b, t) | |
| 700 | local qa = {
| |
| 701 | QuaternionFromCFrame(a) | |
| 702 | } | |
| 703 | local qb = {
| |
| 704 | QuaternionFromCFrame(b) | |
| 705 | } | |
| 706 | local ax, ay, az = a.x, a.y, a.z | |
| 707 | local bx, by, bz = b.x, b.y, b.z | |
| 708 | local _t = 1 - t | |
| 709 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 710 | end | |
| 711 | function QuaternionFromCFrame(cf) | |
| 712 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 713 | local trace = m00 + m11 + m22 | |
| 714 | if trace > 0 then | |
| 715 | local s = math.sqrt(1 + trace) | |
| 716 | local recip = 0.5 / s | |
| 717 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
| 718 | else | |
| 719 | local i = 0 | |
| 720 | if m00 < m11 then | |
| 721 | i = 1 | |
| 722 | end | |
| 723 | if m22 > (i == 0 and m00 or m11) then | |
| 724 | i = 2 | |
| 725 | end | |
| 726 | if i == 0 then | |
| 727 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 728 | local recip = 0.5 / s | |
| 729 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 730 | elseif i == 1 then | |
| 731 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
| 732 | local recip = 0.5 / s | |
| 733 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 734 | elseif i == 2 then | |
| 735 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
| 736 | local recip = 0.5 / s | |
| 737 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 738 | end | |
| 739 | end | |
| 740 | end | |
| 741 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 742 | local xs, ys, zs = x + x, y + y, z + z | |
| 743 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 744 | local xx = x * xs | |
| 745 | local xy = x * ys | |
| 746 | local xz = x * zs | |
| 747 | local yy = y * ys | |
| 748 | local yz = y * zs | |
| 749 | local zz = z * zs | |
| 750 | return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy)) | |
| 751 | end | |
| 752 | function QuaternionSlerp(a, b, t) | |
| 753 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
| 754 | local startInterp, finishInterp | |
| 755 | if cosTheta >= 1.0E-4 then | |
| 756 | if 1 - cosTheta > 1.0E-4 then | |
| 757 | local theta = math.acos(cosTheta) | |
| 758 | local invSinTheta = 1 / Sin(theta) | |
| 759 | startInterp = Sin((1 - t) * theta) * invSinTheta | |
| 760 | finishInterp = Sin(t * theta) * invSinTheta | |
| 761 | else | |
| 762 | startInterp = 1 - t | |
| 763 | finishInterp = t | |
| 764 | end | |
| 765 | elseif 1 + cosTheta > 1.0E-4 then | |
| 766 | local theta = math.acos(-cosTheta) | |
| 767 | local invSinTheta = 1 / Sin(theta) | |
| 768 | startInterp = Sin((t - 1) * theta) * invSinTheta | |
| 769 | finishInterp = Sin(t * theta) * invSinTheta | |
| 770 | else | |
| 771 | startInterp = t - 1 | |
| 772 | finishInterp = t | |
| 773 | end | |
| 774 | return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp | |
| 775 | end | |
| 776 | function rayCast(Position, Direction, Range, Ignore) | |
| 777 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
| |
| 778 | end | |
| 779 | local RbxUtility = LoadLibrary("RbxUtility")
| |
| 780 | local Create = RbxUtility.Create | |
| 781 | ||
| 782 | ------------------------------------------------------- | |
| 783 | --Start Damage Function-- | |
| 784 | ------------------------------------------------------- | |
| 785 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
| 786 | if hit.Parent == nil then | |
| 787 | return | |
| 788 | end | |
| 789 | local h = hit.Parent:FindFirstChildOfClass("Humanoid")
| |
| 790 | for _, v in pairs(hit.Parent:children()) do | |
| 791 | if v:IsA("Humanoid") then
| |
| 792 | h = v | |
| 793 | end | |
| 794 | end | |
| 795 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
| |
| 796 | ||
| 797 | hit.Parent:FindFirstChild("Head"):BreakJoints()
| |
| 798 | end | |
| 799 | ||
| 800 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
| |
| 801 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then
| |
| 802 | if hit.Parent.DebounceHit.Value == true then | |
| 803 | return | |
| 804 | end | |
| 805 | end | |
| 806 | if insta == true then | |
| 807 | hit.Parent:FindFirstChild("Head"):BreakJoints()
| |
| 808 | end | |
| 809 | local c = Create("ObjectValue"){
| |
| 810 | Name = "creator", | |
| 811 | Value = game:service("Players").LocalPlayer,
| |
| 812 | Parent = h, | |
| 813 | } | |
| 814 | game:GetService("Debris"):AddItem(c, .5)
| |
| 815 | if HitSound ~= nil and HitPitch ~= nil then | |
| 816 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
| 817 | end | |
| 818 | local Damage = math.random(minim, maxim) | |
| 819 | local blocked = false | |
| 820 | local block = hit.Parent:findFirstChild("Block")
| |
| 821 | if block ~= nil then | |
| 822 | if block.className == "IntValue" then | |
| 823 | if block.Value > 0 then | |
| 824 | blocked = true | |
| 825 | block.Value = block.Value - 1 | |
| 826 | print(block.Value) | |
| 827 | end | |
| 828 | end | |
| 829 | end | |
| 830 | if blocked == false then | |
| 831 | h.Health = h.Health - Damage | |
| 832 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
| 833 | else | |
| 834 | h.Health = h.Health - (Damage / 2) | |
| 835 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
| 836 | end | |
| 837 | if Type == "Knockdown" then | |
| 838 | local hum = hit.Parent.Humanoid | |
| 839 | hum.PlatformStand = true | |
| 840 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 841 | swait(1) | |
| 842 | HHumanoid.PlatformStand = false | |
| 843 | end), hum) | |
| 844 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
| 845 | local bodvol = Create("BodyVelocity"){
| |
| 846 | velocity = angle * knockback, | |
| 847 | P = 5000, | |
| 848 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 849 | Parent = hit, | |
| 850 | } | |
| 851 | local rl = Create("BodyAngularVelocity"){
| |
| 852 | P = 3000, | |
| 853 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
| 854 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
| 855 | Parent = hit, | |
| 856 | } | |
| 857 | game:GetService("Debris"):AddItem(bodvol, .5)
| |
| 858 | game:GetService("Debris"):AddItem(rl, .5)
| |
| 859 | elseif Type == "Normal" then | |
| 860 | local vp = Create("BodyVelocity"){
| |
| 861 | P = 500, | |
| 862 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
| 863 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
| 864 | } | |
| 865 | if knockback > 0 then | |
| 866 | vp.Parent = hit.Parent.Torso | |
| 867 | end | |
| 868 | game:GetService("Debris"):AddItem(vp, .5)
| |
| 869 | elseif Type == "Up" then | |
| 870 | local bodyVelocity = Create("BodyVelocity"){
| |
| 871 | velocity = Vector3.new(0, 20, 0), | |
| 872 | P = 5000, | |
| 873 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 874 | Parent = hit, | |
| 875 | } | |
| 876 | game:GetService("Debris"):AddItem(bodyVelocity, .5)
| |
| 877 | elseif Type == "DarkUp" then | |
| 878 | coroutine.resume(coroutine.create(function() | |
| 879 | for i = 0, 1, 0.1 do | |
| 880 | swait() | |
| 881 | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
| |
| 882 | end | |
| 883 | end)) | |
| 884 | local bodyVelocity = Create("BodyVelocity"){
| |
| 885 | velocity = Vector3.new(0, 20, 0), | |
| 886 | P = 5000, | |
| 887 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 888 | Parent = hit, | |
| 889 | } | |
| 890 | game:GetService("Debris"):AddItem(bodyVelocity, 1)
| |
| 891 | elseif Type == "Snare" then | |
| 892 | local bp = Create("BodyPosition"){
| |
| 893 | P = 2000, | |
| 894 | D = 100, | |
| 895 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 896 | position = hit.Parent.Torso.Position, | |
| 897 | Parent = hit.Parent.Torso, | |
| 898 | } | |
| 899 | game:GetService("Debris"):AddItem(bp, 1)
| |
| 900 | elseif Type == "Freeze" then | |
| 901 | local BodPos = Create("BodyPosition"){
| |
| 902 | P = 50000, | |
| 903 | D = 1000, | |
| 904 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 905 | position = hit.Parent.Torso.Position, | |
| 906 | Parent = hit.Parent.Torso, | |
| 907 | } | |
| 908 | local BodGy = Create("BodyGyro") {
| |
| 909 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
| 910 | P = 20e+003, | |
| 911 | Parent = hit.Parent.Torso, | |
| 912 | cframe = hit.Parent.Torso.CFrame, | |
| 913 | } | |
| 914 | hit.Parent.Torso.Anchored = true | |
| 915 | coroutine.resume(coroutine.create(function(Part) | |
| 916 | swait(1.5) | |
| 917 | Part.Anchored = false | |
| 918 | end), hit.Parent.Torso) | |
| 919 | game:GetService("Debris"):AddItem(BodPos, 3)
| |
| 920 | game:GetService("Debris"):AddItem(BodGy, 3)
| |
| 921 | end | |
| 922 | local debounce = Create("BoolValue"){
| |
| 923 | Name = "DebounceHit", | |
| 924 | Parent = hit.Parent, | |
| 925 | Value = true, | |
| 926 | } | |
| 927 | game:GetService("Debris"):AddItem(debounce, Delay)
| |
| 928 | c = Create("ObjectValue"){
| |
| 929 | Name = "creator", | |
| 930 | Value = Player, | |
| 931 | Parent = h, | |
| 932 | } | |
| 933 | game:GetService("Debris"):AddItem(c, .5)
| |
| 934 | end | |
| 935 | end | |
| 936 | ------------------------------------------------------- | |
| 937 | --End Damage Function-- | |
| 938 | ------------------------------------------------------- | |
| 939 | ||
| 940 | ------------------------------------------------------- | |
| 941 | --Start Damage Function Customization-- | |
| 942 | ------------------------------------------------------- | |
| 943 | function ShowDamage(Pos, Text, Time, Color) | |
| 944 | local Rate = (1 / 30) | |
| 945 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
| 946 | local Text = (Text or "") | |
| 947 | local Time = (Time or 2) | |
| 948 | local Color = (Color or Color3.new(1, 0, 1)) | |
| 949 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
| 950 | EffectPart.Anchored = true | |
| 951 | local BillboardGui = Create("BillboardGui"){
| |
| 952 | Size = UDim2.new(3, 0, 3, 0), | |
| 953 | Adornee = EffectPart, | |
| 954 | Parent = EffectPart, | |
| 955 | } | |
| 956 | local TextLabel = Create("TextLabel"){
| |
| 957 | BackgroundTransparency = 1, | |
| 958 | Size = UDim2.new(1, 0, 1, 0), | |
| 959 | Text = Text, | |
| 960 | Font = "Bodoni", | |
| 961 | TextColor3 = Color, | |
| 962 | TextScaled = true, | |
| 963 | TextStrokeColor3 = Color3.fromRGB(0,0,0), | |
| 964 | Parent = BillboardGui, | |
| 965 | } | |
| 966 | game.Debris:AddItem(EffectPart, (Time)) | |
| 967 | EffectPart.Parent = game:GetService("Workspace")
| |
| 968 | delay(0, function() | |
| 969 | local Frames = (Time / Rate) | |
| 970 | for Frame = 1, Frames do | |
| 971 | wait(Rate) | |
| 972 | local Percent = (Frame / Frames) | |
| 973 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
| 974 | TextLabel.TextTransparency = Percent | |
| 975 | end | |
| 976 | if EffectPart and EffectPart.Parent then | |
| 977 | EffectPart:Destroy() | |
| 978 | end | |
| 979 | end) | |
| 980 | end | |
| 981 | ------------------------------------------------------- | |
| 982 | --End Damage Function Customization-- | |
| 983 | ------------------------------------------------------- | |
| 984 | ||
| 985 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
| 986 | for _, c in pairs(workspace:children()) do | |
| 987 | local hum = c:findFirstChild("Humanoid")
| |
| 988 | if hum ~= nil then | |
| 989 | local head = c:findFirstChild("Head")
| |
| 990 | if head ~= nil then | |
| 991 | local targ = head.Position - Part.Position | |
| 992 | local mag = targ.magnitude | |
| 993 | if magni >= mag and c.Name ~= plr.Name then | |
| 994 | Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2) | |
| 995 | end | |
| 996 | end | |
| 997 | end | |
| 998 | end | |
| 999 | end | |
| 1000 | ||
| 1001 | ||
| 1002 | CFuncs = {
| |
| 1003 | Part = {
| |
| 1004 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 1005 | local Part = Create("Part")({
| |
| 1006 | Parent = Parent, | |
| 1007 | Reflectance = Reflectance, | |
| 1008 | Transparency = Transparency, | |
| 1009 | CanCollide = false, | |
| 1010 | Locked = true, | |
| 1011 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 1012 | Name = Name, | |
| 1013 | Size = Size, | |
| 1014 | Material = Material | |
| 1015 | }) | |
| 1016 | RemoveOutlines(Part) | |
| 1017 | return Part | |
| 1018 | end | |
| 1019 | }, | |
| 1020 | Mesh = {
| |
| 1021 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 1022 | local Msh = Create(Mesh)({
| |
| 1023 | Parent = Part, | |
| 1024 | Offset = OffSet, | |
| 1025 | Scale = Scale | |
| 1026 | }) | |
| 1027 | if Mesh == "SpecialMesh" then | |
| 1028 | Msh.MeshType = MeshType | |
| 1029 | Msh.MeshId = MeshId | |
| 1030 | end | |
| 1031 | return Msh | |
| 1032 | end | |
| 1033 | }, | |
| 1034 | Mesh = {
| |
| 1035 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 1036 | local Msh = Create(Mesh)({
| |
| 1037 | Parent = Part, | |
| 1038 | Offset = OffSet, | |
| 1039 | Scale = Scale | |
| 1040 | }) | |
| 1041 | if Mesh == "SpecialMesh" then | |
| 1042 | Msh.MeshType = MeshType | |
| 1043 | Msh.MeshId = MeshId | |
| 1044 | end | |
| 1045 | return Msh | |
| 1046 | end | |
| 1047 | }, | |
| 1048 | Weld = {
| |
| 1049 | Create = function(Parent, Part0, Part1, C0, C1) | |
| 1050 | local Weld = Create("Weld")({
| |
| 1051 | Parent = Parent, | |
| 1052 | Part0 = Part0, | |
| 1053 | Part1 = Part1, | |
| 1054 | C0 = C0, | |
| 1055 | C1 = C1 | |
| 1056 | }) | |
| 1057 | return Weld | |
| 1058 | end | |
| 1059 | }, | |
| 1060 | Sound = {
| |
| 1061 | Create = function(id, par, vol, pit) | |
| 1062 | coroutine.resume(coroutine.create(function() | |
| 1063 | local S = Create("Sound")({
| |
| 1064 | Volume = vol, | |
| 1065 | Pitch = pit or 1, | |
| 1066 | SoundId = id, | |
| 1067 | Parent = par or workspace | |
| 1068 | }) | |
| 1069 | wait() | |
| 1070 | S:play() | |
| 1071 | game:GetService("Debris"):AddItem(S, 6)
| |
| 1072 | end)) | |
| 1073 | end | |
| 1074 | }, | |
| 1075 | ParticleEmitter = {
| |
| 1076 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
| 1077 | local fp = Create("ParticleEmitter")({
| |
| 1078 | Parent = Parent, | |
| 1079 | Color = ColorSequence.new(Color1, Color2), | |
| 1080 | LightEmission = LightEmission, | |
| 1081 | Size = Size, | |
| 1082 | Texture = Texture, | |
| 1083 | Transparency = Transparency, | |
| 1084 | ZOffset = ZOffset, | |
| 1085 | Acceleration = Accel, | |
| 1086 | Drag = Drag, | |
| 1087 | LockedToPart = LockedToPart, | |
| 1088 | VelocityInheritance = VelocityInheritance, | |
| 1089 | EmissionDirection = EmissionDirection, | |
| 1090 | Enabled = Enabled, | |
| 1091 | Lifetime = LifeTime, | |
| 1092 | Rate = Rate, | |
| 1093 | Rotation = Rotation, | |
| 1094 | RotSpeed = RotSpeed, | |
| 1095 | Speed = Speed, | |
| 1096 | VelocitySpread = VelocitySpread | |
| 1097 | }) | |
| 1098 | return fp | |
| 1099 | end | |
| 1100 | } | |
| 1101 | } | |
| 1102 | function RemoveOutlines(part) | |
| 1103 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 1104 | end | |
| 1105 | function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 1106 | local Part = Create("Part")({
| |
| 1107 | formFactor = FormFactor, | |
| 1108 | Parent = Parent, | |
| 1109 | Reflectance = Reflectance, | |
| 1110 | Transparency = Transparency, | |
| 1111 | CanCollide = false, | |
| 1112 | Locked = true, | |
| 1113 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 1114 | Name = Name, | |
| 1115 | Size = Size, | |
| 1116 | Material = Material | |
| 1117 | }) | |
| 1118 | RemoveOutlines(Part) | |
| 1119 | return Part | |
| 1120 | end | |
| 1121 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 1122 | local Msh = Create(Mesh)({
| |
| 1123 | Parent = Part, | |
| 1124 | Offset = OffSet, | |
| 1125 | Scale = Scale | |
| 1126 | }) | |
| 1127 | if Mesh == "SpecialMesh" then | |
| 1128 | Msh.MeshType = MeshType | |
| 1129 | Msh.MeshId = MeshId | |
| 1130 | end | |
| 1131 | return Msh | |
| 1132 | end | |
| 1133 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
| 1134 | local Weld = Create("Weld")({
| |
| 1135 | Parent = Parent, | |
| 1136 | Part0 = Part0, | |
| 1137 | Part1 = Part1, | |
| 1138 | C0 = C0, | |
| 1139 | C1 = C1 | |
| 1140 | }) | |
| 1141 | return Weld | |
| 1142 | end | |
| 1143 | ||
| 1144 | ||
| 1145 | ------------------------------------------------------- | |
| 1146 | --Start Effect Function-- | |
| 1147 | ------------------------------------------------------- | |
| 1148 | EffectModel = Instance.new("Model", char)
| |
| 1149 | Effects = {
| |
| 1150 | Block = {
| |
| 1151 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
| 1152 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1153 | prt.Anchored = true | |
| 1154 | prt.CFrame = cframe | |
| 1155 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1156 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1157 | if Type == 1 or Type == nil then | |
| 1158 | table.insert(Effects, {
| |
| 1159 | prt, | |
| 1160 | "Block1", | |
| 1161 | delay, | |
| 1162 | x3, | |
| 1163 | y3, | |
| 1164 | z3, | |
| 1165 | msh | |
| 1166 | }) | |
| 1167 | elseif Type == 2 then | |
| 1168 | table.insert(Effects, {
| |
| 1169 | prt, | |
| 1170 | "Block2", | |
| 1171 | delay, | |
| 1172 | x3, | |
| 1173 | y3, | |
| 1174 | z3, | |
| 1175 | msh | |
| 1176 | }) | |
| 1177 | else | |
| 1178 | table.insert(Effects, {
| |
| 1179 | prt, | |
| 1180 | "Block3", | |
| 1181 | delay, | |
| 1182 | x3, | |
| 1183 | y3, | |
| 1184 | z3, | |
| 1185 | msh | |
| 1186 | }) | |
| 1187 | end | |
| 1188 | end | |
| 1189 | }, | |
| 1190 | Sphere = {
| |
| 1191 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1192 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1193 | prt.Anchored = true | |
| 1194 | prt.CFrame = cframe | |
| 1195 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1196 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1197 | table.insert(Effects, {
| |
| 1198 | prt, | |
| 1199 | "Cylinder", | |
| 1200 | delay, | |
| 1201 | x3, | |
| 1202 | y3, | |
| 1203 | z3, | |
| 1204 | msh | |
| 1205 | }) | |
| 1206 | end | |
| 1207 | }, | |
| 1208 | Cylinder = {
| |
| 1209 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1210 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1211 | prt.Anchored = true | |
| 1212 | prt.CFrame = cframe | |
| 1213 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1214 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1215 | table.insert(Effects, {
| |
| 1216 | prt, | |
| 1217 | "Cylinder", | |
| 1218 | delay, | |
| 1219 | x3, | |
| 1220 | y3, | |
| 1221 | z3, | |
| 1222 | msh | |
| 1223 | }) | |
| 1224 | end | |
| 1225 | }, | |
| 1226 | Wave = {
| |
| 1227 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1228 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1229 | prt.Anchored = true | |
| 1230 | prt.CFrame = cframe | |
| 1231 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
| |
| 1232 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1233 | table.insert(Effects, {
| |
| 1234 | prt, | |
| 1235 | "Cylinder", | |
| 1236 | delay, | |
| 1237 | x3 / 60, | |
| 1238 | y3 / 60, | |
| 1239 | z3 / 60, | |
| 1240 | msh | |
| 1241 | }) | |
| 1242 | end | |
| 1243 | }, | |
| 1244 | Ring = {
| |
| 1245 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1246 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1247 | prt.Anchored = true | |
| 1248 | prt.CFrame = cframe | |
| 1249 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1250 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1251 | table.insert(Effects, {
| |
| 1252 | prt, | |
| 1253 | "Cylinder", | |
| 1254 | delay, | |
| 1255 | x3, | |
| 1256 | y3, | |
| 1257 | z3, | |
| 1258 | msh | |
| 1259 | }) | |
| 1260 | end | |
| 1261 | }, | |
| 1262 | Break = {
| |
| 1263 | Create = function(brickcolor, cframe, x1, y1, z1) | |
| 1264 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
| 1265 | prt.Anchored = true | |
| 1266 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1267 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1268 | local num = math.random(10, 50) / 1000 | |
| 1269 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1270 | table.insert(Effects, {
| |
| 1271 | prt, | |
| 1272 | "Shatter", | |
| 1273 | num, | |
| 1274 | prt.CFrame, | |
| 1275 | math.random() - math.random(), | |
| 1276 | 0, | |
| 1277 | math.random(50, 100) / 100 | |
| 1278 | }) | |
| 1279 | end | |
| 1280 | }, | |
| 1281 | Spiral = {
| |
| 1282 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1283 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1284 | prt.Anchored = true | |
| 1285 | prt.CFrame = cframe | |
| 1286 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1287 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1288 | table.insert(Effects, {
| |
| 1289 | prt, | |
| 1290 | "Cylinder", | |
| 1291 | delay, | |
| 1292 | x3, | |
| 1293 | y3, | |
| 1294 | z3, | |
| 1295 | msh | |
| 1296 | }) | |
| 1297 | end | |
| 1298 | }, | |
| 1299 | Push = {
| |
| 1300 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1301 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1302 | prt.Anchored = true | |
| 1303 | prt.CFrame = cframe | |
| 1304 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1305 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1306 | table.insert(Effects, {
| |
| 1307 | prt, | |
| 1308 | "Cylinder", | |
| 1309 | delay, | |
| 1310 | x3, | |
| 1311 | y3, | |
| 1312 | z3, | |
| 1313 | msh | |
| 1314 | }) | |
| 1315 | end | |
| 1316 | } | |
| 1317 | } | |
| 1318 | function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size) | |
| 1319 | local fp = IT("Part")
| |
| 1320 | fp.formFactor = formfactor | |
| 1321 | fp.Parent = parent | |
| 1322 | fp.Reflectance = reflectance | |
| 1323 | fp.Transparency = transparency | |
| 1324 | fp.CanCollide = false | |
| 1325 | fp.Locked = true | |
| 1326 | fp.BrickColor = brickcolor | |
| 1327 | fp.Name = name | |
| 1328 | fp.Size = size | |
| 1329 | fp.Position = tors.Position | |
| 1330 | RemoveOutlines(fp) | |
| 1331 | fp.Material = "SmoothPlastic" | |
| 1332 | fp:BreakJoints() | |
| 1333 | return fp | |
| 1334 | end | |
| 1335 | ||
| 1336 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
| 1337 | local mesh = IT(Mesh) | |
| 1338 | mesh.Parent = part | |
| 1339 | if Mesh == "SpecialMesh" then | |
| 1340 | mesh.MeshType = meshtype | |
| 1341 | if meshid ~= "nil" then | |
| 1342 | mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid | |
| 1343 | end | |
| 1344 | end | |
| 1345 | mesh.Offset = offset | |
| 1346 | mesh.Scale = scale | |
| 1347 | return mesh | |
| 1348 | end | |
| 1349 | ||
| 1350 | function Magic(bonuspeed, type, pos, scale, value, color, MType) | |
| 1351 | local type = type | |
| 1352 | local rng = Instance.new("Part", char)
| |
| 1353 | rng.Anchored = true | |
| 1354 | rng.BrickColor = color | |
| 1355 | rng.CanCollide = false | |
| 1356 | rng.FormFactor = 3 | |
| 1357 | rng.Name = "Ring" | |
| 1358 | rng.Material = "Neon" | |
| 1359 | rng.Size = Vector3.new(1, 1, 1) | |
| 1360 | rng.Transparency = 0 | |
| 1361 | rng.TopSurface = 0 | |
| 1362 | rng.BottomSurface = 0 | |
| 1363 | rng.CFrame = pos | |
| 1364 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 1365 | rngm.MeshType = MType | |
| 1366 | rngm.Scale = scale | |
| 1367 | local scaler2 = 1 | |
| 1368 | if type == "Add" then | |
| 1369 | scaler2 = 1 * value | |
| 1370 | elseif type == "Divide" then | |
| 1371 | scaler2 = 1 / value | |
| 1372 | end | |
| 1373 | coroutine.resume(coroutine.create(function() | |
| 1374 | for i = 0, 10 / bonuspeed, 0.1 do | |
| 1375 | swait() | |
| 1376 | if type == "Add" then | |
| 1377 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
| 1378 | elseif type == "Divide" then | |
| 1379 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
| 1380 | end | |
| 1381 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
| 1382 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed) | |
| 1383 | end | |
| 1384 | rng:Destroy() | |
| 1385 | end)) | |
| 1386 | end | |
| 1387 | ||
| 1388 | function Eviscerate(dude) | |
| 1389 | if dude.Name ~= char then | |
| 1390 | local bgf = IT("BodyGyro", dude.Head)
| |
| 1391 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
| 1392 | local val = IT("BoolValue", dude)
| |
| 1393 | val.Name = "IsHit" | |
| 1394 | local ds = coroutine.wrap(function() | |
| 1395 | dude:WaitForChild("Head"):BreakJoints()
| |
| 1396 | wait(0.5) | |
| 1397 | target = nil | |
| 1398 | coroutine.resume(coroutine.create(function() | |
| 1399 | for i, v in pairs(dude:GetChildren()) do | |
| 1400 | if v:IsA("Accessory") then
| |
| 1401 | v:Destroy() | |
| 1402 | end | |
| 1403 | if v:IsA("Humanoid") then
| |
| 1404 | v:Destroy() | |
| 1405 | end | |
| 1406 | if v:IsA("CharacterMesh") then
| |
| 1407 | v:Destroy() | |
| 1408 | end | |
| 1409 | if v:IsA("Model") then
| |
| 1410 | v:Destroy() | |
| 1411 | end | |
| 1412 | if v:IsA("Part") or v:IsA("MeshPart") then
| |
| 1413 | for x, o in pairs(v:GetChildren()) do | |
| 1414 | if o:IsA("Decal") then
| |
| 1415 | o:Destroy() | |
| 1416 | end | |
| 1417 | end | |
| 1418 | coroutine.resume(coroutine.create(function() | |
| 1419 | v.Material = "Neon" | |
| 1420 | v.CanCollide = false | |
| 1421 | local PartEmmit1 = IT("ParticleEmitter", v)
| |
| 1422 | PartEmmit1.LightEmission = 1 | |
| 1423 | PartEmmit1.Texture = "rbxassetid://284205403" | |
| 1424 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
| 1425 | PartEmmit1.Rate = 150 | |
| 1426 | PartEmmit1.Lifetime = NumberRange.new(1) | |
| 1427 | PartEmmit1.Size = NumberSequence.new({
| |
| 1428 | NumberSequenceKeypoint.new(0, 0.75, 0), | |
| 1429 | NumberSequenceKeypoint.new(1, 0, 0) | |
| 1430 | }) | |
| 1431 | PartEmmit1.Transparency = NumberSequence.new({
| |
| 1432 | NumberSequenceKeypoint.new(0, 0, 0), | |
| 1433 | NumberSequenceKeypoint.new(1, 1, 0) | |
| 1434 | }) | |
| 1435 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
| 1436 | PartEmmit1.VelocitySpread = 30000 | |
| 1437 | PartEmmit1.Rotation = NumberRange.new(-500, 500) | |
| 1438 | PartEmmit1.RotSpeed = NumberRange.new(-500, 500) | |
| 1439 | local BodPoss = IT("BodyPosition", v)
| |
| 1440 | BodPoss.P = 3000 | |
| 1441 | BodPoss.D = 1000 | |
| 1442 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
| 1443 | BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
| 1444 | v.Color = maincolor.Color | |
| 1445 | coroutine.resume(coroutine.create(function() | |
| 1446 | for i = 0, 49 do | |
| 1447 | swait(1) | |
| 1448 | v.Transparency = v.Transparency + 0.08 | |
| 1449 | end | |
| 1450 | wait(0.5) | |
| 1451 | PartEmmit1.Enabled = false | |
| 1452 | wait(3) | |
| 1453 | v:Destroy() | |
| 1454 | dude:Destroy() | |
| 1455 | end)) | |
| 1456 | end)) | |
| 1457 | end | |
| 1458 | end | |
| 1459 | end)) | |
| 1460 | end) | |
| 1461 | ds() | |
| 1462 | end | |
| 1463 | end | |
| 1464 | ||
| 1465 | function FindNearestHead(Position, Distance, SinglePlayer) | |
| 1466 | if SinglePlayer then | |
| 1467 | return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude | |
| 1468 | end | |
| 1469 | local List = {}
| |
| 1470 | for i, v in pairs(workspace:GetChildren()) do | |
| 1471 | if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
| |
| 1472 | table.insert(List, v) | |
| 1473 | end | |
| 1474 | end | |
| 1475 | return List | |
| 1476 | end | |
| 1477 | ||
| 1478 | function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType) | |
| 1479 | local type = type | |
| 1480 | local rng = Instance.new("Part", char)
| |
| 1481 | rng.Anchored = true | |
| 1482 | rng.BrickColor = color | |
| 1483 | rng.CanCollide = false | |
| 1484 | rng.FormFactor = 3 | |
| 1485 | rng.Name = "Ring" | |
| 1486 | rng.Material = "Neon" | |
| 1487 | rng.Size = Vector3.new(1, 1, 1) | |
| 1488 | rng.Transparency = 0 | |
| 1489 | rng.TopSurface = 0 | |
| 1490 | rng.BottomSurface = 0 | |
| 1491 | rng.CFrame = pos | |
| 1492 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos | |
| 1493 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 1494 | rngm.MeshType = MType | |
| 1495 | rngm.Scale = Vector3.new(x1, y1, z1) | |
| 1496 | local scaler2 = 1 | |
| 1497 | local speeder = FastSpeed | |
| 1498 | if type == "Add" then | |
| 1499 | scaler2 = 1 * value | |
| 1500 | elseif type == "Divide" then | |
| 1501 | scaler2 = 1 / value | |
| 1502 | end | |
| 1503 | coroutine.resume(coroutine.create(function() | |
| 1504 | for i = 0, 10 / bonuspeed, 0.1 do | |
| 1505 | swait() | |
| 1506 | if type == "Add" then | |
| 1507 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
| 1508 | elseif type == "Divide" then | |
| 1509 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
| 1510 | end | |
| 1511 | speeder = speeder - 0.01 * FastSpeed * bonuspeed | |
| 1512 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed | |
| 1513 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
| 1514 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0) | |
| 1515 | end | |
| 1516 | rng:Destroy() | |
| 1517 | end)) | |
| 1518 | end | |
| 1519 | ||
| 1520 | ||
| 1521 | function SoulSteal(dude) | |
| 1522 | if dude.Name ~= char then | |
| 1523 | local bgf = IT("BodyGyro", dude.Head)
| |
| 1524 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
| 1525 | local val = IT("BoolValue", dude)
| |
| 1526 | val.Name = "IsHit" | |
| 1527 | local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart') | |
| 1528 | local soulst = coroutine.wrap(function() | |
| 1529 | local soul = Instance.new("Part",dude)
| |
| 1530 | soul.Size = Vector3.new(1,1,1) | |
| 1531 | soul.CanCollide = false | |
| 1532 | soul.Anchored = false | |
| 1533 | soul.Position = torso.Position | |
| 1534 | soul.Transparency = 1 | |
| 1535 | local PartEmmit1 = IT("ParticleEmitter", soul)
| |
| 1536 | PartEmmit1.LightEmission = 1 | |
| 1537 | PartEmmit1.Texture = "rbxassetid://569507414" | |
| 1538 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
| 1539 | PartEmmit1.Rate = 250 | |
| 1540 | PartEmmit1.Lifetime = NumberRange.new(1.6) | |
| 1541 | PartEmmit1.Size = NumberSequence.new({
| |
| 1542 | NumberSequenceKeypoint.new(0, 1, 0), | |
| 1543 | NumberSequenceKeypoint.new(1, 0, 0) | |
| 1544 | }) | |
| 1545 | PartEmmit1.Transparency = NumberSequence.new({
| |
| 1546 | NumberSequenceKeypoint.new(0, 0, 0), | |
| 1547 | NumberSequenceKeypoint.new(1, 1, 0) | |
| 1548 | }) | |
| 1549 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
| 1550 | PartEmmit1.VelocitySpread = 30000 | |
| 1551 | PartEmmit1.Rotation = NumberRange.new(-360, 360) | |
| 1552 | PartEmmit1.RotSpeed = NumberRange.new(-360, 360) | |
| 1553 | local BodPoss = IT("BodyPosition", soul)
| |
| 1554 | BodPoss.P = 3000 | |
| 1555 | BodPoss.D = 1000 | |
| 1556 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
| 1557 | BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
| 1558 | wait(1.6) | |
| 1559 | soul.Touched:connect(function(hit) | |
| 1560 | if hit.Parent == char then | |
| 1561 | soul:Destroy() | |
| 1562 | end | |
| 1563 | end) | |
| 1564 | wait(1.2) | |
| 1565 | while soul do | |
| 1566 | swait() | |
| 1567 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
| 1568 | BodPoss.Position = tors.Position | |
| 1569 | end | |
| 1570 | end) | |
| 1571 | soulst() | |
| 1572 | end | |
| 1573 | end | |
| 1574 | function FaceMouse() | |
| 1575 | local Cam = workspace.CurrentCamera | |
| 1576 | return {
| |
| 1577 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)), | |
| 1578 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
| 1579 | } | |
| 1580 | end | |
| 1581 | ------------------------------------------------------- | |
| 1582 | --End Effect Function-- | |
| 1583 | ------------------------------------------------------- | |
| 1584 | function Cso(ID, PARENT, VOLUME, PITCH) | |
| 1585 | local NSound = nil | |
| 1586 | coroutine.resume(coroutine.create(function() | |
| 1587 | NSound = IT("Sound", PARENT)
| |
| 1588 | NSound.Volume = VOLUME | |
| 1589 | NSound.Pitch = PITCH | |
| 1590 | NSound.SoundId = "http://www.roblox.com/asset/?id="..ID | |
| 1591 | swait() | |
| 1592 | NSound:play() | |
| 1593 | game:GetService("Debris"):AddItem(NSound, 10)
| |
| 1594 | end)) | |
| 1595 | return NSound | |
| 1596 | end | |
| 1597 | ------------------------------------------------------- | |
| 1598 | --End Important Functions-- | |
| 1599 | ------------------------------------------------------- | |
| 1600 | ||
| 1601 | New = function(Object, Parent, Name, Data) | |
| 1602 | local Object = Instance.new(Object) | |
| 1603 | for Index, Value in pairs(Data or {}) do
| |
| 1604 | Object[Index] = Value | |
| 1605 | end | |
| 1606 | Object.Parent = Parent | |
| 1607 | Object.Name = Name | |
| 1608 | return Object | |
| 1609 | end | |
| 1610 | ||
| 1611 | Steamed_Hams = New("Model",char,"Reference",{})
| |
| 1612 | Handle = New("Part",Steamed_Hams,"Handle",{BrickColor = BrickColor.new("Institutional white"),Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.0500000007, 1.42000008, 1.42000008),CFrame = CFrame.new(6.24385071, 1.07595825, -192.477875, -4.37113883e-08, -1, 0, 1, -4.37113883e-08, 0, 0, 0, 1),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
| |
| 1613 | Plate = New("Part",Steamed_Hams,"Plate",{BrickColor = BrickColor.new("Institutional white"),Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.0500000007, 2, 2),CFrame = CFrame.new(6.24385071, 1.13595831, -192.477875, -4.37113883e-08, -1, 0, 1, -4.37113883e-08, 0, 0, 0, 1),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
| |
| 1614 | mot = New("Motor",Plate,"mot",{Part0 = Plate,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 1, 0, -1, -4.37113883e-08, 0, 0, 0, 1),C1 = CFrame.new(0.060000062, 0, 0, -4.37113883e-08, 1, 0, -1, -4.37113883e-08, 0, 0, 0, 1),})
| |
| 1615 | Burg = New("Part",Steamed_Hams,"Burg",{BrickColor = BrickColor.new("Mid gray"),Reflectance = 5,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1, 0.800000012, 1),CFrame = CFrame.new(6.24385071, 1.46095836, -192.45787, -1, 0, -7.54683664e-23, 0, 1, 2.64573537e-17, 7.54683664e-23, 2.64573537e-17, -1),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.803922, 0.803922, 0.803922),})
| |
| 1616 | Mesh = New("SpecialMesh",Burg,"Mesh",{MeshId = "http://www.roblox.com/asset/?id=16646125",TextureId = "http://www.roblox.com/asset/?id=16432575",MeshType = Enum.MeshType.FileMesh,})
| |
| 1617 | mot = New("Motor",Burg,"mot",{Part0 = Burg,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, -2.64569136e-17, 7.54683664e-23, -2.64569136e-17, 1, 2.64573537e-17, -7.54683664e-23, 2.64573537e-17, -1),C1 = CFrame.new(0.38500011, 0, 0.0200042725, -4.37113883e-08, 1, 0, -1, -4.37113883e-08, 0, 0, 0, 1),})
| |
| 1618 | for i,v in pairs(Steamed_Hams:GetChildren()) do | |
| 1619 | if v.ClassName == "Part" then | |
| 1620 | v.Transparency = 1 | |
| 1621 | v.CanCollide = false | |
| 1622 | end | |
| 1623 | end | |
| 1624 | ||
| 1625 | NewInstance = function(instance,parent,properties) | |
| 1626 | local inst = Instance.new(instance,parent) | |
| 1627 | if(properties)then | |
| 1628 | for i,v in next, properties do | |
| 1629 | pcall(function() inst[i] = v end) | |
| 1630 | end | |
| 1631 | end | |
| 1632 | return inst; | |
| 1633 | end | |
| 1634 | ||
| 1635 | local HW = NewInstance('Motor', char, {Part0 = ra, Part1 = Handle, C0 = CF(0,-.7,-.5) * angles(Rad(0),Rad(90),Rad(0))})
| |
| 1636 | ||
| 1637 | ------------------------------------------------------- | |
| 1638 | --Start Music Option-- | |
| 1639 | ------------------------------------------------------- | |
| 1640 | local Music = Instance.new("Sound",tors)
| |
| 1641 | Music.Volume = 2 | |
| 1642 | Music.SoundId = "rbxassetid://346936465" | |
| 1643 | Music.Looped = true | |
| 1644 | Music.Pitch = 1 --Pitcher | |
| 1645 | Music:Play() | |
| 1646 | - | Music.Volume = 2.5 |
| 1646 | + | |
| 1647 | - | Music.SoundId = "rbxassetid://374057291" |
| 1647 | + | |
| 1648 | ------------------------------------------------------- | |
| 1649 | ||
| 1650 | ||
| 1651 | ------------------------------------------------------- | |
| 1652 | --Start Attacks N Stuff-- | |
| 1653 | ------------------------------------------------------- | |
| 1654 | local sine=0 | |
| 1655 | wait2 = false | |
| 1656 | combo = 1 | |
| 1657 | local stabby = Instance.new("Sound",char.Torso)
| |
| 1658 | stabby.SoundId = "rbxassetid://271550300" | |
| 1659 | stabby.Volume = 10 | |
| 1660 | mouse.Button1Down:connect(function(key) | |
| 1661 | if attack == false then | |
| 1662 | attack = true | |
| 1663 | hum.WalkSpeed = 3.01 | |
| 1664 | trail.Enabled = true | |
| 1665 | if combo == 1 and wait2 == false then | |
| 1666 | wait2 = true | |
| 1667 | for i = 0, 1.6, 0.1 do | |
| 1668 | swait() | |
| 1669 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, -.5, 0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-5), Rad(0), Rad(-65)), 0.3) | |
| 1670 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-10), Rad(0), Rad(65)), 0.1) | |
| 1671 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(Rad(0), Rad(0), Rad(90)), 0.1) | |
| 1672 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0.6) * angles(Rad(-25), Rad(0), Rad(40)), 0.3) | |
| 1673 | RH.C0 = clerp(RH.C0, CF(1, -1, -0.2) * RHCF * angles(Rad(-6.5), Rad(0), Rad(-6)), 0.3) | |
| 1674 | LH.C0 = clerp(LH.C0, CF(-1, -1, 0) * LHCF * angles(Rad(-2.5), Rad(15), Rad(20)), 0.3) | |
| 1675 | HW.C0 = clerp(HW.C0, CF(0,-.7,-.5) * angles(Rad(0), Rad(90), Rad(0)), 0.1) | |
| 1676 | end | |
| 1677 | Cso("138097048", ra, 3, .8)
| |
| 1678 | local boiser = false | |
| 1679 | local hit = knife.Touched:connect(function(hit2) | |
| 1680 | if boiser == false then | |
| 1681 | boiser = true | |
| 1682 | local human = hit2.Parent:FindFirstChildOfClass("Humanoid")
| |
| 1683 | if human then | |
| 1684 | Ragdoll(human.Parent) | |
| 1685 | human:Destroy() | |
| 1686 | stabby:Play() | |
| 1687 | kills = kills + 1 | |
| 1688 | end | |
| 1689 | end | |
| 1690 | end) | |
| 1691 | for i = 0, 1.2, 0.1 do | |
| 1692 | swait() | |
| 1693 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, -.5, 0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(5), Rad(0), Rad(75)), 0.3) | |
| 1694 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(35), Rad(0), Rad(-75)), 0.1) | |
| 1695 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5, -0.8) * angles(Rad(90), Rad(0), Rad(-40)), 0.1) | |
| 1696 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(Rad(-25), Rad(0), Rad(-10)), 0.3) | |
| 1697 | RH.C0 = clerp(RH.C0, CF(1, -1, 0) * RHCF * angles(Rad(-2.5), Rad(-25), Rad(17)), 0.3) | |
| 1698 | LH.C0 = clerp(LH.C0, CF(-1, -1, 0) * LHCF * angles(Rad(-6.5), Rad(0), Rad(0)), 0.3) | |
| 1699 | HW.C0 = clerp(HW.C0, CF(0,-.7,-.5) * angles(Rad(0), Rad(90), Rad(0)), 0.1) | |
| 1700 | end | |
| 1701 | hit:Disconnect() | |
| 1702 | combo = 1 | |
| 1703 | end | |
| 1704 | weld.C0 = CFrame.new(0, -0.800003052, 0.999999046, 1, 0, 0, 0, 0, -1, 0, 0.999999523, 0) | |
| 1705 | hum.WalkSpeed = 20 | |
| 1706 | wait2 = false | |
| 1707 | attack = false | |
| 1708 | trail.Enabled = false | |
| 1709 | end | |
| 1710 | end) | |
| 1711 | hum.WalkSpeed = 20 | |
| 1712 | ------------------------------------------------------- | |
| 1713 | --End Attacks N Stuff-- | |
| 1714 | ------------------------------------------------------- | |
| 1715 | ||
| 1716 | ||
| 1717 | ||
| 1718 | ||
| 1719 | ||
| 1720 | ||
| 1721 | ||
| 1722 | ------------------------------------------------------- | |
| 1723 | --Start Animations-- | |
| 1724 | ------------------------------------------------------- | |
| 1725 | local equipped = false | |
| 1726 | local idle = 0 | |
| 1727 | local change = 1 | |
| 1728 | local val = 0 | |
| 1729 | local toim = 0 | |
| 1730 | local idleanim = 0.4 | |
| 1731 | hum.Animator.Parent = nil | |
| 1732 | char.Animate.Parent = nil | |
| 1733 | while true do | |
| 1734 | swait() | |
| 1735 | sine = sine + change | |
| 1736 | Music.Parent = tors | |
| 1737 | local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 1738 | local velderp = root.Velocity.y | |
| 1739 | hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4, char) | |
| 1740 | if equipped == true or equipped == false then | |
| 1741 | if attack == false then | |
| 1742 | idle = idle + 1 | |
| 1743 | else | |
| 1744 | idle = 0 | |
| 1745 | end | |
| 1746 | if 1 < root.Velocity.y and hitfloor == nil then | |
| 1747 | Anim = "Jump" | |
| 1748 | if attack == false then | |
| 1749 | rootj.C0 = clerp(rootj.C0, RootCF * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,0),0.3) | |
| 1750 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-10), Rad(0), Rad(0)), 0.3) | |
| 1751 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(15)),0.3) | |
| 1752 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(-15)),0.3) | |
| 1753 | LH.C0=clerp(LH.C0, CF(-1,-.4-0.1 * Cos(sine / 20), -.6) * LHCF * angles(Rad(-5), Rad(-0), Rad(20)), 0.15) | |
| 1754 | RH.C0=clerp(RH.C0, CF(1,-1-0.1 * Cos(sine / 20), -.3) * angles(Rad(0), Rad(90), Rad(0)), .3) | |
| 1755 | end | |
| 1756 | elseif -1 > root.Velocity.y and hitfloor == nil then | |
| 1757 | Anim = "Fall" | |
| 1758 | if attack == false then | |
| 1759 | rootj.C0 = clerp(rootj.C0, RootCF * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,0),0.3) | |
| 1760 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(10), Rad(0), Rad(0)), 0.3) | |
| 1761 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(30)),0.3) | |
| 1762 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(-30)),0.3) | |
| 1763 | LH.C0 = clerp(LH.C0, CF(-1,-.4-0.1 * Cos(sine / 20), -.6) * LHCF * angles(Rad(-5), Rad(-0), Rad(20)), 0.15) | |
| 1764 | RH.C0 = clerp(RH.C0, CF(1,-1-0.1 * Cos(sine / 20), -.3) * angles(Rad(0), Rad(90), Rad(0)), .3) | |
| 1765 | end | |
| 1766 | elseif torvel < 1 and hitfloor ~= nil then | |
| 1767 | Anim = "Idle" | |
| 1768 | change = 1.7 | |
| 1769 | if attack == false then | |
| 1770 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(20)), 0.15) | |
| 1771 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(-20)), 0.3) | |
| 1772 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
| 1773 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15) | |
| 1774 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(4.5 * Sin(sine / 30)), Rad(15 + 4.5 * Sin(sine / 30))), 0.1) | |
| 1775 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(4.5 * Sin(sine / 30)), Rad(-5 - 4.5 * Sin(sine / 30))), 0.1) | |
| 1776 | end | |
| 1777 | elseif tors.Velocity.magnitude < 50 and hitfloor ~= nil then | |
| 1778 | Anim = "Walk" | |
| 1779 | change = 1 | |
| 1780 | if attack == false then | |
| 1781 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.015 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(4 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(3 * Cos(sine / 7))), 0.15) | |
| 1782 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3) | |
| 1783 | RH.C0 = clerp(RH.C0, CF(1, -0.925 - 0.5 * Cos(sine / 7) / 2, 0.5 * Cos(sine / 7) / 2) * angles(Rad(-15 - 5 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
| 1784 | LH.C0 = clerp(LH.C0, CF(-1, -0.925 + 0.5 * Cos(sine / 7) / 2, -0.5 * Cos(sine / 7) / 2) * angles(Rad(-15 + 5 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
| 1785 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90) , Rad(0), Rad(15 + 4.5 * Sin(sine / 30)) - ra.RotVelocity.Y / 75), 0.1) | |
| 1786 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-70) * Cos(sine / 7) , Rad(0) , Rad(-5 - 4.5 * Sin(sine / 30)) + la.RotVelocity.Y / 75), 0.1) | |
| 1787 | end | |
| 1788 | end | |
| 1789 | end | |
| 1790 | if 0 < #Effects then | |
| 1791 | for e = 1, #Effects do | |
| 1792 | if Effects[e] ~= nil then | |
| 1793 | local Thing = Effects[e] | |
| 1794 | if Thing ~= nil then | |
| 1795 | local Part = Thing[1] | |
| 1796 | local Mode = Thing[2] | |
| 1797 | local Delay = Thing[3] | |
| 1798 | local IncX = Thing[4] | |
| 1799 | local IncY = Thing[5] | |
| 1800 | local IncZ = Thing[6] | |
| 1801 | if 1 >= Thing[1].Transparency then | |
| 1802 | if Thing[2] == "Block1" then | |
| 1803 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1804 | local Mesh = Thing[1].Mesh | |
| 1805 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1806 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1807 | elseif Thing[2] == "Block2" then | |
| 1808 | Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0) | |
| 1809 | local Mesh = Thing[7] | |
| 1810 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1811 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1812 | elseif Thing[2] == "Block3" then | |
| 1813 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0) | |
| 1814 | local Mesh = Thing[7] | |
| 1815 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1816 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1817 | elseif Thing[2] == "Cylinder" then | |
| 1818 | local Mesh = Thing[1].Mesh | |
| 1819 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1820 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1821 | elseif Thing[2] == "Blood" then | |
| 1822 | local Mesh = Thing[7] | |
| 1823 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0) | |
| 1824 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1825 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1826 | elseif Thing[2] == "Elec" then | |
| 1827 | local Mesh = Thing[1].Mesh | |
| 1828 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
| 1829 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1830 | elseif Thing[2] == "Disappear" then | |
| 1831 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1832 | elseif Thing[2] == "Shatter" then | |
| 1833 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1834 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
| 1835 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
| 1836 | Thing[6] = Thing[6] + Thing[5] | |
| 1837 | end | |
| 1838 | else | |
| 1839 | Part.Parent = nil | |
| 1840 | table.remove(Effects, e) | |
| 1841 | end | |
| 1842 | end | |
| 1843 | end | |
| 1844 | end | |
| 1845 | end | |
| 1846 | end | |
| 1847 | ------------------------------------------------------- | |
| 1848 | --End Animations And Script-- | |
| 1849 | ------------------------------------------------------- |