Advertisement
Treyzotic

summon

Mar 25th, 2016
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.81 KB | None | 0 0
  1. function Weld()
  2. local w = Instance.new("Weld")
  3. w.Part0 = game.Workspace.Summon
  4. w.Part1 = game.Workspace.Summon.R
  5. w.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0) --First CFrame is rotation, second Cframe is where it goes.
  6. w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, -2.5, 0) --This is the second brick (the one you want to move most of the time)
  7. w.Parent = game.Workspace
  8. end
  9. Player = game.Players.LocalPlayer
  10. run = game:GetService("RunService")
  11. local MyMouse = game.Players.LocalPlayer:GetMouse()
  12. MyMouse.KeyDown:connect(function(key)
  13. if string.lower(key) == "l" then
  14. RightShoulder = Player.Character.Torso["Right Shoulder"]
  15. LeftShoulder = Player.Character.Torso["Left Shoulder"]
  16. Run = game:GetService("RunService")
  17. for i = 1, 1 do
  18. for i = 1, 12 do
  19. LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, -0.16)
  20. RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0, 0.16)
  21. RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, -0.1, 0)
  22. LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0.1, 0)
  23. Run.Stepped:wait(0.01)
  24. end
  25. game:GetService("Chat"):Chat(Player.Character.Head, "Summon:Spike")
  26. wait(1)
  27. --local m = Instance.new("Model", game.Workspace)
  28. local k = Instance.new("Part", game.Workspace)
  29. k.Size = Vector3.new(1, 1, 1)
  30. k.Color = Color3.new(0, 0, 0)
  31. k.Anchored = true
  32. k.Name = "Summon"
  33. k.CFrame = Player.Character.Torso.CFrame*CFrame.new(0, -2.5, -6)
  34. local i = Instance.new("Decal", k)
  35. i.Texture = "http://www.roblox.com/asset/?id=153485522"
  36. i.Face = "Top","Bottom","Back","Front","Left","Right"
  37. local m = Instance.new("CylinderMesh", k)
  38. m.Scale = Vector3.new(7, 1, 7)
  39. wait(.1)
  40. local f = Instance.new("Part", k)
  41. f.Name = "R"
  42. f.Size = Vector3.new(1, 2, 1)
  43. f.CanCollide = true
  44. wait(.5)
  45. for i = 4, 10 do
  46. f.CFrame = game.Workspace.Summon.CFrame*CFrame.new(0, i, 0)
  47. end
  48.  
  49. local j = Instance.new("SpecialMesh", f)
  50. j.MeshId = "http://www.roblox.com/asset/?id=9756362"
  51. j.Scale = Vector3.new(3, 3, 3)
  52. j.MeshType = "FileMesh"
  53. j.VertexColor = Vector3.new(5, 4, 0)
  54. wait(.3)
  55. f.Anchored = true
  56. wait(.5)
  57. Weld()
  58. --[[local q = Instance.new("Part", k)
  59. q.Name = "L"
  60. q.Size = Vector3.new(1, 2, 1)
  61. q.CFrame = game.Workspace.Summon.CFrame*CFrame.new(0, 2, 0)]]
  62. --wait(2)
  63. --Weld()
  64. --f.CanCollide = true
  65. --f.Anchored = true
  66. wait(0)
  67. --k:Remove()
  68. for i = 1, 12 do
  69. LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, -0.1, 0)
  70. RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0.1, 0)
  71. LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, 0.16)
  72. RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0, -0.16)
  73. Run.Stepped:wait(0.005)
  74. end
  75. wait(5)
  76. k:Remove()
  77. end
  78. end
  79. end)
  80. if Weld() then
  81. print("yes")
  82. else
  83. print("no")
  84. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement