Advertisement
LeviTheOtaku

fencing obby

Oct 27th, 2019
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.61 KB | None | 0 0
  1. local toolamount = 228
  2. local LocalPlayer = game:GetService("Players").LocalPlayer
  3. local runservice = game:GetService("RunService")
  4. local characters = {}
  5. LocalPlayer.Character:FindFirstChild("Humanoid"):UnequipTools()
  6. local currentamount = #LocalPlayer.Backpack:GetChildren()
  7. LocalPlayer.Character.Archivable = true
  8. local tempchar = LocalPlayer.Character:Clone()
  9. tempchar.Parent = workspace
  10. local savepos = LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame
  11. local stepped = runservice.Stepped:Connect(function()
  12. workspace.CurrentCamera.CameraSubject = tempchar:FindFirstChild("Humanoid")
  13. for _, tool in pairs(LocalPlayer.Backpack:GetChildren()) do
  14. if tool:IsA("Tool") then
  15. tool.Parent = LocalPlayer
  16. end
  17. end
  18. LocalPlayer.Character:ClearAllChildren()
  19. local char = Instance.new("Model", workspace)
  20. table.insert(characters, char)
  21. Instance.new("Humanoid", char)
  22. LocalPlayer.Character = char
  23. repeat runservice.Stepped:Wait() until LocalPlayer.Character ~= nil
  24. end)
  25. repeat runservice.Stepped:Wait() until #LocalPlayer:GetChildren() - 4 - currentamount >= toolamount - 1
  26. stepped:Disconnect()
  27. repeat runservice.Stepped:Wait() until LocalPlayer.Character:FindFirstChild("HumanoidRootPart") ~= nil
  28. for _, char in pairs(characters) do
  29. char:Destroy()
  30. end
  31. for _, tool in pairs(LocalPlayer:GetChildren()) do
  32. if tool:IsA("Tool") then
  33. tool.Parent = LocalPlayer.Backpack
  34. end
  35. end
  36. LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame = savepos
  37. tempchar:Destroy()
  38. local amount = 56
  39. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = .5
  40. local LocalPlayer = game:GetService("Players").LocalPlayer
  41. local spray = workspace.Handle
  42. local savecframe = spray.CFrame
  43. LocalPlayer.Character.Humanoid:UnequipTools()
  44. local currentamount = #LocalPlayer.Backpack:GetChildren()
  45. spray.CanCollide = false
  46. spray.Transparency = 1
  47. local anim = Instance.new("Animation")
  48. anim.AnimationId = "rbxassetid://188632011"
  49. local loadanim = LocalPlayer.Character.Humanoid:LoadAnimation(anim)
  50. loadanim.Looped = true
  51. loadanim:Play()
  52. loadanim:AdjustSpeed(4)
  53. for _, tool in pairs(LocalPlayer.Backpack:GetChildren()) do
  54. tool.Parent = LocalPlayer
  55. end
  56. repeat
  57. repeat
  58. spray.CFrame = LocalPlayer.Character.Torso.CFrame
  59. LocalPlayer.Character.Humanoid:MoveTo(game.Players.LocalPlayer.Character.HumanoidRootPart.Position + Vector3.new(0,0,1))
  60. game:GetService("RunService").Stepped:wait()
  61. until LocalPlayer.Character:FindFirstChild("Spray") ~= nil
  62. LocalPlayer.Character:FindFirstChild("Spray").Parent = LocalPlayer
  63. until #LocalPlayer:GetChildren() - 4 - currentamount >= amount
  64. loadanim:Stop()
  65. anim:Destroy()
  66. for _, tool in pairs(LocalPlayer:GetChildren()) do
  67. if tool:IsA("Tool") then
  68. tool.Parent = LocalPlayer.Backpack
  69. end
  70. end
  71. spray.CFrame = savecframe
  72. spray.CanCollide = true
  73. spray.Transparency = 0
  74. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
  75. local LocalPlayer = game:GetService("Players").LocalPlayer
  76. local hathandle = LocalPlayer.Character.Humanoid:GetAccessories()[1].Handle
  77. hathandle.Name = "Right Arm"
  78. LocalPlayer.Character:FindFirstChild("Right Arm"):Destroy()
  79. hathandle.Parent = LocalPlayer.Character
  80. game:GetService("RunService").Stepped:wait()
  81. for i,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  82. if v:IsA("Tool") then
  83. v.Parent = game.Players.LocalPlayer.Character
  84. end
  85. end
  86. game:GetService("RunService").Stepped:wait()
  87. for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  88. if v:IsA("Tool") then
  89. v.Handle.Mesh:Remove()
  90. v.Parent = game.Players.LocalPlayer.Backpack
  91. end
  92. end
  93. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-246.443,3.374,59.87) * CFrame.Angles(math.rad(0), math.pi*-1.5 , 0)
  94. local function Character()
  95. game.Players.LocalPlayer.Backpack:FindFirstChild("Foil").Parent = game.Players.LocalPlayer.Character
  96. end
  97. game:GetService("RunService").Stepped:wait()
  98. ----------Start----------
  99. for v=1,3 do
  100. for i=1,25 do
  101. game.Players.LocalPlayer.Backpack:FindFirstChild("Foil").Grip = CFrame.new(Vector3.new(9+1*i,-4.75,-10+5*v)) * CFrame.Angles(math.rad(90),0,math.pi*-1.5)
  102. Character()
  103. end
  104. end
  105. ----------Stage 1----------
  106. for v=1,5 do
  107. for i=1,2 do
  108. game.Players.LocalPlayer.Backpack:FindFirstChild("Foil").Grip = CFrame.new(Vector3.new((30+7*v+1*i),-4.75,0)) * CFrame.Angles(math.rad(90),0,math.pi*-1.5)
  109. Character()
  110. end
  111. end
  112. for v=1,2 do
  113. for i=1,12 do
  114. game.Players.LocalPlayer.Backpack:FindFirstChild("Foil").Grip = CFrame.new(Vector3.new(70+1*i,-4.75,-7.5+5*v)) * CFrame.Angles(math.rad(90),0,math.pi*-1.5)
  115. Character()
  116. end
  117. end
  118. ----------Stage 2----------
  119. for i=1,10 do
  120. game.Players.LocalPlayer.Backpack:FindFirstChild("Foil").Grip = CFrame.new(Vector3.new((79+7*i),-4.75,0)) * CFrame.Angles(math.rad(90),0,math.pi*-1.5)
  121. Character()
  122. end
  123. for v=1,2 do
  124. for i=1,12 do
  125. game.Players.LocalPlayer.Backpack:FindFirstChild("Foil").Grip = CFrame.new(Vector3.new(139+1*i,-4.75,-7.5+5*v)) * CFrame.Angles(math.rad(90),0,math.pi*-1.5)
  126. Character()
  127. end
  128. end
  129. ----------Stage 3----------
  130. for i=1,10 do
  131. game.Players.LocalPlayer.Backpack:FindFirstChild("Foil").Grip = CFrame.new(Vector3.new((149+7*i),-6.75+2*i,0)) * CFrame.Angles(math.rad(90),0,math.pi*-1.5)
  132. Character()
  133. end
  134. ----------Ending----------
  135. for v=1,3 do
  136. for i=1,25 do
  137. game.Players.LocalPlayer.Backpack:FindFirstChild("Foil").Grip = CFrame.new(Vector3.new(224+1*i,13.25,-10+5*v)) * CFrame.Angles(math.rad(90),0,math.pi*-1.5)
  138. Character()
  139. end
  140. end
  141. ----------Pole----------
  142. local function Character2()
  143. game.Players.LocalPlayer.Backpack:FindFirstChild("Spray").Parent = game.Players.LocalPlayer.Character
  144. end
  145. for i=1,8 do
  146. game.Players.LocalPlayer.Backpack:FindFirstChild("Spray").Grip = CFrame.new(Vector3.new(8,-4.8+1.7*i,10)) * CFrame.Angles(math.rad(90),0,math.pi*-1.5)
  147. Character2()
  148. end
  149. for i=1,40 do
  150. game.Players.LocalPlayer.Backpack:FindFirstChild("Spray").Grip = CFrame.new(Vector3.new(8,8.8,10-0.5*i)) * CFrame.Angles(math.rad(90),0,math.pi*-1.5)
  151. Character2()
  152. end
  153. for i=1,8 do
  154. game.Players.LocalPlayer.Backpack:FindFirstChild("Spray").Grip = CFrame.new(Vector3.new(8,-4.8+1.7*i,-10)) * CFrame.Angles(math.rad(90),0,math.pi*-1.5)
  155. Character2()
  156. end
  157. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
  158. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 0
  159. repeat
  160. h = game.Players.LocalPlayer.Character.Humanoid
  161. tracks = h:GetPlayingAnimationTracks()
  162. for _,x in pairs(tracks)
  163. do x:Stop()
  164. end
  165. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-246.443,3.374,59.87) * CFrame.Angles(math.rad(0), math.pi*-1.5 , 0)
  166. game:GetService("RunService").Stepped:wait()
  167. until game.Players.LocalPlayer.Character.Humanoid.Health == 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement