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