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