Advertisement
Aeyao

M UEWIANHOFIHD I ISEAONFYDY N ASYFIUYADSODFUBA E ????e wfa?

Jul 27th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.82 KB | None | 0 0
  1. wait(.5)
  2.  
  3. local blockindex = {['Quartz Pillar'] = {Front = 'http://www.roblox.com/asset/?id=105562583',Back = 'http://www.roblox.com/asset/?id=105562583',Left = 'http://www.roblox.com/asset/?id=105562583',Right = 'http://www.roblox.com/asset/?id=105562583',Top = 'http://www.roblox.com/asset/?id=105562555',Bottom = 'http://www.roblox.com/asset/?id=105562555',Transparency = 0},['Sand'] = {Right = 'http://www.roblox.com/asset/?id=75881753',Top = 'http://www.roblox.com/asset/?id=75881753',Back = 'http://www.roblox.com/asset/?id=75881753',Left = 'http://www.roblox.com/asset/?id=75881753',Left = 'http://www.roblox.com/asset/?id=75881753',Front = 'http://www.roblox.com/asset/?id=75881753',Bottom = 'http://www.roblox.com/asset/?id=75881753',Transparency = 0},['Diamond block'] = {Front = 'http://www.roblox.com/asset/?id=56749955',Top = 'http://www.roblox.com/asset/?id=56749955',Bottom = 'http://www.roblox.com/asset/?id=56749955',Back = 'http://www.roblox.com/asset/?id=56749955',Right = 'http://www.roblox.com/asset/?id=56749955',Left = 'http://www.roblox.com/asset/?id=56749955',Transparency = 0},['Glowstone'] = {Front = 'http://www.roblox.com/asset/?id=54790811',Top = 'http://www.roblox.com/asset/?id=54790811',Bottom = 'http://www.roblox.com/asset/?id=54790811',Back = 'http://www.roblox.com/asset/?id=54790811',Left = 'http://www.roblox.com/asset/?id=54790811',Right = 'http://www.roblox.com/asset/?id=54790811',Transparency = 0},['Sponge'] = {Top = 'http://www.roblox.com/asset/?id=118556758',Back = 'http://www.roblox.com/asset/?id=118556758',Left = 'http://www.roblox.com/asset/?id=118556758',Front = 'http://www.roblox.com/asset/?id=118556758',Right = 'http://www.roblox.com/asset/?id=118556758',Bottom = 'http://www.roblox.com/asset/?id=118556758',Transparency = 0},['Glass'] = {Front = 'http://www.roblox.com/asset/?id=28845586',Back = 'http://www.roblox.com/asset/?id=28845586',Top = 'http://www.roblox.com/asset/?id=28845586',Bottom = 'http://www.roblox.com/asset/?id=28845586',Left = 'http://www.roblox.com/asset/?id=28845586',Right = 'http://www.roblox.com/asset/?id=28845586',Left = 'http://www.roblox.com/asset/?id=152239003',Top = 'http://www.roblox.com/asset/?id=152239003',Back = 'http://www.roblox.com/asset/?id=152239003',Right = 'http://www.roblox.com/asset/?id=152239003',Front = 'http://www.roblox.com/asset/?id=152239003',Bottom = 'http://www.roblox.com/asset/?id=152239003',Transparency = 1},['Redstone Ore'] = {Front = 'http://www.roblox.com/asset/?id=83031267',Back = 'http://www.roblox.com/asset/?id=83031267',Top = 'http://www.roblox.com/asset/?id=83031267',Bottom = 'http://www.roblox.com/asset/?id=83031267',Left = 'http://www.roblox.com/asset/?id=83031267',Right = 'http://www.roblox.com/asset/?id=83031267',Transparency = 0},['Golden Block'] = {Front = 'http://www.roblox.com/asset/?id=59406046',Top = 'http://www.roblox.com/asset/?id=59406046',Bottom = 'http://www.roblox.com/asset/?id=59406046',Back = 'http://www.roblox.com/asset/?id=59406046',Right = 'http://www.roblox.com/asset/?id=59406046',Left = 'http://www.roblox.com/asset/?id=59406046',Transparency = 0},['Mossy Cobblestone'] = {Front = 'http://www.roblox.com/asset/?id=53893036',Back = 'http://www.roblox.com/asset/?id=53893036',Top = 'http://www.roblox.com/asset/?id=53893036',Bottom = 'http://www.roblox.com/asset/?id=53893036',Left = 'http://www.roblox.com/asset/?id=53893036',Right = 'http://www.roblox.com/asset/?id=53893036',Transparency = 0},['Stone Bricks'] = {Top = 'http://www.roblox.com/asset/?id=75882113',Back = 'http://www.roblox.com/asset/?id=75882113',Left = 'http://www.roblox.com/asset/?id=75882113',Right = 'http://www.roblox.com/asset/?id=75882113',Front = 'http://www.roblox.com/asset/?id=75882113',Bottom = 'http://www.roblox.com/asset/?id=75882113',Transparency = 0},['Netherrack'] = {Front = 'http://www.roblox.com/asset/?id=55412718',Back = 'http://www.roblox.com/asset/?id=55412718',Top = 'http://www.roblox.com/asset/?id=55412718',Left = 'http://www.roblox.com/asset/?id=55412718',Bottom = 'http://www.roblox.com/asset/?id=55412718',Right = 'http://www.roblox.com/asset/?id=55412718',Transparency = 0},['Cobblestone'] = {Right = 'http://www.roblox.com/asset/?id=75881187',Top = 'http://www.roblox.com/asset/?id=75881187',Front = 'http://www.roblox.com/asset/?id=75881187',Left = 'http://www.roblox.com/asset/?id=75881187',Back = 'http://www.roblox.com/asset/?id=75881187',Bottom = 'http://www.roblox.com/asset/?id=75881187',Transparency = 0},['Soul Sand'] = {Front = 'http://www.roblox.com/asset/?id=55412725',Back = 'http://www.roblox.com/asset/?id=55412725',Top = 'http://www.roblox.com/asset/?id=55412725',Left = 'http://www.roblox.com/asset/?id=55412725',Bottom = 'http://www.roblox.com/asset/?id=55412725',Right = 'http://www.roblox.com/asset/?id=55412725',Transparency = 0},['Bricks'] = {Top = 'http://www.roblox.com/asset/?id=75882272',Back = 'http://www.roblox.com/asset/?id=75882272',Left = 'http://www.roblox.com/asset/?id=75882272',Front = 'http://www.roblox.com/asset/?id=75882272',Right = 'http://www.roblox.com/asset/?id=75882272',Bottom = 'http://www.roblox.com/asset/?id=75882272',Transparency = 0},['Bed'] = {Top = 'http://www.roblox.com/asset/?id=71456694',Front = 'http://www.roblox.com/asset/?id=71456673',Left = 'http://www.roblox.com/asset/?id=71456649',Right = 'http://www.roblox.com/asset/?id=71456626',Back = 'http://www.roblox.com/asset/?id=71650095',Transparency = 1},['Grass Block'] = {Top = 'http://www.roblox.com/asset/?id=75880459',Front = 'http://www.roblox.com/asset/?id=75880542',Right = 'http://www.roblox.com/asset/?id=75880542',Back = 'http://www.roblox.com/asset/?id=75880542',Left = 'http://www.roblox.com/asset/?id=75880542',Bottom = 'http://www.roblox.com/asset/?id=75880810',Transparency = 0},['Bedrock'] = {Right = 'http://www.roblox.com/asset/?id=75881126',Top = 'http://www.roblox.com/asset/?id=75881126',Front = 'http://www.roblox.com/asset/?id=75881126',Back = 'http://www.roblox.com/asset/?id=75881126',Left = 'http://www.roblox.com/asset/?id=75881126',Bottom = 'http://www.roblox.com/asset/?id=75881126',Transparency = 0},['Diamond Ore'] = {Front = 'http://www.roblox.com/asset/?id=53578271',Back = 'http://www.roblox.com/asset/?id=53578271',Top = 'http://www.roblox.com/asset/?id=53578271',Bottom = 'http://www.roblox.com/asset/?id=53578271',Left = 'http://www.roblox.com/asset/?id=53578271',Right = 'http://www.roblox.com/asset/?id=53578271',Transparency = 0},['Dirt'] = {Right = 'http://www.roblox.com/asset/?id=75880810',Back = 'http://www.roblox.com/asset/?id=75880810',Top = 'http://www.roblox.com/asset/?id=75880810',Front = 'http://www.roblox.com/asset/?id=75880810',Bottom = 'http://www.roblox.com/asset/?id=75880810',Left = 'http://www.roblox.com/asset/?id=75880810',Transparency = 0},['Emerald Block'] = {Top = 'http://www.roblox.com/asset/?id=88340019',Right = 'http://www.roblox.com/asset/?id=88340019',Left = 'http://www.roblox.com/asset/?id=88340019',Front = 'http://www.roblox.com/asset/?id=88340019',Bottom = 'http://www.roblox.com/asset/?id=88340019',Back = 'http://www.roblox.com/asset/?id=88340019',Transparency = 0},['Gravel'] = {Front = 'http://www.roblox.com/asset/?id=96303213',Top = 'http://www.roblox.com/asset/?id=96303213',Bottom = 'http://www.roblox.com/asset/?id=96303213',Left = 'http://www.roblox.com/asset/?id=96303213',Right = 'http://www.roblox.com/asset/?id=96303213',Back = 'http://www.roblox.com/asset/?id=96303213',Transparency = 0},['Sandstone'] = {Bottom = 'http://www.roblox.com/asset/?id=77390965',Back = 'http://www.roblox.com/asset/?id=77390993',Left = 'http://www.roblox.com/asset/?id=77390993',Front = 'http://www.roblox.com/asset/?id=77390993',Right = 'http://www.roblox.com/asset/?id=77390993',Top = 'http://www.roblox.com/asset/?id=77390977',Transparency = 0},['Brick'] = {Front = 'http://www.roblox.com/asset/?id=71456426',Back = 'http://www.roblox.com/asset/?id=71456426',Top = 'http://www.roblox.com/asset/?id=71456426',Bottom = 'http://www.roblox.com/asset/?id=71456426',Left = 'http://www.roblox.com/asset/?id=71456426',Right = 'http://www.roblox.com/asset/?id=71456426',Transparency = 0},['Gold Ore'] = {Back = 'http://www.roblox.com/asset/?id=56749991',Right = 'http://www.roblox.com/asset/?id=56749991',Front = 'http://www.roblox.com/asset/?id=56749991',Bottom = 'http://www.roblox.com/asset/?id=56749991',Left = 'http://www.roblox.com/asset/?id=56749991',Top = 'http://www.roblox.com/asset/?id=56749991',Transparency = 0},['Wood'] = {Right = 'http://www.roblox.com/asset/?id=75881388',Front = 'http://www.roblox.com/asset/?id=75881388',Back = 'http://www.roblox.com/asset/?id=75881388',Left = 'http://www.roblox.com/asset/?id=75881388',Top = 'http://www.roblox.com/asset/?id=75881451',Bottom = 'http://www.roblox.com/asset/?id=75881451',Transparency = 0},['Iron Ore'] = {Right = 'http://www.roblox.com/asset/?id=121551280',Top = 'http://www.roblox.com/asset/?id=121551280',Back = 'http://www.roblox.com/asset/?id=121551280',Left = 'http://www.roblox.com/asset/?id=121551280',Front = 'http://www.roblox.com/asset/?id=121551280',Bottom = 'http://www.roblox.com/asset/?id=121551280',Transparency = 0},['Wooden Planks'] = {Top = 'http://www.roblox.com/asset/?id=75881905',Right = 'http://www.roblox.com/asset/?id=75881905',Back = 'http://www.roblox.com/asset/?id=75881905',Left = 'http://www.roblox.com/asset/?id=75881905',Front = 'http://www.roblox.com/asset/?id=75881905',Bottom = 'http://www.roblox.com/asset/?id=75881905',Transparency = 0},['Book Shelf'] = {Front = 'http://www.roblox.com/asset/?id=75882918',Left = 'http://www.roblox.com/asset/?id=75882918',Right = 'http://www.roblox.com/asset/?id=75882918',Back = 'http://www.roblox.com/asset/?id=75882918',Top = 'http://www.roblox.com/asset/?id=75881905',Bottom = 'http://www.roblox.com/asset/?id=75881905',Transparency = 0},['Quartz Block'] = {Front = 'http://www.roblox.com/asset/?id=107043832',Back = 'http://www.roblox.com/asset/?id=107043832',Bottom = 'http://www.roblox.com/asset/?id=107043832',Left = 'http://www.roblox.com/asset/?id=107043832',Right = 'http://www.roblox.com/asset/?id=107043832',Top = 'http://www.roblox.com/asset/?id=107043832',Transparency = 0},['Snow'] = {Front = 'http://www.roblox.com/asset/?id=63441200',Top = 'http://www.roblox.com/asset/?id=63441200',Bottom = 'http://www.roblox.com/asset/?id=63441200',Back = 'http://www.roblox.com/asset/?id=63441200',Right = 'http://www.roblox.com/asset/?id=63441200',Left = 'http://www.roblox.com/asset/?id=63441200',Transparency = 0},['Iron Block'] = {Front = 'http://www.roblox.com/asset/?id=59406020',Top = 'http://www.roblox.com/asset/?id=59406020',Bottom = 'http://www.roblox.com/asset/?id=59406020',Back = 'http://www.roblox.com/asset/?id=59406020',Right = 'http://www.roblox.com/asset/?id=59406020',Left = 'http://www.roblox.com/asset/?id=59406020',Transparency = 0},['Obsidian'] = {Right = 'http://www.roblox.com/asset/?id=75881274',Top = 'http://www.roblox.com/asset/?id=75881274',Front = 'http://www.roblox.com/asset/?id=75881274',Left = 'http://www.roblox.com/asset/?id=75881274',Bottom = 'http://www.roblox.com/asset/?id=75881274',Back = 'http://www.roblox.com/asset/?id=75881274',Transparency = 0},['Spawner'] = {Front = 'http://www.roblox.com/asset/?id=48004782',Back = 'http://www.roblox.com/asset/?id=48004782',Top = 'http://www.roblox.com/asset/?id=48004782',Bottom = 'http://www.roblox.com/asset/?id=48004782',Left = 'http://www.roblox.com/asset/?id=48004782',Right = 'http://www.roblox.com/asset/?id=48004782',Transparency = 1},['Coal Ore'] = {Front = 'http://www.roblox.com/asset/?id=15845619',Back = 'http://www.roblox.com/asset/?id=15845619',Top = 'http://www.roblox.com/asset/?id=15845619',Bottom = 'http://www.roblox.com/asset/?id=15845619',Left = 'http://www.roblox.com/asset/?id=15845619',Right = 'http://www.roblox.com/asset/?id=15845619',Top = 'http://www.roblox.com/asset/?id=152572101',Back = 'http://www.roblox.com/asset/?id=152572101',Left = 'http://www.roblox.com/asset/?id=152572101',Front = 'http://www.roblox.com/asset/?id=152572101',Right = 'http://www.roblox.com/asset/?id=152572101',Bottom = 'http://www.roblox.com/asset/?id=152572101',Transparency = 0},['Chiseled Quartz Block'] = {Front = 'http://www.roblox.com/asset/?id=105552118',Back = 'http://www.roblox.com/asset/?id=105552118',Left = 'http://www.roblox.com/asset/?id=105552118',Right = 'http://www.roblox.com/asset/?id=105552118',Top = 'http://www.roblox.com/asset/?id=105548970',Bottom = 'http://www.roblox.com/asset/?id=105548970',Transparency = 0},['Leaves'] = {Top = 'http://www.roblox.com/asset/?id=55320241',Back = 'http://www.roblox.com/asset/?id=55320241',Left = 'http://www.roblox.com/asset/?id=55320241',Front = 'http://www.roblox.com/asset/?id=55320241',Right = 'http://www.roblox.com/asset/?id=55320241',Bottom = 'http://www.roblox.com/asset/?id=55320241',Transparency = 1},['TNT'] = {Left = 'http://www.roblox.com/asset/?id=87191728',Right = 'http://www.roblox.com/asset/?id=87191728',Top = 'http://www.roblox.com/asset/?id=87191731',Bottom = 'http://www.roblox.com/asset/?id=87191716',Front = 'http://www.roblox.com/asset/?id=87191728',Back = 'http://www.roblox.com/asset/?id=87191728',Transparency = 0},}
  4.  
  5. local p = game.Players:WaitForChild("asbuff")
  6.  
  7. local mctool = Instance.new("Tool",p.Backpack)
  8. mctool.RequiresHandle = false
  9.  
  10. local mhit = CFrame.new()
  11.  
  12. local ass2 = Instance.new("RemoteEvent",workspace.Terrain)
  13. ass2.Name = "MINECRAFTASBUFF"
  14.  
  15. local c = p.Character
  16. local ra = c["Right Arm"]
  17. local rs = game:GetService("RunService").Stepped
  18. local tor = c.Torso
  19.  
  20. local cf = CFrame.new
  21. local ang = CFrame.Angles
  22.  
  23. local music = Instance.new("Sound",tor)
  24. music.SoundId = "rbxassetid://1232889811"
  25. music.Playing = true
  26. music.Looped = true
  27. music.Volume = 1
  28.  
  29. local breakfx = Instance.new("ParticleEmitter")
  30. breakfx.Enabled = false
  31. breakfx.Lifetime = NumberRange.new(.8)
  32. breakfx.Speed = NumberRange.new(10)
  33. breakfx.SpreadAngle = Vector2.new(180,180)
  34. breakfx.Acceleration = Vector3.new(0,-80,0)
  35. breakfx.Size = NumberSequence.new(.3)
  36. breakfx.LightInfluence = 1
  37. breakfx.LightEmission = 0
  38.  
  39. local joints = {
  40. ra = tor["Right Shoulder"],
  41. la = tor["Left Shoulder"],
  42. rl = tor["Right Hip"],
  43. ll = tor["Left Hip"],
  44. neck = tor["Neck"]
  45. }
  46.  
  47. c.Animate:Destroy()
  48.  
  49. for i,v in next,c.Humanoid:GetPlayingAnimationTracks() do
  50. v:Stop()
  51. end
  52.  
  53. local block = Instance.new("Part")
  54. block.Size = Vector3.new(.8,.8,.8)
  55.  
  56. local blockweld = Instance.new("Weld",ra)
  57. blockweld.Part0 = ra
  58. blockweld.Part1 = block
  59. blockweld.C0 = CFrame.new(0,-1.1,-.2)
  60.  
  61. block.CanCollide = false
  62. block.Parent = c
  63.  
  64. local rad = math.pi/180
  65. local walktick = 0
  66. local sprint = false
  67. --[[
  68. m.KeyDown:connect(function(k)
  69. if k == "0" then
  70. sprint = true
  71. end
  72. end)
  73. m.KeyUp:connect(function(k)
  74. if k == "0" then
  75. sprint = false
  76. end
  77. end)
  78.  
  79.  
  80. ]]
  81. local nco = joints.neck.C0
  82.  
  83. local gui = Instance.new("ScreenGui",p.PlayerGui)
  84. local frame = Instance.new("Frame",gui)
  85. frame.Size = UDim2.new(0,400,0,400)
  86. frame.BackgroundTransparency = 1
  87. frame.Visible = false
  88. local ass = Instance.new("UIGridLayout",frame)
  89. ass.CellSize = UDim2.new(.1,0,.1,0)
  90.  
  91. local blockname = "Dirt"
  92.  
  93. function updatetool()
  94. block:ClearAllChildren()
  95. for i,v in next,blockindex[blockname] do
  96. if i == "Transparency" then
  97. block.Transparency = v
  98. else
  99. local decal = Instance.new("Decal",block)
  100. decal.Texture = v
  101. decal.Face = i
  102. decal.Name = i
  103. end
  104. end
  105. end
  106. function destroyblock(targ)
  107. if targ.Name == "Block" .. p.Name and targ.CanCollide == true and targ:FindFirstChild("Primed") == nil then
  108. targ.Transparency = 1
  109. targ.CanCollide = false
  110. targ.Anchored = true
  111. for i,v in next,targ:GetChildren() do
  112. v.Transparency = 1
  113. end
  114. local fx = breakfx:Clone()
  115. fx.Texture = targ:WaitForChild("Front").Texture
  116. fx.Parent = targ
  117. fx:Emit(70)
  118. wait()
  119. targ.Size = Vector3.new()
  120. game.Debris:AddItem(targ,2)
  121. end
  122. end
  123.  
  124. function prime(block)
  125. if block.Name == "Block".. p.Name then
  126. block.Anchored = false
  127. block.Velocity = Vector3.new(math.random(-2,2),14,math.random(-2,2))
  128. local ass = Instance.new("BodyThrust",block)
  129. ass.Force = Vector3.new(0,1000,0)
  130. ass.Name = "Primed"
  131. spawn(function()
  132. local times = 0
  133. local toggle = false
  134. repeat
  135. times = times + 1
  136. for i,v in next,block:GetChildren() do
  137. if v:IsA("Decal") then
  138. if toggle == true then
  139. v.Color3 = Color3.new(.5,.5,.5)
  140. else
  141. v.Color3 = Color3.new(1,1,1)
  142. end
  143. end
  144. end
  145. toggle = not toggle
  146. wait(.4)
  147. until times > 8
  148. local pos = block.CFrame.p
  149. block.Transparency = 1
  150. block.Anchored = true
  151. block.CanCollide = false
  152. block:ClearAllChildren()
  153. local xp = Instance.new("Explosion",workspace)
  154. xp.Position = pos
  155. xp.BlastRadius = 5
  156. xp.Hit:connect(function(h)
  157. if h.Name == "Block".. p.Name then
  158. destroyblock(h)
  159. end
  160. end)
  161. local s = Instance.new("Sound",block)
  162. s.SoundId = "rbxassetid://1388740053"
  163. s.Playing = true
  164. s.Volume = 1
  165. game.Debris:AddItem(block,1.4)
  166. end)
  167. end
  168. end
  169.  
  170. function listblocks()
  171. for i,v in next,frame:GetChildren() do
  172. if v:IsA("ImageButton") then
  173. v:Destroy()
  174. end
  175. end
  176.  
  177. for i,v in next,blockindex do
  178. local button = Instance.new("ImageButton",frame)
  179. button.Name = i
  180. button.Image = v.Front
  181. local text = Instance.new("TextLabel",button)
  182. text.BackgroundTransparency = 1
  183. text.TextScaled = true
  184. text.Text = i
  185. text.Size = UDim2.new(1,0,1,0)
  186.  
  187. button.MouseButton1Down:connect(function()
  188. blockname = i
  189. frame.Visible = false
  190. updatetool()
  191. end)
  192. end
  193. end
  194.  
  195. listblocks()
  196. --[[
  197. local plane = nil
  198. local bind = m.Button1Down:connect(function()
  199. plane = m.Hit.p.y
  200. end)]]
  201. plane = 0
  202.  
  203. function placeblock(hit,pos,face)
  204. local offset = face*2
  205. local newpos = Vector3.new()
  206. if hit.Name ~= "Block".. p.Name then
  207. newpos = pos+offset
  208.  
  209. newpos = Vector3.new(
  210. (newpos.x+1.5)-(newpos.x+1.5)%3,
  211. (newpos.y+1.5)-(newpos.y+1.5)%3,
  212. (newpos.z+1.5)-(newpos.z+1.5)%3
  213. )+Vector3.new(0,plane-1.5,0)
  214.  
  215. else
  216. newpos = hit.CFrame.p+offset*1.5
  217. end
  218. --workspace.d.CFrame = cf(newpos)
  219. --workspace.d2.CFrame = cf(pos+offset)
  220.  
  221. local part = Instance.new("Part")
  222. part.Anchored = true
  223. part.Size = Vector3.new(3,3,3)
  224. part.CFrame = cf(newpos)
  225.  
  226. for i,v in next,blockindex[blockname] do
  227. if i == "Transparency" then
  228. part.Transparency = v
  229. else
  230. local decal = Instance.new("Decal",part)
  231. decal.Texture = v
  232. decal.Face = i
  233. decal.Name = i
  234. end
  235. end
  236.  
  237. part.Name = "Block".. p.Name
  238. part.Parent = workspace.Terrain
  239.  
  240. if blockname == "TNT" then
  241. prime(part)
  242. end
  243. if blockname == "Gravel" or blockname == "Sand" then
  244. part.Anchored = false
  245. end
  246.  
  247. end
  248.  
  249. local ff = Instance.new("ForceField",c)
  250. ff.Visible = false
  251.  
  252. updatetool()
  253. --[[
  254. m.Button2Down:connect(function()
  255. local h,p,r = workspace:FindPartOnRayWithIgnoreList(Ray.new(c.Head.CFrame.p,cf(c.Head.CFrame.p,m.Hit.p).lookVector*999),{c})
  256. if h == nil then return end
  257. placeblock(h,p,r)
  258. end)
  259.  
  260. m.Button1Down:connect(function()
  261. local h,p,r = workspace:FindPartOnRayWithIgnoreList(Ray.new(c.Head.CFrame.p,cf(c.Head.CFrame.p,m.Hit.p).lookVector*999),{c})
  262. if h == nil then return end
  263. destroyblock(h)
  264. end)
  265.  
  266.  
  267. m.KeyDown:connect(function(k)
  268. if k == "q" then
  269. frame.Visible = true
  270. end
  271. end)
  272. m.KeyUp:connect(function(k)
  273. if k == "q" then
  274. frame.Visible = false
  275. end
  276. end)
  277. ]]
  278.  
  279. function dostuff(a,b)
  280. if a == "placeblock" then
  281. local h,p,r = workspace:FindPartOnRayWithIgnoreList(Ray.new(b[1].p,cf(b[1].p,b[2].p).lookVector*999),{c})
  282. if h == nil then return end
  283. placeblock(h,p,r)
  284. elseif a == "removeblock" then
  285. local h,p,r = workspace:FindPartOnRayWithIgnoreList(Ray.new(b[1].p,cf(b[1].p,b[2].p).lookVector*999),{c})
  286. if h == nil then return end
  287. destroyblock(h)
  288. elseif a == "openinv" then
  289. frame.Visible = true
  290. elseif a == "closeinv" then
  291. frame.Visible = false
  292. elseif a == "shutdown" then
  293. ass:Destroy()
  294. script:Destroy()
  295. end
  296. end
  297.  
  298. local m = nil
  299.  
  300. mctool.Equipped:connect(function(m2)
  301. m = m2
  302. end)
  303.  
  304. repeat wait() until m ~= nil
  305.  
  306. local ranimation = cf()
  307.  
  308. m.Button1Down:connect(function()
  309. dostuff("removeblock",{m.Hit*CFrame.new(0,0,1),m.Hit})
  310. ranimation = ang(0,math.pi*.1,math.pi*.5)
  311. end)
  312. m.Button2Down:connect(function()
  313. dostuff("placeblock",{m.Hit*CFrame.new(0,0,1),m.Hit})
  314. ranimation = ang(0,math.pi*.1,math.pi*.5)
  315. end)
  316. m.KeyDown:connect(function(k)
  317. if k == "q" then
  318. dostuff("openinv",{})
  319. end
  320. if k == "l" then
  321. dostuff("shutdown",{})
  322. end
  323. end)
  324. m.KeyUp:connect(function(k)
  325. if k == "q" then
  326. dostuff("closeinv",{})
  327. end
  328. end)
  329.  
  330. --mctool:Destroy()
  331.  
  332. rs:connect(function()
  333.  
  334. c.Humanoid.MaxHealth = 300
  335. c.Humanoid.Health = math.min(c.Humanoid.Health + 1,300)
  336.  
  337.  
  338. local ws = math.clamp(tor.Velocity.magnitude,-40,40)
  339. walktick = walktick + ws*.01
  340.  
  341. joints.ra.Transform = CFrame.Angles(0,0,math.sin(walktick)*rad*2*ws) * ranimation
  342. joints.la.Transform = CFrame.Angles(0,0,math.sin(walktick)*rad*2*ws)
  343.  
  344. joints.rl.Transform = CFrame.Angles(0,0,math.sin(walktick)*rad*2*ws)
  345. joints.ll.Transform = CFrame.Angles(0,0,math.sin(walktick)*rad*2*ws)
  346.  
  347. ranimation = ranimation:lerp(cf(),.1)
  348.  
  349. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement