Advertisement
Aeyao

M UASDYBV97FY3047 I 832UWENYC0N9QWH N U3RN9

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