princeofheaven

Despairus

Jun 3rd, 2015
333
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. --[[
  2. local size,height = 8,3
  3. local terrain = game.Workspace.Terrain
  4. local material = Enum.CellMaterial.Grass
  5. local blocktype = Enum.CellBlock.Solid
  6. local orientation = Enum.CellOrientation.X
  7.  
  8. for y = 1,height do
  9. for x = -size,size do
  10. for z = -size,size do
  11. terrain:SetCell(x,y-1,z,material,blocktype,orientation)
  12. end
  13. end
  14. end
  15. ]]
  16. local Username = "PrinceOfHeaven"
  17. local User = game.Players[Username]
  18. local char = User.Character
  19. local debounce = false
  20. local damage = 1000
  21. local size = 8
  22.  
  23. local terrain = game.Workspace.Terrain
  24. local material = Enum.CellMaterial.Water
  25. local blocktype = Enum.CellBlock.Solid
  26. local orientation = Enum.CellOrientation.X
  27.  
  28. for y = 1,1 do
  29. for x = -size,size do
  30. for z = -size,size do
  31. terrain:SetCell(x,y-1,z,material,blocktype,orientation)
  32. end
  33. end
  34. end
  35.  
  36. for _,v in pairs(char:GetChildren()) do
  37. --[[if v.Name ~= "Torso" and v.Name ~= "Head" and v.Name ~= "HumanoidRootPart" then]]
  38. if v.Name == "Torso" then
  39. local m = Instance.new("SpecialMesh", v)
  40. m.MeshType = "FileMesh"
  41. m.MeshId = "http://www.roblox.com/asset/?id=23257745"
  42. m.TextureId = "http://www.roblox.com/asset/?id=23257741"
  43. m.Scale = Vector3.new(3, 3, 8)
  44. v.Touched:connect(function(hit)
  45. local h = hit.Parent:findFirstChild("Humanoid")
  46. if h ~= nil and debounce == false then
  47. debounce = true
  48. h.Health = h.Health - damage
  49. wait(0.1)
  50. debounce = false
  51. end
  52. end)
  53. end
  54. end
Advertisement
Add Comment
Please, Sign In to add comment