SHOW:
|
|
- or go back to the newest paste.
| 1 | - | sethiddenproperty(game.Players.LocalPlayer, "MaximumSimulationRadius", 999999999999999999999999) --SYNAPSE ONLY DELETE THIS IF YOUR NOT USING SYNAPSE |
| 1 | + | |
| 2 | - | sethiddenproperty(game.Players.LocalPlayer, "SimulationRadius", 999999999999999999999999) --SYNAPSE ONLY DELETE THIS IF YOUR NOT USING SYNAPSE |
| 2 | + | |
| 3 | E = Equip/Unequip, click to shoot, hold to spray | |
| 4 | - | --TOOL YOU NEED: https://www.roblox.com/catalog/5410674378/METAL-x-LIGHTSEER-77 |
| 4 | + | |
| 5 | Bypass = "death" | |
| 6 | loadstring(game:GetObjects("rbxassetid://5064403372")[1].Source)()
| |
| 7 | local HumanoidIsDead = false | |
| 8 | ||
| 9 | local Player=game.Players.LocalPlayer | |
| 10 | local Character=workspace.non | |
| 11 | - | loadstring(game:GetObjects("rbxassetid://5325226148")[1].Source)()
|
| 11 | + | |
| 12 | local LeftArm=Character["Left Arm"] | |
| 13 | local LeftLeg=Character["Left Leg"] | |
| 14 | local RightArm=Character["Right Arm"] | |
| 15 | local RightLeg=Character["Right Leg"] | |
| 16 | local Root=Character["HumanoidRootPart"] | |
| 17 | local Head=Character["Head"] | |
| 18 | local Torso=Character["Torso"] | |
| 19 | local Neck=Torso["Neck"] | |
| 20 | local ToolName = "METALXLIGHTSEER77Accessory" | |
| 21 | local Gun = Character[ToolName] | |
| 22 | local GHandle = Gun.Handle | |
| 23 | h = Instance.new("Attachment",GHandle)
| |
| 24 | ra = Instance.new("Attachment",RightArm)
| |
| 25 | gap = Instance.new("AlignPosition",GHandle)
| |
| 26 | gap.Attachment0 = h | |
| 27 | gap.Attachment1 = ra | |
| 28 | gap.RigidityEnabled = true | |
| 29 | gao = Instance.new("AlignOrientation",GHandle)
| |
| 30 | gao.Attachment0 = h | |
| 31 | gao.Attachment1 = ra | |
| 32 | gao.RigidityEnabled = true | |
| 33 | GHandle:FindFirstChildOfClass("AlignOrientation").Attachment1 = RightArm.RightGripAttachment
| |
| 34 | GHandle:FindFirstChildOfClass("AlignPosition").Attachment1 = RightArm.RightGripAttachment
| |
| 35 | RightArm.RightGripAttachment.Position = Vector3.new(0,-1.2,-0.7) | |
| 36 | RightArm.RightGripAttachment.Orientation = Vector3.new(0, -90, 55) | |
| 37 | local mouse = Player:GetMouse() | |
| 38 | local walking = false | |
| 39 | local jumping = false | |
| 40 | local attacking = false | |
| 41 | local firsttime = false | |
| 42 | local position = nil | |
| 43 | local MseGuide = true | |
| 44 | local running = false | |
| 45 | local settime = 0 | |
| 46 | local sine = 0 | |
| 47 | local t = 0 | |
| 48 | local ws = 18 | |
| 49 | local change = 1 | |
| 50 | local combo1 = true | |
| 51 | local equip = false | |
| 52 | local dgs = 75 | |
| 53 | local combo2 = false | |
| 54 | local switch1 = true | |
| 55 | local switch2 = false | |
| 56 | local firsttime2 = false | |
| 57 | local combo3 = false | |
| 58 | local gunallowance = false | |
| 59 | local shooting = false | |
| 60 | local RunSrv = game:GetService("RunService")
| |
| 61 | local RenderStepped = game:GetService("RunService").RenderStepped
| |
| 62 | local removeuseless = game:GetService("Debris")
| |
| 63 | ||
| 64 | coroutine.wrap(function() | |
| 65 | while true do | |
| 66 | wait() | |
| 67 | if not Character or not Character:FindFirstChild("Humanoid") or Character:FindFirstChild("Humanoid").Health <= 0 then
| |
| 68 | HumanoidIsDead = true | |
| 69 | break | |
| 70 | end | |
| 71 | end | |
| 72 | end)() | |
| 73 | ||
| 74 | local HEADLERP = Instance.new("ManualWeld")
| |
| 75 | HEADLERP.Parent = Head | |
| 76 | HEADLERP.Part0 = Head | |
| 77 | HEADLERP.Part1 = Head | |
| 78 | HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 79 | ||
| 80 | local TORSOLERP = Instance.new("ManualWeld")
| |
| 81 | TORSOLERP.Parent = Root | |
| 82 | TORSOLERP.Part0 = Torso | |
| 83 | TORSOLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 84 | ||
| 85 | local ROOTLERP = Instance.new("ManualWeld")
| |
| 86 | ROOTLERP.Parent = Root | |
| 87 | ROOTLERP.Part0 = Root | |
| 88 | ROOTLERP.Part1 = Torso | |
| 89 | ROOTLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 90 | ||
| 91 | local RIGHTARMLERP = Instance.new("ManualWeld")
| |
| 92 | RIGHTARMLERP.Parent = RightArm | |
| 93 | RIGHTARMLERP.Part0 = RightArm | |
| 94 | RIGHTARMLERP.Part1 = Torso | |
| 95 | RIGHTARMLERP.C0 = CFrame.new(-1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 96 | ||
| 97 | local LEFTARMLERP = Instance.new("ManualWeld")
| |
| 98 | LEFTARMLERP.Parent = LeftArm | |
| 99 | LEFTARMLERP.Part0 = LeftArm | |
| 100 | LEFTARMLERP.Part1 = Torso | |
| 101 | LEFTARMLERP.C0 = CFrame.new(1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 102 | ||
| 103 | local RIGHTLEGLERP = Instance.new("ManualWeld")
| |
| 104 | RIGHTLEGLERP.Parent = RightLeg | |
| 105 | RIGHTLEGLERP.Part0 = RightLeg | |
| 106 | RIGHTLEGLERP.Part1 = Torso | |
| 107 | RIGHTLEGLERP.C0 = CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 108 | ||
| 109 | local LEFTLEGLERP = Instance.new("ManualWeld")
| |
| 110 | LEFTLEGLERP.Parent = LeftLeg | |
| 111 | LEFTLEGLERP.Part0 = LeftLeg | |
| 112 | LEFTLEGLERP.Part1 = Torso | |
| 113 | LEFTLEGLERP.C0 = CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 114 | ||
| 115 | local function weldBetween(a, b) | |
| 116 | local weld = Instance.new("ManualWeld", a)
| |
| 117 | weld.Part0 = a | |
| 118 | weld.Part1 = b | |
| 119 | weld.C0 = a.CFrame:inverse() * b.CFrame | |
| 120 | return weld | |
| 121 | end | |
| 122 | ||
| 123 | function MAKETRAIL(PARENT,POSITION1,POSITION2,LIFETIME,COLOR) | |
| 124 | A = Instance.new("Attachment", PARENT)
| |
| 125 | A.Position = POSITION1 | |
| 126 | A.Name = "A" | |
| 127 | B = Instance.new("Attachment", PARENT)
| |
| 128 | B.Position = POSITION2 | |
| 129 | B.Name = "B" | |
| 130 | tr1 = Instance.new("Trail", PARENT)
| |
| 131 | tr1.Attachment0 = A | |
| 132 | tr1.Attachment1 = B | |
| 133 | tr1.Enabled = true | |
| 134 | tr1.Lifetime = LIFETIME | |
| 135 | tr1.TextureMode = "Static" | |
| 136 | tr1.LightInfluence = 0 | |
| 137 | tr1.Color = COLOR | |
| 138 | tr1.Transparency = NumberSequence.new(0, 1) | |
| 139 | end | |
| 140 | ||
| 141 | shootbox = Instance.new("Part",Gun)
| |
| 142 | shootbox.Size = Vector3.new(.2,.2,.2) | |
| 143 | shootbox.CanCollide = false | |
| 144 | shootbox.Transparency = 1 | |
| 145 | shootbox.CFrame = Gun.Handle.CFrame | |
| 146 | shootboxweld = weldBetween(shootbox,Gun.Handle) | |
| 147 | shootboxweld.C0 = CFrame.new(Vector3.new(4.15,-.8,.6),Vector3.new(90,0,90)) | |
| 148 | light = Instance.new("PointLight", shootbox)
| |
| 149 | light.Color = BrickColor.new("Bright yellow").Color
| |
| 150 | light.Range = 5 | |
| 151 | light.Brightness = 11 | |
| 152 | light.Enabled = false | |
| 153 | particlemiter1 = Instance.new("ParticleEmitter", shootbox)
| |
| 154 | particlemiter1.Enabled = false | |
| 155 | particlemiter1.Texture = "rbxassetid://461242617" | |
| 156 | particlemiter1.Lifetime = NumberRange.new(.1) | |
| 157 | particlemiter1.Size = NumberSequence.new(1,0) | |
| 158 | particlemiter1.Rate = 20 | |
| 159 | particlemiter1.RotSpeed = NumberRange.new(0) | |
| 160 | particlemiter1.Speed = NumberRange.new(0) | |
| 161 | ||
| 162 | ||
| 163 | coroutine.wrap(function() | |
| 164 | for i,v in pairs(Character:GetChildren()) do | |
| 165 | if v.Name == "Animate" then v:Remove() | |
| 166 | end | |
| 167 | end | |
| 168 | end)() | |
| 169 | ||
| 170 | function damagealll(Radius,Position) | |
| 171 | local Returning = {}
| |
| 172 | for _,v in pairs(workspace:GetChildren()) do | |
| 173 | if v~=Character and v:FindFirstChildOfClass('Humanoid') and v:FindFirstChild('Torso') or v:FindFirstChild('UpperTorso') then
| |
| 174 | if v:FindFirstChild("Torso") then
| |
| 175 | local Mag = (v.Torso.Position - Position).magnitude | |
| 176 | if Mag < Radius then | |
| 177 | table.insert(Returning,v) | |
| 178 | end | |
| 179 | elseif v:FindFirstChild("UpperTorso") then
| |
| 180 | local Mag = (v.UpperTorso.Position - Position).magnitude | |
| 181 | if Mag < Radius then | |
| 182 | table.insert(Returning,v) | |
| 183 | end | |
| 184 | end | |
| 185 | end | |
| 186 | end | |
| 187 | return Returning | |
| 188 | end | |
| 189 | ||
| 190 | function swait(num) | |
| 191 | if num == 0 or num == nil then | |
| 192 | game:service("RunService").Stepped:wait(0)
| |
| 193 | else | |
| 194 | for i = 0, num do | |
| 195 | game:service("RunService").Stepped:wait(0)
| |
| 196 | end | |
| 197 | end | |
| 198 | end | |
| 199 | ||
| 200 | doomtheme = Instance.new("Sound", Torso)
| |
| 201 | doomtheme.Volume = 1 | |
| 202 | doomtheme.Name = "doomtheme" | |
| 203 | doomtheme.Looped = true | |
| 204 | doomtheme.SoundId = "rbxassetid://180337897" | |
| 205 | doomtheme:Play() | |
| 206 | ||
| 207 | Torso.ChildRemoved:connect(function(removed) | |
| 208 | if removed.Name == "doomtheme" then | |
| 209 | ||
| 210 | doomtheme = Instance.new("Sound", Torso)
| |
| 211 | doomtheme.Volume = 1 | |
| 212 | doomtheme.Name = "doomtheme" | |
| 213 | doomtheme.Looped = true | |
| 214 | doomtheme.SoundId = "rbxassetid://180337897" | |
| 215 | doomtheme:Play() | |
| 216 | end | |
| 217 | end) | |
| 218 | ||
| 219 | function SOUND(PARENT,ID,VOL,LOOP,REMOVE) | |
| 220 | so = Instance.new("Sound")
| |
| 221 | so.Parent = PARENT | |
| 222 | so.SoundId = "rbxassetid://"..ID | |
| 223 | so.Volume = VOL | |
| 224 | so.Looped = LOOP | |
| 225 | so:Play() | |
| 226 | removeuseless:AddItem(so,REMOVE) | |
| 227 | end | |
| 228 | ||
| 229 | mouse.KeyDown:connect(function(Press) | |
| 230 | Press=Press:lower() | |
| 231 | if Press=='t' then | |
| 232 | ||
| 233 | end | |
| 234 | end) | |
| 235 | ||
| 236 | mouse.KeyDown:connect(function(Press) | |
| 237 | Press=Press:lower() | |
| 238 | if Press=='e' then | |
| 239 | if debounce then return end | |
| 240 | if equip then | |
| 241 | g1:Remove() | |
| 242 | light.Enabled = false | |
| 243 | pcall(function() | |
| 244 | temmy:Remove() | |
| 245 | end) | |
| 246 | for i,v in pairs(Gun:GetDescendants()) do | |
| 247 | if v.Name == "temmy" then v:Remove() | |
| 248 | end | |
| 249 | end | |
| 250 | light.Enabled = false | |
| 251 | particlemiter1.Enabled = false | |
| 252 | hum.CameraOffset = Vector3.new(0,0,0) | |
| 253 | attacking = false | |
| 254 | equip = false | |
| 255 | shooting = false | |
| 256 | gunallowance = false | |
| 257 | ws = 18 | |
| 258 | else | |
| 259 | g1 = Instance.new("BodyGyro", Root)
| |
| 260 | g1.D = 175 | |
| 261 | g1.P = 20000 | |
| 262 | g1.MaxTorque = Vector3.new(0,9000,0) | |
| 263 | g1.CFrame = CFrame.new(Root.Position,mouse.Hit.p) | |
| 264 | attacking = true | |
| 265 | debounce = true | |
| 266 | equip = true | |
| 267 | coroutine.wrap(function() | |
| 268 | while equip do | |
| 269 | g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.1) | |
| 270 | ws = 10 | |
| 271 | swait() | |
| 272 | if Root.Velocity.y > 1 then | |
| 273 | position = "Jump3" | |
| 274 | elseif Root.Velocity.y < -1 then | |
| 275 | position = "Falling3" | |
| 276 | elseif Root.Velocity.Magnitude > 2 and running == false and attacking == true then | |
| 277 | position = "Walk3" | |
| 278 | elseif Root.Velocity.Magnitude < 2 and running == false and attacking == true then | |
| 279 | position = "Idle4" | |
| 280 | end | |
| 281 | end | |
| 282 | end)() | |
| 283 | coroutine.wrap(function() | |
| 284 | while equip do | |
| 285 | swait() | |
| 286 | settime = 0.05 | |
| 287 | sine = sine + change | |
| 288 | if position == "Jump3" and attacking and not running then | |
| 289 | change = .65 | |
| 290 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.4) | |
| 291 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.4) | |
| 292 | elseif position == "Falling3" and attacking and not running then | |
| 293 | change = .65 | |
| 294 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(4), math.rad(0)), 0.4) | |
| 295 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(14), math.rad(-4), math.rad(0)), 0.4) | |
| 296 | elseif position == "Walk3" and attacking == true and running == false then | |
| 297 | change = .65 | |
| 298 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0.05*math.sin(sine/4), 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)),.2) | |
| 299 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.92 - 0.35 * math.cos(sine/8)/2.8, 0.2 - math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) + -math.sin(sine/8)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0), math.cos(25 * math.cos(sine/8))), 0.1) | |
| 300 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.92 + 0.35 * math.cos(sine/8)/2.8, 0.2 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) - -math.sin(sine/8)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0) , math.cos(25 * math.cos(sine/8))), 0.1) | |
| 301 | elseif position == "Idle4" and attacking == true and running == false then | |
| 302 | change = .65 | |
| 303 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/25), 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)),.1) | |
| 304 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
| 305 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 - .1 * math.sin(sine/25), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.1) | |
| 306 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
| 307 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0 - .1 * math.sin(sine/25), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.1) | |
| 308 | end | |
| 309 | end | |
| 310 | end)() | |
| 311 | SOUND(RightArm,898163129,6,false,2) | |
| 312 | for i = 1, 30 do | |
| 313 | --tommygunweld.C0 = tommygunweld.C0:lerp(CFrame.new(0,-.68,1.25) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-12)),.25) | |
| 314 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1, 0.1, 0.4) * CFrame.Angles(math.rad(-90), math.rad(-60), math.rad(0)), 0.25) | |
| 315 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1, 1.35, 0.4) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)), 0.25) | |
| 316 | swait() | |
| 317 | end | |
| 318 | gunallowance = true | |
| 319 | mouse.Button1Down:connect(function() | |
| 320 | if gunallowance then | |
| 321 | particlemiter1.Enabled = true | |
| 322 | shooting = true | |
| 323 | end | |
| 324 | end) | |
| 325 | mouse.Button1Up:connect(function() | |
| 326 | if gunallowance then | |
| 327 | hum.CameraOffset = Vector3.new(0,0,0) | |
| 328 | light.Enabled = false | |
| 329 | particlemiter1.Enabled = false | |
| 330 | pcall(function() | |
| 331 | temmy:Remove() | |
| 332 | end) | |
| 333 | for i,v in pairs(Gun:GetDescendants()) do | |
| 334 | if v.Name == "temmy" then v:Remove() | |
| 335 | end | |
| 336 | end | |
| 337 | shooting = false | |
| 338 | end | |
| 339 | end) | |
| 340 | coroutine.wrap(function() | |
| 341 | if firsttime2 then return end | |
| 342 | firsttime2 = true | |
| 343 | while true do | |
| 344 | swait(3) | |
| 345 | if shooting then | |
| 346 | if switch1 then | |
| 347 | switch1 = false | |
| 348 | switch2 = true | |
| 349 | light.Enabled = true | |
| 350 | elseif switch2 then | |
| 351 | switch1 = true | |
| 352 | switch2 = false | |
| 353 | light.Enabled = false | |
| 354 | end | |
| 355 | end | |
| 356 | end | |
| 357 | end)() | |
| 358 | coroutine.wrap(function() | |
| 359 | if firsttime then return end | |
| 360 | firsttime = true | |
| 361 | while true do | |
| 362 | if shooting then | |
| 363 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1, 1.35, 0.4) * CFrame.Angles(math.rad(-90), math.rad(0 - 10 * math.sin(sine)), math.rad(0)), 0.25) | |
| 364 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1, 0.1 + .4 * math.sin(sine), 0.4) * CFrame.Angles(math.rad(-90), math.rad(-60), math.rad(0)), 0.25) | |
| 365 | elseif not shooting then | |
| 366 | end | |
| 367 | swait() | |
| 368 | end | |
| 369 | end)() | |
| 370 | debounce = false | |
| 371 | end | |
| 372 | end | |
| 373 | end) | |
| 374 | ||
| 375 | ||
| 376 | checks1 = coroutine.wrap(function() -------Checks | |
| 377 | while true do | |
| 378 | if HumanoidIsDead then break end | |
| 379 | if Root.Velocity.y > 1 then | |
| 380 | position = "Jump" | |
| 381 | elseif Root.Velocity.y < -1 then | |
| 382 | position = "Falling" | |
| 383 | elseif Root.Velocity.Magnitude < 2 then | |
| 384 | position = "Idle" | |
| 385 | elseif Root.Velocity.Magnitude < 20 then | |
| 386 | position = "Walking" | |
| 387 | elseif Root.Velocity.Magnitude > 20 then | |
| 388 | position = "Running" | |
| 389 | else | |
| 390 | end | |
| 391 | wait() | |
| 392 | end | |
| 393 | end) | |
| 394 | checks1() | |
| 395 | ||
| 396 | function ray(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
| 397 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
| 398 | end | |
| 399 | ||
| 400 | function ray2(StartPos, EndPos, Distance, Ignore) | |
| 401 | local DIRECTION = CFrame.new(StartPos,EndPos).lookVector | |
| 402 | return ray(StartPos, DIRECTION, Distance, Ignore) | |
| 403 | end | |
| 404 | ||
| 405 | OrgnC0 = Neck.C0 | |
| 406 | local movelimbs = coroutine.wrap(function() | |
| 407 | while RunSrv.RenderStepped:wait() do | |
| 408 | if HumanoidIsDead then break end | |
| 409 | TrsoLV = Torso.CFrame.lookVector | |
| 410 | Dist = nil | |
| 411 | Diff = nil | |
| 412 | if not MseGuide then | |
| 413 | print("Failed to recognize")
| |
| 414 | else | |
| 415 | local _, Point = workspace:FindPartOnRay(Ray.new(Head.CFrame.p, mouse.Hit.lookVector), workspace, false, true) | |
| 416 | Dist = (Head.CFrame.p-Point).magnitude | |
| 417 | Diff = Head.CFrame.Y-Point.Y | |
| 418 | local _, Point2 = workspace:FindPartOnRay(Ray.new(LeftArm.CFrame.p, mouse.Hit.lookVector), workspace, false, true) | |
| 419 | Dist2 = (LeftArm.CFrame.p-Point).magnitude | |
| 420 | Diff2 = LeftArm.CFrame.Y-Point.Y | |
| 421 | HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 422 | Neck.C0 = Neck.C0:lerp(OrgnC0*CFrame.Angles((math.tan(Diff/Dist)*1), 0, (((Head.CFrame.p-Point).Unit):Cross(Torso.CFrame.lookVector)).Y*1), .1) | |
| 423 | end | |
| 424 | end | |
| 425 | end) | |
| 426 | movelimbs() | |
| 427 | immortal = {}
| |
| 428 | for i,v in pairs(Character:GetDescendants()) do | |
| 429 | if v:IsA("BasePart") and v.Name ~= "lmagic" and v.Name ~= "rmagic" then
| |
| 430 | if v ~= Root and v ~= Torso and v ~= Head and v ~= RightArm and v ~= LeftArm and v ~= RightLeg and v.Name ~= "lmagic" and v.Name ~= "rmagic" and v ~= LeftLeg then | |
| 431 | v.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
| 432 | end | |
| 433 | table.insert(immortal,{v,v.Parent,v.Material,v.Color,v.Transparency})
| |
| 434 | elseif v:IsA("JointInstance") then
| |
| 435 | table.insert(immortal,{v,v.Parent,nil,nil,nil})
| |
| 436 | end | |
| 437 | end | |
| 438 | for e = 1, #immortal do | |
| 439 | if immortal[e] ~= nil then | |
| 440 | local STUFF = immortal[e] | |
| 441 | local PART = STUFF[1] | |
| 442 | local PARENT = STUFF[2] | |
| 443 | local MATERIAL = STUFF[3] | |
| 444 | local COLOR = STUFF[4] | |
| 445 | local TRANSPARENCY = STUFF[5] | |
| 446 | if levitate then | |
| 447 | if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= eyo1 and PART.Name ~= eyo2 and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then | |
| 448 | PART.Material = MATERIAL | |
| 449 | PART.Color = COLOR | |
| 450 | PART.Transparency = TRANSPARENCY | |
| 451 | end | |
| 452 | PART.AncestryChanged:connect(function() | |
| 453 | PART.Parent = PARENT | |
| 454 | end) | |
| 455 | else | |
| 456 | if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then | |
| 457 | PART.Material = MATERIAL | |
| 458 | PART.Color = COLOR | |
| 459 | PART.Transparency = TRANSPARENCY | |
| 460 | end | |
| 461 | PART.AncestryChanged:connect(function() | |
| 462 | PART.Parent = PARENT | |
| 463 | end) | |
| 464 | end | |
| 465 | end | |
| 466 | end | |
| 467 | coroutine.wrap(function() | |
| 468 | while true do | |
| 469 | if HumanoidIsDead then break end | |
| 470 | if hum.Health < .1 then | |
| 471 | deadsound = Instance.new("Sound", Torso)
| |
| 472 | deadsound.Volume = 6 | |
| 473 | deadsound.SoundId = "rbxassetid://1411352723" | |
| 474 | deadsound:Play() | |
| 475 | end | |
| 476 | wait() | |
| 477 | end | |
| 478 | end)() | |
| 479 | ||
| 480 | local anims = coroutine.wrap(function() | |
| 481 | while true do | |
| 482 | if HumanoidIsDead then break end | |
| 483 | settime = 0.05 | |
| 484 | sine = sine + change | |
| 485 | if position == "Jump" and attacking == false then | |
| 486 | change = 1 | |
| 487 | --tommygunweld.C0 = tommygunweld.C0:lerp(CFrame.new(0,-.80,1.25) * CFrame.Angles(math.rad(98),math.rad(0),0),.25) | |
| 488 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
| 489 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
| 490 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4) | |
| 491 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
| 492 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.4,.1,-.2) * CFrame.Angles(math.rad(20),math.rad(-3),math.rad(-4)), 0.4) | |
| 493 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.4) | |
| 494 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.4) | |
| 495 | elseif position == "Jump2" and attacking == false then | |
| 496 | change = 1 | |
| 497 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-20 - 1 * math.sin(sine/9)), math.rad(0 + 0 * math.cos(sine/8)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(10 * math.cos(sine/10))), 0.3) | |
| 498 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.3) | |
| 499 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.3) | |
| 500 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.6,-.5) * CFrame.Angles(math.rad(32),math.rad(5 - .1 * math.sin(sine/12)),math.rad(40 - .5 * math.sin(sine/12))), 0.3) | |
| 501 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.6,-.5) * CFrame.Angles(math.rad(30),math.rad(-5 + .1 * math.sin(sine/12)),math.rad(-40 + .5 * math.sin(sine/12))), 0.3) | |
| 502 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3) | |
| 503 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.4 + .1 * math.sin(sine/9), .4) * CFrame.Angles(math.rad(9 + 2 * math.cos(sine/9)), math.rad(0), math.rad(0)), 0.3) | |
| 504 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.54, 2.0 + .02 * math.sin(sine/9), 0.2 + .1 * math.sin(sine/9)) * CFrame.Angles(math.rad(25 + 5 * math.sin(sine/9)), math.rad(20), math.rad(0)), 0.3) | |
| 505 | elseif position == "Falling" and attacking == false then | |
| 506 | change = 1 | |
| 507 | --tommygunweld.C0 = tommygunweld.C0:lerp(CFrame.new(0,-.80,1.25) * CFrame.Angles(math.rad(98),math.rad(0),0),.25) | |
| 508 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
| 509 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
| 510 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4) | |
| 511 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(4), math.rad(0)), 0.2) | |
| 512 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(14), math.rad(-4), math.rad(0)), 0.2) | |
| 513 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.6, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(20)), 0.2) | |
| 514 | elseif position == "Falling2" and attacking == false then | |
| 515 | change = 1 | |
| 516 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-20 - 1 * math.sin(sine/9)), math.rad(0 + 0 * math.cos(sine/8)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(10 * math.cos(sine/10))), 0.3) | |
| 517 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.3) | |
| 518 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.3) | |
| 519 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.6,-.5) * CFrame.Angles(math.rad(32),math.rad(5 - .1 * math.sin(sine/12)),math.rad(40 - .5 * math.sin(sine/12))), 0.3) | |
| 520 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.6,-.5) * CFrame.Angles(math.rad(30),math.rad(-5 + .1 * math.sin(sine/12)),math.rad(-40 + .5 * math.sin(sine/12))), 0.3) | |
| 521 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3) | |
| 522 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.4 + .1 * math.sin(sine/9), .4) * CFrame.Angles(math.rad(9 + 2 * math.cos(sine/9)), math.rad(0), math.rad(0)), 0.3) | |
| 523 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.54, 2.0 + .02 * math.sin(sine/9), 0.2 + .1 * math.sin(sine/9)) * CFrame.Angles(math.rad(25 + 5 * math.sin(sine/9)), math.rad(20), math.rad(0)), 0.3) | |
| 524 | elseif position == "Walking" and attacking == false and running == false then | |
| 525 | change = 1.2 | |
| 526 | walking = true | |
| 527 | --tommygunweld.C0 = tommygunweld.C0:lerp(CFrame.new(0,-.80,1.25) * CFrame.Angles(math.rad(98),math.rad(0),0),.25) | |
| 528 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.3,1,0) * CFrame.Angles(math.rad(180),math.rad(1),math.rad(10)), 0.1) | |
| 529 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
| 530 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
| 531 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5 + Root.RotVelocity.Y / 85,.35,.5*math.sin(sine/8)) * CFrame.Angles(math.rad(-35*math.sin(sine/8)),math.rad(0*math.sin(sine/8)),math.rad(10 + Root.RotVelocity.Y / 10, math.sin(20 * math.sin(sine/4)))),.3) | |
| 532 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0.05*math.sin(sine/4), 0) * CFrame.Angles(math.rad(-10), math.rad(5 * math.cos(sine/7)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(25 * math.cos(sine/10))), 0.1) | |
| 533 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.92 - 0.35 * math.cos(sine/8)/2.8, 0.2 - math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) + -math.sin(sine/8)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0), math.cos(25 * math.cos(sine/8))), 0.3) | |
| 534 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.92 + 0.35 * math.cos(sine/8)/2.8, 0.2 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) - -math.sin(sine/8)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0) , math.cos(25 * math.cos(sine/8))), 0.3) | |
| 535 | elseif position == "Idle" and attacking == false and running == false then | |
| 536 | change = .5 | |
| 537 | --tommygunweld.C0 = tommygunweld.C0:lerp(CFrame.new(0,-.80,1.25) * CFrame.Angles(math.rad(98),math.rad(0),0),.25) | |
| 538 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0),math.rad(25),math.rad(0)),.1) | |
| 539 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.3 + .1 * math.sin(sine/12),1 + .1 * math.sin(sine/12),0) * CFrame.Angles(math.rad(180),math.rad(1),math.rad(8 + 5 * math.sin(sine/12))), 0.1) | |
| 540 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.59 - .05 * math.sin(sine/12), 0.1 -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(-2), math.rad(2), math.rad(8 - 6 * math.sin(sine/12))), .2) | |
| 541 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
| 542 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.1) | |
| 543 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
| 544 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.1) | |
| 545 | elseif position == "Idle2" and attacking == false and running == false then | |
| 546 | change = .75 | |
| 547 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0 - 3 * math.sin(sine/9)),0,0),.1) | |
| 548 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
| 549 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(-.2,.2,0) * CFrame.Angles(0,0,0),.1) | |
| 550 | LEFTARMLERP.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,0,0) | |
| 551 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.6, 0.8 - .1 * math.sin(sine/9), 0) * CFrame.Angles(math.rad(0), math.rad(0 + 3 * math.sin(sine/9)), math.rad(35 - 5 * math.sin(sine/9))), 0.4) | |
| 552 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.6, 0.8 - .1 * math.sin(sine/9), 0) * CFrame.Angles(math.rad(0), math.rad(0 - 3 * math.sin(sine/9)), math.rad(-35 + 5 * math.sin(sine/9))), 0.4) | |
| 553 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.4 + .1 * math.sin(sine/9), .4) * CFrame.Angles(math.rad(9 + 2 * math.cos(sine/9)), math.rad(0), math.rad(0)), 0.4) | |
| 554 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 2.0,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10 + 2 * math.sin(sine/9))), 0.4) | |
| 555 | elseif position == "Walking2" and attacking == false and running == false then | |
| 556 | ws = 50 | |
| 557 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-20 - 1 * math.sin(sine/9)), math.rad(0 + 0 * math.cos(sine/8)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(10 * math.cos(sine/10))), 0.3) | |
| 558 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.3) | |
| 559 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.3) | |
| 560 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.6,-.5) * CFrame.Angles(math.rad(32),math.rad(5 - .1 * math.sin(sine/12)),math.rad(40 - .5 * math.sin(sine/12))), 0.3) | |
| 561 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.6,-.5) * CFrame.Angles(math.rad(30),math.rad(-5 + .1 * math.sin(sine/12)),math.rad(-40 + .5 * math.sin(sine/12))), 0.3) | |
| 562 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3) | |
| 563 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.4 + .1 * math.sin(sine/9), .4) * CFrame.Angles(math.rad(9 + 2 * math.cos(sine/9)), math.rad(0), math.rad(0)), 0.3) | |
| 564 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.54, 2.0 + .02 * math.sin(sine/9), 0.2 + .1 * math.sin(sine/9)) * CFrame.Angles(math.rad(25 + 5 * math.sin(sine/9)), math.rad(20), math.rad(0)), 0.3) | |
| 565 | elseif position == "Running" and attacking == false then | |
| 566 | change = 1 | |
| 567 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(0, .5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.3) | |
| 568 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(-1.24+.6*math.sin(sine/4)/1.4, 0.54, 0-0.8*math.sin(sine/4))*CFrame.Angles(math.rad(6+140*math.sin(sine/4)/1.2), math.rad(0), math.rad(20+70*math.sin(sine/4))), 0.3) | |
| 569 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 570 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(-20 - 0 * math.sin(sine/4)), math.rad(0 + 6 * math.sin(sine/4)), math.rad(0) + Root.RotVelocity.Y / 30, math.sin(10 * math.sin(sine/4))), 0.3) | |
| 571 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*-math.sin(sine/4)),.3) | |
| 572 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.6+0.1*math.sin(sine/4),.7*-math.sin(sine/4)) * CFrame.Angles(math.rad(15+ -50 * math.sin(sine/4)),0,0),.3) | |
| 573 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*math.sin(sine/4)),.3) | |
| 574 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.6-0.1*math.sin(sine/4),.7*math.sin(sine/4)) * CFrame.Angles(math.rad(15 + 50 * math.sin(sine/4)),0,0),.3) | |
| 575 | end | |
| 576 | swait() | |
| 577 | end | |
| 578 | end) | |
| 579 | anims() | |
| 580 | game:GetService("StarterGui"):SetCore("SendNotification",{Title = "Elio Blasio",Text = "Doxxmane/EFTPMC#6054 <3",Duration = 12}) |