Advertisement
alrobloxeano

Piggy script [Roblox]

Jul 5th, 2020
5,130
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.91 KB | None | 1 0
  1. -- Piggy Gui
  2.  
  3. -- Key binds
  4.  
  5. -- Noclip:
  6.  
  7. noclip = false
  8. game:GetService('RunService').Stepped:connect(function()
  9. if noclip then
  10. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  11.  
  12. end
  13. end)
  14. plr = game.Players.LocalPlayer
  15. mouse = plr:GetMouse()
  16. mouse.KeyDown:connect(function(key)
  17.  
  18. if key == "e" then
  19. game.StarterGui:SetCore("SendNotification", {
  20. Title = "Noclip";
  21. Text = "Toggled";
  22. Icon = "";
  23. Duration = 0.001;
  24. Callback = bindableFunction;
  25. Button1 = "";
  26. Button2 = "";
  27. })
  28. noclip = not noclip
  29. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  30. end
  31. end)
  32.  
  33. -- Ctrl + Click Tp
  34.  
  35. local speed = 50 -- set this lower to make it slower
  36. local bodyvelocityenabled = true -- set this to false if you are getting kicked
  37.  
  38. local Imput = game:GetService("UserInputService")
  39. local Plr = game.Players.LocalPlayer
  40. local Mouse = Plr:GetMouse()
  41.  
  42. function To(position)
  43. local Chr = Plr.Character
  44. if Chr ~= nil then
  45. local ts = game:GetService("TweenService")
  46. local char = game.Players.LocalPlayer.Character
  47. local hm = char.HumanoidRootPart
  48. local dist = (hm.Position - Mouse.Hit.p).magnitude
  49. local tweenspeed = dist/tonumber(speed)
  50. local ti = TweenInfo.new(tonumber(tweenspeed), Enum.EasingStyle.Linear)
  51. local tp = {CFrame = CFrame.new(position)}
  52. ts:Create(hm, ti, tp):Play()
  53. if bodyvelocityenabled == true then
  54. local bv = Instance.new("BodyVelocity")
  55. bv.Parent = hm
  56. bv.MaxForce = Vector3.new(100000,100000,100000)
  57. bv.Velocity = Vector3.new(0,0,0)
  58. wait(tonumber(tweenspeed))
  59. bv:Destroy()
  60. end
  61. end
  62. end
  63.  
  64. Imput.InputBegan:Connect(function(input)
  65. if input.UserInputType == Enum.UserInputType.MouseButton1 and Imput:IsKeyDown(Enum.KeyCode.LeftControl) then
  66. To(Mouse.Hit.p)
  67. end
  68. end)
  69.  
  70. -- Instances:
  71.  
  72. local Script = Instance.new("ScreenGui")
  73. local MainFrame = Instance.new("Frame")
  74. local More = Instance.new("Frame")
  75. local Noclip = Instance.new("TextButton")
  76. local Speed = Instance.new("TextButton")
  77. local Speed2 = Instance.new("TextButton")
  78. local Jump = Instance.new("TextButton")
  79. local Jump2 = Instance.new("TextButton")
  80. local Speed_2 = Instance.new("TextButton")
  81. local MoreBtn = Instance.new("TextButton")
  82. local MoreBtn2 = Instance.new("TextButton")
  83. local NoMap = Instance.new("TextButton")
  84. local PlayBtnColor = Instance.new("TextButton")
  85. local Frame = Instance.new("Frame")
  86. local Yellow = Instance.new("TextButton")
  87. local Red = Instance.new("TextButton")
  88. local Orange = Instance.new("TextButton")
  89. local Blue = Instance.new("TextButton")
  90.  
  91. --Properties:
  92.  
  93. Script.Name = "Script"
  94. Script.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  95. Script.ResetOnSpawn = false
  96.  
  97. MainFrame.Name = "MainFrame"
  98. MainFrame.Parent = Script
  99. MainFrame.Active = true
  100. MainFrame.BackgroundColor3 = Color3.fromRGB(147, 255, 32)
  101. MainFrame.BackgroundTransparency = 0.250
  102. MainFrame.Position = UDim2.new(0.442345977, 0, 0.066805847, 0)
  103. MainFrame.Size = UDim2.new(0, 257, 0, 414)
  104. MainFrame.Draggable = true
  105.  
  106. More.Name = "More"
  107. More.Parent = MainFrame
  108. More.Active = true
  109. More.BackgroundColor3 = Color3.fromRGB(255, 138, 20)
  110. More.BackgroundTransparency = 0.250
  111. More.Position = UDim2.new(-0.579588652, 0, -0.000862305867, 0)
  112. More.Size = UDim2.new(0, 148, 0, 414)
  113. More.Visible = false
  114.  
  115. Noclip.Name = "Noclip"
  116. Noclip.Parent = More
  117. Noclip.BackgroundColor3 = Color3.fromRGB(178, 255, 236)
  118. Noclip.Position = UDim2.new(0.087878257, 0, 0.146137789, 0)
  119. Noclip.Size = UDim2.new(0, 121, 0, 50)
  120. Noclip.Font = Enum.Font.Cartoon
  121. Noclip.Text = "Noclip [E]"
  122. Noclip.TextColor3 = Color3.fromRGB(0, 0, 0)
  123. Noclip.TextScaled = true
  124. Noclip.TextSize = 14.000
  125. Noclip.TextWrapped = true
  126.  
  127. Speed.Name = "Speed"
  128. Speed.Parent = More
  129. Speed.BackgroundColor3 = Color3.fromRGB(178, 255, 236)
  130. Speed.Position = UDim2.new(0.087878257, 0, 0.334543586, 0)
  131. Speed.Size = UDim2.new(0, 121, 0, 50)
  132. Speed.Font = Enum.Font.Cartoon
  133. Speed.Text = "Speed: On"
  134. Speed.TextColor3 = Color3.fromRGB(0, 0, 0)
  135. Speed.TextScaled = true
  136. Speed.TextSize = 14.000
  137. Speed.TextWrapped = true
  138. Speed.Visible = false
  139. Speed.MouseButton1Down:Connect(function()
  140. local player = game.Players.LocalPlayer.Character.Humanoid
  141.  
  142. Speed2.Visible = true
  143. Speed.Visible = false
  144. player.WalkSpeed = 16
  145. end)
  146.  
  147. Speed2.Name = "Speed"
  148. Speed2.Parent = More
  149. Speed2.BackgroundColor3 = Color3.fromRGB(178, 255, 236)
  150. Speed2.Position = UDim2.new(0.087878257, 0, 0.334543586, 0)
  151. Speed2.Size = UDim2.new(0, 121, 0, 50)
  152. Speed2.Font = Enum.Font.Cartoon
  153. Speed2.Text = "Speed: Off"
  154. Speed2.TextColor3 = Color3.fromRGB(0, 0, 0)
  155. Speed2.TextScaled = true
  156. Speed2.TextSize = 14.000
  157. Speed2.TextWrapped = true
  158. Speed2.Visible = true
  159. Speed2.MouseButton1Down:Connect(function()
  160. local player = game.Players.LocalPlayer.Character.Humanoid
  161.  
  162. Speed2.Visible = false
  163. Speed.Visible = true
  164. player.WalkSpeed = 70
  165. end)
  166.  
  167. Jump.Name = "Jump"
  168. Jump.Parent = More
  169. Jump.BackgroundColor3 = Color3.fromRGB(178, 255, 236)
  170. Jump.Position = UDim2.new(0.087878257, 0, 0.334543586, 85)
  171. Jump.Size = UDim2.new(0, 121, 0, 50)
  172. Jump.Font = Enum.Font.Cartoon
  173. Jump.Text = "Jump: On"
  174. Jump.TextColor3 = Color3.fromRGB(0, 0, 0)
  175. Jump.TextScaled = true
  176. Jump.TextSize = 14.000
  177. Jump.TextWrapped = true
  178. Jump.Visible = true
  179. Jump.MouseButton1Down:Connect(function()
  180. local player = game.Players.LocalPlayer.Character.Humanoid
  181.  
  182. Jump.Visible = false
  183. Jump2.Visible = true
  184. player.JumpPower = 40
  185. end)
  186.  
  187. Jump2.Name = "Jump"
  188. Jump2.Parent = More
  189. Jump2.BackgroundColor3 = Color3.fromRGB(178, 255, 236)
  190. Jump2.Position = UDim2.new(0.087878257, 0, 0.334543586, 85)
  191. Jump2.Size = UDim2.new(0, 121, 0, 50)
  192. Jump2.Font = Enum.Font.Cartoon
  193. Jump2.Text = "Jump: Off"
  194. Jump2.TextColor3 = Color3.fromRGB(0, 0, 0)
  195. Jump2.TextScaled = true
  196. Jump2.TextSize = 14.000
  197. Jump2.TextWrapped = true
  198. Jump2.Visible = true
  199. Jump2.MouseButton1Down:Connect(function()
  200. local player = game.Players.LocalPlayer.Character.Humanoid
  201.  
  202. Jump2.Visible = false
  203. Jump.Visible = true
  204. player.JumpPower = 140
  205. end)
  206.  
  207. Speed_2.Name = "Speed"
  208. Speed_2.Parent = More
  209. Speed_2.BackgroundColor3 = Color3.fromRGB(178, 255, 236)
  210. Speed_2.Position = UDim2.new(0.087878257, 0, 0.745171607, 0)
  211. Speed_2.Size = UDim2.new(0, 121, 0, 50)
  212. Speed_2.Font = Enum.Font.Cartoon
  213. Speed_2.Text = "CTRL + Click TP"
  214. Speed_2.TextColor3 = Color3.fromRGB(0, 0, 0)
  215. Speed_2.TextScaled = true
  216. Speed_2.TextSize = 14.000
  217. Speed_2.TextWrapped = true
  218.  
  219. MoreBtn.Name = "MoreBtn"
  220. MoreBtn.Parent = MainFrame
  221. MoreBtn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  222. MoreBtn.Position = UDim2.new(-0.00755766034, 0, 0.865944505, 0)
  223. MoreBtn.Size = UDim2.new(0, 79, 0, 55)
  224. MoreBtn.Font = Enum.Font.SourceSans
  225. MoreBtn.Text = "+"
  226. MoreBtn.TextColor3 = Color3.fromRGB(0, 0, 0)
  227. MoreBtn.TextScaled = true
  228. MoreBtn.TextSize = 50.000
  229. MoreBtn.TextWrapped = true
  230. MoreBtn.Visible = true
  231. MoreBtn.MouseButton1Down:Connect(function()
  232. More.Visible = true
  233. MoreBtn2.Visible = true
  234. MoreBtn.Visible = false
  235. end)
  236.  
  237. MoreBtn2.Name = "MoreBtn"
  238. MoreBtn2.Parent = MainFrame
  239. MoreBtn2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  240. MoreBtn2.Position = UDim2.new(-0.00755766034, 0, 0.865944505, 0)
  241. MoreBtn2.Size = UDim2.new(0, 79, 0, 55)
  242. MoreBtn2.Font = Enum.Font.SourceSans
  243. MoreBtn2.Text = "-"
  244. MoreBtn2.TextColor3 = Color3.fromRGB(0, 0, 0)
  245. MoreBtn2.TextScaled = true
  246. MoreBtn2.TextSize = 50.000
  247. MoreBtn2.TextWrapped = true
  248. MoreBtn2.Visible = false
  249. MoreBtn2.MouseButton1Down:Connect(function()
  250. More.Visible = false
  251. MoreBtn2.Visible = false
  252. MoreBtn.Visible = true
  253. end)
  254.  
  255.  
  256.  
  257. NoMap.Name = "NoMap"
  258. NoMap.Parent = MainFrame
  259. NoMap.BackgroundColor3 = Color3.fromRGB(129, 71, 255)
  260. NoMap.Position = UDim2.new(0.101391651, 0, 0.334543586, 0)
  261. NoMap.Size = UDim2.new(0, 200, 0, 50)
  262. NoMap.Font = Enum.Font.Cartoon
  263. NoMap.Text = "No Map"
  264. NoMap.TextColor3 = Color3.fromRGB(0, 0, 0)
  265. NoMap.TextScaled = true
  266. NoMap.TextSize = 14.000
  267. NoMap.TextWrapped = true
  268. NoMap.MouseButton1Down:Connect(function()
  269. game.Workspace.LoadedMap:Destroy()
  270. end)
  271.  
  272. PlayBtnColor.Name = "PlayBtnColor"
  273. PlayBtnColor.Parent = MainFrame
  274. PlayBtnColor.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  275. PlayBtnColor.Position = UDim2.new(0.15975751, 0, 0.525364876, 0)
  276. PlayBtnColor.Size = UDim2.new(0, 169, 0, 55)
  277. PlayBtnColor.Font = Enum.Font.SourceSans
  278. PlayBtnColor.Text = "PlayButton Color"
  279. PlayBtnColor.TextColor3 = Color3.fromRGB(0, 0, 0)
  280. PlayBtnColor.TextScaled = true
  281. PlayBtnColor.TextSize = 50.000
  282. PlayBtnColor.TextWrapped = true
  283. PlayBtnColor.MouseButton1Down:Connect(function()
  284. PlayBtnColor.Frame.Visible = not PlayBtnColor.Frame.Visible
  285. end)
  286.  
  287. Frame.Parent = PlayBtnColor
  288. Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  289. Frame.Position = UDim2.new(0, 0, 1, 0)
  290. Frame.Size = UDim2.new(0, 169, 0, 100)
  291.  
  292. Yellow.Name = "Yellow"
  293. Yellow.Parent = Frame
  294. Yellow.BackgroundColor3 = Color3.fromRGB(255, 255, 11)
  295. Yellow.Position = UDim2.new(0, 0, 0.489091039, 0)
  296. Yellow.Size = UDim2.new(0, 169, 0, 25)
  297. Yellow.Font = Enum.Font.SourceSans
  298. Yellow.Text = "Yellow"
  299. Yellow.TextColor3 = Color3.fromRGB(0, 0, 0)
  300. Yellow.TextScaled = true
  301. Yellow.TextSize = 14.000
  302. Yellow.TextWrapped = true
  303. Yellow.MouseButton1Down:Connect(function()
  304. game.Players.LocalPlayer.PlayerGui.MainMenu.Play.BorderColor3 = Color3.fromRGB(255, 255, 11)
  305. game.Players.LocalPlayer.PlayerGui.MainMenu.Play.TextColor3 = Color3.fromRGB(255, 255, 11)
  306. end)
  307.  
  308. Red.Name = "Red"
  309. Red.Parent = Frame
  310. Red.BackgroundColor3 = Color3.fromRGB(255, 55, 20)
  311. Red.Size = UDim2.new(0, 169, 0, 25)
  312. Red.Font = Enum.Font.SourceSans
  313. Red.Text = "Red"
  314. Red.TextColor3 = Color3.fromRGB(0, 0, 0)
  315. Red.TextScaled = true
  316. Red.TextSize = 14.000
  317. Red.TextWrapped = true
  318. Red.MouseButton1Down:Connect(function()
  319. game.Players.LocalPlayer.PlayerGui.MainMenu.Play.BorderColor3 = Color3.fromRGB(255, 55, 20)
  320. game.Players.LocalPlayer.PlayerGui.MainMenu.Play.TextColor3 = Color3.fromRGB(255, 55, 20)
  321. end)
  322.  
  323. Orange.Name = "Orange"
  324. Orange.Parent = Frame
  325. Orange.BackgroundColor3 = Color3.fromRGB(255, 126, 14)
  326. Orange.Position = UDim2.new(0, 0, 0.244545519, 0)
  327. Orange.Size = UDim2.new(0, 169, 0, 25)
  328. Orange.Font = Enum.Font.SourceSans
  329. Orange.Text = "Orange"
  330. Orange.TextColor3 = Color3.fromRGB(0, 0, 0)
  331. Orange.TextScaled = true
  332. Orange.TextSize = 14.000
  333. Orange.TextWrapped = true
  334. Orange.MouseButton1Down:Connect(function()
  335. game.Players.LocalPlayer.PlayerGui.MainMenu.Play.BorderColor3 = Color3.fromRGB(255, 126, 14)
  336. game.Players.LocalPlayer.PlayerGui.MainMenu.Play.TextColor3 = Color3.fromRGB(255, 126, 14)
  337. end)
  338.  
  339. Blue.Name = "Blue"
  340. Blue.Parent = Frame
  341. Blue.BackgroundColor3 = Color3.fromRGB(5, 38, 255)
  342. Blue.Position = UDim2.new(-5.58793545e-08, 0, 0.743636489, 0)
  343. Blue.Size = UDim2.new(0, 169, 0, 25)
  344. Blue.Font = Enum.Font.SourceSans
  345. Blue.Text = "Blue"
  346. Blue.TextColor3 = Color3.fromRGB(0, 0, 0)
  347. Blue.TextScaled = true
  348. Blue.TextSize = 14.000
  349. Blue.TextWrapped = true
  350. Blue.MouseButton1Down:Connect(function()
  351. game.Players.LocalPlayer.PlayerGui.MainMenu.Play.BorderColor3 = Color3.fromRGB(5, 38, 255)
  352. game.Players.LocalPlayer.PlayerGui.MainMenu.Play.TextColor3 = Color3.fromRGB(5, 38, 255)
  353. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement