Advertisement
RyanDaCoder

LOL gui

Jul 26th, 2017
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.11 KB | None | 0 0
  1. -- Objects
  2.  
  3. local ScreenGui = Instance.new("ScreenGui")
  4. local _1 = Instance.new("TextBox")
  5. local _2 = Instance.new("TextBox")
  6. local start = Instance.new("TextButton")
  7.  
  8. -- Properties
  9.  
  10. ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
  11.  
  12. _1.Name = "1"
  13. _1.Parent = ScreenGui
  14. _1.BackgroundColor3 = Color3.new(1, 1, 1)
  15. _1.Size = UDim2.new(0, 200, 0, 50)
  16. _1.Font = Enum.Font.SourceSans
  17. _1.FontSize = Enum.FontSize.Size14
  18. _1.TextSize = 14
  19.  
  20. _2.Name = "2"
  21. _2.Parent = _1
  22. _2.BackgroundColor3 = Color3.new(1, 1, 1)
  23. _2.Position = UDim2.new(0, 0, 0, 50)
  24. _2.Size = UDim2.new(0, 200, 0, 50)
  25. _2.Font = Enum.Font.SourceSans
  26. _2.FontSize = Enum.FontSize.Size14
  27. _2.TextSize = 14
  28.  
  29. start.Name = "start"
  30. start.Parent = _2
  31. start.BackgroundColor3 = Color3.new(1, 1, 1)
  32. start.Position = UDim2.new(0, 0, 0, 50)
  33. start.Size = UDim2.new(0, 200, 0, 50)
  34. start.Font = Enum.Font.SourceSans
  35. start.FontSize = Enum.FontSize.Size14
  36. start.Text = "Lol"
  37. start.TextSize = 14
  38.  
  39. start.MouseButton1Click:connect(function()
  40. local user=_1.Text
  41. local user2=_2.Text
  42. for i,v in pairs(SearchPlayer(user)) do
  43. for c,b in pairs(SearchPlayer(user2)) do
  44. n2 = v.Name
  45. n1 = b.Name
  46.  
  47. pcall(function()
  48. t1 = game.Players[n1].Character.Torso
  49. t2 = game.Players[n2].Character.Torso
  50. t2.Parent.Humanoid.PlatformStand = true
  51. t1["Left Shoulder"]:Remove()
  52. ls1 = Instance.new("Weld")
  53. ls1.Parent = t1
  54. ls1.Part0 = t1
  55. ls1.Part1 = t1.Parent["Left Arm"]
  56. ls1.C0 = CFrame.new(-1.5,0,0)
  57. ls1.Name = "Left Shoulder"
  58. t1["Right Shoulder"]:Remove()
  59. rs1 = Instance.new("Weld")
  60. rs1.Parent = t1
  61. rs1.Part0 = t1
  62. rs1.Part1 = t1.Parent["Right Arm"]
  63. rs1.C0 = CFrame.new(1.5,0,0)
  64. rs1.Name = "Right Shoulder"
  65. t2["Left Shoulder"]:Remove()
  66. ls2 = Instance.new("Weld")
  67. ls2.Parent = t2
  68. ls2.Part0 = t2
  69. ls2.Part1 = t2.Parent["Left Arm"]
  70. ls2.C0 = CFrame.new(-1.5,0,0)
  71. ls2.Name = "Left Shoulder"
  72. t2["Right Shoulder"]:Remove()
  73. rs2 = Instance.new("Weld")
  74. rs2.Parent = t2
  75. rs2.Part0 = t2
  76. rs2.Part1 = t2.Parent["Right Arm"]
  77. rs2.C0 = CFrame.new(1.5,0,0)
  78. rs2.Name = "Right Shoulder"
  79. t2["Left Hip"]:Remove()
  80. lh2 = Instance.new("Weld")
  81. lh2.Parent = t2
  82. lh2.Part0 = t2
  83. lh2.Part1 = t2.Parent["Left Leg"]
  84. lh2.C0 = CFrame.new(-0.5,-2,0)
  85. lh2.Name = "Left Hip"
  86. t2["Right Hip"]:Remove()
  87. rh2 = Instance.new("Weld")
  88. rh2.Parent = t2
  89. rh2.Part0 = t2
  90. rh2.Part1 = t2.Parent["Right Leg"]
  91. rh2.C0 = CFrame.new(0.5,-2,0)
  92. rh2.Name = "Right Hip"
  93. local d = Instance.new("Part")
  94. d.TopSurface = 0
  95. d.BottomSurface = 0
  96. d.CanCollide = false
  97. d.BrickColor = BrickColor.new("Medium stone grey")
  98. d.Shape = "Ball"
  99. d.Parent = t1
  100. d.Size = Vector3.new(1,1,1)
  101. local dm = Instance.new("SpecialMesh")
  102. dm.MeshType = "Sphere"
  103. dm.Parent = d
  104. dm.Scale = Vector3.new(0.4,0.4,0.4)
  105. fWeld("weld",t1,t1,d,true,-0.2,-1.3,-0.6,0,0,0)
  106. d2 = d:Clone()
  107. d2.Parent = t1
  108. fWeld("weld",t1,t1,d2,true,0.2,-1.3,-0.6,0,0,0)
  109. local c = Instance.new("Part")
  110. c.TopSurface = 0
  111. c.BottomSurface = 0
  112. c.CanCollide = false
  113. c.BrickColor = BrickColor.new("Pastel brown")
  114. c.Parent = t1
  115. c.formFactor = "Custom"
  116. c.Size = Vector3.new(0.4,1.3,0.4)
  117. cm = Instance.new("CylinderMesh")
  118. cm.Parent = c
  119. a = fWeld("weld",t1,t1,c,true,0,-1,-0.52+(-c.Size.y/2),math.rad(-80),0,0)
  120. c2 = d:Clone()
  121. c2.BrickColor = BrickColor.new("Medium stone grey")
  122. c2.Mesh.Scale = Vector3.new(0.4,0.62,0.4)
  123. c2.Parent = t1
  124. fWeld("weld",c,c,c2,true,0,0+(c.Size.y/2),0,math.rad(-10),0,0)
  125. local bl = Instance.new("Part")
  126. bl.TopSurface = 0
  127. bl.BottomSurface = 0
  128. bl.CanCollide = false
  129. bl.BrickColor = BrickColor.new("Pastel brown")
  130. bl.Shape = "Ball"
  131. bl.Parent = t2
  132. bl.Size = Vector3.new(1,1,1)
  133. local dm = Instance.new("SpecialMesh")
  134. dm.MeshType = "Sphere"
  135. dm.Parent = bl
  136. dm.Scale = Vector3.new(1.2,1.2,1.2)
  137. fWeld("weld",t2,t2,bl,true,-0.5,0.5,-0.6,0,0,0)
  138. local br = Instance.new("Part")
  139. br.TopSurface = 0
  140. br.BottomSurface = 0
  141. br.CanCollide = false
  142. br.BrickColor = BrickColor.new("Pastel brown")
  143. br.Shape = "Ball"
  144. br.Parent = t2
  145. br.Size = Vector3.new(1,1,1)
  146. local dm = Instance.new("SpecialMesh")
  147. dm.MeshType = "Sphere"
  148. dm.Parent = br
  149. dm.Scale = Vector3.new(1.2,1.2,1.2)
  150. fWeld("weld",t2,t2,br,true,0.5,0.5,-0.6,0,0,0)
  151. local bln = Instance.new("Part")
  152. bln.TopSurface = 0
  153. bln.BottomSurface = 0
  154. bln.CanCollide = false
  155. bln.Shape = "Ball"
  156. bln.Parent = t2
  157. bln.Size = Vector3.new(1,1,1)
  158. local dm = Instance.new("SpecialMesh")
  159. dm.MeshType = "Sphere"
  160. dm.Parent = bln
  161. dm.Scale = Vector3.new(0.2,0.2,0.2)
  162. fWeld("weld",t2,t2,bln,true,-0.5,0.5,-1.2,0,0,0)
  163. local brn = Instance.new("Part")
  164. brn.TopSurface = 0
  165. brn.BottomSurface = 0
  166. brn.CanCollide = false
  167. brn.Shape = "Ball"
  168. brn.Parent = t2
  169. brn.Size = Vector3.new(1,1,1)
  170. local dm = Instance.new("SpecialMesh")
  171. dm.MeshType = "Sphere"
  172. dm.Parent = brn
  173. dm.Scale = Vector3.new(0.2,0.2,0.2)
  174. fWeld("weld",t2,t2,brn,true,0.5,0.5,-1.2,0,0,0)
  175. lh2.C1 = CFrame.new(0,-1.5,-0.5) * CFrame.Angles(0.9,-0.4,0)
  176. rh2.C1 = CFrame.new(0,-1.5,-0.5) * CFrame.Angles(0.9,0.4,0)
  177. ls2.C1 = CFrame.new(-0.5,-1.3,-0.5) * CFrame.Angles(0.7,-0.2,0)
  178. rs2.C1 = CFrame.new(0.5,-1.3,-0.5) * CFrame.Angles(0.7,0.2,0)
  179. ls1.C1 = CFrame.new(-0.5,0.9,0.5) * CFrame.Angles(-1.2,.2,0)
  180. rs1.C1 = CFrame.new(0.5,0.9,0.5) * CFrame.Angles(-1.2,-.2,0)
  181. if t1:findFirstChild("weldx") ~= nil then
  182. t1.weldx:Remove()
  183. end
  184. we = fWeld("weldx", t1, t1, t2, true, 0, -1.8, -2.47, math.rad(-130), 0, 172.79)
  185. n = t2.Neck
  186. n.C0 = CFrame.new(0, 1.2, 0) * CFrame.Angles(math.rad(-235), math.rad(180), 0)
  187. end)
  188. coroutine.resume(coroutine.create(function()
  189. while wait() do
  190. for i = 1,6 do
  191. we.C1 = we.C1 * CFrame.new(0.0,0.05,-0.05)
  192. ls2.C1 = ls2.C1 * CFrame.new(0,0,0) * CFrame.Angles(0.014,-0.004,0)
  193. rs2.C1 = rs2.C1 * CFrame.new(0,0,0) * CFrame.Angles(0.014,-0.004,0)
  194. ls1.C1 = ls1.C1 * CFrame.new(0,0,0) * CFrame.Angles(-0.020,0,0)
  195. rs1.C1 = rs1.C1 * CFrame.new(0,0,0) * CFrame.Angles(-0.020,0,0)
  196. wait()
  197. end
  198.  
  199. for i = 1,6 do
  200. we.C1 = we.C1 * CFrame.new(0.0,-0.05,0.05)
  201. ls2.C1 = ls2.C1 * CFrame.new(0,0,0) * CFrame.Angles(-0.014,0.004,0)
  202. rs2.C1 = rs2.C1 * CFrame.new(0,0,0) * CFrame.Angles(-0.014,0.004,0)
  203. ls1.C1 = ls1.C1 * CFrame.new(0,0,0) * CFrame.Angles(0.020,0,0)
  204. rs1.C1 = rs1.C1 * CFrame.new(0,0,0) * CFrame.Angles(0.020,0,0)
  205. wait()
  206. end
  207. end
  208. end))
  209. end
  210. end
  211. end
  212. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement