Advertisement
JuicyPenguin

Box script

Sep 21st, 2015
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. --[[Some variables]]--
  3. local Obbies = {
  4. "RotateJumpsEasy";
  5. "RotateJumpsHard";
  6. "PanelsWalk";
  7. "SquareJumps";
  8. "RotateWalkEasy";
  9. "RotateWalkHard";
  10. }
  11. local ObbyOwner = "Imtannerbanner56"---Change Here
  12.  
  13.  
  14. --[[Doesn't need to be changed.]]--
  15. local Owner = game.Players:FindFirstChild(ObbyOwner)
  16.  
  17.  
  18. function AddObby(Name,Func)
  19. table.insert(Obbies,{["Name"]=Name,["Func"]=Func})
  20. end
  21.  
  22. AddObby("BasicJumps",
  23. function(ifAdding,position,model1)
  24. if ifAdding == true then
  25. local model = Instance.new("Model",model1)
  26. model.Name = "BasicJumps"
  27. local base = Instance.new("Part",model)
  28. base.Anchored = true
  29. base.Name = "Base"
  30. base.Size = Vector3.new(20,1,40)
  31. base.BottomSurface = "Smooth"
  32. base.TopSurface = "Smooth"
  33. local FillBox = Instance.new("Part",model)
  34. FillBox.Anchored = true
  35. FillBox.CanCollide = false
  36. FillBox.Name = "FillingBox"
  37. FillBox.Size = Vector3.new(20,20,40)
  38. FillBox.CFrame = base.CFrame * CFrame.new(0,9.5,0)
  39. for i = 1,6 do
  40. local lava = Instance.new("Part",model)
  41. lava.Anchored = true
  42. lava.CanCollide = false
  43. lava.BrickColor = BrickColor.new("Really red")
  44. lava.BottomSurface = "Smooth"
  45. lava.TopSurface = "Smooth"
  46. lava.Size = Vector3.new(20, 1, 2)
  47. lava.CFrame = base.CFrame * CFrame.new(0,1,(-21*(i*6)))
  48. end
  49. end
  50. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement