Aeyao

MI329840WE7QT9SGYNUI832NE

Jul 21st, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.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.LocalPlayer
  6. local m = p:GetMouse()
  7. local c = p.Character
  8. local cam = workspace.CurrentCamera
  9. local ra = c["Right Arm"]
  10. local rs = game:GetService("RunService").RenderStepped
  11. local tor = c.Torso
  12.  
  13. local cf = CFrame.new
  14. local ang = CFrame.Angles
  15.  
  16. local music = Instance.new("Sound",tor)
  17. music.SoundId = "rbxassetid://1232889811"
  18. music.Playing = true
  19. music.Looped = true
  20. music.Volume = 1
  21.  
  22. local breakfx = Instance.new("ParticleEmitter")
  23. breakfx.Enabled = false
  24. breakfx.Lifetime = NumberRange.new(.8)
  25. breakfx.Speed = NumberRange.new(10)
  26. breakfx.SpreadAngle = Vector2.new(180,180)
  27. breakfx.Acceleration = Vector3.new(0,-80,0)
  28. breakfx.Size = NumberSequence.new(.3)
  29. breakfx.LightInfluence = 1
  30. breakfx.LightEmission = 0
  31.  
  32. local joints = {
  33. ra = tor["Right Shoulder"],
  34. la = tor["Left Shoulder"],
  35. rl = tor["Right Hip"],
  36. ll = tor["Left Hip"],
  37. neck = tor["Neck"]
  38. }
  39.  
  40. c.Animate:Destroy()
  41.  
  42. for i,v in next,c.Humanoid:GetPlayingAnimationTracks() do
  43. v:Stop()
  44. end
  45.  
  46. local block = Instance.new("Part")
  47. block.Size = Vector3.new(.8,.8,.8)
  48.  
  49. local blockweld = Instance.new("Weld",ra)
  50. blockweld.Part0 = ra
  51. blockweld.Part1 = block
  52. blockweld.C0 = CFrame.new(0,-1.1,-.2)
  53.  
  54. block.CanCollide = false
  55. block.Parent = c
  56.  
  57. local rad = math.pi/180
  58. local walktick = 0
  59. local sprint = false
  60.  
  61. m.KeyDown:connect(function(k)
  62. if k == "0" then
  63. sprint = true
  64. end
  65. end)
  66. m.KeyUp:connect(function(k)
  67. if k == "0" then
  68. sprint = false
  69. end
  70. end)
  71.  
  72.  
  73.  
  74. local nco = joints.neck.C0
  75.  
  76. local gui = Instance.new("ScreenGui",p.PlayerGui)
  77. local frame = Instance.new("Frame",gui)
  78. frame.Size = UDim2.new(0,400,0,400)
  79. frame.BackgroundTransparency = 1
  80. frame.Visible = false
  81. local ass = Instance.new("UIGridLayout",frame)
  82. ass.CellSize = UDim2.new(.1,0,.1,0)
  83.  
  84. local blockname = "Dirt"
  85.  
  86. function updatetool()
  87. block:ClearAllChildren()
  88. for i,v in next,blockindex[blockname] do
  89. if i == "Transparency" then
  90. block.Transparency = v
  91. else
  92. local decal = Instance.new("Decal",block)
  93. decal.Texture = v
  94. decal.Face = i
  95. decal.Name = i
  96. end
  97. end
  98. end
  99. function destroyblock(targ)
  100. if targ.Name == "Block" .. p.Name and targ.CanCollide == true and targ:FindFirstChild("Primed") == nil then
  101. targ.Transparency = 1
  102. targ.CanCollide = false
  103. targ.Anchored = true
  104. for i,v in next,targ:GetChildren() do
  105. v.Transparency = 1
  106. end
  107. local fx = breakfx:Clone()
  108. fx.Texture = targ:WaitForChild("Front").Texture
  109. fx.Parent = targ
  110. fx:Emit(70)
  111. wait()
  112. targ.Size = Vector3.new()
  113. game.Debris:AddItem(targ,2)
  114. end
  115. end
  116.  
  117. function prime(block)
  118. if block.Name == "Block".. p.Name then
  119. block.Anchored = false
  120. block.Velocity = Vector3.new(math.random(-2,2),14,math.random(-2,2))
  121. local ass = Instance.new("BodyThrust",block)
  122. ass.Force = Vector3.new(0,1000,0)
  123. ass.Name = "Primed"
  124. spawn(function()
  125. local times = 0
  126. local toggle = false
  127. repeat
  128. times = times + 1
  129. for i,v in next,block:GetChildren() do
  130. if v:IsA("Decal") then
  131. if toggle == true then
  132. v.Color3 = Color3.new(.5,.5,.5)
  133. else
  134. v.Color3 = Color3.new(1,1,1)
  135. end
  136. end
  137. end
  138. toggle = not toggle
  139. wait(.4)
  140. until times > 8
  141. local pos = block.CFrame.p
  142. block.Transparency = 1
  143. block.Anchored = true
  144. block.CanCollide = false
  145. block:ClearAllChildren()
  146. local xp = Instance.new("Explosion",workspace)
  147. xp.Position = pos
  148. xp.BlastRadius = 5
  149. xp.Hit:connect(function(h)
  150. if h.Name == "Block".. p.Name then
  151. destroyblock(h)
  152. end
  153. end)
  154. local s = Instance.new("Sound",block)
  155. s.SoundId = "rbxassetid://1388740053"
  156. s.Playing = true
  157. s.Volume = 1
  158. game.Debris:AddItem(block,1.4)
  159. end)
  160. end
  161. end
  162.  
  163. function listblocks()
  164. for i,v in next,frame:GetChildren() do
  165. if v:IsA("ImageButton") then
  166. v:Destroy()
  167. end
  168. end
  169.  
  170. for i,v in next,blockindex do
  171. local button = Instance.new("ImageButton",frame)
  172. button.Name = i
  173. button.Image = v.Front
  174. local text = Instance.new("TextLabel",button)
  175. text.BackgroundTransparency = 1
  176. text.TextScaled = true
  177. text.Text = i
  178. text.Size = UDim2.new(1,0,1,0)
  179.  
  180. button.MouseButton1Down:connect(function()
  181. blockname = i
  182. frame.Visible = false
  183. updatetool()
  184. end)
  185. end
  186. end
  187.  
  188. listblocks()
  189.  
  190. local plane = nil
  191. local bind = m.Button1Down:connect(function()
  192. plane = m.Hit.p.y
  193. end)
  194.  
  195. repeat wait() until plane ~= nil
  196. bind:disconnect()
  197.  
  198. function placeblock(hit,pos,face)
  199. local offset = face*2
  200. local newpos = Vector3.new()
  201. if hit.Name ~= "Block".. p.Name then
  202. newpos = pos+offset
  203.  
  204. newpos = Vector3.new(
  205. (newpos.x+1.5)-(newpos.x+1.5)%3,
  206. (newpos.y+1.5)-(newpos.y+1.5)%3,
  207. (newpos.z+1.5)-(newpos.z+1.5)%3
  208. )+Vector3.new(0,plane-1.5,0)
  209.  
  210. else
  211. newpos = hit.CFrame.p+offset*1.5
  212. end
  213. --workspace.d.CFrame = cf(newpos)
  214. --workspace.d2.CFrame = cf(pos+offset)
  215.  
  216. local part = Instance.new("Part")
  217. part.Anchored = true
  218. part.Size = Vector3.new(3,3,3)
  219. part.CFrame = cf(newpos)
  220.  
  221. for i,v in next,blockindex[blockname] do
  222. if i == "Transparency" then
  223. part.Transparency = v
  224. else
  225. local decal = Instance.new("Decal",part)
  226. decal.Texture = v
  227. decal.Face = i
  228. decal.Name = i
  229. end
  230. end
  231.  
  232. part.Name = "Block".. p.Name
  233. part.Parent = workspace.Terrain
  234.  
  235. if blockname == "TNT" then
  236. prime(part)
  237. end
  238. if blockname == "Gravel" or blockname == "Sand" then
  239. part.Anchored = false
  240. end
  241.  
  242. end
  243.  
  244. local ff = Instance.new("ForceField",c)
  245. ff.Visible = false
  246.  
  247. updatetool()
  248.  
  249. m.Button2Down:connect(function()
  250. local h,p,r = workspace:FindPartOnRayWithIgnoreList(Ray.new(cam.CFrame.p,cf(cam.CFrame.p,m.Hit.p).lookVector*999),{c})
  251. if h == nil then return end
  252. placeblock(h,p,r)
  253. end)
  254.  
  255. m.Button1Down:connect(function()
  256. local h,p,r = workspace:FindPartOnRayWithIgnoreList(Ray.new(cam.CFrame.p,cf(cam.CFrame.p,m.Hit.p).lookVector*999),{c})
  257. if h == nil then return end
  258. destroyblock(h)
  259. end)
  260.  
  261.  
  262. m.KeyDown:connect(function(k)
  263. if k == "q" then
  264. frame.Visible = true
  265. end
  266. end)
  267. m.KeyUp:connect(function(k)
  268. if k == "q" then
  269. frame.Visible = false
  270. end
  271. end)
  272.  
  273. rs:connect(function(dt)
  274. --local h,p,r = workspace:FindPartOnRayWithIgnoreList(Ray.new(cam.CFrame.p,cf(cam.CFrame.p,m.Hit.p).lookVector*999),{c,workspace.d})
  275. --placeblock(p,r)
  276.  
  277. c.Humanoid.MaxHealth = 300
  278. c.Humanoid.Health = math.min(c.Humanoid.Health + 1,300)
  279.  
  280. local ws = math.clamp(tor.Velocity.magnitude,-40,40)
  281. walktick = walktick + ws*.01
  282.  
  283. joints.ra.Transform = CFrame.Angles(0,0,math.sin(walktick)*rad*2*ws)
  284. joints.la.Transform = CFrame.Angles(0,0,math.sin(walktick)*rad*2*ws)
  285.  
  286. joints.rl.Transform = CFrame.Angles(0,0,math.sin(walktick)*rad*2*ws)
  287. joints.ll.Transform = CFrame.Angles(0,0,math.sin(walktick)*rad*2*ws)
  288.  
  289. local toc = tor.CFrame:toObjectSpace(cam.CFrame)
  290.  
  291. joints.neck.C0 = joints.neck.C0:lerp(CFrame.new(nco.p)*(toc-toc.p)*CFrame.Angles(-math.pi*.5,0,math.pi),.15)
  292.  
  293. if sprint then
  294. c.Humanoid.WalkSpeed = 30
  295. else
  296. c.Humanoid.WalkSpeed = 18
  297. end
  298.  
  299. end)
Add Comment
Please, Sign In to add comment