yamanohera155233

Untitled

Jun 19th, 2016
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. center = workspace.Base.Position + Vector3.new(70,0,0)
  2.  
  3. function prop(part, parent, collide, tran, ref, x, y, z, color, anchor, form)
  4. part.Parent = parent
  5. part.formFactor = form
  6. part.CanCollide = collide
  7. part.Transparency = tran
  8. part.Reflectance = ref
  9. part.Size = Vector3.new(x,y,z)
  10. part.BrickColor = BrickColor.new(color)
  11. part.TopSurface = 0
  12. part.BottomSurface = 0
  13. part.Anchored = anchor
  14. part.Locked = true
  15. part:BreakJoints()
  16. end
  17.  
  18. pool = Instance.new("Model")
  19. pool.Name = "Pool"
  20.  
  21. for i=0,math.pi*2,math.pi/2 do
  22. local wall = Instance.new("Part")
  23. prop(wall,pool,true,0,0,67,9,7,"Medium grey",true,"Custom")
  24. wall.CFrame = CFrame.new(center) * CFrame.Angles(0,i,0) * CFrame.new(0,wall.Size.Y/2,-30)
  25. end
  26.  
  27. touch = nil
  28. for i=0,8,0.3 do
  29. local water = Instance.new("Part")
  30. prop(water,pool,false,0.8,0.02,60,0.3,60,"Bright blue",true,"Custom")
  31. water.CFrame = CFrame.new(center) * CFrame.new(0,i,0)
  32. touch = water
  33. end
  34.  
  35. touch.Touched:connect(function(hit)
  36. local lolpos = Vector3.new(hit.Position.X,touch.Position.Y,hit.Position.Z)
  37. for i=1, math.random(7,20) do
  38. local siz = math.random(20,70)/100
  39. local wat = Instance.new("Part")
  40. prop(wat,pool,false,0.4,0.05,siz,siz,siz,"Bright blue",false,"Custom")
  41. wat.CFrame = CFrame.new(lolpos) * CFrame.new(math.random(-25,25)/10,0,math.random(-25,25)/10)
  42. wat.Velocity = Vector3.new(math.random(-200,200)/10,math.random(30,230)/10,math.random(-200,200)/10)
  43. end
  44. end)
  45. pool.Parent = workspace
Add Comment
Please, Sign In to add comment