Advertisement
Plug_RBLX

Untitled

Dec 22nd, 2017
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.45 KB | None | 0 0
  1. -- Legend returns (by Rufus14)
  2. --[[
  3. humanoid
  4. 0, 0, 0, 1, -5.06648125e-24, -1.11152395e-24, 2.77880987e-24, 0.642797172, -0.766045094, 5.16341648e-24, 0.766045094, 0.642797172
  5. lleg
  6. -0.5, -1.4785645, -0.389766693, 1, -1.70504416e-24, -2.11241725e-24, 2.71418638e-24, 0.64278841, 0.766043782, 5.16987883e-26, -0.766043782, 0.64278841
  7. rarm
  8. 1.5, 0.579171181, 0.217315674, 1, 2.52274562e-24, -1.15312248e-23, 9.34455598e-24, -0.766054094, 0.642776132, -7.21198097e-24, -0.642776132, -0.766054153
  9. --]]
  10. howtobasic = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  11. howtobasic.Volume = 45
  12. howtobasic.SoundId = "rbxassetid://539881843"
  13. P0P = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  14. P0P.Volume = 45
  15. P0P.SoundId = "rbxassetid://513133599"
  16. hit = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  17. hit.Volume = 45
  18. hit.SoundId = "rbxassetid://180163749"
  19. hit1 = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  20. hit1.Volume = 45
  21. hit1.SoundId = "rbxassetid://180163738"
  22. hit2 = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  23. hit2.Volume = 45
  24. hit2.SoundId = "rbxassetid://180163743"
  25. howtobasic1 = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  26. howtobasic1.Volume = 45
  27. howtobasic1.SoundId = "rbxassetid://539882069"
  28. howtobasic2 = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  29. howtobasic2.Volume = 45
  30. howtobasic2.SoundId = "rbxassetid://539881968"
  31. howtobasic3 = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  32. howtobasic3.Volume = 45
  33. howtobasic3.SoundId = "rbxassetid://539882114"
  34. B0b = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  35. B0b.Volume = 4
  36. B0b.SoundId = "rbxassetid://0"
  37. B0b:Play()
  38. B0b.Looped = true
  39. hat = Instance.new("Part", game.Players.LocalPlayer.Character.Head)
  40. w3ld = Instance.new("Weld", hat)
  41. w3ld.Part0 = hat
  42. w3ld.Part1 = game.Players.LocalPlayer.Character.Head
  43. w3ld.C0 = w3ld.C0 * CFrame.new(0,-0.7,0.1)
  44. mesh = Instance.new("SpecialMesh", hat)
  45. mesh.MeshId = "http://www.roblox.com/asset/?id=1073659"
  46. mesh.TextureId = "http://www.roblox.com/asset/?id=29458192"
  47. hammer = Instance.new("Part", game.Players.LocalPlayer.Character["Right Arm"])
  48. w33ld = Instance.new("Weld", hammer)
  49. w33ld.Part0 = hammer
  50. w33ld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  51. w33ld.C0 = w33ld.C0 * CFrame.Angles(0,-3.2,1.7)
  52. w33ld.C0 = w33ld.C0 * CFrame.new(0,1,0.4)
  53. mesh = Instance.new("SpecialMesh", hammer)
  54. hammer.CanCollide = false
  55. mesh.MeshId = "http://www.roblox.com/asset/?id=16198309"
  56. mesh.TextureId = "http://www.roblox.com/asset/?id=16198294"
  57. game.Players.LocalPlayer.Character.Head.face.Texture = "http://www.roblox.com/asset/?id=22644329"
  58. mouse = game.Players.LocalPlayer:GetMouse()
  59. isbuilding = false
  60. canbuild = true
  61. chamgedsize = false
  62. howhigh = 0
  63. function D33d()
  64. workspace.CurrentCamera.CameraType = "Fixed"
  65. end
  66. function lol(key)
  67. key = key:lower()
  68. if key == "q" and canbuild then
  69. canbuild = false
  70. isbuilding = true
  71. local rhandclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
  72. game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Remove()
  73. local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  74. rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  75. rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  76. rhandweld.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  77. rhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  78. local howtomath = math.random(1,4)
  79. if howtomath == 1 then
  80. howtobasic:Play()
  81. end
  82. if howtomath == 2 then
  83. howtobasic1:Play()
  84. end
  85. if howtomath == 3 then
  86. howtobasic2:Play()
  87. end
  88. if howtomath == 4 then
  89. howtobasic3:Play()
  90. end
  91. for i = 0,1 , 0.03 do
  92. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.695707798, -0.00978279114, 0, 0, 0.99999994, 0.173649848, -0.984807432, 0, 0.984807491, 0.173649803, 0),i)
  93. game:GetService("RunService").RenderStepped:wait()
  94. end
  95. wait(2)
  96. local gui = Instance.new("ScreenGui", game.Players.LocalPlayer.PlayerGui)
  97. local text = Instance.new("TextButton", game.Players.LocalPlayer.PlayerGui.ScreenGui)
  98. text.Text = "Stop building."
  99. text.Size = UDim2.new(0,200, 0,80)
  100. text.Position = UDim2.new(0,0, 0,300)
  101. buildpart = Instance.new("Part", game.Players.LocalPlayer.Character)
  102. buildpart.Size = Vector3.new(8, 9, 1)
  103. buildpart.Transparency = 0.5
  104. workspace.CurrentCamera.CFrame = buildpart.CFrame * CFrame.new(0,17,15)
  105. workspace.CurrentCamera.CFrame = CFrame.new(workspace.CurrentCamera.CFrame.p,buildpart.Position)
  106. buildpart.Anchored = true
  107. buildpart.Material = "Wood"
  108. buildpart.CanCollide = false
  109. buildpart.CFrame = CFrame.new(0,game.Players.LocalPlayer.Character.Torso.Position.y,game.Players.LocalPlayer.Character.Torso.Position.z)
  110. local function clickd()
  111. for i = 0,1 , 0.03 do
  112. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),i)
  113. game:GetService("RunService").RenderStepped:wait()
  114. end
  115. buildpart:destroy()
  116. gui:destroy()
  117. local legcl = game.Players.LocalPlayer.Character.Torso["Left Hip"]:Clone()
  118. game.Players.LocalPlayer.Character.Torso["Left Hip"]:Remove()
  119. local llegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  120. llegweld.Part0 = game.Players.LocalPlayer.Character.Torso
  121. llegweld.Part1 = game.Players.LocalPlayer.Character["Left Leg"]
  122. local humancl = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
  123. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Remove()
  124. local humanoidrootpart = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  125. humanoidrootpart.Part0 = game.Players.LocalPlayer.Character.HumanoidRootPart
  126. humanoidrootpart.Part1 = game.Players.LocalPlayer.Character.Torso
  127. for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  128. if v.Name == "BuildPart" then
  129. game.Players.LocalPlayer.Character.Torso.CFrame = CFrame.new(game.Players.LocalPlayer.Character.Torso.Position, v.Position)
  130. for i = 0,1 , 0.20 do
  131. llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -2.02222395, 0.866573334, 1, -3.23187202e-24, -4.37437532e-24, 5.42837277e-24, 0.64278841, 0.766043782, 3.36042124e-25, -0.766043782, 0.64278841),i)
  132. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 1, -5.06648125e-24, -1.11152395e-24, 2.77880987e-24, 0.642797172, -0.766045094, 5.16341648e-24, 0.766045094, 0.642797172),i)
  133. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 1.22838736, 0.709220886, 0, -0, 0.99999994, -0.500008941, -0.866028607, 0, 0.866028547, -0.500008881, 0),i)
  134. game:GetService("RunService").RenderStepped:wait()
  135. end
  136. for i = 0,1 , 0.20 do
  137. llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.97738993, -0.968647003, 1, -6.97865642e-24, 4.43612617e-24, 7.88406521e-24, 0.642788351, -0.766043901, 2.49446653e-24, 0.766043901, 0.642788351),i)
  138. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 1, -2.83247746e-24, 1.83357011e-25, 1.68021062e-24, 0.64278388, 0.766047597, -2.28767138e-24, -0.766047597, 0.64278388),i)
  139. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.320641994, 0.183269501, 0, 0, 0.99999994, 0.866036415, 0.49999541, 0, -0.499995381, 0.866036355, 0),i)
  140. game:GetService("RunService").RenderStepped:wait()
  141. end
  142. local hitmath = math.random(1,3)
  143. if hitmath == 1 then
  144. hit.PlaybackSpeed = math.random(0.8,1.4)
  145. hit:Play()
  146. end
  147. if hitmath == 2 then
  148. hit1.PlaybackSpeed = math.random(0.8,1.4)
  149. hit1:Play()
  150. end
  151. if hitmath == 3 then
  152. hit2.PlaybackSpeed = math.random(0.8,1.4)
  153. hit2:Play()
  154. end
  155. local realbuildpart = v:Clone()
  156. v:Remove()
  157. realbuildpart.Parent = game.Players.LocalPlayer.Character
  158. realbuildpart.CanCollide = true
  159. realbuildpart.Transparency = 0
  160. realbuildpart.Name = "otherpart"
  161. end
  162. end
  163. for i = 0,1 , 0.25 do
  164. llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0),i)
  165. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 1, -2.83247746e-24, 1.83357011e-25, 1.68021062e-24, 0.64278388, 0.766047597, -2.28767138e-24, -0.766047597, 0.64278388),i)
  166. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),i)
  167. game:GetService("RunService").RenderStepped:wait()
  168. end
  169. humanoidrootpart:destroy()
  170. humancl.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  171. llegweld:destroy()
  172. legcl.Parent = game.Players.LocalPlayer.Character.Torso
  173. rhandweld:destroy()
  174. rhandclone.Parent = game.Players.LocalPlayer.Character.Torso
  175. canbuild = true
  176. isbuilding = false
  177. end
  178. text.MouseButton1Click:connect(clickd)
  179. for i = 0,1 , 0.03 do
  180. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.29155302, 0.0614833832, 0, 0, 0.999997795, 0.939692914, 0.342019618, 0, -0.342019826, 0.939690769, 0),i)
  181. game:GetService("RunService").RenderStepped:wait()
  182. end
  183. while true do
  184. buildpart.Position = mouse.Hit.p + Vector3.new(0,howhigh,0)
  185. wait()
  186. end
  187. end
  188. end
  189. function interact(key)
  190. key = key:lower()
  191. if key == "r" and isbuilding then
  192. if isbuilding then
  193. buildpart.CFrame = buildpart.CFrame * CFrame.Angles(0,math.pi/2,0)
  194. end
  195. end
  196. if key == "t" and isbuilding then
  197. chamgedsize = not chamgedsize
  198. if chamgedsize then
  199. if isbuilding then
  200. buildpart.Size = Vector3.new(8, 1, 8)
  201. end
  202. else
  203. if isbuilding then
  204. buildpart.Size = Vector3.new(8, 9, 1)
  205. end
  206. end
  207. end
  208. if key == "z" and isbuilding then
  209. howhigh = howhigh + 1
  210. end
  211. if key == "x" and isbuilding then
  212. howhigh = howhigh - 1
  213. end
  214. if key == "c" and isbuilding then
  215. buildpart.BrickColor = BrickColor.new("Burnt Sienna")
  216. end
  217. if key == "v" and isbuilding then
  218. buildpart.BrickColor = BrickColor.new("White")
  219. end
  220. if key == "b" and isbuilding then
  221. buildpart.BrickColor = BrickColor.new("Nougat")
  222. end
  223. end
  224. mouse.KeyDown:connect(interact)
  225. function BUILD()
  226. if isbuilding then
  227. local phisycalbrick = buildpart:Clone()
  228. phisycalbrick.Parent = game.Players.LocalPlayer.Character
  229. phisycalbrick.Name = "BuildPart"
  230. --[[phisycalbrick.Transparency = 0.7
  231. phisycalbrick.Name = "BuildPart"
  232. phisycalbrick.BrickColor = BrickColor.new("Nougat")
  233. phisycalbrick.Matrial = "Wood"--]]
  234. end
  235. end
  236. mouse.Button1Down:connect(BUILD)
  237. mouse.KeyDown:connect(lol)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement