SHOW:
|
|
- or go back to the newest paste.
| 1 | --Sans? | |
| 2 | ||
| 3 | ||
| 4 | Player = game:GetService("Players").LocalPlayer
| |
| 5 | pls = game:GetService'Players' | |
| 6 | rs = game:GetService'RunService' | |
| 7 | uinps = game:GetService'UserInputService' | |
| 8 | lp = pls.LocalPlayer | |
| 9 | c = lp.Character | |
| 10 | human = c.Humanoid | |
| 11 | PlayerGui = Player.PlayerGui | |
| 12 | Cam = workspace.CurrentCamera | |
| 13 | Backpack = Player.Backpack | |
| 14 | Character = Player.Character | |
| 15 | Humanoid = Character.Humanoid | |
| 16 | Mouse = Player:GetMouse() | |
| 17 | RootPart = Character["HumanoidRootPart"] | |
| 18 | Torso = Character["Torso"] | |
| 19 | Head = Character["Head"] | |
| 20 | RightArm = Character["Right Arm"] | |
| 21 | LeftArm = Character["Left Arm"] | |
| 22 | RightLeg = Character["Right Leg"] | |
| 23 | LeftLeg = Character["Left Leg"] | |
| 24 | RootJoint = RootPart["RootJoint"] | |
| 25 | Neck = Torso["Neck"] | |
| 26 | RightShoulder = Torso["Right Shoulder"] | |
| 27 | LeftShoulder = Torso["Left Shoulder"] | |
| 28 | RightHip = Torso["Right Hip"] | |
| 29 | LeftHip = Torso["Left Hip"] | |
| 30 | local sick = Instance.new("Sound",Character)
| |
| 31 | - | sick.SoundId = "rbxassetid://531711813" |
| 31 | + | sick.SoundId = "rbxassetid://304114750" |
| 32 | sick.Looped = true | |
| 33 | sick.Pitch = 1 | |
| 34 | - | sick.Volume = 1 |
| 34 | + | sick.Volume = math.huge |
| 35 | sick:Play() | |
| 36 | Head:ClearAllChildren() | |
| 37 | ||
| 38 | numLerp = function(start, goal, alpha) | |
| 39 | return(((goal - start) * alpha) + start) | |
| 40 | end | |
| 41 | ||
| 42 | CFrameZero = function() | |
| 43 | return CFrame.new(Vector3.new()) | |
| 44 | end | |
| 45 | ||
| 46 | rad = function(value) | |
| 47 | return math.rad(value) | |
| 48 | end | |
| 49 | ||
| 50 | CFAngles = function(Vector) | |
| 51 | return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z)) | |
| 52 | end | |
| 53 | ||
| 54 | ||
| 55 | ||
| 56 | AnimStat = {
| |
| 57 | lerpSpeed = .2; | |
| 58 | lerpSpeed2 = .35; | |
| 59 | lerpTween = 0; | |
| 60 | } | |
| 61 | ||
| 62 | Joints = {
| |
| 63 | c.HumanoidRootPart.RootJoint; | |
| 64 | c.Torso.Neck; | |
| 65 | c.Torso['Left Shoulder']; | |
| 66 | c.Torso['Right Shoulder']; | |
| 67 | c.Torso['Left Hip']; | |
| 68 | c.Torso['Right Hip']; | |
| 69 | } | |
| 70 | ||
| 71 | JointTargets = {
| |
| 72 | CFrameZero(); | |
| 73 | CFrameZero(); | |
| 74 | CFrameZero(); | |
| 75 | CFrameZero(); | |
| 76 | CFrameZero(); | |
| 77 | CFrameZero(); | |
| 78 | } | |
| 79 | ||
| 80 | ||
| 81 | ||
| 82 | local tor = Instance.new("CharacterMesh")
| |
| 83 | tor.Parent = Character | |
| 84 | tor.Name = "Bones" | |
| 85 | tor.BodyPart = "Torso" | |
| 86 | tor.MeshId = "36780113" | |
| 87 | tor.OverlayTextureId = "36780292" | |
| 88 | ||
| 89 | local tor = Instance.new("CharacterMesh")
| |
| 90 | tor.Parent = Character | |
| 91 | tor.Name = "Bones" | |
| 92 | tor.BodyPart = "LeftLeg" | |
| 93 | tor.MeshId = "36780079" | |
| 94 | tor.OverlayTextureId = "36780292" | |
| 95 | ||
| 96 | local tor = Instance.new("CharacterMesh")
| |
| 97 | tor.Parent = Character | |
| 98 | tor.Name = "Bones" | |
| 99 | tor.BodyPart = "RightLeg" | |
| 100 | tor.MeshId = "36780195" | |
| 101 | tor.OverlayTextureId = "36780292" | |
| 102 | ||
| 103 | local tor = Instance.new("CharacterMesh")
| |
| 104 | tor.Parent = Character | |
| 105 | tor.Name = "Bones" | |
| 106 | tor.BodyPart = "RightArm" | |
| 107 | tor.MeshId = "36780156" | |
| 108 | tor.OverlayTextureId = "36780292" | |
| 109 | ||
| 110 | local tor = Instance.new("CharacterMesh")
| |
| 111 | tor.Parent = Character | |
| 112 | tor.Name = "Bones" | |
| 113 | tor.BodyPart = "LeftArm" | |
| 114 | tor.MeshId = "36780032" | |
| 115 | tor.OverlayTextureId = "36780292" | |
| 116 | ||
| 117 | local tor = Instance.new("SpecialMesh")
| |
| 118 | tor.Scale = Vector3.new(1,1,1) | |
| 119 | tor.MeshType = "FileMesh" | |
| 120 | tor.MeshId = "http://www.roblox.com/asset/?id=36869983" | |
| 121 | tor.TextureId = "rbxassetid://36869975" | |
| 122 | tor.Parent = Head | |
| 123 | ||
| 124 | prepareCharacter = function() | |
| 125 | local transPoints = {
| |
| 126 | NumberSequenceKeypoint.new(0,.819,.0375), | |
| 127 | NumberSequenceKeypoint.new(.207,.594,.0187), | |
| 128 | NumberSequenceKeypoint.new(.4,.55,.031), | |
| 129 | NumberSequenceKeypoint.new(.57,.619,.05), | |
| 130 | NumberSequenceKeypoint.new(.76,.8,.0375), | |
| 131 | NumberSequenceKeypoint.new(1,1,0), | |
| 132 | } | |
| 133 | local sizePoints = {
| |
| 134 | NumberSequenceKeypoint.new(0,.687,0), | |
| 135 | NumberSequenceKeypoint.new(.111,.875,0), | |
| 136 | NumberSequenceKeypoint.new(.327,1.19,0), | |
| 137 | NumberSequenceKeypoint.new(.646,1.56,0), | |
| 138 | NumberSequenceKeypoint.new(.805,1.37,0), | |
| 139 | NumberSequenceKeypoint.new(.905,1.06,0), | |
| 140 | NumberSequenceKeypoint.new(.968,.938,0), | |
| 141 | NumberSequenceKeypoint.new(.984,1.13,0), | |
| 142 | NumberSequenceKeypoint.new(1,1.62,0), | |
| 143 | } | |
| 144 | local Size = NumberSequence.new(sizePoints) | |
| 145 | local Transparency = NumberSequence.new(transPoints) | |
| 146 | rayModel = Instance.new("Model",c)
| |
| 147 | efxBlock = Instance.new("Part",c)
| |
| 148 | efxBlock.BrickColor = BrickColor.new("Cyan")
| |
| 149 | efxBlock.Material = "Neon" | |
| 150 | - | efxBlock.Transparency = .3 |
| 150 | + | |
| 151 | - | efxBlock.Size = Vector3.new(.3,.3,.3) |
| 151 | + | efxBlock.Transparency = 0 |
| 152 | efxBlock.Size = Vector3.new(.5,.5,.5) | |
| 153 | local mesh = Instance.new("SpecialMesh",efxBlock)
| |
| 154 | mesh.MeshType = Enum.MeshType.Sphere | |
| 155 | mesh.Scale = Vector3.new(1,1,1) | |
| 156 | light = Instance.new("PointLight",c.Head)
| |
| 157 | light.Range = 10 | |
| 158 | light.Color = Color3.new(0,200/255,1) | |
| 159 | light.Shadows = false | |
| 160 | local particles = Instance.new("ParticleEmitter",efxBlock)
| |
| 161 | particles.Color = ColorSequence.new(Color3.new(0,0,225/255),Color3.new(20/255,190/255,205/255)) | |
| 162 | particles.LightEmission = .95 | |
| 163 | particles.Size = Size | |
| 164 | particles.Name = "Fire" | |
| 165 | particles.Transparency = Transparency | |
| 166 | particles.LockedToPart = true | |
| 167 | particles.VelocityInheritance = .5 | |
| 168 | particles.LockedToPart = true | |
| 169 | particles.Rate = 70 | |
| 170 | - | particles.Lifetime = NumberRange.new(2,2) |
| 170 | + | |
| 171 | particles.Lifetime = NumberRange.new(1,1) | |
| 172 | particles.RotSpeed = NumberRange.new(100,100) | |
| 173 | particles.Speed = NumberRange.new(7,7) | |
| 174 | script.Parent = efxBlock | |
| 175 | - | local offset = Vector3.new(-0.11, .23, -0.5) |
| 175 | + | |
| 176 | local offset = Vector3.new(-0.28, .22, -0.43) | |
| 177 | local weld = Instance.new("Weld",c.Head)
| |
| 178 | weld.Part0 = c.Head | |
| 179 | weld.Part1 = efxBlock | |
| 180 | weld.C0 = CFrame.new(offset) * CFrame.Angles(math.rad(-40),math.rad(10),math.rad(40)) | |
| 181 | efxBlock.Parent = c | |
| 182 | local music = Instance.new("Sound",c)
| |
| 183 | music.SoundId = "rbxassetid://316012176" | |
| 184 | music.Looped = true | |
| 185 | music.Volume = 0 | |
| 186 | fight = music | |
| 187 | local music2 = Instance.new("Sound",c)
| |
| 188 | music2.SoundId = "rbxassetid://316014309" | |
| 189 | music2.Looped = true | |
| 190 | music2.Volume = 0 | |
| 191 | sans = music2 | |
| 192 | end | |
| 193 | ||
| 194 | prepareCharacter() | |
| 195 | ||
| 196 | local IDs = {133830212,235845120}
| |
| 197 | local p=game:service("Players").LocalPlayer
| |
| 198 | Instance.new("ForceField", game.Players.LocalPlayer.Character). Visible = false
| |
| 199 | local Player = game:service'Players'.localPlayer | |
| 200 | Character = Player.Character | |
| 201 | Head = Character["Head"] | |
| 202 | local char=p.Character | |
| 203 | Humanoid = Character.Humanoid | |
| 204 | local hum=char.Humanoid | |
| 205 | local chara = Player.Character | |
| 206 | hum.MaxHealth= math.huge | |
| 207 | hum.Health=hum.MaxHealth | |
| 208 | function swait(num) | |
| 209 | if num==0 or num==nil then | |
| 210 | game:service'RunService'.Stepped:wait(0) | |
| 211 | else | |
| 212 | for i=0,num do | |
| 213 | game:service'RunService'.Stepped:wait(0) | |
| 214 | end | |
| 215 | end | |
| 216 | end | |
| 217 | do | |
| 218 | local filteredMessages = { ['____'] = '___' };
| |
| 219 | local onPropertyChanged = function (obj) | |
| 220 | if (obj:isDescendantOf (workspace)) then | |
| 221 | local objText = obj.Text; | |
| 222 | ||
| 223 | if (objText ~= '___' and objText:find '(%S)') then | |
| 224 | if (filteredMessages [objText] and filteredMessages [objText] ~= objText) then | |
| 225 | obj.Text = filteredMessages [objText]; | |
| 226 | elseif (not filteredMessages [objText]) then | |
| 227 | obj.Text = '___'; | |
| 228 | ||
| 229 | local filtered = game:service 'Chat':FilterStringForBroadcast (objText, game:service 'Players'.localPlayer); | |
| 230 | ||
| 231 | filteredMessages [objText] = filtered; | |
| 232 | filteredMessages [filtered] = filtered; | |
| 233 | ||
| 234 | obj.Text = filtered; | |
| 235 | end; | |
| 236 | end; | |
| 237 | end; | |
| 238 | end; | |
| 239 | ||
| 240 | local newInstance = Instance.new; | |
| 241 | Instance = {
| |
| 242 | new = function (class, parent) | |
| 243 | local obj = newInstance (class, parent); | |
| 244 | ||
| 245 | if (pcall (function()return obj.Text;end)) then | |
| 246 | obj:getPropertyChangedSignal ('Parent'):connect (function () onPropertyChanged (obj) end);
| |
| 247 | obj:getPropertyChangedSignal ('Text'):connect (function() onPropertyChanged (obj) end);
| |
| 248 | end; | |
| 249 | ||
| 250 | return obj; | |
| 251 | end; | |
| 252 | }; | |
| 253 | end; | |
| 254 | plr = game.Players.LocalPlayer | |
| 255 | mouse = plr:GetMouse() | |
| 256 | part = nil | |
| 257 | bp = nil | |
| 258 | particles = nil | |
| 259 | base = Instance.new("ScreenGui",plr.PlayerGui)
| |
| 260 | bbg = Instance.new("BillboardGui",plr.Character.Head)
| |
| 261 | bbg.Size = UDim2.new(0,200,0,50) | |
| 262 | bbg.StudsOffset = Vector3.new(0,1.5,3) | |
| 263 | bbgTl = Instance.new("TextLabel",bbg)
| |
| 264 | bbgTl.BackgroundTransparency = 1 | |
| 265 | bbgTl.Size = UDim2.new(10,0,1,0) | |
| 266 | bbgTl.Position = UDim2.new(-4.5,0,0,0) | |
| 267 | bbgTl.Font = "Cartoon" | |
| 268 | bbgTl.Text = " " | |
| 269 | bbgTl.TextSize = 42 | |
| 270 | bbgTl.TextStrokeColor3 = Color3.new(0,0,0) | |
| 271 | bbgTl.TextStrokeTransparency = 0 | |
| 272 | bbgTl.TextWrapped = true | |
| 273 | plr.Chatted:connect(function(msg) | |
| 274 | bbgTl.Text = msg | |
| 275 | wait(5) | |
| 276 | if bbgTl.Text == msg then | |
| 277 | bbgTl.Text = " " | |
| 278 | while true do | |
| 279 | bbgTl.TextColor3 = Color3.new (math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random()) | |
| 280 | wait(.1) | |
| 281 | end | |
| 282 | end | |
| 283 | end) | |
| 284 | function thread(f) | |
| 285 | coroutine.resume(coroutine.create(f)) | |
| 286 | end | |
| 287 | function clerp(a, b, t) | |
| 288 | local qa = {
| |
| 289 | QuaternionFromCFrame(a) | |
| 290 | } | |
| 291 | local qb = {
| |
| 292 | QuaternionFromCFrame(b) | |
| 293 | } | |
| 294 | local ax, ay, az = a.x, a.y, a.z | |
| 295 | local bx, by, bz = b.x, b.y, b.z | |
| 296 | local _t = 1 - t | |
| 297 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 298 | end | |
| 299 | function QuaternionFromCFrame(cf) | |
| 300 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 301 | local trace = m00 + m11 + m22 | |
| 302 | if trace > 0 then | |
| 303 | local s = math.sqrt(1 + trace) | |
| 304 | local recip = 0.5 / s | |
| 305 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
| 306 | else | |
| 307 | local i = 0 | |
| 308 | if m00 < m11 then | |
| 309 | i = 1 | |
| 310 | end | |
| 311 | if m22 > (i == 0 and m00 or m11) then | |
| 312 | i = 2 | |
| 313 | end | |
| 314 | if i == 0 then | |
| 315 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 316 | local recip = 0.5 / s | |
| 317 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 318 | elseif i == 1 then | |
| 319 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
| 320 | local recip = 0.5 / s | |
| 321 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 322 | elseif i == 2 then | |
| 323 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
| 324 | local recip = 0.5 / s | |
| 325 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 326 | end | |
| 327 | end | |
| 328 | end | |
| 329 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 330 | local xs, ys, zs = x + x, y + y, z + z | |
| 331 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 332 | local xx = x * xs | |
| 333 | local xy = x * ys | |
| 334 | local xz = x * zs | |
| 335 | local yy = y * ys | |
| 336 | local yz = y * zs | |
| 337 | local zz = z * zs | |
| 338 | 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)) | |
| 339 | end | |
| 340 | function QuaternionSlerp(a, b, t) | |
| 341 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
| 342 | local startInterp, finishInterp | |
| 343 | if cosTheta >= 1.0E-4 then | |
| 344 | if 1 - cosTheta > 1.0E-4 then | |
| 345 | local theta = math.acos(cosTheta) | |
| 346 | local invSinTheta = 1 / math.sin(theta) | |
| 347 | startInterp = math.sin((1 - t) * theta) * invSinTheta | |
| 348 | finishInterp = math.sin(t * theta) * invSinTheta | |
| 349 | else | |
| 350 | startInterp = 1 - t | |
| 351 | finishInterp = t | |
| 352 | end | |
| 353 | elseif 1 + cosTheta > 1.0E-4 then | |
| 354 | local theta = math.acos(-cosTheta) | |
| 355 | local invSinTheta = 1 / math.sin(theta) | |
| 356 | startInterp = math.sin((t - 1) * theta) * invSinTheta | |
| 357 | finishInterp = math.sin(t * theta) * invSinTheta | |
| 358 | else | |
| 359 | startInterp = t - 1 | |
| 360 | finishInterp = t | |
| 361 | end | |
| 362 | 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 | |
| 363 | end | |
| 364 | function rayCast(Position, Direction, Range, Ignore) | |
| 365 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
| |
| 366 | end | |
| 367 | ||
| 368 | wait() | |
| 369 | local plr = game:service'Players'.LocalPlayer | |
| 370 | local char = plr.Character | |
| 371 | local hum = char.Humanoid | |
| 372 | local ra = char["Right Arm"] | |
| 373 | local la= char["Left Arm"] | |
| 374 | local rl= char["Right Leg"] | |
| 375 | local ll = char["Left Leg"] | |
| 376 | local hed = char.Head | |
| 377 | local root = char.HumanoidRootPart | |
| 378 | local rootj = root.RootJoint | |
| 379 | local tors = char.Torso | |
| 380 | local mouse = plr:GetMouse() | |
| 381 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
| 382 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
| 383 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
| 384 | local maincolor = BrickColor.new("Magenta")
| |
| 385 | cf = CFrame.new | |
| 386 | angles = CFrame.Angles | |
| 387 | attack = false | |
| 388 | euler=CFrame.fromEulerAnglesXYZ | |
| 389 | equipped = false | |
| 390 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 391 | RSH, LSH = nil, nil | |
| 392 | RW = Instance.new("Weld")
| |
| 393 | LW = Instance.new("Weld")
| |
| 394 | RH = tors["Right Hip"] | |
| 395 | LH = tors["Left Hip"] | |
| 396 | RSH = tors["Right Shoulder"] | |
| 397 | LSH = tors["Left Shoulder"] | |
| 398 | RSH.Parent = nil | |
| 399 | LSH.Parent = nil | |
| 400 | RW.Name = "RW" | |
| 401 | RW.Part0 = tors | |
| 402 | RW.C0 = CFrame.new(1.5, 0.5, 0) | |
| 403 | RW.C1 = CFrame.new(0, 0.5, 0) | |
| 404 | RW.Part1 = ra | |
| 405 | RW.Parent = tors | |
| 406 | LW.Name = "LW" | |
| 407 | LW.Part0 = tors | |
| 408 | LW.C0 = CFrame.new(-1.5, 0.5, 0) | |
| 409 | LW.C1 = CFrame.new(0, 0.5, 0) | |
| 410 | LW.Part1 = la | |
| 411 | LW.Parent = tors | |
| 412 | print('User is '..plr.Name)
| |
| 413 | Effects = {}
| |
| 414 | ||
| 415 | ||
| 416 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 417 | ArtificialHB.Name = "Heartbeat" | |
| 418 | ||
| 419 | script:WaitForChild("Heartbeat")
| |
| 420 | ||
| 421 | frame = 1 / 60 | |
| 422 | tf = 0 | |
| 423 | allowframeloss = false | |
| 424 | tossremainder = false | |
| 425 | lastframe = tick() | |
| 426 | script.Heartbeat:Fire() | |
| 427 | ||
| 428 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 429 | tf = tf + s | |
| 430 | if tf >= frame then | |
| 431 | if allowframeloss then | |
| 432 | script.Heartbeat:Fire() | |
| 433 | lastframe = tick() | |
| 434 | else | |
| 435 | for i = 1, math.floor(tf / frame) do | |
| 436 | script.Heartbeat:Fire() | |
| 437 | end | |
| 438 | lastframe = tick() | |
| 439 | end | |
| 440 | if tossremainder then | |
| 441 | tf = 0 | |
| 442 | else | |
| 443 | tf = tf - frame * math.floor(tf / frame) | |
| 444 | end | |
| 445 | end | |
| 446 | end) | |
| 447 | local RbxUtility = LoadLibrary("RbxUtility")
| |
| 448 | local Create = RbxUtility.Create | |
| 449 | ||
| 450 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
| 451 | if hit.Parent == nil then | |
| 452 | return | |
| 453 | end | |
| 454 | local h = hit.Parent:FindFirstChildOfClass("Humanoid")
| |
| 455 | for _, v in pairs(hit.Parent:children()) do | |
| 456 | if v:IsA("Humanoid") then
| |
| 457 | h = v | |
| 458 | end | |
| 459 | end | |
| 460 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
| |
| 461 | warn'No R15 allowed' | |
| 462 | hit.Parent:FindFirstChild("Head"):BreakJoints()
| |
| 463 | end | |
| 464 | ||
| 465 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
| |
| 466 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then
| |
| 467 | if hit.Parent.DebounceHit.Value == true then | |
| 468 | return | |
| 469 | end | |
| 470 | end | |
| 471 | if insta == true then | |
| 472 | hit.Parent:FindFirstChild("Head"):BreakJoints()
| |
| 473 | end | |
| 474 | local c = Create("ObjectValue"){
| |
| 475 | Name = "creator", | |
| 476 | Value = game:service("Players").LocalPlayer,
| |
| 477 | Parent = h, | |
| 478 | } | |
| 479 | game:GetService("Debris"):AddItem(c, .5)
| |
| 480 | if HitSound ~= nil and HitPitch ~= nil then | |
| 481 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
| 482 | end | |
| 483 | local Damage = math.random(minim, maxim) | |
| 484 | local blocked = false | |
| 485 | local block = hit.Parent:findFirstChild("Block")
| |
| 486 | if block ~= nil then | |
| 487 | if block.className == "IntValue" then | |
| 488 | if block.Value > 0 then | |
| 489 | blocked = true | |
| 490 | block.Value = block.Value - 1 | |
| 491 | print(block.Value) | |
| 492 | end | |
| 493 | end | |
| 494 | end | |
| 495 | if blocked == false then | |
| 496 | h.Health = h.Health - Damage | |
| 497 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
| 498 | else | |
| 499 | h.Health = h.Health - (Damage / 2) | |
| 500 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
| 501 | end | |
| 502 | if Type == "Knockdown" then | |
| 503 | local hum = hit.Parent.Humanoid | |
| 504 | hum.PlatformStand = true | |
| 505 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 506 | swait(1) | |
| 507 | HHumanoid.PlatformStand = false | |
| 508 | end), hum) | |
| 509 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
| 510 | local bodvol = Create("BodyVelocity"){
| |
| 511 | velocity = angle * knockback, | |
| 512 | P = 5000, | |
| 513 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 514 | Parent = hit, | |
| 515 | } | |
| 516 | local rl = Create("BodyAngularVelocity"){
| |
| 517 | P = 3000, | |
| 518 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
| 519 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
| 520 | Parent = hit, | |
| 521 | } | |
| 522 | game:GetService("Debris"):AddItem(bodvol, .5)
| |
| 523 | game:GetService("Debris"):AddItem(rl, .5)
| |
| 524 | elseif Type == "Normal" then | |
| 525 | local vp = Create("BodyVelocity"){
| |
| 526 | P = 500, | |
| 527 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
| 528 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
| 529 | } | |
| 530 | if knockback > 0 then | |
| 531 | vp.Parent = hit.Parent.Torso | |
| 532 | end | |
| 533 | game:GetService("Debris"):AddItem(vp, .5)
| |
| 534 | elseif Type == "Up" then | |
| 535 | local bodyVelocity = Create("BodyVelocity"){
| |
| 536 | velocity = Vector3.new(0, 20, 0), | |
| 537 | P = 5000, | |
| 538 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 539 | Parent = hit, | |
| 540 | } | |
| 541 | game:GetService("Debris"):AddItem(bodyVelocity, .5)
| |
| 542 | elseif Type == "DarkUp" then | |
| 543 | coroutine.resume(coroutine.create(function() | |
| 544 | for i = 0, 1, 0.1 do | |
| 545 | swait() | |
| 546 | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
| |
| 547 | end | |
| 548 | end)) | |
| 549 | local bodyVelocity = Create("BodyVelocity"){
| |
| 550 | velocity = Vector3.new(0, 20, 0), | |
| 551 | P = 5000, | |
| 552 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 553 | Parent = hit, | |
| 554 | } | |
| 555 | game:GetService("Debris"):AddItem(bodyVelocity, 1)
| |
| 556 | elseif Type == "Snare" then | |
| 557 | local bp = Create("BodyPosition"){
| |
| 558 | P = 2000, | |
| 559 | D = 100, | |
| 560 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 561 | position = hit.Parent.Torso.Position, | |
| 562 | Parent = hit.Parent.Torso, | |
| 563 | } | |
| 564 | game:GetService("Debris"):AddItem(bp, 1)
| |
| 565 | elseif Type == "Freeze" then | |
| 566 | local BodPos = Create("BodyPosition"){
| |
| 567 | P = 50000, | |
| 568 | D = 1000, | |
| 569 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 570 | position = hit.Parent.Torso.Position, | |
| 571 | Parent = hit.Parent.Torso, | |
| 572 | } | |
| 573 | local BodGy = Create("BodyGyro") {
| |
| 574 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
| 575 | P = 20e+003, | |
| 576 | Parent = hit.Parent.Torso, | |
| 577 | cframe = hit.Parent.Torso.CFrame, | |
| 578 | } | |
| 579 | hit.Parent.Torso.Anchored = true | |
| 580 | coroutine.resume(coroutine.create(function(Part) | |
| 581 | swait(1.5) | |
| 582 | Part.Anchored = false | |
| 583 | end), hit.Parent.Torso) | |
| 584 | game:GetService("Debris"):AddItem(BodPos, 3)
| |
| 585 | game:GetService("Debris"):AddItem(BodGy, 3)
| |
| 586 | end | |
| 587 | local debounce = Create("BoolValue"){
| |
| 588 | Name = "DebounceHit", | |
| 589 | Parent = hit.Parent, | |
| 590 | Value = true, | |
| 591 | } | |
| 592 | game:GetService("Debris"):AddItem(debounce, Delay)
| |
| 593 | c = Create("ObjectValue"){
| |
| 594 | Name = "creator", | |
| 595 | Value = Player, | |
| 596 | Parent = h, | |
| 597 | } | |
| 598 | game:GetService("Debris"):AddItem(c, .5)
| |
| 599 | end | |
| 600 | end | |
| 601 | ||
| 602 | function ShowDamage(Pos, Text, Time, Color) | |
| 603 | local Rate = (1 / 30) | |
| 604 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
| 605 | local Text = (Text or "") | |
| 606 | local Time = (Time or 2) | |
| 607 | local Color = (Color or Color3.new(1, 0, 1)) | |
| 608 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
| 609 | EffectPart.Anchored = true | |
| 610 | local BillboardGui = Create("BillboardGui"){
| |
| 611 | Size = UDim2.new(3, 0, 3, 0), | |
| 612 | Adornee = EffectPart, | |
| 613 | Parent = EffectPart, | |
| 614 | } | |
| 615 | local TextLabel = Create("TextLabel"){
| |
| 616 | BackgroundTransparency = 1, | |
| 617 | Size = UDim2.new(1, 0, 1, 0), | |
| 618 | Text = Text, | |
| 619 | Font = "Highway", | |
| 620 | TextColor3 = Color, | |
| 621 | TextScaled = true, | |
| 622 | Parent = BillboardGui, | |
| 623 | } | |
| 624 | game.Debris:AddItem(EffectPart, (Time)) | |
| 625 | EffectPart.Parent = game:GetService("Workspace")
| |
| 626 | delay(0, function() | |
| 627 | local Frames = (Time / Rate) | |
| 628 | for Frame = 1, Frames do | |
| 629 | wait(Rate) | |
| 630 | local Percent = (Frame / Frames) | |
| 631 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
| 632 | TextLabel.TextTransparency = Percent | |
| 633 | end | |
| 634 | if EffectPart and EffectPart.Parent then | |
| 635 | EffectPart:Destroy() | |
| 636 | end | |
| 637 | end) | |
| 638 | end | |
| 639 | function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch) | |
| 640 | for _, c in pairs(workspace:children()) do | |
| 641 | local hum = c:findFirstChild("Humanoid")
| |
| 642 | if hum ~= nil then | |
| 643 | local head = c:findFirstChild("Torso") or c:findFirstChild("UpperTorso") or c:FindFirstChild('LowerTorso')
| |
| 644 | if head ~= nil then | |
| 645 | local targ = head.Position - Part.Position | |
| 646 | local mag = targ.magnitude | |
| 647 | if mag <= Magnitude and c.Name ~= plr.Name then | |
| 648 | Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, root, .1, "rbxassetid://" .. HitSound, HitPitch) | |
| 649 | end | |
| 650 | end | |
| 651 | end | |
| 652 | end | |
| 653 | end | |
| 654 | CFuncs = {
| |
| 655 | Part = {
| |
| 656 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 657 | local Part = Create("Part")({
| |
| 658 | Parent = Parent, | |
| 659 | Reflectance = Reflectance, | |
| 660 | Transparency = Transparency, | |
| 661 | CanCollide = false, | |
| 662 | Locked = true, | |
| 663 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 664 | Name = Name, | |
| 665 | Size = Size, | |
| 666 | Material = Material | |
| 667 | }) | |
| 668 | RemoveOutlines(Part) | |
| 669 | return Part | |
| 670 | end | |
| 671 | }, | |
| 672 | Mesh = {
| |
| 673 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 674 | local Msh = Create(Mesh)({
| |
| 675 | Parent = Part, | |
| 676 | Offset = OffSet, | |
| 677 | Scale = Scale | |
| 678 | }) | |
| 679 | if Mesh == "SpecialMesh" then | |
| 680 | Msh.MeshType = MeshType | |
| 681 | Msh.MeshId = MeshId | |
| 682 | end | |
| 683 | return Msh | |
| 684 | end | |
| 685 | }, | |
| 686 | Mesh = {
| |
| 687 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 688 | local Msh = Create(Mesh)({
| |
| 689 | Parent = Part, | |
| 690 | Offset = OffSet, | |
| 691 | Scale = Scale | |
| 692 | }) | |
| 693 | if Mesh == "SpecialMesh" then | |
| 694 | Msh.MeshType = MeshType | |
| 695 | Msh.MeshId = MeshId | |
| 696 | end | |
| 697 | return Msh | |
| 698 | end | |
| 699 | }, | |
| 700 | Weld = {
| |
| 701 | Create = function(Parent, Part0, Part1, C0, C1) | |
| 702 | local Weld = Create("Weld")({
| |
| 703 | Parent = Parent, | |
| 704 | Part0 = Part0, | |
| 705 | Part1 = Part1, | |
| 706 | C0 = C0, | |
| 707 | C1 = C1 | |
| 708 | }) | |
| 709 | return Weld | |
| 710 | end | |
| 711 | }, | |
| 712 | Sound = {
| |
| 713 | Create = function(id, par, vol, pit) | |
| 714 | coroutine.resume(coroutine.create(function() | |
| 715 | local S = Create("Sound")({
| |
| 716 | Volume = vol, | |
| 717 | Pitch = pit or 1, | |
| 718 | SoundId = id, | |
| 719 | Parent = par or workspace | |
| 720 | }) | |
| 721 | wait() | |
| 722 | S:play() | |
| 723 | game:GetService("Debris"):AddItem(S, 6)
| |
| 724 | end)) | |
| 725 | end | |
| 726 | }, | |
| 727 | ParticleEmitter = {
| |
| 728 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
| 729 | local fp = Create("ParticleEmitter")({
| |
| 730 | Parent = Parent, | |
| 731 | Color = ColorSequence.new(Color1, Color2), | |
| 732 | LightEmission = LightEmission, | |
| 733 | Size = Size, | |
| 734 | Texture = Texture, | |
| 735 | Transparency = Transparency, | |
| 736 | ZOffset = ZOffset, | |
| 737 | Acceleration = Accel, | |
| 738 | Drag = Drag, | |
| 739 | LockedToPart = LockedToPart, | |
| 740 | VelocityInheritance = VelocityInheritance, | |
| 741 | EmissionDirection = EmissionDirection, | |
| 742 | Enabled = Enabled, | |
| 743 | Lifetime = LifeTime, | |
| 744 | Rate = Rate, | |
| 745 | Rotation = Rotation, | |
| 746 | RotSpeed = RotSpeed, | |
| 747 | Speed = Speed, | |
| 748 | VelocitySpread = VelocitySpread | |
| 749 | }) | |
| 750 | return fp | |
| 751 | end | |
| 752 | } | |
| 753 | } | |
| 754 | function RemoveOutlines(part) | |
| 755 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 756 | end | |
| 757 | function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 758 | local Part = Create("Part")({
| |
| 759 | formFactor = FormFactor, | |
| 760 | Parent = Parent, | |
| 761 | Reflectance = Reflectance, | |
| 762 | Transparency = Transparency, | |
| 763 | CanCollide = false, | |
| 764 | Locked = true, | |
| 765 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 766 | Name = Name, | |
| 767 | Size = Size, | |
| 768 | Material = Material | |
| 769 | }) | |
| 770 | RemoveOutlines(Part) | |
| 771 | return Part | |
| 772 | end | |
| 773 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 774 | local Msh = Create(Mesh)({
| |
| 775 | Parent = Part, | |
| 776 | Offset = OffSet, | |
| 777 | Scale = Scale | |
| 778 | }) | |
| 779 | if Mesh == "SpecialMesh" then | |
| 780 | Msh.MeshType = MeshType | |
| 781 | Msh.MeshId = MeshId | |
| 782 | end | |
| 783 | return Msh | |
| 784 | end | |
| 785 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
| 786 | local Weld = Create("Weld")({
| |
| 787 | Parent = Parent, | |
| 788 | Part0 = Part0, | |
| 789 | Part1 = Part1, | |
| 790 | C0 = C0, | |
| 791 | C1 = C1 | |
| 792 | }) | |
| 793 | return Weld | |
| 794 | end | |
| 795 | EffectModel = Instance.new("Model", char)
| |
| 796 | Effects = {
| |
| 797 | Block = {
| |
| 798 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
| 799 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 800 | prt.Anchored = true | |
| 801 | prt.CFrame = cframe | |
| 802 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 803 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 804 | if Type == 1 or Type == nil then | |
| 805 | table.insert(Effects, {
| |
| 806 | prt, | |
| 807 | "Block1", | |
| 808 | delay, | |
| 809 | x3, | |
| 810 | y3, | |
| 811 | z3, | |
| 812 | msh | |
| 813 | }) | |
| 814 | elseif Type == 2 then | |
| 815 | table.insert(Effects, {
| |
| 816 | prt, | |
| 817 | "Block2", | |
| 818 | delay, | |
| 819 | x3, | |
| 820 | y3, | |
| 821 | z3, | |
| 822 | msh | |
| 823 | }) | |
| 824 | else | |
| 825 | table.insert(Effects, {
| |
| 826 | prt, | |
| 827 | "Block3", | |
| 828 | delay, | |
| 829 | x3, | |
| 830 | y3, | |
| 831 | z3, | |
| 832 | msh | |
| 833 | }) | |
| 834 | end | |
| 835 | end | |
| 836 | }, | |
| 837 | Sphere = {
| |
| 838 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 839 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 840 | prt.Anchored = true | |
| 841 | prt.CFrame = cframe | |
| 842 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 843 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 844 | table.insert(Effects, {
| |
| 845 | prt, | |
| 846 | "Cylinder", | |
| 847 | delay, | |
| 848 | x3, | |
| 849 | y3, | |
| 850 | z3, | |
| 851 | msh | |
| 852 | }) | |
| 853 | end | |
| 854 | }, | |
| 855 | Cylinder = {
| |
| 856 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 857 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 858 | prt.Anchored = true | |
| 859 | prt.CFrame = cframe | |
| 860 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 861 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 862 | table.insert(Effects, {
| |
| 863 | prt, | |
| 864 | "Cylinder", | |
| 865 | delay, | |
| 866 | x3, | |
| 867 | y3, | |
| 868 | z3, | |
| 869 | msh | |
| 870 | }) | |
| 871 | end | |
| 872 | }, | |
| 873 | Wave = {
| |
| 874 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 875 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 876 | prt.Anchored = true | |
| 877 | prt.CFrame = cframe | |
| 878 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://431164262", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
| |
| 879 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 880 | table.insert(Effects, {
| |
| 881 | prt, | |
| 882 | "Cylinder", | |
| 883 | delay, | |
| 884 | x3 / 60, | |
| 885 | y3 / 60, | |
| 886 | z3 / 60, | |
| 887 | msh | |
| 888 | }) | |
| 889 | end | |
| 890 | }, | |
| 891 | Ring = {
| |
| 892 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 893 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 894 | prt.Anchored = true | |
| 895 | prt.CFrame = cframe | |
| 896 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 897 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 898 | table.insert(Effects, {
| |
| 899 | prt, | |
| 900 | "Cylinder", | |
| 901 | delay, | |
| 902 | x3, | |
| 903 | y3, | |
| 904 | z3, | |
| 905 | msh | |
| 906 | }) | |
| 907 | end | |
| 908 | }, | |
| 909 | Break = {
| |
| 910 | Create = function(brickcolor, cframe, x1, y1, z1) | |
| 911 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
| 912 | prt.Anchored = true | |
| 913 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 914 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 915 | local num = math.random(10, 50) / 1000 | |
| 916 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 917 | table.insert(Effects, {
| |
| 918 | prt, | |
| 919 | "Shatter", | |
| 920 | num, | |
| 921 | prt.CFrame, | |
| 922 | math.random() - math.random(), | |
| 923 | 0, | |
| 924 | math.random(50, 100) / 100 | |
| 925 | }) | |
| 926 | end | |
| 927 | } | |
| 928 | } | |
| 929 | function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
| 930 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 931 | prt.Anchored = true | |
| 932 | prt.CFrame = cframe | |
| 933 | local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 934 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 935 | if Type == 1 or Type == nil then | |
| 936 | table.insert(Effects, {
| |
| 937 | prt, | |
| 938 | "Block1", | |
| 939 | delay, | |
| 940 | x3, | |
| 941 | y3, | |
| 942 | z3, | |
| 943 | msh | |
| 944 | }) | |
| 945 | elseif Type == 2 then | |
| 946 | table.insert(Effects, {
| |
| 947 | prt, | |
| 948 | "Block2", | |
| 949 | delay, | |
| 950 | x3, | |
| 951 | y3, | |
| 952 | z3, | |
| 953 | msh | |
| 954 | }) | |
| 955 | elseif Type == 3 then | |
| 956 | table.insert(Effects, {
| |
| 957 | prt, | |
| 958 | "Block3", | |
| 959 | delay, | |
| 960 | x3, | |
| 961 | y3, | |
| 962 | z3, | |
| 963 | msh | |
| 964 | }) | |
| 965 | end | |
| 966 | end | |
| 967 | function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 968 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 969 | prt.Anchored = true | |
| 970 | prt.CFrame = cframe | |
| 971 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 972 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 973 | table.insert(Effects, {
| |
| 974 | prt, | |
| 975 | "Cylinder", | |
| 976 | delay, | |
| 977 | x3, | |
| 978 | y3, | |
| 979 | z3, | |
| 980 | msh | |
| 981 | }) | |
| 982 | end | |
| 983 | function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 984 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
| 985 | prt.Anchored = true | |
| 986 | prt.CFrame = cframe * CFrame.new(x1, y1, z1) | |
| 987 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 988 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 989 | table.insert(Effects, {
| |
| 990 | prt, | |
| 991 | "Cylinder", | |
| 992 | delay, | |
| 993 | x3, | |
| 994 | y3, | |
| 995 | z3, | |
| 996 | msh | |
| 997 | }) | |
| 998 | end | |
| 999 | function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1000 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1001 | prt.Anchored = true | |
| 1002 | prt.CFrame = cframe | |
| 1003 | local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1004 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1005 | table.insert(Effects, {
| |
| 1006 | prt, | |
| 1007 | "Cylinder", | |
| 1008 | delay, | |
| 1009 | x3, | |
| 1010 | y3, | |
| 1011 | z3, | |
| 1012 | msh | |
| 1013 | }) | |
| 1014 | end | |
| 1015 | function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1016 | local prt = CreatePart(3, workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1017 | prt.Anchored = true | |
| 1018 | prt.CFrame = cframe | |
| 1019 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1020 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1021 | table.insert(Effects, {
| |
| 1022 | prt, | |
| 1023 | "Cylinder", | |
| 1024 | delay, | |
| 1025 | x3, | |
| 1026 | y3, | |
| 1027 | z3, | |
| 1028 | msh | |
| 1029 | }) | |
| 1030 | end | |
| 1031 | function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1032 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 1033 | prt.Anchored = true | |
| 1034 | prt.CFrame = cframe | |
| 1035 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1036 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1037 | table.insert(Effects, {
| |
| 1038 | prt, | |
| 1039 | "Cylinder", | |
| 1040 | delay, | |
| 1041 | x3, | |
| 1042 | y3, | |
| 1043 | z3, | |
| 1044 | msh | |
| 1045 | }) | |
| 1046 | end | |
| 1047 | function BreakEffect(brickcolor, cframe, x1, y1, z1) | |
| 1048 | local prt = CreatePart(3, workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
| 1049 | prt.Anchored = true | |
| 1050 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1051 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 1052 | local num = math.random(10, 50) / 1000 | |
| 1053 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1054 | table.insert(Effects, {
| |
| 1055 | prt, | |
| 1056 | "Shatter", | |
| 1057 | num, | |
| 1058 | prt.CFrame, | |
| 1059 | math.random() - math.random(), | |
| 1060 | 0, | |
| 1061 | math.random(50, 100) / 100 | |
| 1062 | }) | |
| 1063 | end | |
| 1064 | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
| 1065 | local fp=Instance.new("Part")
| |
| 1066 | fp.formFactor=formfactor | |
| 1067 | fp.Parent=parent | |
| 1068 | fp.Reflectance=reflectance | |
| 1069 | fp.Transparency=transparency | |
| 1070 | fp.CanCollide=false | |
| 1071 | fp.Locked=true | |
| 1072 | fp.BrickColor=brickcolor | |
| 1073 | fp.Name=name | |
| 1074 | fp.Size=size | |
| 1075 | fp.Position=tors.Position | |
| 1076 | RemoveOutlines(fp) | |
| 1077 | fp.Material="SmoothPlastic" | |
| 1078 | fp:BreakJoints() | |
| 1079 | return fp | |
| 1080 | end | |
| 1081 | ||
| 1082 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
| 1083 | local mesh=Instance.new(Mesh) | |
| 1084 | mesh.Parent=part | |
| 1085 | if Mesh=="SpecialMesh" then | |
| 1086 | mesh.MeshType=meshtype | |
| 1087 | if meshid~="nil" then | |
| 1088 | mesh.MeshId="http://www.roblox.com/asset/?id="..meshid | |
| 1089 | end | |
| 1090 | end | |
| 1091 | mesh.Offset=offset | |
| 1092 | mesh.Scale=scale | |
| 1093 | return mesh | |
| 1094 | end | |
| 1095 | function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 1096 | local prt=part(3,char,0,0,brickcolor,"Effect",Vector3.new(0.5,0.5,0.5)) | |
| 1097 | prt.Anchored=true | |
| 1098 | prt.Material = "Neon" | |
| 1099 | prt.CFrame=cframe | |
| 1100 | prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 1101 | msh=mesh("BlockMesh",prt,"","",Vector3.new(0,0,0),Vector3.new(x1,y1,z1))
| |
| 1102 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1103 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1104 | for i=0,1,delay do | |
| 1105 | swait() | |
| 1106 | Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 1107 | Part.Transparency=i | |
| 1108 | Mesh.Scale=Mesh.Scale+Vector3.new(x3,y3,z3) | |
| 1109 | end | |
| 1110 | Part.Parent=nil | |
| 1111 | end),prt,msh) | |
| 1112 | end | |
| 1113 | function MagicShockTrailAlt2(origcolor2,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) | |
| 1114 | local prt=part(3,char,0,0,origcolor2,"Effect",Vector3.new(0.5,0.5,0.5)) | |
| 1115 | prt.Anchored=true | |
| 1116 | prt.Material = "Neon" | |
| 1117 | prt.CFrame=cframe | |
| 1118 | msh=mesh("BlockMesh",prt,"","",Vector3.new(0,0,0),Vector3.new(x1,y1,z1))
| |
| 1119 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1120 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1121 | local rtype = rottype | |
| 1122 | for i=0,1,delay do | |
| 1123 | swait() | |
| 1124 | if rtype == 1 then | |
| 1125 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
| 1126 | elseif rtype == 2 then | |
| 1127 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
| 1128 | end | |
| 1129 | prt.Transparency=i | |
| 1130 | Mesh.Scale=Mesh.Scale+Vector3.new(x3,y3,z3) | |
| 1131 | end | |
| 1132 | Part.Parent=nil | |
| 1133 | end),prt,msh) | |
| 1134 | end | |
| 1135 | ||
| 1136 | ||
| 1137 | ||
| 1138 | New = function(Object, Parent, Name, Data) | |
| 1139 | local Object = Instance.new(Object) | |
| 1140 | for Index, Value in pairs(Data or {}) do
| |
| 1141 | Object[Index] = Value | |
| 1142 | end | |
| 1143 | Object.Parent = Parent | |
| 1144 | Object.Name = Name | |
| 1145 | return Object | |
| 1146 | end | |
| 1147 | ||
| 1148 | RubiksCube = New("Model",char,"RubiksCube",{})
| |
| 1149 | ||
| 1150 | local NewInstance = function(instance,parent,properties) | |
| 1151 | local inst = Instance.new(instance,parent) | |
| 1152 | if(properties)then | |
| 1153 | for i,v in next, properties do | |
| 1154 | pcall(function() inst[i] = v end) | |
| 1155 | end | |
| 1156 | end | |
| 1157 | return inst; | |
| 1158 | end | |
| 1159 | local HW = NewInstance('Weld',char,{Part0=tors,Part1=Handle,C0 = CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-65),0,math.rad(-90))})
| |
| 1160 | ||
| 1161 | function intro() | |
| 1162 | attack = true | |
| 1163 | for i = 0,2,0.1 do | |
| 1164 | swait() | |
| 1165 | rootj.C0 = clerp(rootj.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(55)),.3) | |
| 1166 | tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-65)),.3) | |
| 1167 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(76)), 0.3) | |
| 1168 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3) | |
| 1169 | end | |
| 1170 | end | |
| 1171 | ||
| 1172 | local mouse = game.Players.LocalPlayer:GetMouse() | |
| 1173 | local running = false | |
| 1174 | ||
| 1175 | function getTool() | |
| 1176 | for _, kid in ipairs(script.Parent:GetChildren()) do | |
| 1177 | if kid.className == "Tool" then return kid end | |
| 1178 | end | |
| 1179 | return nil | |
| 1180 | end | |
| 1181 | ||
| 1182 | ||
| 1183 | mouse.KeyDown:connect(function (key) -- Run function | |
| 1184 | key = string.lower(key) | |
| 1185 | if string.byte(key) == 48 then | |
| 1186 | running = true | |
| 1187 | local keyConnection = mouse.KeyUp:connect(function (key) | |
| 1188 | if string.byte(key) == 48 then | |
| 1189 | running = false | |
| 1190 | end | |
| 1191 | end) | |
| 1192 | for i = 1,5 do | |
| 1193 | game.Workspace.CurrentCamera.FieldOfView = (100+(i*2)) | |
| 1194 | wait() | |
| 1195 | end | |
| 1196 | game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 35 | |
| 1197 | repeat wait () until running == false | |
| 1198 | keyConnection:disconnect() | |
| 1199 | game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16 | |
| 1200 | for i = 1,5 do | |
| 1201 | game.Workspace.CurrentCamera.FieldOfView = (110-(i*2)) | |
| 1202 | wait() | |
| 1203 | end | |
| 1204 | end | |
| 1205 | end) | |
| 1206 | local idle=0 | |
| 1207 | local sine = 0 | |
| 1208 | local change = 1 | |
| 1209 | local val = 0 | |
| 1210 | toim = 0 | |
| 1211 | hum.Animator.Parent = nil | |
| 1212 | idleanim=.4 | |
| 1213 | while true do | |
| 1214 | swait() | |
| 1215 | sine = sine + change | |
| 1216 | local torvel=(root.Velocity*Vector3.new(1,0,1)).magnitude | |
| 1217 | local velderp=root.Velocity.y | |
| 1218 | hitfloor,posfloor=rayCast(root.Position,(CFrame.new(root.Position,root.Position - Vector3.new(0,1,0))).lookVector,4,char) | |
| 1219 | if equipped==true or equipped==false then | |
| 1220 | if attack==false then | |
| 1221 | idle=idle+1 | |
| 1222 | else | |
| 1223 | idle=0 | |
| 1224 | end | |
| 1225 | if root.Velocity.y > 1 and hitfloor==nil then | |
| 1226 | Anim="Jump" | |
| 1227 | if attack==false then | |
| 1228 | rootj.C0 = clerp(rootj.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 1229 | tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3) | |
| 1230 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(20)), 0.3) | |
| 1231 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3) | |
| 1232 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-20)),.3) | |
| 1233 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(0)),.3) | |
| 1234 | end | |
| 1235 | elseif root.Velocity.y < -1 and hitfloor==nil then | |
| 1236 | Anim="Fall" | |
| 1237 | if attack==false then | |
| 1238 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-20)),.3) | |
| 1239 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(0)),.3) | |
| 1240 | rootj.C0 = clerp(rootj.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 1241 | tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(40),math.rad(0),math.rad(0)),.3) | |
| 1242 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(20)), 0.3) | |
| 1243 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3) | |
| 1244 | end | |
| 1245 | elseif torvel<1 and hitfloor~=nil then | |
| 1246 | Anim="Idle" | |
| 1247 | change = 2 | |
| 1248 | ||
| 1249 | if attack==false then | |
| 1250 | rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-0.1+0.1*math.cos(sine/20))*angles(math.rad(0),math.rad(0),math.rad(0)),0.15) | |
| 1251 | tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(25),math.rad(0),math.rad(0)),.3) | |
| 1252 | RH.C0=clerp(RH.C0,cf(1,-0.9-0.1*math.cos(sine/20),0)*angles(math.rad(-2.5),math.rad(90),math.rad(-0))*angles(math.rad(-7.5),math.rad(0),math.rad(0)),0.15) | |
| 1253 | LH.C0=clerp(LH.C0,cf(-1,-0.9-0.1*math.cos(sine/20),0)*angles(math.rad(-2.5),math.rad(-90),math.rad(-0))*angles(math.rad(-7.5),math.rad(0),math.rad(0)),0.15) | |
| 1254 | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5+0.04*math.sin(sine/25), -0.35) * angles(math.rad(65 - 1), math.rad(-7), math.rad(-35)), 0.3) | |
| 1255 | LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5+0.04*math.sin(sine/25), -0.35) * angles(math.rad(90 - 1), math.rad(-7), math.rad(55)), 0.1) | |
| 1256 | HW.C0=euler(0,2.57*math.cos(sine/60)/1,0)*cf(0,2.1+1.7,0)* angles(math.rad(55 - 1), math.rad(-7), math.rad(55), 0.1) | |
| 1257 | end | |
| 1258 | ||
| 1259 | elseif torvel>2 and torvel<22 and hitfloor~=nil then | |
| 1260 | Anim="Walk" | |
| 1261 | change = 1 | |
| 1262 | if attack==false then | |
| 1263 | rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-0.175+0.025*math.cos(sine/3.5)+ -math.sin(sine/3.5)/7)*angles(math.rad(5-2.5*math.cos(sine/3.5)),math.rad(0),math.rad(10*math.cos(sine/7))),0.15) | |
| 1264 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
| 1265 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(40) * math.cos(sine / 7), math.rad(0), math.rad(5)), 0.3) | |
| 1266 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40) * math.cos(sine / 7), math.rad(0), math.rad(-5)), 0.3) | |
| 1267 | RH.C0=clerp(RH.C0,cf(1,-0.925-0.5*math.cos(sine/7)/2,0.5*math.cos(sine/7)/2)*angles(math.rad(-5-15*math.cos(sine/7))+ -math.sin(sine/7)/1.5,math.rad(90-10*math.cos(sine/7)),math.rad(0)),0.15) | |
| 1268 | LH.C0=clerp(LH.C0,cf(-1,-0.925+0.5*math.cos(sine/7)/2,-0.5*math.cos(sine/7)/2)*angles(math.rad(-5+15*math.cos(sine/7))+ math.sin(sine/7)/1.5,math.rad(-90-10*math.cos(sine/7)),math.rad(0)),0.15) | |
| 1269 | HW.C0=euler(0,2.57*math.cos(sine/60)/1,0)*cf(0,2.1+1.7,0)* angles(math.rad(55 - 1), math.rad(-7), math.rad(55*math.cos(sine/60)), 0.1) | |
| 1270 | end | |
| 1271 | elseif torvel>=22 and hitfloor~=nil then | |
| 1272 | Anim="Run" | |
| 1273 | change = 2 | |
| 1274 | rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-0.175+0.025*math.cos(sine/3.5)+ -math.sin(sine/3.5)/7)*angles(math.rad(25),math.rad(0),math.rad(10*math.cos(sine/7))),0.15) | |
| 1275 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
| 1276 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(55), math.rad(-55), math.rad(90)), 0.3) | |
| 1277 | LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 60),-0.65)*angles(math.rad(40),math.rad(0),math.rad(90 + 2.5)),.3) | |
| 1278 | RH.C0=clerp(RH.C0,cf(1,-0.925-0.5*math.cos(sine/7)/2,0.5*math.cos(sine/7)/1)*angles(math.rad(-5-15*math.cos(sine/7))+ -math.sin(sine/7)/1,math.rad(90-10*math.cos(sine/7)),math.rad(0)),0.15) | |
| 1279 | LH.C0=clerp(LH.C0,cf(-1,-0.925+0.5*math.cos(sine/7)/2,-0.5*math.cos(sine/7)/1)*angles(math.rad(-5+15*math.cos(sine/7))+ math.sin(sine/7)/1,math.rad(-90-10*math.cos(sine/7)),math.rad(0)),0.15) | |
| 1280 | HW.C0=clerp(HW.C0,cf(0,-1,0)*angles(math.rad(-65),math.rad(0),math.rad(-90)),0.15) | |
| 1281 | ||
| 1282 | end | |
| 1283 | end | |
| 1284 | if 0 < #Effects then | |
| 1285 | for e = 1, #Effects do | |
| 1286 | if Effects[e] ~= nil then | |
| 1287 | local Thing = Effects[e] | |
| 1288 | if Thing ~= nil then | |
| 1289 | local Part = Thing[1] | |
| 1290 | local Mode = Thing[2] | |
| 1291 | local Delay = Thing[3] | |
| 1292 | local IncX = Thing[4] | |
| 1293 | local IncY = Thing[5] | |
| 1294 | local IncZ = Thing[6] | |
| 1295 | if 1 >= Thing[1].Transparency then | |
| 1296 | if Thing[2] == "Block1" then | |
| 1297 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1298 | local Mesh = Thing[1].Mesh | |
| 1299 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1300 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1301 | elseif Thing[2] == "Block2" then | |
| 1302 | Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0) | |
| 1303 | local Mesh = Thing[7] | |
| 1304 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1305 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1306 | elseif Thing[2] == "Block3" then | |
| 1307 | 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) | |
| 1308 | local Mesh = Thing[7] | |
| 1309 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1310 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1311 | elseif Thing[2] == "Cylinder" then | |
| 1312 | local Mesh = Thing[1].Mesh | |
| 1313 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1314 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1315 | elseif Thing[2] == "Blood" then | |
| 1316 | local Mesh = Thing[7] | |
| 1317 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0) | |
| 1318 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1319 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1320 | elseif Thing[2] == "Elec" then | |
| 1321 | local Mesh = Thing[1].Mesh | |
| 1322 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
| 1323 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1324 | elseif Thing[2] == "Disappear" then | |
| 1325 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1326 | elseif Thing[2] == "Shatter" then | |
| 1327 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1328 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
| 1329 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
| 1330 | Thing[6] = Thing[6] + Thing[5] | |
| 1331 | end | |
| 1332 | ||
| 1333 | end | |
| 1334 | end | |
| 1335 | end | |
| 1336 | end | |
| 1337 | end | |
| 1338 | end | |
| 1339 | ||
| 1340 | --Mkay. Bye! | |
| 1341 | --Wazzup... | |
| 1342 | --Nop. Not the end. | |
| 1343 | ||
| 1344 | ||
| 1345 | ||
| 1346 | ||
| 1347 | ||
| 1348 | ||
| 1349 | ||
| 1350 | ||
| 1351 | ||
| 1352 | ||
| 1353 | ||
| 1354 | ||
| 1355 | ||
| 1356 | ||
| 1357 | --JUST FREACKING GO DOWN. YEET. | |
| 1358 | ||
| 1359 | ||
| 1360 | ||
| 1361 | ||
| 1362 | ||
| 1363 | ||
| 1364 | ||
| 1365 | ||
| 1366 | ||
| 1367 | ||
| 1368 | ||
| 1369 | ||
| 1370 | ||
| 1371 | ||
| 1372 | ||
| 1373 | ||
| 1374 | ||
| 1375 | ||
| 1376 | ||
| 1377 | ||
| 1378 | ||
| 1379 | ||
| 1380 | ||
| 1381 | ||
| 1382 | ||
| 1383 | ||
| 1384 | ||
| 1385 | ||
| 1386 | ||
| 1387 | ||
| 1388 | ||
| 1389 | ||
| 1390 | ||
| 1391 | ||
| 1392 | ||
| 1393 | ||
| 1394 | ||
| 1395 | ||
| 1396 | ||
| 1397 | ||
| 1398 | ||
| 1399 | ||
| 1400 | ParticleSettings = {
| |
| 1401 | Lifetime = 1, | |
| 1402 | Texture = 'rbxassetid://1209757190', | |
| 1403 | --Color1 is for UpperBody and Accessories, Color2 is for Lower Body | |
| 1404 | Color1 = ColorSequence.new(BrickColor.new('Pastel yellow').Color,BrickColor.new('Institutional white').Color),
| |
| 1405 | Color2 = ColorSequence.new(BrickColor.new('Institutional white').Color,BrickColor.new('New Yeller').Color),
| |
| 1406 | AllBody = true, | |
| 1407 | UpperBodyOnly = false, | |
| 1408 | LowerBodyOnly = false, | |
| 1409 | Accessories = true, | |
| 1410 | Extras = true, | |
| 1411 | } | |
| 1412 | m = game:service'Players'.LocalPlayer:GetMouse() | |
| 1413 | local p=game:service("Players").LocalPlayer
| |
| 1414 | Instance.new("ForceField", game.Players.LocalPlayer.Character). Visible = false
| |
| 1415 | local char=p.Character | |
| 1416 | script.Parent=char | |
| 1417 | local tor=char.Torso | |
| 1418 | local hed=char.Head | |
| 1419 | local larm=char:FindFirstChild("Left Arm")
| |
| 1420 | local rarm=char:FindFirstChild("Right Arm")
| |
| 1421 | local lleg=char:FindFirstChild("Left Leg")
| |
| 1422 | local rleg=char:FindFirstChild("Right Leg")
| |
| 1423 | local hum=char.Humanoid | |
| 1424 | local cam=workspace.CurrentCamera | |
| 1425 | local root=char.HumanoidRootPart | |
| 1426 | local mouse=p:GetMouse() | |
| 1427 | local hb=game:service("RunService").Heartbeat
| |
| 1428 | local rs=game:service("RunService").Stepped
| |
| 1429 | hum.MaxHealth= math.huge | |
| 1430 | hum.Health=hum.MaxHealth | |
| 1431 | local hair4 = Instance.new("Part",char)
| |
| 1432 | hair4.Material="Neon" | |
| 1433 | hair4.CanCollide=false | |
| 1434 | hair4.Size=Vector3.new(.5,2,0) | |
| 1435 | hair4.BrickColor=BrickColor.Red() | |
| 1436 | hair4.Transparency=1 | |
| 1437 | ||
| 1438 | ||
| 1439 | ||
| 1440 | local w = Instance.new("Weld",hair4)
| |
| 1441 | w.Part1=hair4 | |
| 1442 | w.Part0=tor | |
| 1443 | w.C0=CFrame.new(-0.7,0,0.15) | |
| 1444 | ||
| 1445 | local hair3 = Instance.new("Part",char)
| |
| 1446 | hair3.Material="Neon" | |
| 1447 | hair3.CanCollide=false | |
| 1448 | hair3.Size=Vector3.new(.5,2,0) | |
| 1449 | hair3.BrickColor=BrickColor.Red() | |
| 1450 | hair3.Transparency=1 | |
| 1451 | ||
| 1452 | ||
| 1453 | ||
| 1454 | local w = Instance.new("Weld",hair3)
| |
| 1455 | w.Part1=hair3 | |
| 1456 | w.Part0=tor | |
| 1457 | w.C0=CFrame.new(0.7,0,0.15) | |
| 1458 | ||
| 1459 | local bladee = Instance.new("ParticleEmitter",hair4)
| |
| 1460 | bladee.Texture = "http://www.roblox.com/asset/?id=298984512" | |
| 1461 | bladee.LightEmission = 0.625 | |
| 1462 | bladee.EmissionDirection = "Left" | |
| 1463 | bladee.LockedToPart = true | |
| 1464 | bladee.Color = ParticleSettings.Color2 | |
| 1465 | bladee.Rate = 100000 | |
| 1466 | bladee.Lifetime = NumberRange.new(.5) | |
| 1467 | bladee.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 1468 | bladee.Speed = NumberRange.new(5) | |
| 1469 | bladee.Acceleration = Vector3.new(-30,40,0) | |
| 1470 | ||
| 1471 | local bladee3 = Instance.new("ParticleEmitter",hair3)
| |
| 1472 | bladee3.Texture = "http://www.roblox.com/asset/?id=298984512" | |
| 1473 | bladee3.LightEmission = 0.625 | |
| 1474 | bladee3.EmissionDirection = "Right" | |
| 1475 | bladee3.LockedToPart = true | |
| 1476 | bladee3.Color = ParticleSettings.Color2 | |
| 1477 | bladee3.Rate = 100000 | |
| 1478 | bladee3.Lifetime = NumberRange.new(.5) | |
| 1479 | bladee3.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 1480 | bladee3.Speed = NumberRange.new(5) | |
| 1481 | bladee3.Acceleration = Vector3.new(30,40,0) | |
| 1482 | m.KeyDown:connect(function(k) | |
| 1483 | if k == "e" then | |
| 1484 | if (hum ~= nil) then | |
| 1485 | hum.Sit = true | |
| 1486 | end | |
| 1487 | end | |
| 1488 | end) | |
| 1489 | ||
| 1490 | --Okay... It iz teh end. | |
| 1491 | ||
| 1492 | ||
| 1493 | ||
| 1494 | ||
| 1495 | ||
| 1496 | ||
| 1497 | ||
| 1498 | ||
| 1499 | ||
| 1500 | ||
| 1501 | ||
| 1502 | ||
| 1503 | ||
| 1504 | ||
| 1505 | ||
| 1506 | ||
| 1507 | ||
| 1508 | ||
| 1509 | ||
| 1510 | ||
| 1511 | ||
| 1512 | ||
| 1513 | ||
| 1514 | ||
| 1515 | ||
| 1516 | ||
| 1517 | ||
| 1518 | ||
| 1519 | ||
| 1520 | ||
| 1521 | ||
| 1522 | ||
| 1523 | ||
| 1524 | ||
| 1525 | ||
| 1526 | ||
| 1527 | ||
| 1528 | ||
| 1529 | ||
| 1530 | ||
| 1531 | ||
| 1532 | ||
| 1533 | ||
| 1534 | ||
| 1535 | ||
| 1536 | ||
| 1537 | ||
| 1538 | ||
| 1539 | ||
| 1540 | ||
| 1541 | ||
| 1542 | ||
| 1543 | ||
| 1544 | ||
| 1545 | ||
| 1546 | ||
| 1547 | ||
| 1548 | ||
| 1549 | ||
| 1550 | ||
| 1551 | ||
| 1552 | ||
| 1553 | ||
| 1554 | ||
| 1555 | ||
| 1556 | ||
| 1557 | ||
| 1558 | ||
| 1559 | ||
| 1560 | ||
| 1561 | ||
| 1562 | ||
| 1563 | --OH FU**! WHY ISN'T IT THE END YET? >:( | |
| 1564 | ||
| 1565 | ||
| 1566 | ||
| 1567 | ||
| 1568 | ||
| 1569 | ||
| 1570 | ||
| 1571 | ||
| 1572 | ||
| 1573 | ||
| 1574 | ||
| 1575 | ||
| 1576 | ||
| 1577 | ||
| 1578 | ||
| 1579 | ||
| 1580 | ||
| 1581 | ||
| 1582 | ||
| 1583 | ||
| 1584 | ||
| 1585 | ||
| 1586 | ||
| 1587 | ||
| 1588 | ||
| 1589 | ||
| 1590 | ||
| 1591 | ||
| 1592 | ||
| 1593 | ||
| 1594 | --end ;~; |