SHOW:
|
|
- or go back to the newest paste.
| 1 | --[[Nocturna_A._Alteriano_Night.Owl.Inc]]-- | |
| 2 | ||
| 3 | CV="White" | |
| 4 | ||
| 5 | p = game.Players.LocalPlayer | |
| 6 | char = p.Character | |
| 7 | local txt = Instance.new("BillboardGui", char)
| |
| 8 | txt.Adornee = char .Head | |
| 9 | txt.Name = "_status" | |
| 10 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
| 11 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
| 12 | local text = Instance.new("TextLabel", txt)
| |
| 13 | text.Size = UDim2.new(10, 0, 7, 0) | |
| 14 | text.FontSize = "Size24" | |
| 15 | text.TextScaled = true | |
| 16 | text.TextTransparency = 0 | |
| 17 | text.BackgroundTransparency = 1 | |
| 18 | text.TextTransparency = 0 | |
| 19 | text.TextStrokeTransparency = 1 | |
| 20 | text.Font = "Arcade" | |
| 21 | text.TextStrokeColor3 = Color3.new(0,0,255) | |
| 22 | ||
| 23 | v=Instance.new("Part")
| |
| 24 | v.Name = "ColorBrick" | |
| 25 | v.Parent=p.Character | |
| 26 | v.FormFactor="Symmetric" | |
| 27 | v.Anchored=true | |
| 28 | v.CanCollide=false | |
| 29 | v.BottomSurface="Smooth" | |
| 30 | v.TopSurface="Smooth" | |
| 31 | v.Size=Vector3.new(10,5,3) | |
| 32 | v.Transparency=1 | |
| 33 | v.CFrame=char.Torso.CFrame | |
| 34 | v.BrickColor=BrickColor.new(CV) | |
| 35 | v.Transparency=1 | |
| 36 | text.TextColor3 = Color3.new(255,255,0) | |
| 37 | v.Shape="Block" | |
| 38 | - | text.Text = "An dude that he Buy "the kitchen gun"" |
| 38 | + | |
| 39 | wait(1 / 60) | |
| 40 | Effects = { }
| |
| 41 | local Player = game.Players.localPlayer | |
| 42 | local Character = Player.Character | |
| 43 | local Humanoid = Character.Humanoid | |
| 44 | local mouse = Player:GetMouse() | |
| 45 | local m = Instance.new('Model', Character)
| |
| 46 | m.Name = "WeaponModel" | |
| 47 | local LeftArm = Character["Left Arm"] | |
| 48 | local RightArm = Character["Right Arm"] | |
| 49 | local LeftLeg = Character["Left Leg"] | |
| 50 | local RightLeg = Character["Right Leg"] | |
| 51 | local Head = Character.Head | |
| 52 | local Torso = Character.Torso | |
| 53 | local cam = game.Workspace.CurrentCamera | |
| 54 | local RootPart = Character.HumanoidRootPart | |
| 55 | local RootJoint = RootPart.RootJoint | |
| 56 | local equipped = false | |
| 57 | local attack = false | |
| 58 | local Anim = 'Idle' | |
| 59 | local idle = 0 | |
| 60 | local attacktype = 1 | |
| 61 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 62 | local velocity = RootPart.Velocity.y | |
| 63 | local sine = 0 | |
| 64 | local change = 1 | |
| 65 | local grabbed = false | |
| 66 | local cn = CFrame.new | |
| 67 | local mr = math.rad | |
| 68 | local angles = CFrame.Angles | |
| 69 | local ud = UDim2.new | |
| 70 | local c3 = Color3.new | |
| 71 | ||
| 72 | Humanoid.Animator.Parent = nil | |
| 73 | Character.Animate.Parent = nil | |
| 74 | ||
| 75 | local newMotor = function(part0, part1, c0, c1) | |
| 76 | local w = Instance.new('Motor', part0)
| |
| 77 | w.Part0 = part0 | |
| 78 | w.Part1 = part1 | |
| 79 | w.C0 = c0 | |
| 80 | w.C1 = c1 | |
| 81 | return w | |
| 82 | end | |
| 83 | ||
| 84 | function clerp(a, b, t) | |
| 85 | return a:lerp(b, t) | |
| 86 | end | |
| 87 | ||
| 88 | RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
| 89 | NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 90 | ||
| 91 | local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) | |
| 92 | local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0)) | |
| 93 | local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0)) | |
| 94 | local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0)) | |
| 95 | RootJoint.C1 = CFrame.new(0, 0, 0) | |
| 96 | RootJoint.C0 = CFrame.new(0, 0, 0) | |
| 97 | Torso.Neck.C1 = CFrame.new(0, 0, 0) | |
| 98 | Torso.Neck.C0 = CFrame.new(0, 1.5, 0) | |
| 99 | ||
| 100 | local rarmc1 = RW.C1 | |
| 101 | local larmc1 = LW.C1 | |
| 102 | local rlegc1 = RH.C1 | |
| 103 | local llegc1 = LH.C1 | |
| 104 | ||
| 105 | local resetc1 = false | |
| 106 | ||
| 107 | function PlayAnimationFromTable(table, speed, bool) | |
| 108 | RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) | |
| 109 | Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) | |
| 110 | RW.C0 = clerp(RW.C0, table[3], speed) | |
| 111 | LW.C0 = clerp(LW.C0, table[4], speed) | |
| 112 | RH.C0 = clerp(RH.C0, table[5], speed) | |
| 113 | LH.C0 = clerp(LH.C0, table[6], speed) | |
| 114 | if bool == true then | |
| 115 | if resetc1 == false then | |
| 116 | resetc1 = true | |
| 117 | RootJoint.C1 = RootJoint.C1 | |
| 118 | Torso.Neck.C1 = Torso.Neck.C1 | |
| 119 | RW.C1 = rarmc1 | |
| 120 | LW.C1 = larmc1 | |
| 121 | RH.C1 = rlegc1 | |
| 122 | LH.C1 = llegc1 | |
| 123 | end | |
| 124 | end | |
| 125 | end | |
| 126 | ||
| 127 | --[[Credits to SazErenos for his Artificial Heartbeat]]-- | |
| 128 | ||
| 129 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 130 | ArtificialHB.Name = "Heartbeat" | |
| 131 | ||
| 132 | script:WaitForChild("Heartbeat")
| |
| 133 | ||
| 134 | frame = 1 / 30 | |
| 135 | tf = 0 | |
| 136 | allowframeloss = false | |
| 137 | tossremainder = false | |
| 138 | lastframe = tick() | |
| 139 | script.Heartbeat:Fire() | |
| 140 | ||
| 141 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 142 | tf = tf + s | |
| 143 | if tf >= frame then | |
| 144 | if allowframeloss then | |
| 145 | script.Heartbeat:Fire() | |
| 146 | lastframe = tick() | |
| 147 | else | |
| 148 | for i = 1, math.floor(tf / frame) do | |
| 149 | script.Heartbeat:Fire() | |
| 150 | end | |
| 151 | lastframe = tick() | |
| 152 | end | |
| 153 | if tossremainder then | |
| 154 | tf = 0 | |
| 155 | else | |
| 156 | tf = tf - frame * math.floor(tf / frame) | |
| 157 | end | |
| 158 | end | |
| 159 | end) | |
| 160 | ||
| 161 | function swait(num) | |
| 162 | if num == 0 or num == nil then | |
| 163 | ArtificialHB.Event:wait() | |
| 164 | else | |
| 165 | for i = 0, num do | |
| 166 | ArtificialHB.Event:wait() | |
| 167 | end | |
| 168 | end | |
| 169 | end | |
| 170 | ||
| 171 | local RbxUtility = LoadLibrary("RbxUtility")
| |
| 172 | local Create = RbxUtility.Create | |
| 173 | ||
| 174 | function RemoveOutlines(part) | |
| 175 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 176 | end | |
| 177 | ||
| 178 | CFuncs = {
| |
| 179 | ["Part"] = {
| |
| 180 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 181 | local Part = Create("Part"){
| |
| 182 | Parent = Parent, | |
| 183 | Reflectance = Reflectance, | |
| 184 | Transparency = Transparency, | |
| 185 | CanCollide = false, | |
| 186 | Locked = true, | |
| 187 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 188 | Name = Name, | |
| 189 | Size = Size, | |
| 190 | Material = Material, | |
| 191 | } | |
| 192 | RemoveOutlines(Part) | |
| 193 | return Part | |
| 194 | end; | |
| 195 | }; | |
| 196 | ||
| 197 | ["Mesh"] = {
| |
| 198 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 199 | local Msh = Create(Mesh){
| |
| 200 | Parent = Part, | |
| 201 | Offset = OffSet, | |
| 202 | Scale = Scale, | |
| 203 | } | |
| 204 | if Mesh == "SpecialMesh" then | |
| 205 | Msh.MeshType = MeshType | |
| 206 | Msh.MeshId = MeshId | |
| 207 | end | |
| 208 | return Msh | |
| 209 | end; | |
| 210 | }; | |
| 211 | ||
| 212 | ["Mesh"] = {
| |
| 213 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 214 | local Msh = Create(Mesh){
| |
| 215 | Parent = Part, | |
| 216 | Offset = OffSet, | |
| 217 | Scale = Scale, | |
| 218 | } | |
| 219 | if Mesh == "SpecialMesh" then | |
| 220 | Msh.MeshType = MeshType | |
| 221 | Msh.MeshId = MeshId | |
| 222 | end | |
| 223 | return Msh | |
| 224 | end; | |
| 225 | }; | |
| 226 | ||
| 227 | ["Weld"] = {
| |
| 228 | Create = function(Parent, Part0, Part1, C0, C1) | |
| 229 | local Weld = Create("Weld"){
| |
| 230 | Parent = Parent, | |
| 231 | Part0 = Part0, | |
| 232 | Part1 = Part1, | |
| 233 | C0 = C0, | |
| 234 | C1 = C1, | |
| 235 | } | |
| 236 | return Weld | |
| 237 | end; | |
| 238 | }; | |
| 239 | ||
| 240 | ["Sound"] = {
| |
| 241 | Create = function(id, par, vol, pit) | |
| 242 | coroutine.resume(coroutine.create(function() | |
| 243 | local S = Create("Sound"){
| |
| 244 | Volume = vol, | |
| 245 | Pitch = pit or 1, | |
| 246 | SoundId = id, | |
| 247 | Parent = par or workspace, | |
| 248 | } | |
| 249 | Instance.new("DistortionSoundEffect", S).Level = 1
| |
| 250 | wait() | |
| 251 | S:play() | |
| 252 | game:GetService("Debris"):AddItem(S, 10)
| |
| 253 | end)) | |
| 254 | end; | |
| 255 | }; | |
| 256 | ||
| 257 | ["ParticleEmitter"] = {
| |
| 258 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
| 259 | local fp = Create("ParticleEmitter"){
| |
| 260 | Parent = Parent, | |
| 261 | Color = ColorSequence.new(Color1, Color2), | |
| 262 | LightEmission = LightEmission, | |
| 263 | Size = Size, | |
| 264 | Texture = Texture, | |
| 265 | Transparency = Transparency, | |
| 266 | ZOffset = ZOffset, | |
| 267 | Acceleration = Accel, | |
| 268 | Drag = Drag, | |
| 269 | LockedToPart = LockedToPart, | |
| 270 | VelocityInheritance = VelocityInheritance, | |
| 271 | EmissionDirection = EmissionDirection, | |
| 272 | Enabled = Enabled, | |
| 273 | Lifetime = LifeTime, | |
| 274 | Rate = Rate, | |
| 275 | Rotation = Rotation, | |
| 276 | RotSpeed = RotSpeed, | |
| 277 | Speed = Speed, | |
| 278 | VelocitySpread = VelocitySpread, | |
| 279 | } | |
| 280 | return fp | |
| 281 | end; | |
| 282 | }; | |
| 283 | } | |
| 284 | ||
| 285 | function rayCast(Position, Direction, Range, Ignore) | |
| 286 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
| |
| 287 | end | |
| 288 | ||
| 289 | local function GetNearest(obj, distance) | |
| 290 | local last, lastx = distance + 1 | |
| 291 | for i, v in pairs(workspace:GetChildren()) do | |
| 292 | if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
| |
| 293 | local t = v.Torso | |
| 294 | local dist = (t.Position - obj.Position).magnitude | |
| 295 | if dist <= distance then | |
| 296 | if dist < last then | |
| 297 | last = dist | |
| 298 | lastx = v | |
| 299 | end | |
| 300 | end | |
| 301 | end | |
| 302 | end | |
| 303 | return lastx | |
| 304 | end | |
| 305 | ||
| 306 | --[[ Credits to Kert109 (Ninja_Deer) for the Damage function. Fenrier for the Magnitude Damage ]]-- | |
| 307 | ||
| 308 | function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch) | |
| 309 | for i, v in pairs(hit:GetChildren()) do | |
| 310 | if v:IsA("Humanoid") and hit.Name ~= Character.Name then
| |
| 311 | local find = v:FindFirstChild("DebounceHit")
| |
| 312 | if not find then | |
| 313 | if v.Parent:findFirstChild("Head") then
| |
| 314 | local BillG = Create("BillboardGui"){
| |
| 315 | Parent = v.Parent.Head, | |
| 316 | Size = UDim2.new(1, 0, 1, 0), | |
| 317 | Adornee = v.Parent.Head, | |
| 318 | StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)), | |
| 319 | } | |
| 320 | local TL = Create("TextLabel"){
| |
| 321 | Parent = BillG, | |
| 322 | Size = UDim2.new(3, 3, 3, 3), | |
| 323 | BackgroundTransparency = 1, | |
| 324 | Text = tostring(damage).."-", | |
| 325 | TextColor3 = Color1.Color, | |
| 326 | TextStrokeColor3 = Color2.Color, | |
| 327 | TextStrokeTransparency = 0, | |
| 328 | TextXAlignment = Enum.TextXAlignment.Center, | |
| 329 | TextYAlignment = Enum.TextYAlignment.Center, | |
| 330 | FontSize = Enum.FontSize.Size18, | |
| 331 | Font = "ArialBold", | |
| 332 | } | |
| 333 | coroutine.resume(coroutine.create(function() | |
| 334 | swait(1) | |
| 335 | for i = 0, 1, .1 do | |
| 336 | swait(.1) | |
| 337 | BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0) | |
| 338 | end | |
| 339 | BillG:Destroy() | |
| 340 | end)) | |
| 341 | end | |
| 342 | v.Health = v.Health - damage | |
| 343 | local bool = Create("BoolValue"){
| |
| 344 | Parent = v, | |
| 345 | Name = "DebounceHit", | |
| 346 | } | |
| 347 | if HSound ~= nil and HPitch ~= nil then | |
| 348 | CFuncs["Sound"].Create(HSound, hit, 1, HPitch) | |
| 349 | end | |
| 350 | game:GetService("Debris"):AddItem(bool, cooldown)
| |
| 351 | end | |
| 352 | end | |
| 353 | end | |
| 354 | end | |
| 355 | ||
| 356 | function MagnitudeDamage(Part, magni, mindam, maxdam, Color1, Color2, HSound, HPitch) | |
| 357 | for _, c in pairs(workspace:children()) do | |
| 358 | local hum = c:findFirstChild("Humanoid")
| |
| 359 | if hum ~= nil then | |
| 360 | local head = c:findFirstChild("Torso")
| |
| 361 | if head ~= nil then | |
| 362 | local targ = head.Position - Part.Position | |
| 363 | local mag = targ.magnitude | |
| 364 | if mag <= magni and c.Name ~= Player.Name then | |
| 365 | Damage(head.Parent, math.random(mindam, maxdam), 0.5, Color1, Color2, HSound, HPitch) | |
| 366 | end | |
| 367 | end | |
| 368 | end | |
| 369 | end | |
| 370 | end | |
| 371 | ||
| 372 | Handle = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "Handle", Vector3.new(0.399999946, 0.899999976, 0.400000095)) | |
| 373 | HandleWeld = CFuncs["Weld"].Create(m, Character["Right Arm"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.199958801, -0.0500774384, -1.09998882, -1, 0, 0, 0, 0, -1, -0, -1, -0)) | |
| 374 | FakeHandle = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "FakeHandle", Vector3.new(0.399999946, 0.899999976, 0.400000095)) | |
| 375 | FakeHandleWeld = CFuncs["Weld"].Create(m, Handle, FakeHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.199996948, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
| 376 | Barrel = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "Barrel", Vector3.new(0.399999946, 0.399999976, 0.400000095)) | |
| 377 | BarrelWeld = CFuncs["Weld"].Create(m, FakeHandle, Barrel, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -0.749999046, -1.50000024, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
| 378 | Part = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 0, "Medium stone grey", "Part", Vector3.new(0.399999946, 0.299999952, 0.400000095)) | |
| 379 | PartWeld = CFuncs["Weld"].Create(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -0.300000191, -0.400000095, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
| 380 | CFuncs["Mesh"].Create("SpecialMesh", Part, Enum.MeshType.FileMesh, "rbxassetid://435840330", Vector3.new(0, 0, 0), Vector3.new(0.00200000009, 0.00200000009, 0.00200000009))
| |
| 381 | Part.Mesh.TextureId = "rbxassetid://435840335" | |
| 382 | ||
| 383 | EffectModel = Instance.new("Model", Character)
| |
| 384 | EffectModel.Name = "Effects" | |
| 385 | ||
| 386 | Effects = {
| |
| 387 | ["Block"] = {
| |
| 388 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
| 389 | local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 390 | prt.Anchored = true | |
| 391 | prt.CFrame = cframe | |
| 392 | local msh = CFuncs["Mesh"].Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 393 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 394 | if Type == 1 or Type == nil then | |
| 395 | table.insert(Effects, {
| |
| 396 | prt, | |
| 397 | "Block1", | |
| 398 | delay, | |
| 399 | x3, | |
| 400 | y3, | |
| 401 | z3, | |
| 402 | msh | |
| 403 | }) | |
| 404 | elseif Type == 2 then | |
| 405 | table.insert(Effects, {
| |
| 406 | prt, | |
| 407 | "Block2", | |
| 408 | delay, | |
| 409 | x3, | |
| 410 | y3, | |
| 411 | z3, | |
| 412 | msh | |
| 413 | }) | |
| 414 | end | |
| 415 | end; | |
| 416 | }; | |
| 417 | ||
| 418 | ["Cylinder"] = {
| |
| 419 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 420 | local prt = CFuncs["Part"].Create(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2)) | |
| 421 | prt.Anchored = true | |
| 422 | prt.CFrame = cframe | |
| 423 | local msh = CFuncs["Mesh"].Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 424 | game:GetService("Debris"):AddItem(prt, 2)
| |
| 425 | Effects[#Effects + 1] = {
| |
| 426 | prt, | |
| 427 | "Cylinder", | |
| 428 | delay, | |
| 429 | x3, | |
| 430 | y3, | |
| 431 | z3 | |
| 432 | } | |
| 433 | end; | |
| 434 | }; | |
| 435 | ||
| 436 | ["Sphere"] = {
| |
| 437 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 438 | local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 439 | prt.Anchored = true | |
| 440 | prt.CFrame = cframe | |
| 441 | local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 442 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 443 | table.insert(Effects, {
| |
| 444 | prt, | |
| 445 | "Cylinder", | |
| 446 | delay, | |
| 447 | x3, | |
| 448 | y3, | |
| 449 | z3, | |
| 450 | msh | |
| 451 | }) | |
| 452 | end; | |
| 453 | }; | |
| 454 | ||
| 455 | ["Elec"] = {
| |
| 456 | Create = function(cff, x, y, z) | |
| 457 | local prt = CFuncs["Part"].Create(workspace, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
| |
| 458 | prt.Anchored = true | |
| 459 | prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z)) | |
| 460 | prt.CFrame = CFrame.new(prt.Position) | |
| 461 | game:GetService("Debris"):AddItem(prt, 2)
| |
| 462 | local xval = math.random() / 2 | |
| 463 | local yval = math.random() / 2 | |
| 464 | local zval = math.random() / 2 | |
| 465 | local msh = CFuncs["Mesh"].Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
| |
| 466 | table.insert(Effects, {
| |
| 467 | prt, | |
| 468 | "Elec", | |
| 469 | 0.1, | |
| 470 | x, | |
| 471 | y, | |
| 472 | z, | |
| 473 | xval, | |
| 474 | yval, | |
| 475 | zval | |
| 476 | }) | |
| 477 | end; | |
| 478 | ||
| 479 | }; | |
| 480 | ||
| 481 | ["Ring"] = {
| |
| 482 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 483 | local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 484 | prt.Anchored = true | |
| 485 | prt.CFrame = cframe | |
| 486 | local msh = CFuncs["Mesh"].Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 487 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 488 | table.insert(Effects, {
| |
| 489 | prt, | |
| 490 | "Cylinder", | |
| 491 | delay, | |
| 492 | x3, | |
| 493 | y3, | |
| 494 | z3, | |
| 495 | msh | |
| 496 | }) | |
| 497 | end; | |
| 498 | }; | |
| 499 | ||
| 500 | ||
| 501 | ["Wave"] = {
| |
| 502 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 503 | local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 504 | prt.Anchored = true | |
| 505 | prt.CFrame = cframe | |
| 506 | local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 507 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 508 | table.insert(Effects, {
| |
| 509 | prt, | |
| 510 | "Cylinder", | |
| 511 | delay, | |
| 512 | x3, | |
| 513 | y3, | |
| 514 | z3, | |
| 515 | msh | |
| 516 | }) | |
| 517 | end; | |
| 518 | }; | |
| 519 | ||
| 520 | ["Break"] = {
| |
| 521 | Create = function(brickcolor, cframe, x1, y1, z1) | |
| 522 | local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
| 523 | prt.Anchored = true | |
| 524 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 525 | local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 526 | local num = math.random(10, 50) / 1000 | |
| 527 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 528 | table.insert(Effects, {
| |
| 529 | prt, | |
| 530 | "Shatter", | |
| 531 | num, | |
| 532 | prt.CFrame, | |
| 533 | math.random() - math.random(), | |
| 534 | 0, | |
| 535 | math.random(50, 100) / 100 | |
| 536 | }) | |
| 537 | end; | |
| 538 | }; | |
| 539 | } | |
| 540 | ||
| 541 | Shoot2 = function(orgpos) | |
| 542 | local MouseLook = CFrame.new((orgpos + mouse.Hit.p) / 2, mouse.Hit.p) | |
| 543 | Effects["Sphere"].Create(BrickColor.new("New Yeller"), CFrame.new(orgpos), 5, 5, 5, 3, 3, 3, 0.1)
| |
| 544 | table.insert(Effects, {
| |
| 545 | MouseLook.lookVector, | |
| 546 | "Shoot2", | |
| 547 | 50, | |
| 548 | orgpos, | |
| 549 | 5, | |
| 550 | 7, | |
| 551 | 0, | |
| 552 | 1, | |
| 553 | 2 | |
| 554 | }) | |
| 555 | end | |
| 556 | ||
| 557 | function attackone() | |
| 558 | attack = true | |
| 559 | CFuncs["Sound"].Create("rbxassetid://243053454", Torso, .1, 2.8)
| |
| 560 | for i = 0, 1, 0.025 do | |
| 561 | swait() | |
| 562 | PlayAnimationFromTable({
| |
| 563 | CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 564 | CFrame.new(0, 1.4999907, 3.42726707e-007, 1, 0, 0, 0, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 565 | CFrame.new(0.431798398, 0.400000006, -0.888215482, 0.939692736, 0.342019886, 0, 0, 0, -1, -0.342019916, 0.939692736, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 566 | CFrame.new(-0.559965074, 0.300000012, -0.828456283, 0.939692736, -0.342019886, 0, 0, 0, -1, 0.342019916, 0.939692736, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 567 | CFrame.new(0.599619746, -1.99127948, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 568 | CFrame.new(-0.599619746, -1.99127901, 0, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 569 | }, .3, false) | |
| 570 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3) | |
| 571 | end | |
| 572 | CFuncs["Sound"].Create("rbxassetid://203691837", Barrel, .01, .3)
| |
| 573 | CFuncs["Sound"].Create("rbxassetid://203691885", Barrel, .01, .9)
| |
| 574 | CFuncs["Sound"].Create("rbxassetid://184718741", Barrel, .05, .9)
| |
| 575 | Shoot2(Barrel.Position) | |
| 576 | for i = 0, 1, 0.15 do | |
| 577 | swait() | |
| 578 | RootPart.Velocity = RootPart.CFrame.lookVector * -50 | |
| 579 | PlayAnimationFromTable({
| |
| 580 | CFrame.new(-0, -0.281125277, 0.157014638, 1, 0, -0, 0, 0.906307876, -0.422617942, 0, 0.422617942, 0.906307876) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 581 | CFrame.new(0, 1.4999938, 1.05202198e-005, 1, 0, -0, 0, 0.965925813, 0.258818924, -0, -0.258818924, 0.965925813) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 582 | CFrame.new(0.406597674, 0.817824185, -0.957423151, 0.939692974, 0.280165672, -0.196174338, -5.36441803e-007, -0.573575616, -0.819152534, -0.34201926, 0.769751906, -0.538984895) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 583 | CFrame.new(-0.506752789, 0.775180221, -0.974653006, 0.939692974, -0.280165732, 0.196174279, 5.36441803e-007, -0.573575556, -0.819152713, 0.34201926, 0.769752145, -0.538984716) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 584 | CFrame.new(0.566868722, -1.61683154, -0.13679418, 0.954536259, -0.174988821, -0.241328761, 0.172366679, 0.984509468, -0.0321052969, 0.243208498, -0.0109513998, 0.969912171) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 585 | CFrame.new(-0.545306504, -1.37044179, -0.679420352, 0.996202111, 0.0754783303, 0.0434113704, -0.0434117466, 0.862729907, -0.503797948, -0.0754781216, 0.49999994, 0.862729967) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 586 | }, .6, false) | |
| 587 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-30), math.rad(-20), math.rad(0)), 0.3) | |
| 588 | end | |
| 589 | for i = 0, 1, 0.15 do | |
| 590 | swait() | |
| 591 | RootPart.Velocity = RootPart.CFrame.lookVector * -100 | |
| 592 | PlayAnimationFromTable({
| |
| 593 | CFrame.new(-0, -0.795007467, 0.0831707418, 1, 0, -0, 0, 0.76604414, -0.642788053, 0, 0.642788053, 0.76604414) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 594 | CFrame.new(0, 1.49999774, 1.20103359e-005, 1, 0, -0, 0, 0.965925634, 0.258819878, -0, -0.258819878, 0.965925634) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 595 | CFrame.new(1.70605683, 1.21151328, -0.185158521, 0.893217862, -0.29338178, -0.340718448, -0.340719074, -0.936116338, -0.0871595442, -0.293381065, 0.193941653, -0.936116695) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 596 | CFrame.new(-1.69524968, 1.05172348, -0.252849877, 0.812758088, 0.493294626, 0.309975445, 0.582562625, -0.694268882, -0.422624737, 0.00672781467, 0.524071693, -0.851647615) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 597 | CFrame.new(0.689150453, -1.88461804, -0.0157705098, 0.954536736, -0.174989104, -0.241326213, 0.172367141, 0.984509468, -0.0321044922, 0.243205875, -0.0109517872, 0.969912887) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 598 | CFrame.new(-0.536899447, -1.34506011, -0.583059072, 0.99620223, 0.0226762109, 0.0840658173, -0.043412663, 0.966281295, 0.253803402, -0.0754759163, -0.256489068, 0.963595748) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 599 | }, .2, false) | |
| 600 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3) | |
| 601 | end | |
| 602 | for i = 0, 1, 0.05 do | |
| 603 | swait() | |
| 604 | RootPart.Velocity = RootPart.CFrame.lookVector * -50 | |
| 605 | PlayAnimationFromTable({
| |
| 606 | CFrame.new(-0, -2.09708667, 0.108620644, 1, 0, -0, 0, 0.573575675, -0.819152594, 0, 0.819152594, 0.573575675) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 607 | CFrame.new(0, 1.53697455, -0.422635257, 1, 0, -0, 0, 0.766043842, 0.64278841, -0, -0.64278841, 0.766043842) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 608 | CFrame.new(1.57810855, 0.650130272, 0.33058399, 0.930655897, -0.284022599, -0.230674848, 0.352510452, 0.527023435, 0.773293555, -0.0980618149, -0.800985396, 0.590598404) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 609 | CFrame.new(-1.38994181, 0.87733829, 0.667137444, 0.963715255, 0.08906921, 0.251633942, -0.25866431, 0.0788001418, 0.962747812, 0.0659223944, -0.992903471, 0.0989798903) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 610 | CFrame.new(0.774198592, -1.52057803, -0.607582211, 0.954536974, -0.272207022, -0.121501081, 0.172365844, 0.83655864, -0.520057499, 0.243206039, 0.475471497, 0.845445395) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 611 | CFrame.new(-0.530096769, -1.05517173, -0.660005629, 0.99620223, 0.0226761587, 0.0840661526, -0.0434127897, 0.966280818, 0.253804684, -0.0754762068, -0.256490231, 0.96359539) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 612 | }, .3, false) | |
| 613 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0)), 0.3) | |
| 614 | end | |
| 615 | for i = 0, 1, 0.13 do | |
| 616 | swait() | |
| 617 | PlayAnimationFromTable({
| |
| 618 | CFrame.new(-0, -1.01349139, -0.251608461, 1, 0, 0, 0, 0.707105339, 0.707108378, 0, -0.707108378, 0.707105339) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 619 | CFrame.new(0.0127754211, 1.44207788, 0.0749337673, 1, 0, 0, 0, 0.939691544, -0.342023343, 0, 0.342023343, 0.939691544) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 620 | CFrame.new(1.62296665, 0.191783041, -0.192457974, 0.930656254, -0.329096794, 0.159920022, 0.352511466, 0.923570275, -0.150843769, -0.098055169, 0.196757287, 0.975536823) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 621 | CFrame.new(-0.870643735, 0.71258086, -0.942903101, 0.18127799, -0.372358024, -0.910213113, -0.781424284, 0.507405519, -0.363202393, 0.597088516, 0.777103186, -0.19898814) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 622 | CFrame.new(0.214147568, -1.73508716, -0.0895051956, 0.924306214, 0.282332808, -0.256800473, -0.113861978, 0.846218646, 0.520528436, 0.364271581, -0.451887846, 0.814311981) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 623 | CFrame.new(-0.535767198, -0.599929333, -0.996632636, 0.996202111, 0.0754788443, 0.0434101112, -0.0434126705, 0.862728953, -0.503799856, -0.0754773915, 0.500001788, 0.862729192) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 624 | }, .3, false) | |
| 625 | end | |
| 626 | attack = false | |
| 627 | end | |
| 628 | ||
| 629 | --[[Attacks]]-- | |
| 630 | ||
| 631 | mouse.Button1Down:connect(function() | |
| 632 | if attack == false and attacktype == 1 then | |
| 633 | attackone() | |
| 634 | end | |
| 635 | end) | |
| 636 | ||
| 637 | mouse.KeyDown:connect(function(k) | |
| 638 | k = k:lower() | |
| 639 | if attack == false and k == '' then | |
| 640 | ||
| 641 | end | |
| 642 | end) | |
| 643 | ||
| 644 | while true do | |
| 645 | swait() | |
| 646 | for i, v in pairs(Character:GetChildren()) do | |
| 647 | if v:IsA("Part") then
| |
| 648 | v.Material = "SmoothPlastic" | |
| 649 | elseif v:IsA("Accessory") then
| |
| 650 | v:WaitForChild("Handle").Material = "SmoothPlastic"
| |
| 651 | end | |
| 652 | end | |
| 653 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 654 | velocity = RootPart.Velocity.y | |
| 655 | sine = sine + change | |
| 656 | local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character) | |
| 657 | if equipped == true or equipped == false then | |
| 658 | if RootPart.Velocity.y > 1 and hit == nil then | |
| 659 | Anim = "Jump" | |
| 660 | if attack == false then | |
| 661 | PlayAnimationFromTable({
| |
| 662 | CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 663 | CFrame.new(0, 1.49221826, -0.044082582, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 664 | CFrame.new(1.66304386, 0.182627335, 0.00782334805, 0.883022726, -0.392632574, 0.257119894, 0.321392894, 0.905103981, 0.2783764, -0.342019886, -0.163176134, 0.925416708) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 665 | CFrame.new(-1.66570556, 0.224230319, 0.110721856, 0.903736115, 0.408218145, -0.128915116, -0.34750703, 0.875426054, 0.33595863, 0.25000003, -0.258819014, 0.933012724) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 666 | CFrame.new(0.499999166, -1.99999452, 4.76837158e-007, 0.984807849, -5.94328526e-007, -0.173648044, 0.0449439958, 0.965925872, 0.254886925, 0.167730987, -0.258819073, 0.951251388) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 667 | CFrame.new(-0.499999404, -1.51703107, -0.129407585, 0.965925753, 6.6929374e-007, 0.258819193, -0.0669879839, 0.965925813, 0.24999994, -0.24999994, -0.258819163, 0.933012724) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 668 | }, .3, false) | |
| 669 | end | |
| 670 | elseif RootPart.Velocity.y < -1 and hit == nil then | |
| 671 | Anim = "Fall" | |
| 672 | if attack == false then | |
| 673 | PlayAnimationFromTable({
| |
| 674 | CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 675 | CFrame.new(0, 1.49221873, -0.0440826714, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 676 | CFrame.new(1.76076102, 0.406842887, 0.0212866664, 0.695482016, -0.670965135, 0.257119834, 0.611573994, 0.74059701, 0.278376371, -0.377202988, -0.0363579579, 0.925416648) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 677 | CFrame.new(-1.68029141, 0.390803367, 0.155905366, 0.70961535, 0.692695498, -0.128914997, -0.625963271, 0.703777075, 0.335958213, 0.323444158, -0.157705069, 0.933012843) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 678 | CFrame.new(0.693307817, -1.96826017, -0.0605875254, 0.986561239, -0.127662987, -0.101976946, 0.137943029, 0.985269904, 0.101069227, 0.0875720233, -0.113777988, 0.989639223) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 679 | CFrame.new(-0.526552737, -1.81498528, -0.152177691, 0.965925574, 0.0449441113, 0.254888207, -0.066988036, 0.994663239, 0.0784704387, -0.250001162, -0.0928710476, 0.963781357) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 680 | }, .3, false) | |
| 681 | end | |
| 682 | elseif Torsovelocity < 1 and hit ~= nil then | |
| 683 | Anim = "Idle" | |
| 684 | if attack == false then | |
| 685 | change = 1 | |
| 686 | PlayAnimationFromTable({
| |
| 687 | CFrame.new(1.22602091e-006, -0.219458103, 1.46111324e-006, 0.76604414, 0, 0.642788053, 0, 1, 0, -0.642788053, 0, 0.76604414) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 688 | CFrame.new(0, 1.49999201, 0, 0.707106233, 0, -0.707107306, 0, 1, 0, 0.707107306, 0, 0.707106233) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 689 | CFrame.new(0.571566343, -0.0739164352, -0.639066696, 0.939692855, 0.340718329, -0.0298085809, -0.241844058, 0.600305915, -0.762328327, -0.241844922, 0.723563433, 0.646503866) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 690 | CFrame.new(-0.628383756, -0.12163578, -0.696761668, 0.939692736, -0.342020065, -5.06639481e-007, 0.196173996, 0.538984895, -0.819152653, 0.280166954, 0.769751549, 0.573575616) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 691 | CFrame.new(0.624118924, -1.79798961, 0.0678238794, 0.995454907, -0.0383867361, -0.0871553123, 0.0385330059, 0.999257326, -4.09960694e-006, 0.0870907605, -0.00335427374, 0.996194839) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 692 | CFrame.new(-0.53866595, -1.82180798, 0.00821807235, 0.977763176, 0.0281341001, 0.207816422, -0.0287620034, 0.999586344, -1.4934686e-007, -0.207730502, -0.00597707182, 0.978167892) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 693 | }, .3, false) | |
| 694 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3) | |
| 695 | end | |
| 696 | elseif Torsovelocity > 2 and hit ~= nil then | |
| 697 | Anim = "Walk" | |
| 698 | if attack == false then | |
| 699 | change = 3 | |
| 700 | PlayAnimationFromTable({
| |
| 701 | CFrame.new(0, -0.0240751095, -0.146390602, 1, 0, 0, 0, 0.965925872, 0.258818984, 0, -0.258818984, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 702 | CFrame.new(0, 1.49999237, -1.81794167e-006, 1, 0, 0, 0, 0.984807789, -0.173647881, 0, 0.173647881, 0.984807789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 703 | CFrame.new(0.172261134, 0.427689523, -1.09730911, 0.644483984, 0.748984814, -0.153825179, 0.413525045, -0.510645986, -0.753815472, -0.643146515, 0.422211438, -0.638827145) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 704 | CFrame.new(-1.1922102, 0.363029838, -0.448653877, 0.935289383, -0.110854559, -0.33607316, -0.341521561, -0.531564534, -0.775114357, -0.0927196145, 0.839732468, -0.535025835) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 705 | CFrame.new(.5, -1.85 - 0.5 * math.cos(sine / 8) / 2, 0 + 1.8 * math.sin(sine / 8) / 2) * angles(math.rad(-50 * math.sin(sine / 8)), math.rad(0), math.rad(0)), | |
| 706 | CFrame.new(-.5, -1.85 + 0.5 * math.cos(sine / 8) / 2, 0 - 1.8 * math.sin(sine / 8) / 2) * angles(math.rad(50 * math.sin(sine / 8)), math.rad(0), math.rad(0)), | |
| 707 | }, .3, false) | |
| 708 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.3) | |
| 709 | end | |
| 710 | end | |
| 711 | end | |
| 712 | if 0 < #Effects then | |
| 713 | for e = 1, #Effects do | |
| 714 | if Effects[e] ~= nil then | |
| 715 | local Thing = Effects[e] | |
| 716 | if Thing ~= nil then | |
| 717 | local Part = Thing[1] | |
| 718 | local Mode = Thing[2] | |
| 719 | local Delay = Thing[3] | |
| 720 | local IncX = Thing[4] | |
| 721 | local IncY = Thing[5] | |
| 722 | local IncZ = Thing[6] | |
| 723 | if Thing[2] == "Shoot" then | |
| 724 | local Look = Thing[1] | |
| 725 | local hit, pos = rayCast(Thing[4], Look, 15, Character) | |
| 726 | local mag = (Thing[4] - pos).magnitude | |
| 727 | Thing[9] = Thing[9] + 0.5 | |
| 728 | Thing[5] = Thing[5] + 0.2 | |
| 729 | Thing[6] = Thing[6] + 0.2 | |
| 730 | Effects["Cylinder"].Create(BrickColor.new("New Yeller"), CFrame.new((Thing[4] + pos) / 2, pos) * angles(1.57, 0, 0), Thing[9], mag * 5, Thing[9], -0.2, 0, -0.2, 0.1)
| |
| 731 | Thing[4] = Thing[4] + Look * 15 | |
| 732 | Thing[3] = Thing[3] - 1 | |
| 733 | if hit ~= nil then | |
| 734 | Thing[3] = 0 | |
| 735 | ref = CFuncs["Part"].Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
| |
| 736 | ref.Anchored = true | |
| 737 | ref.CFrame = CFrame.new(pos) | |
| 738 | Effects["Sphere"].Create(BrickColor.new("New Yeller"), CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
| |
| 739 | CFuncs["Sound"].Create("rbxassetid://315748949", ref, 1, 1.1)
| |
| 740 | game:GetService("Debris"):AddItem(ref, 1)
| |
| 741 | end | |
| 742 | if Thing[3] <= 0 then | |
| 743 | table.remove(Effects, e) | |
| 744 | end | |
| 745 | end | |
| 746 | do | |
| 747 | if Thing[2] == "Shoot2" then | |
| 748 | local Look = Thing[1] | |
| 749 | local hit, pos = rayCast(Thing[4], Look, 3, Character) | |
| 750 | local mag = (Thing[4] - pos).magnitude | |
| 751 | Thing[9] = Thing[9] + 0.5 | |
| 752 | Thing[5] = Thing[5] + 0.2 | |
| 753 | Thing[6] = Thing[6] + 0.2 | |
| 754 | Effects["Sphere"].Create(BrickColor.new("New Yeller"), CFrame.new((Thing[4] + pos) / 2, pos), 25, 25, 25, -5, -5, -5, 0.2)
| |
| 755 | Thing[4] = Thing[4] + Look * 3 | |
| 756 | Thing[3] = Thing[3] + 5 | |
| 757 | if hit ~= nil then | |
| 758 | Thing[3] = 0 | |
| 759 | ref = CFuncs["Part"].Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
| |
| 760 | ref.Anchored = true | |
| 761 | ref.CFrame = CFrame.new(pos) | |
| 762 | Effects["Sphere"].Create(BrickColor.new("New Yeller"), CFrame.new(pos), 25, 25, 25, 5, 5, 5, 0.01)
| |
| 763 | Effects["Sphere"].Create(BrickColor.new("New Yeller"), CFrame.new(pos), 10, 10, 10, 15, 15, 15, 0.01)
| |
| 764 | Effects["Block"].Create(BrickColor.new("New Yeller"), CFrame.new(pos), 10, 10, 10, 15, 15, 15, 0.01, 1)
| |
| 765 | Effects["Wave"].Create(BrickColor.new("New Yeller"), CFrame.new(pos), 2, 2, 2, 3, 3, 3, 0.01)
| |
| 766 | CFuncs["Sound"].Create("rbxassetid://203691837", ref, 1, .3)
| |
| 767 | CFuncs["Sound"].Create("rbxassetid://203691885", ref, 1, .9)
| |
| 768 | CFuncs["Sound"].Create("rbxassetid://184718741", ref, 1, .9)
| |
| 769 | local e = Instance.new("Explosion", ref)
| |
| 770 | e.Position = ref.Position | |
| 771 | e.BlastRadius = 400 | |
| 772 | e.DestroyJointRadiusPercent = 20 | |
| 773 | e.Visible = false | |
| 774 | e.ExplosionType = "CratersAndDebris" | |
| 775 | game:GetService("Debris"):AddItem(ref, 10)
| |
| 776 | end | |
| 777 | if Thing[3] <= 0 then | |
| 778 | table.remove(Effects, e) | |
| 779 | end | |
| 780 | end | |
| 781 | do | |
| 782 | do | |
| 783 | if Thing[2] ~= "Shoot" and Thing[2] ~= "DecreaseStat" and Thing[2] ~= "showDamage" and Thing[2] ~= "Shoot2" then | |
| 784 | if Thing[1].Transparency <= 1 then | |
| 785 | if Thing[2] == "Block1" then | |
| 786 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 787 | Mesh = Thing[7] | |
| 788 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 789 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 790 | else | |
| 791 | if Thing[2] == "Block2" then | |
| 792 | Thing[1].CFrame = Thing[1].CFrame | |
| 793 | Mesh = Thing[7] | |
| 794 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 795 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 796 | else | |
| 797 | if Thing[2] == "Block3" then | |
| 798 | Thing[8].C0 = CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * Thing[9] | |
| 799 | Mesh = Thing[7] | |
| 800 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 801 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 802 | else | |
| 803 | if Thing[2] == "Cylinder" then | |
| 804 | Mesh = Thing[7] | |
| 805 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 806 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 807 | else | |
| 808 | if Thing[2] == "Cylinder2" then | |
| 809 | Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, Thing[8], 0) | |
| 810 | Mesh = Thing[7] | |
| 811 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 812 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 813 | else | |
| 814 | if Thing[2] == "Blood" then | |
| 815 | Mesh = Thing[7] | |
| 816 | Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0) | |
| 817 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 818 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 819 | else | |
| 820 | if Thing[2] == "Elec" then | |
| 821 | Mesh = Thing[10] | |
| 822 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
| 823 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 824 | else | |
| 825 | if Thing[2] == "Disappear" then | |
| 826 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 827 | end | |
| 828 | end | |
| 829 | end | |
| 830 | end | |
| 831 | end | |
| 832 | end | |
| 833 | end | |
| 834 | end | |
| 835 | else | |
| 836 | Part.Parent = nil | |
| 837 | table.remove(Effects, e) | |
| 838 | end | |
| 839 | end | |
| 840 | end | |
| 841 | end | |
| 842 | end | |
| 843 | end | |
| 844 | end | |
| 845 | end | |
| 846 | end | |
| 847 | end |