bardhi_08

Kick Off script 1

May 8th, 2020
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.89 KB | None | 0 0
  1.  
  2. -- Credits to OMGcr7ronaldo
  3.  
  4. --https://v3rmillion.net/member.php?action=profile&uid=951123
  5.  
  6. gui = Instance.new("ScreenGui",game.CoreGui)
  7. gui.Name = "CustomizableGui"
  8. gui.ResetOnSpawn = false
  9.  
  10. box = Instance.new("ScrollingFrame",gui)
  11. box.Name = "Box"
  12. box.Size = UDim2.new(0,320,0,150)
  13. box.Position = UDim2.new(0,0,0,300)
  14. box.BackgroundColor3 = Color3.new(0,0,0) -- What you want the color to be in R,G,B (you can keep it as it already is)
  15. box.BackgroundTransparency = 0.60 -- What you want the transparency to be
  16. box.BorderSizePixel = 0
  17. box.ScrollBarThickness = 0
  18. box.Active = true
  19. box.Draggable = true -- If you want the box to be draggable or not (recommended to keep true)
  20.  
  21. top = Instance.new("TextLabel",box)
  22. top.Name = "TopBar"
  23. top.Size = UDim2.new(0,320,0,25)
  24. top.BackgroundColor3 = Color3.new(0,255,255) -- Color of the top bar
  25. top.BackgroundTransparency = .4 -- Transparency of the bar
  26. top.BorderSizePixel = 0
  27. top.Font = "SourceSans"
  28. top.FontSize = "Size14"
  29. top.Text = "backyard's kick off gui" -- Change it to what you want the top bar to say (or keep it blank)
  30. top.TextColor3 = Color3.new(0,0,0)
  31.  
  32. pos1 = 25
  33. function c1(txt) -- This is a function that creates buttons!
  34. local a = Instance.new("TextButton",box)
  35. a.Name = (txt)
  36. a.Size = UDim2.new(0,150,0,40)
  37. a.Position = UDim2.new(0,15,0,pos1)
  38. a.BackgroundColor3 = Color3.new(255,255,255)
  39. a.BackgroundTransparency = 40
  40. a.BorderSizePixel = 0
  41. a.Font = "SourceSansLight"
  42. a.FontSize = "Size24"
  43. a.Text = (txt)
  44. a.TextColor3 = Color3.new(52,72,255)
  45. pos1 = pos1+40
  46. return a
  47. end
  48.  
  49. pos2 = 25
  50. function c2(txt)
  51. local a = Instance.new("TextButton",box)
  52. a.Name = (txt)
  53. a.Size = UDim2.new(0,150,0,40)
  54. a.Position = UDim2.new(0,170,0,pos2)
  55. a.BackgroundColor3 = Color3.new(255,255,255)
  56. a.BackgroundTransparency = 40
  57. a.BorderSizePixel = 0
  58. a.Font = "SourceSansLight"
  59. a.FontSize = "Size24"
  60. a.Text = (txt)
  61. a.TextColor3 = Color3.new(52,72,255)
  62. pos2 = pos2+40
  63. return a
  64. end
  65.  
  66. prnt2 = c1("INTERCEPT!")
  67.  
  68. prnt = c2("GOAL!")
  69.  
  70. prnt.MouseButton1Down:connect(function()
  71.  
  72.  
  73. workspace.MapHolder:GetChildren()[1].BlueGoal.Position = game.Players.LocalPlayer.Character.HumanoidRootPart.Position
  74. workspace.MapHolder:GetChildren()[1].RedGoal.Position = game.Players.LocalPlayer.Character.HumanoidRootPart.Position
  75. workspace.SoccerBall.Position = game.Players.LocalPlayer.Character["Right Leg"].Position
  76. game.Players.LocalPlayer.Character.Humanoid.Jump = true
  77.  
  78. end)
  79.  
  80. prnt2.MouseButton1Down:connect(function()
  81.  
  82.  
  83. local A_1 = "Kick"
  84. local A_2 = "Trickshot"
  85. local A_3 = game:GetService("Workspace").SoccerBall
  86. local A_4 = 58.777630615234
  87. local A_5 = Vector3.new(9.64690495, 82.8000031, -70.1397018)
  88. local A_6 = Vector3.new(25.7804337, -56.2313538, -428.990417)
  89. local A_7 = Vector3.new(34.4858704, -89.2313538, -492.285004)
  90. local Event = game:GetService("ReplicatedStorage").MasterKey
  91. Event:FireServer(A_1, A_2, A_3, A_4, A_5, A_6, A_7)
  92.  
  93. end)
Add Comment
Please, Sign In to add comment