The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
Fe Aiju Trap Rifle script pastebin roblox
By Fe Aiju Trap Rifle on 2024-11-27 08:00 am | Syntax: LUA | Views: 21



New Script | Raw | Show/Hide line no. | Copy text to clipboard
  1. ------------------------
  2. --Aiju Love Trap Rifle--
  3. --Hat to wear: https://www.roblox.com/catalog/5552777613/R-Seven-Pink-Rifle
  4. ----------------------------------------------------------------
  5. --By CKbackup (Sugarie Saffron)                               --
  6. --YT: https://www.youtube.com/channel/UC8n9FFz7e6Zo13ob_5F9MJw--
  7. --Discord: Sugarie Saffron#4705                               --
  8. ----------------------------------------------------------------
  9. function LoadLibrary(a)
  10.  return loadstring(game:HttpGet("https://pastebin.com/raw/UfzKgS6T", true))()
  11. end
  12. local Network = coroutine.create(function()
  13.   while true do
  14.    game:GetService("RunService").Heartbeat:Wait()
  15.    settings().Physics.AllowSleep = false
  16.    sethiddenproperty(game.Players.LocalPlayer,"MaximumSimulationRadius",(7.0000001355554e+100)*7.0000001355554e+100)
  17.    sethiddenproperty(game.Players.LocalPlayer,"SimulationRadius",(7.0000001355554e+100)*7.0000001355554e+100)
  18.   end
  19.  end)
  20.  coroutine.resume(Network)
  21.  spawn(function()
  22.   while true do
  23.    settings().Physics.AllowSleep = false
  24.    sethiddenproperty(game.Players.LocalPlayer,"MaximumSimulationRadius",math.pow(math.huge,math.huge)*math.huge)
  25.    sethiddenproperty(game.Players.LocalPlayer,"SimulationRadius",math.pow(math.huge,math.huge)*math.huge)
  26.    game:GetService("RunService").Stepped:wait()
  27.   end
  28.  end)
  29.  game:GetService("RunService").RenderStepped:Connect(function()
  30.   setsimulationradius(math.huge)
  31.  end)
  32.  coroutine.resume(Network)
  33.  spawn(function()
  34.   while true do
  35.    settings().Physics.AllowSleep = false
  36.    sethiddenproperty(game.Players.LocalPlayer,"MaximumSimulationRadius", 7.0000001355554e+31)
  37.    sethiddenproperty(game.Players.LocalPlayer, "MaximumSimulationRadius", 7.0000001355554e+31)
  38.    game:GetService("RunService").Stepped:wait()
  39.   end
  40.  end)
  41.  
  42.  wait(1)
  43.  
  44.  if _G.netted ~= true then
  45.   _G.netted = true
  46.   coroutine.wrap(function()
  47.    settings().Physics.AllowSleep = false
  48.    game:GetService("RunService").RenderStepped:Connect(function()
  49.     game:FindFirstChildOfClass("Players").LocalPlayer.MaximumSimulationRadius=math.pow(math.huge,math.huge)
  50.     sethiddenproperty(game:FindFirstChildOfClass("Players").LocalPlayer,"SimulationRadius",math.huge*math.huge)
  51.    end)
  52.   end)()
  53.  end
  54.  
  55.  wait(1)
  56.  
  57.  HumanDied = false
  58.  local CountSCIFIMOVIELOL = 1
  59.  function SCIFIMOVIELOL(Part0,Part1,Position,Angle)
  60.   local AlignPos = Instance.new('AlignPosition', Part1); AlignPos.Name = "AliP_"..CountSCIFIMOVIELOL
  61.   AlignPos.ApplyAtCenterOfMass = true;
  62.   AlignPos.MaxForce = 5772000--67752;
  63.   AlignPos.MaxVelocity = math.huge/9e110;
  64.   AlignPos.ReactionForceEnabled = false;
  65.   AlignPos.Responsiveness = 200;
  66.   AlignPos.RigidityEnabled = false;
  67.   local AlignOri = Instance.new('AlignOrientation', Part1); AlignOri.Name = "AliO_"..CountSCIFIMOVIELOL
  68.   AlignOri.MaxAngularVelocity = math.huge/9e110;
  69.   AlignOri.MaxTorque = 5772000
  70.   AlignOri.PrimaryAxisOnly = false;
  71.   AlignOri.ReactionTorqueEnabled = false;
  72.   AlignOri.Responsiveness = 200;
  73.   AlignOri.RigidityEnabled = false;
  74.   local AttachmentA=Instance.new('Attachment',Part1); AttachmentA.Name = "Ath_"..CountSCIFIMOVIELOL
  75.   local AttachmentB=Instance.new('Attachment',Part0); AttachmentB.Name = "Ath_"..CountSCIFIMOVIELOL
  76.   AttachmentA.Orientation = Angle or Vector3.new(0,0,0)
  77.   AttachmentA.Position = Position or Vector3.new(0,0,0)
  78.   AlignPos.Attachment1 = AttachmentA;
  79.   AlignPos.Attachment0 = AttachmentB;
  80.   AlignOri.Attachment1 = AttachmentA;
  81.   AlignOri.Attachment0 = AttachmentB;
  82.   CountSCIFIMOVIELOL = CountSCIFIMOVIELOL + 1
  83.   return {AlignPos,AlignOri,AttachmentA,AttachmentB}
  84.  end
  85.  
  86.  game:FindFirstChildOfClass("Players").LocalPlayer["Character"].Archivable = true
  87.  local hatnameclone = {}
  88.  for _,v in next, game:FindFirstChildOfClass("Players").LocalPlayer["Character"]:GetChildren() do
  89.   if v:IsA("Accessory") then
  90.    if hatnameclone[v.Name] then
  91.     if hatnameclone[v.Name] == "s" then
  92.      hatnameclone[v.Name] = {}
  93.     end
  94.     table.insert(hatnameclone[v.Name],v)
  95.    else
  96.     hatnameclone[v.Name] = "s"
  97.    end
  98.   end
  99.  end
  100.  for _,v in pairs(hatnameclone) do
  101.   if type(v) == "table" then
  102.    local num = 1
  103.    for _,w in pairs(v) do
  104.     w.Name = w.Name..num
  105.     num = num + 1
  106.    end
  107.   end
  108.  end
  109.  hatnameclone = nil
  110.  
  111.  local DeadChar = game:FindFirstChildOfClass("Players").LocalPlayer.Character
  112.  
  113.  local fldr = Instance.new("Folder",game:FindFirstChildOfClass("Players").LocalPlayer["Character"])
  114.  fldr.Name = "DMYF"
  115.  local CloneChar = DeadChar:Clone()
  116.  local ANIMATIONHERE
  117.  if CloneChar:FindFirstChild("Animate") then
  118.   ANIMATIONHERE = CloneChar:FindFirstChild("Animate"):Clone()
  119.   CloneChar:FindFirstChild("Animate"):Destroy()
  120.  end
  121.  if CloneChar:FindFirstChildOfClass("Folder") then CloneChar:FindFirstChildOfClass("Folder"):Destroy() end
  122.  if CloneChar.Torso:FindFirstChild("Neck") then
  123.   local Clonessss = CloneChar.Torso:FindFirstChild("Neck"):Clone()
  124.   Clonessss.Part0 = nil
  125.   Clonessss.Part1 = DeadChar.Head
  126.   Clonessss.Parent = DeadChar.Torso
  127.  end
  128.  CloneChar.Parent = fldr
  129.  CloneChar.HumanoidRootPart.CFrame = DeadChar.HumanoidRootPart.CFrame
  130.  CloneChar.Humanoid.BreakJointsOnDeath = false
  131.  CloneChar.Name = "non"
  132.  CloneChar.Humanoid.DisplayDistanceType = "None"
  133.  
  134.  for _,v in next, DeadChar:GetChildren() do
  135.   if v:IsA("Accessory") then
  136.    local topacc = false
  137.    if v.Handle:FindFirstChildOfClass("Weld") then v.Handle:FindFirstChildOfClass("Weld"):Destroy() end
  138.    v.Handle.Massless = true
  139.    v.Handle.CanCollide = false
  140.    if v.Handle:FindFirstChildOfClass("Attachment") then
  141.     local ath__ = v.Handle:FindFirstChildOfClass("Attachment")
  142.     if ath__.Name == "HatAttachment" or ath__.Name == "HairAttachment" or ath__.Name == "FaceFrontAttachment" or ath__.Name == "FaceCenterAttachment" then
  143.      topacc = ath__.Name
  144.     end
  145.    end
  146.    local bv = Instance.new("BodyVelocity",v.Handle)
  147.    bv.Velocity = Vector3.new(0,0,0)
  148.    coroutine.wrap(function()
  149.     if topacc then
  150.      local allthings = SCIFIMOVIELOL(v.Handle,DeadChar.Torso,Vector3.new(0,1.5,0)+ (DeadChar.Head[topacc].Position + (v.Handle[topacc].Position*-1)),Vector3.new(0,0,0))
  151.      local normaltop = allthings[1].Attachment1
  152.      local alipos = allthings[1]
  153.      local alirot = allthings[2]
  154.      local p0 = v.Handle
  155.      local p1 = DeadChar.Head
  156.      alipos.Parent = CloneChar:FindFirstChild(v.Name).Handle
  157.      alirot.Parent = CloneChar:FindFirstChild(v.Name).Handle
  158.      while true do
  159.       game:GetService("RunService").RenderStepped:wait()
  160.       if HumanDied then break end
  161.       coroutine.wrap(function()
  162.        if alipos.Attachment1 == normaltop then
  163.         p0.CFrame = p0.CFrame:lerp((((DeadChar.Torso.CFrame * CFrame.new(0,1.5,0)) * p1[topacc].CFrame) * p0[topacc].CFrame:inverse()),1)
  164.        else
  165.         v.Handle.CFrame = v.Handle.CFrame:lerp(alipos.Attachment1.Parent.CFrame * CFrame.new(alipos.Attachment1.Position) * CFrame.Angles(math.rad(alipos.Attachment1.Rotation.X),math.rad(alipos.Attachment1.Rotation.Y),math.rad(alipos.Attachment1.Rotation.Z)),1)
  166.        end
  167.       end)()
  168.      end
  169.     else
  170.      SCIFIMOVIELOL(v.Handle,CloneChar[v.Name].Handle,Vector3.new(0,0,0),Vector3.new(0,0,0))
  171.     end
  172.    end)()
  173.   end
  174.  end
  175.  
  176.  local a = DeadChar.Torso
  177.  local b = DeadChar.HumanoidRootPart
  178.  local c = DeadChar.Humanoid
  179.  a.Parent = game:FindFirstChildOfClass("Workspace")
  180.  c.Parent = game:FindFirstChildOfClass("Workspace")
  181.  local told = a:Clone()
  182.  local told1 = c:Clone()
  183.  b["RootJoint"].Part0 = told
  184.  b["RootJoint"].Part1 = DeadChar.Head
  185.  a.Name = "torso"
  186.  a.Neck:Destroy()
  187.  c.Name = "MiztHubReanim"
  188.  told.Parent = DeadChar
  189.  told1.Parent = DeadChar
  190.  DeadChar.PrimaryPart = told
  191.  told1.Health = 0
  192.  b:Destroy()
  193.  a.Parent = DeadChar
  194.  c.Parent = DeadChar
  195.  told:Destroy()
  196.  told1:Destroy()
  197.  a.Name = "Torso"
  198.  
  199.  if CloneChar.Head:FindFirstChildOfClass("Decal") then CloneChar.Head:FindFirstChildOfClass("Decal").Transparency = 1 end
  200.  if DeadChar:FindFirstChild("Animate") then DeadChar:FindFirstChild("Animate"):Destroy() end
  201.  
  202.  local Collider
  203.  function UnCollide()
  204.   if HumanDied then Collider:Disconnect(); return end
  205.       --[[for _,Parts in next, CloneChar:GetChildren() do
  206.           if Parts:IsA("BasePart") then
  207.               Parts.CanCollide = false
  208.           end
  209.       end]]
  210.   for _,Parts in next, DeadChar:GetChildren() do
  211.    if Parts:IsA("BasePart") then
  212.     Parts.CanCollide = false
  213.    end
  214.   end
  215.  end
  216.  Collider = game:GetService("RunService").Stepped:Connect(UnCollide)
  217.  
  218.  local resetBindable = Instance.new("BindableEvent")
  219.  resetBindable.Event:connect(function()
  220.   game:GetService("StarterGui"):SetCore("ResetButtonCallback", true)
  221.   resetBindable:Destroy()
  222.   HumanDied = true
  223.   pcall(function()
  224.    game:FindFirstChildOfClass("Players").LocalPlayer.Character = DeadChar
  225.    DeadChar.Head:Destroy()
  226.    DeadChar:FindFirstChildOfClass("Humanoid"):Destroy()
  227.    game:FindFirstChildOfClass("Players").LocalPlayer.Character = CloneChar
  228.    if DeadChar:FindFirstChildOfClass("Folder") then DeadChar:FindFirstChildOfClass("Folder"):Destroy() end
  229.   end)
  230.  end)
  231.  game:GetService("StarterGui"):SetCore("ResetButtonCallback", resetBindable)
  232.  
  233.  coroutine.wrap(function()
  234.   while true do
  235.    game:GetService("RunService").RenderStepped:wait()
  236.    if not CloneChar or not CloneChar:FindFirstChild("Head") or not CloneChar:FindFirstChildOfClass("Humanoid") or CloneChar:FindFirstChildOfClass("Humanoid").Health <= 0 and not DeadChar or not DeadChar:FindFirstChild("Head") or not DeadChar:FindFirstChildOfClass("Humanoid") or DeadChar:FindFirstChildOfClass("Humanoid").Health <= 0 then
  237.     HumanDied = true
  238.     pcall(function()
  239.      game:FindFirstChildOfClass("Players").LocalPlayer.Character = DeadChar
  240.      DeadChar.Head:Destroy()
  241.      DeadChar:FindFirstChildOfClass("Humanoid"):Destroy()
  242.      game:FindFirstChildOfClass("Players").LocalPlayer.Character = CloneChar
  243.      if DeadChar:FindFirstChildOfClass("Folder") then DeadChar:FindFirstChildOfClass("Folder"):Destroy() end
  244.     end)
  245.     if resetBindable then
  246.      game:GetService("StarterGui"):SetCore("ResetButtonCallback", true)
  247.      resetBindable:Destroy()
  248.     end
  249.     break
  250.    end  
  251.   end
  252.  end)()
  253.  
  254.  
  255.  SCIFIMOVIELOL(DeadChar["Head"],CloneChar["Head"])
  256.  SCIFIMOVIELOL(DeadChar["Torso"],CloneChar["Torso"])
  257.  SCIFIMOVIELOL(DeadChar["Left Arm"],CloneChar["Left Arm"])
  258.  SCIFIMOVIELOL(DeadChar["Right Arm"],CloneChar["Right Arm"])
  259.  SCIFIMOVIELOL(DeadChar["Left Leg"],CloneChar["Left Leg"])
  260.  SCIFIMOVIELOL(DeadChar["Right Leg"],CloneChar["Right Leg"])
  261.  
  262.  for _,v in pairs(DeadChar:GetChildren()) do
  263.   if v:IsA("BasePart") and v.Name ~= "Head" then
  264.     --[[local bv = Instance.new("BodyVelocity",v)
  265.     bv.Velocity = Vector3.new(0,0,0)
  266.     coroutine.wrap(function()
  267.      while true do
  268.       game:GetService("RunService").RenderStepped:wait()
  269.       if HumanDied then break end
  270.       v.CFrame = CloneChar[v.Name].CFrame
  271.      end
  272.     end)()]]
  273.   elseif v:IsA("BasePart") and v.Name == "Head" then
  274.    local bv = Instance.new("BodyVelocity",v)
  275.    bv.Velocity = Vector3.new(0,0,0)
  276.    coroutine.wrap(function()
  277.     while true do
  278.      game:GetService("RunService").RenderStepped:wait()
  279.      if HumanDied then break end
  280.      v.CFrame = DeadChar.Torso.CFrame * CFrame.new(0,1.5,0)
  281.     end
  282.    end)()
  283.   end
  284.  end
  285.  
  286.  for _,BodyParts in next, CloneChar:GetDescendants() do
  287.   if BodyParts:IsA("BasePart") or BodyParts:IsA("Part") then
  288.    BodyParts.Transparency = 1 end end
  289.  game:GetService("RunService").RenderStepped:wait()
  290.  game:FindFirstChildOfClass("Players").LocalPlayer.Character = CloneChar
  291.  game:FindFirstChildOfClass("Workspace"):FindFirstChildOfClass("Camera").CameraSubject = CloneChar.Humanoid
  292.  
  293.  for _,v in next, DeadChar:GetChildren() do
  294.   if v:IsA("Accessory") then
  295.    if v.Handle:FindFirstChildOfClass("Weld") then v.Handle:FindFirstChildOfClass("Weld"):Destroy() end
  296.   end
  297.  end
  298.  
  299.  if ANIMATIONHERE then ANIMATIONHERE.Parent = CloneChar end
  300.  
  301.  wait(1)
  302.  
  303.  local function align(i, v)
  304.   local att0 = Instance.new("Attachment", i)
  305.   att0.Position = Vector3.new(0, 0, 0)
  306.   local att1 = Instance.new("Attachment", v)
  307.   att1.Position = Vector3.new(0, 0, 0)
  308.   local AP = Instance.new("AlignPosition", i)
  309.   AP.Attachment0 = att0
  310.   AP.Attachment1 = att1
  311.   AP.RigidityEnabled = false
  312.   AP.ReactionForceEnabled = false
  313.   AP.ApplyAtCenterOfMass = true
  314.   AP.MaxForce = 9999999
  315.   AP.MaxVelocity = math.huge
  316.   AP.Responsiveness = 65
  317.   local AO = Instance.new("AlignOrientation", i)
  318.   AO.Attachment0 = att0
  319.   AO.Attachment1 = att1
  320.   AO.ReactionTorqueEnabled = true
  321.   AO.PrimaryAxisOnly = false
  322.   AO.MaxTorque = 9999999
  323.   AO.MaxAngularVelocity = math.huge
  324.   AO.Responsiveness = 50
  325.  end
  326. Player = game.Players.LocalPlayer
  327.  Character = Player.Character
  328.  Character.Humanoid.Name = "noneofurbusiness"
  329.  hum = Character.noneofurbusiness
  330.  LeftArm = Character["Left Arm"]
  331.  LeftLeg = Character["Left Leg"]
  332.  RightArm = Character["Right Arm"]
  333.  RightLeg = Character["Right Leg"]
  334.  Root = Character["HumanoidRootPart"]
  335.  Head = Character["Head"]
  336.  Torso = Character["Torso"]
  337.  Neck = Torso["Neck"]
  338.  mouse = Player:GetMouse()
  339. wait(1/60)
  340. Effects = { }
  341. local Player = game:service'Players'.localPlayer
  342. local chara = Player.Character
  343. local Humanoid = chara:FindFirstChildOfClass("Humanoid")
  344. local Mouse = Player:GetMouse()
  345. local LeftArm = chara["Left Arm"]
  346. local RightArm = chara["Right Arm"]
  347. local LeftLeg = chara["Left Leg"]
  348. local RightLeg = chara["Right Leg"]
  349. local Head = chara.Head
  350. local Torso = chara.Torso
  351. local Camera = workspace.CurrentCamera
  352. local RootPart = chara.HumanoidRootPart
  353. local RootJoint = RootPart.RootJoint
  354. local attack = false
  355. local Anim = 'Idle'
  356. local attacktype = 1
  357. local delays = false
  358. local play = true
  359. local targetted = nil
  360. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  361. local velocity = RootPart.Velocity.y
  362. local sine = 0
  363. local change = 1
  364. local doe = 0
  365. local Create = LoadLibrary("RbxUtility").Create
  366. local debby = game:GetService("Debris")
  367. Humanoid.WalkSpeed = 16
  368.  
  369. Humanoid.Animator.Parent = nil
  370. chara.Animate.Parent = nil
  371.  
  372. local newMotor = function(part0, part1, c0, c1)
  373. local w = Create('Motor'){
  374. Parent = part0,
  375. Part0 = part0,
  376. Part1 = part1,
  377. C0 = c0,
  378. C1 = c1,
  379. }
  380. return w
  381. end
  382.  
  383. function clerp(a, b, t)
  384. return a:lerp(b, t)
  385. end
  386.  
  387. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  388. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  389.  
  390. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  391. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  392. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  393. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  394. RootJoint.C1 = CFrame.new(0, 0, 0)
  395. RootJoint.C0 = CFrame.new(0, 0, 0)
  396. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  397. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  398.  
  399. local rarmc1 = RW.C1
  400. local larmc1 = LW.C1
  401. local rlegc1 = RH.C1
  402. local llegc1 = LH.C1
  403.  
  404. local resetc1 = false
  405.  
  406. function PlayAnimationFromTable(table, speed, bool)
  407. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  408. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  409. RW.C0 = clerp(RW.C0, table[3], speed)
  410. LW.C0 = clerp(LW.C0, table[4], speed)
  411. RH.C0 = clerp(RH.C0, table[5], speed)
  412. LH.C0 = clerp(LH.C0, table[6], speed)
  413. if bool == true then
  414. if resetc1 == false then
  415. resetc1 = true
  416. RootJoint.C1 = RootJoint.C1
  417. Torso.Neck.C1 = Torso.Neck.C1
  418. RW.C1 = rarmc1
  419. LW.C1 = larmc1
  420. RH.C1 = rlegc1
  421. LH.C1 = llegc1
  422. end
  423. end
  424. end
  425.  
  426. ArtificialHB = Instance.new("BindableEvent", script)
  427. ArtificialHB.Name = "Heartbeat"
  428. script:WaitForChild("Heartbeat")
  429. frame = 0.03333333333333
  430. tf = 0
  431. allowframeloss = false
  432. tossremainder = false
  433. lastframe = tick()
  434. script.Heartbeat:Fire()
  435. game:GetService("RunService").Heartbeat:connect(function(s, p)
  436. tf = tf + s
  437. if tf >= frame then
  438. if allowframeloss then
  439. script.Heartbeat:Fire()
  440. lastframe = tick()
  441. else
  442. for i = 1, math.floor(tf / frame) do
  443. script.Heartbeat:Fire()
  444. end
  445. lastframe = tick()
  446. end
  447. if tossremainder then
  448. tf = 0
  449. else
  450. tf = tf - frame * math.floor(tf / frame)
  451. end
  452. end
  453. end)
  454. function swait(num)
  455. if num == 0 or num == nil then
  456. ArtificialHB.Event:wait()
  457. else
  458. for i = 0, num do
  459. ArtificialHB.Event:wait()
  460. end
  461. end
  462. end
  463.  
  464. function RemoveOutlines(part)
  465. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  466. end
  467.  
  468. function so(id,par,pit,vol)
  469. local sou = Instance.new("Sound", par or workspace)
  470. if par == chara then
  471. sou.Parent = chara.Torso
  472. end
  473. sou.Volume = vol
  474. sou.Pitch = pit or 1
  475. sou.SoundId = "rbxassetid://" .. id
  476. sou.PlayOnRemove = true
  477. sou:Destroy()
  478. end
  479.  
  480. --This is just for builds--
  481. player = game:GetService("Players").LocalPlayer
  482. character = game.Players.LocalPlayer.Character
  483. item = character["R-Seven Pink Rifle"].Handle -- change to your hat name
  484. item:BreakJoints()
  485.  
  486.  
  487. alignOr = Instance.new("AlignOrientation",character["Head"])
  488. alignPosition = Instance.new("AlignPosition",character["Head"])
  489. a0 = Instance.new("Attachment",item)
  490. a1 = Instance.new("Attachment",character["Right Arm"]) -- change to where you want your hat
  491. alignPosition.Attachment0 = a0
  492. alignPosition.Attachment1 = a1
  493. alignPosition.Responsiveness = 200
  494. alignPosition.RigidityEnabled = true
  495. alignOr.Attachment0 = a0
  496. alignOr.Attachment1 = a1
  497. alignOr.Responsiveness = 200
  498. alignOr.RigidityEnabled = true
  499.  
  500. a0.Position = Vector3.new(-1.6,-1.5,0.2) -- change this
  501. a0.Orientation = Vector3.new(45, 90,-180) -- and this
  502. New = function(Object, Parent, Name, Data)
  503. local Object = Instance.new(Object)
  504. for Index, Value in pairs(Data or {}) do
  505. Object[Index] = Value
  506. end
  507. Object.Parent = Parent
  508. Object.Name = Name
  509. return Object
  510. end
  511. LuvGun = New("Model",chara,"LuvGun",{})
  512. Handle = New("Part",LuvGun,"Handaru",{BrickColor = BrickColor.new("Carnation pink"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0, 0, 0),CFrame = CFrame.new(-55.7999725, 3.16094255, -23.6752853, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0.596078, 0.862745),})
  513. HWeld = New("ManualWeld",Handle,"HWeld",{Part0 = Handle,Part1 = RightArm,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),C1 = CFrame.new(-0.164215088, -1.07379532, 0.339058399, -1, 0, 0, 0, 0, -1, -0, -1, -0),})
  514. ShotPt = New("Part",LuvGun,"ShotPt",{Transparency = 1,Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.0999983624, 0.100000001, 0.100000001),CFrame = CFrame.new(-55.7999687, 3.84997725, -19.3500118, 0, 0, 1, 0, 1.00000012, 0, -1.00000012, 0, 0),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  515. Weld = New("ManualWeld",ShotPt,"Weld",{Part0 = ShotPt,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(3.81469727e-06, 1.42964172, 4.13991356, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),})
  516. ---------------------------
  517.  
  518. function rayCast(Position, Direction, Range, Ignore)
  519. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  520. end
  521.  
  522. function FindNearestTorso(Position, Distance, SinglePlayer)
  523. if SinglePlayer then
  524. return (SinglePlayer.Head.CFrame.p - Position).magnitude < Distance xss=removed xss=removed xss=removed xss=removed xss=removed Name = "Effects" xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed i=0,1,factor xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed m.MeshType = "Sphere" xss=removed i=0,1,factor xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed i=0,1,factor xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed m.MeshId = "rbxassetid://20329976" xss=removed i=0,1,factor xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed m.MeshId = "rbxassetid://3270017" xss=removed i=0,1,factor xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed i=0,1,factor xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed m.MeshType = "Sphere" xss=removed i=0,1,factor xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed debounce.Name = "TURAPPU" xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed b.Material = "Neon" xss=removed xss=removed xss=removed xss=removed bm.MeshType = "Sphere" xss=removed i=0,1,.05 xss=removed xss=removed i=0,1,.05 xss=removed xss=removed xss=removed xss=removed bcols.Name = "NeoCols" xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed MeshId = "rbxassetid://506240548" xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed MeshId = "rbxassetid://398987591" xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed MeshId = "rbxassetid://164382853" xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed MeshId = "rbxassetid://561963999" xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed MeshId = "rbxassetid://487000462" xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed MeshId = "rbxassetid://437152207" xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed MeshId = "rbxassetid://10871984" TextureId = "rbxassetid://10871968" xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed MeshId = "rbxassetid://1072759" TextureId = "rbxassetid://1072760" xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed MeshId = "rbxassetid://1374148" TextureId = "rbxassetid://413143035" xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed MeshId = "rbxassetid://361948302" TextureId = "rbxassetid://361948503" xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed MeshId = "rbxassetid://1095510" TextureId = "rbxassetid://1095511" xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed pn.PantsTemplate = "rbxassetid://56903591" xss=removed sh.ShirtTemplate = "rbxassetid://242933637" pn.PantsTemplate = "rbxassetid://745334066" xss=removed sh.ShirtTemplate = "rbxassetid://1238151974" pn.PantsTemplate = "rbxassetid://1340645290" xss=removed sh.ShirtTemplate = "rbxassetid://583471131" pn.PantsTemplate = "rbxassetid://460147365" xss=removed pn.PantsTemplate = "rbxassetid://45541243" xss=removed pn.PantsTemplate = "rbxassetid://41162775" Texture = "rbxassetid://985062039" xss=removed xss=removed xss=removed xss=removed naeeym2.Name = "TalkingBillBoard" xss=removed xss=removed xss=removed tecks2.Text = "Trapped! In another sense.." tecks2.Font = "Cartoon" xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed>= mag and c ~= chara then
  525. Dmg(c)
  526. end
  527. end
  528. end
  529. end
  530. end
  531.  
  532. local mus = Instance.new("Sound",Head)
  533. mus.Name = "mus"
  534. mus.SoundId = "rbxassetid://1131624146"
  535. mus.Looped = true
  536. mus.Volume = 1
  537. mus:Play()
  538.  
  539. zhold = false
  540. function shoot()
  541. attack = true
  542. for i=0,1,.3 do
  543. swait()
  544. PlayAnimationFromTable({  
  545. CFrame.new(0, 0, 0, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698),
  546. CFrame.new(0.0823832005, 1.55974865, -0.0981806219, 0.604022264, 0.219845936, 0.766044974, -0.342019916, 0.939692736, 0, -0.719846904, -0.262002617, 0.64278698),
  547. CFrame.new(1.02804303, 0.5, -0.52656126, 0.64278698, 0.766044974, 0, 0, 0, -1, -0.766044974, 0.64278698, 0),
  548. CFrame.new(-1.28728318, 0.203263342, -0.756378591, 0.875030518, -0.0895627737, 0.475710154, 0.480547935, 0.0424276218, -0.875941575, 0.0582684875, 0.995077074, 0.0801646709),
  549. CFrame.new(0.499997735, -1.99999893, -1.11758709e-06, 0.866025209, 0, -0.500000298, 0, 1, 0, 0.500000298, 0, 0.866025209),
  550. CFrame.new(-0.500001431, -1.99999893, -9.983778e-07, 0.766043782, 0, 0.64278847, 0, 1, 0, -0.64278847, 0, 0.766043782),
  551. }, .4, false)
  552. end
  553. Humanoid.WalkSpeed = 2
  554. local ref = Instance.new("Part",chara)
  555. ref.Size = Vector3.new(0,0,0)
  556. ref.Anchored = true
  557. ref.CanCollide = false
  558. ref.Transparency = 1
  559. repeat
  560. so(1145251796,ShotPt,math.random(95,105)/100,3)
  561. ref.CFrame = Mouse.Hit
  562. MagnitudeDmg(ref,2)
  563. Effects.Block(ShotPt.CFrame,Vector3.new(1,1,1),Vector3.new(),Vector3.new(.2,.2,.2),"Neon","Pink",true,false,.1)
  564. Effects.Block(CFrame.new((ShotPt.Position + Mouse.Hit.p)/2,Mouse.Hit.p),Vector3.new(1,1,(ShotPt.Position - Mouse.Hit.p).magnitude),Vector3.new(.2,.2,1),Vector3.new(.1,.1,0),"Neon","Pink",false,false,.1)
  565. Effects.Block(Mouse.Hit,Vector3.new(1,1,1),Vector3.new(),Vector3.new(.2,.2,.2),"Neon","Pink",true,false,.1)
  566. for i=0,1,.5 do
  567. swait()
  568. PlayAnimationFromTable({  
  569. CFrame.new(2.25380063e-06, 0, 0.100001052, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698),
  570. CFrame.new(0.0823859125, 1.55974913, -0.0981838703, 0.604022264, 0.219845936, 0.766044974, -0.342019916, 0.939692736, 0, -0.719846904, -0.262002617, 0.64278698),
  571. CFrame.new(1.25785875, 0.5, -0.333723217, 0.64278698, 0.766044974, 0, 0, 0, -1, -0.766044974, 0.64278698, 0),
  572. CFrame.new(-1.05747044, 0.203263938, -0.563540041, 0.875030518, -0.0895627737, 0.475710154, 0.480547935, 0.0424276218, -0.875941575, 0.0582684875, 0.995077074, 0.0801646709),
  573. CFrame.new(0.423390329, -1.99999893, -0.0642812699, 0.866025209, 0, -0.500000298, 0, 1, 0, 0.500000298, 0, 0.866025209),
  574. CFrame.new(-0.57660532, -1.99999893, -0.0642794371, 0.766043782, 0, 0.64278847, 0, 1, 0, -0.64278847, 0, 0.766043782),
  575. }, .4, false)
  576. end
  577. for i=0,1,.5 do
  578. swait()
  579. PlayAnimationFromTable({  
  580. CFrame.new(0, 0, 0, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698),
  581. CFrame.new(0.0823832005, 1.55974865, -0.0981806219, 0.604022264, 0.219845936, 0.766044974, -0.342019916, 0.939692736, 0, -0.719846904, -0.262002617, 0.64278698),
  582. CFrame.new(1.02804303, 0.5, -0.52656126, 0.64278698, 0.766044974, 0, 0, 0, -1, -0.766044974, 0.64278698, 0),
  583. CFrame.new(-1.28728318, 0.203263342, -0.756378591, 0.875030518, -0.0895627737, 0.475710154, 0.480547935, 0.0424276218, -0.875941575, 0.0582684875, 0.995077074, 0.0801646709),
  584. CFrame.new(0.499997735, -1.99999893, -1.11758709e-06, 0.866025209, 0, -0.500000298, 0, 1, 0, 0.500000298, 0, 0.866025209),
  585. CFrame.new(-0.500001431, -1.99999893, -9.983778e-07, 0.766043782, 0, 0.64278847, 0, 1, 0, -0.64278847, 0, 0.766043782),
  586. }, .4, false)
  587. end
  588. until zhold == false
  589. ref:Destroy()
  590. Humanoid.WalkSpeed = 16
  591. attack = false
  592. end
  593.  
  594. function doge()
  595. attack = true
  596. Humanoid.WalkSpeed = 0
  597. so(536642316,Torso,1,1)
  598. local bodyvel = Instance.new("BodyVelocity",RootPart)
  599. local pep = 10000000
  600. bodyvel.P = pep
  601. bodyvel.MaxForce = Vector3.new(pep,pep,pep)
  602. bodyvel.Velocity = RootPart.CFrame.lookVector*50
  603. for i=0,1,.2 do
  604. swait()
  605. PlayAnimationFromTable({  
  606. CFrame.new(0, -0.413182259, -0.492409885, 1, 0, 0, 0, 0.173647001, 0.984807968, 0, -0.984807968, 0.173647001),
  607. CFrame.new(0, 1.39017391, 0.409808099, 1, 0, 0, 0, 0.499998748, -0.866026163, 0, 0.866026163, 0.499998748),
  608. CFrame.new(0.858022809, 0.339910388, -0.78796947, 0.296197057, 0.813798428, 0.499999553, 0.171009049, 0.469846249, -0.866025627, -0.939693213, 0.342018723, 1.7801861e-07),
  609. CFrame.new(-1.12680423, -0.351213962, -0.287614167, 0.0669000372, 0.109107949, 0.991776109, 0.843825459, 0.52423954, -0.114593051, -0.532431304, 0.844552159, -0.05699642),
  610. CFrame.new(0.5, -2, -2.86102295e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  611. CFrame.new(-0.5, -2, -2.86102295e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  612. }, .4, false)
  613. bodyvel.Velocity = RootPart.CFrame.lookVector*50
  614. end
  615. for i=0,1,.2 do
  616. swait()
  617. PlayAnimationFromTable({  
  618. CFrame.new(0, -1.30470812, -0.622091293, 1, 0, 0, 0, -0.866025984, 0.499998987, 0, -0.499998987, -0.866025984),
  619. CFrame.new(0, 1.47984993, -0.230206192, 1, 0, 0, 0, 0.939693034, 0.34201926, 0, -0.34201926, 0.939693034),
  620. CFrame.new(0.858022809, 0.339910388, -0.78796947, 0.296197057, 0.813798428, 0.499999553, 0.171009049, 0.469846249, -0.866025627, -0.939693213, 0.342018723, 1.7801861e-07),
  621. CFrame.new(-1.12680423, -0.351213962, -0.287614167, 0.0669000372, 0.109107949, 0.991776109, 0.843825459, 0.52423954, -0.114593051, -0.532431304, 0.844552159, -0.05699642),
  622. CFrame.new(0.5, -1.19999313, -0.600002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  623. CFrame.new(-0.5, -1.19999313, -0.600002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  624. }, .4, false)
  625. bodyvel.Velocity = RootPart.CFrame.lookVector*50
  626. end
  627. for i=0,1,.2 do
  628. swait()
  629. PlayAnimationFromTable({  
  630. CFrame.new(0, -2.22375727, 0.305265486, 1, 0, 0, 0, 0.500000238, -0.866025388, 0, 0.866025388, 0.500000238),
  631. CFrame.new(0, 1.35128808, -0.383415997, 1, 0, 0, 0, 0.766043901, 0.642788529, 0, -0.64278847, 0.766043901),
  632. CFrame.new(0.858022809, 0.339910388, -0.78796947, 0.296197057, 0.813798428, 0.499999553, 0.171009049, 0.469846249, -0.866025627, -0.939693213, 0.342018723, 1.7801861e-07),
  633. CFrame.new(-1.12680423, -0.351213962, -0.287614167, 0.0669000372, 0.109107949, 0.991776109, 0.843825459, 0.52423954, -0.114593051, -0.532431304, 0.844552159, -0.05699642),
  634. CFrame.new(0.5, -1.19999337, -0.599998593, 1, 0, 0, 0, 1.00000024, 0, 0, 0, 1.00000024),
  635. CFrame.new(-0.500003815, -1.35979521, -0.923200667, 1, 0, 0, 0, 0.866025388, -0.500000238, 0, 0.500000238, 0.866025388),
  636. }, .4, false)
  637. bodyvel.Velocity = RootPart.CFrame.lookVector*50
  638. end
  639. bodyvel:Destroy()
  640. Humanoid.WalkSpeed = 16
  641. attack = false
  642. end
  643.  
  644. function bdoge()
  645. attack = true
  646. Humanoid.WalkSpeed = 0
  647. so(536642316,Torso,1,1)
  648. local bodyvel = Instance.new("BodyVelocity",RootPart)
  649. local pep = 10000000
  650. bodyvel.P = pep
  651. bodyvel.MaxForce = Vector3.new(pep,pep,pep)
  652. bodyvel.Velocity = RootPart.CFrame.lookVector*-50
  653. for i=0,1,.2 do
  654. swait()
  655. PlayAnimationFromTable({  
  656. CFrame.new(0, -2.22375727, 0.305265486, 1, 0, 0, 0, 0.500000238, -0.866025388, 0, 0.866025388, 0.500000238),
  657. CFrame.new(0, 1.35128808, -0.383415997, 1, 0, 0, 0, 0.766043901, 0.642788529, 0, -0.64278847, 0.766043901),
  658. CFrame.new(0.858022809, 0.339910388, -0.78796947, 0.296197057, 0.813798428, 0.499999553, 0.171009049, 0.469846249, -0.866025627, -0.939693213, 0.342018723, 1.7801861e-07),
  659. CFrame.new(-1.12680423, -0.351213962, -0.287614167, 0.0669000372, 0.109107949, 0.991776109, 0.843825459, 0.52423954, -0.114593051, -0.532431304, 0.844552159, -0.05699642),
  660. CFrame.new(0.5, -1.19999337, -0.599998593, 1, 0, 0, 0, 1.00000024, 0, 0, 0, 1.00000024),
  661. CFrame.new(-0.500003815, -1.35979521, -0.923200667, 1, 0, 0, 0, 0.866025388, -0.500000238, 0, 0.500000238, 0.866025388),
  662. }, .4, false)
  663. bodyvel.Velocity = RootPart.CFrame.lookVector*-50
  664. end
  665. for i=0,1,.2 do
  666. swait()
  667. PlayAnimationFromTable({  
  668. CFrame.new(0, -1.30470812, -0.622091293, 1, 0, 0, 0, -0.866025984, 0.499998987, 0, -0.499998987, -0.866025984),
  669. CFrame.new(0, 1.47984993, -0.230206192, 1, 0, 0, 0, 0.939693034, 0.34201926, 0, -0.34201926, 0.939693034),
  670. CFrame.new(0.858022809, 0.339910388, -0.78796947, 0.296197057, 0.813798428, 0.499999553, 0.171009049, 0.469846249, -0.866025627, -0.939693213, 0.342018723, 1.7801861e-07),
  671. CFrame.new(-1.12680423, -0.351213962, -0.287614167, 0.0669000372, 0.109107949, 0.991776109, 0.843825459, 0.52423954, -0.114593051, -0.532431304, 0.844552159, -0.05699642),
  672. CFrame.new(0.5, -1.19999313, -0.600002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  673. CFrame.new(-0.5, -1.19999313, -0.600002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  674. }, .4, false)
  675. bodyvel.Velocity = RootPart.CFrame.lookVector*-50
  676. end
  677. bodyvel:Destroy()
  678. Humanoid.WalkSpeed = 16
  679. attack = false
  680. end
  681.  
  682. function adoge()
  683. attack = true
  684. Humanoid.WalkSpeed = 0
  685. so(536642316,Torso,1,1)
  686. Effects.Wave(RootPart.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(),Vector3.new(1,.1,1),"White",math.random(-10,10),false,.1)
  687. BodyVel(RootPart,RootPart.CFrame.lookVector*50)
  688. for i=0,1,.1 do
  689. swait()
  690. PlayAnimationFromTable({  
  691. CFrame.new(0, -0.095761165, -0.251516223, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  692. CFrame.new(0, 1.43075883, 0.149916381, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
  693. CFrame.new(0.858022809, 0.339910388, -0.78796947, 0.296197057, 0.813798428, 0.499999553, 0.171009049, 0.469846249, -0.866025627, -0.939693213, 0.342018723, 1.7801861e-07),
  694. CFrame.new(-1.12680423, -0.351213962, -0.287614167, 0.0669000372, 0.109107949, 0.991776109, 0.843825459, 0.52423954, -0.114593051, -0.532431304, 0.844552159, -0.05699642),
  695. CFrame.new(0.5, -1.96527231, 0.196966231, 1, 0, 0, 0, 0.984807789, 0.173648685, 0, -0.173648715, 0.984807789),
  696. CFrame.new(-0.5, -1.43618584, -0.205210268, 1, 0, 0, 0, 0.939692438, 0.342020929, 0, -0.342020959, 0.939692438),
  697. }, .4, false)
  698. end
  699. Humanoid.WalkSpeed = 16
  700. attack = false
  701. end
  702.  
  703. function badoge()
  704. attack = true
  705. Humanoid.WalkSpeed = 0
  706. so(536642316,Torso,1,1)
  707. Effects.Wave(RootPart.CFrame*CFrame.Angles(math.rad(-90),0,0),Vector3.new(),Vector3.new(1,.1,1),"White",math.random(-10,10),false,.1)
  708. BodyVel(RootPart,RootPart.CFrame.lookVector*-50)
  709. for i=0,1,.1 do
  710. swait()
  711. PlayAnimationFromTable({  
  712. CFrame.new(0, -0.210508779, 0.312937856, 1, 0, 0, 0, 0.866025388, -0.500000238, 0, 0.500000238, 0.866025388),
  713. CFrame.new(0, 1.4075644, -0.288293391, 1, 0, 0, 0, 0.866025388, 0.500000238, 0, -0.500000238, 0.866025388),
  714. CFrame.new(0.858022809, 0.339910388, -0.78796947, 0.296197057, 0.813798428, 0.499999553, 0.171009049, 0.469846249, -0.866025627, -0.939693213, 0.342018723, 1.7801861e-07),
  715. CFrame.new(-1.12680423, -0.351213962, -0.287614167, 0.0669000372, 0.109107949, 0.991776109, 0.843825459, 0.52423954, -0.114593051, -0.532431304, 0.844552159, -0.05699642),
  716. CFrame.new(0.5, -1.9652698, 0.196958005, 1, 0, 0, 0, 0.984807789, 0.173648715, 0, -0.173648685, 0.984807789),
  717. CFrame.new(-0.5, -1.43618536, -0.205215126, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676),
  718. }, .4, false)
  719. end
  720. Humanoid.WalkSpeed = 16
  721. attack = false
  722. end
  723.  
  724. Mouse.Button1Down:connect(function()
  725. if attack == false then
  726. zhold = true
  727. shoot()
  728. end
  729. end)
  730.  
  731. Mouse.Button1Up:connect(function()
  732. zhold = false
  733. end)
  734.  
  735. local sprintt = 0
  736. Mouse.KeyDown:connect(function(k)
  737. k = k:lower()
  738. if k=='m' then
  739. if mus.IsPlaying == true then
  740. mus:Stop()
  741. elseif mus.IsPaused == true then
  742. mus:Play()
  743. end
  744. end
  745. if attack == false then
  746. if k == 'q' then
  747. if Anim == "Fall" or Anim == "Jump" then
  748. badoge()
  749. else
  750. bdoge()
  751. end
  752. elseif k == 'e' then
  753. if Anim == "Fall" or Anim == "Jump" then
  754. adoge()
  755. else
  756. doge()
  757. end
  758. end
  759. end
  760. end)
  761.  
  762. Mouse.KeyUp:connect(function(k)
  763. k = k:lower()
  764. if k == 'z' then
  765. zhold = false
  766. end
  767. end)
  768.  
  769. coroutine.wrap(function()
  770. while 1 do
  771. swait()
  772. if doe <= 360 then
  773. doe = doe + 2
  774. else
  775. doe = 0
  776. end
  777. end
  778. end)()
  779. while true do
  780. swait()
  781. while true do
  782. swait()
  783. if Head:FindFirstChild("mus")==nil then
  784. mus = Instance.new("Sound",Head)
  785. mus.Name = "mus"
  786. mus.SoundId = "rbxassetid://1131624146"
  787. mus.Looped = true
  788. mus.Volume = 1
  789. mus:Play()
  790. end
  791. if sprintt >= 1 then
  792. sprintt = sprintt - 1
  793. end
  794. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  795. velocity = RootPart.Velocity.y
  796. sine = sine + change
  797. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, chara)
  798. if RootPart.Velocity.y > 1 and hit == nil then
  799. Anim = "Jump"
  800. if attack == false then
  801. PlayAnimationFromTable({
  802. CFrame.new(0, 0.0382082276, -0.0403150208, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
  803. CFrame.new(0, 1.46579528, 0.0939689279, 1, 0, 0, 0, 0.939692855, -0.342019796, 0, 0.342019796, 0.939692855),
  804. CFrame.new(1.20945489, -0.213504896, 3.55388607e-07, 0.939692736, 0.342019916, 1.53461215e-07, -0.342019945, 0.939692736, 1.93715096e-07, -8.56816769e-08, -2.23517418e-07, 1.00000012),
  805. CFrame.new(-1.20945573, -0.213503733, 5.0439985e-07, 0.939692736, -0.342019916, -1.53461215e-07, 0.342019945, 0.939692736, 1.93715096e-07, 8.56816769e-08, -2.23517418e-07, 1.00000012),
  806. CFrame.new(0.5, -1.99739456, -0.0180913229, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
  807. CFrame.new(-0.5, -1.30000103, -0.39999947, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676),
  808. }, .3, false)
  809. end
  810. elseif RootPart.Velocity.y < -1 and hit == nil then
  811. Anim = "Fall"
  812. if attack == false then
  813. PlayAnimationFromTable({
  814. CFrame.new(0, -0.0646628663, 0.0399149321, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849),
  815. CFrame.new(0, 1.4913609, -0.128171027, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855),
  816. CFrame.new(1.55285025, 0.466259956, -9.26282269e-08, 0.766043842, -0.642788351, -6.46188241e-08, 0.642788291, 0.766043961, -7.4505806e-08, 1.04308128e-07, 1.49011612e-08, 1.00000012),
  817. CFrame.new(-1.5605253, 0.475036323, -2.10609159e-07, 0.766043842, 0.642788351, 6.46188241e-08, -0.642788291, 0.766043961, -7.4505806e-08, -1.04308128e-07, 1.49011612e-08, 1.00000012),
  818. CFrame.new(0.500000954, -1.9973948, -0.0180922765, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
  819. CFrame.new(-0.499999046, -1.30000043, -0.400000483, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855),
  820. }, .3, false)
  821. end
  822. elseif Torsovelocity < 1 xss=removed Anim = "Idle" xss=removed xss=removed> 2 and hit ~= nil then
  823. Anim = "Walk"
  824. if attack == false then
  825. Humanoid.WalkSpeed = 16
  826. PlayAnimationFromTable({
  827. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0- .08 * math.cos((sine) / 2.5), 0) * CFrame.Angles(0, 0, 0),
  828. CFrame.new(0, 1.48263013, -0.0984808952, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
  829. CFrame.new(0.858022809, 0.339910388, -0.78796947, 0.296197057, 0.813798428, 0.499999553, 0.171009049, 0.469846249, -0.866025627, -0.939693213, 0.342018723, 1.7801861e-07),
  830. CFrame.new(-1.12680423, -0.351213962, -0.287614167, 0.0669000372, 0.109107949, 0.991776109, 0.843825459, 0.52423954, -0.114593051, -0.532431304, 0.844552159, -0.05699642),
  831. CFrame.new(0.540300786, -1.99793816, -9.82598067e-07, 0.998698533, -0.0510031395, 6.36324955e-07, 0.0510031395, 0.998698533, -1.00461093e-05, -8.35937328e-08, 1.08393433e-05, 1.00000024) * CFrame.new(0, 0, 0+ .5 * math.cos((sine) / 5)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 5)), 0, 0),
  832. CFrame.new(-0.539563596, -1.99794078, 1.12228372e-06, 0.998635888, 0.0523072146, -1.77852357e-07, -0.0523072146, 0.998635888, -1.00715051e-05, -3.89727461e-07, 1.08406466e-05, 1.00000024) * CFrame.new(0, 0, 0- .5 * math.cos((sine) / 5)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 5)), 0, 0),
  833. }, .3, false)
  834. end
  835. end
  836. end
  837. end



  • Recent Roblox Scripts