DanPanMan

Skate Park 🛹 Server Sided GUI

May 25th, 2020
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.86 KB | None | 0 0
  1. -- game: https://www.roblox.com/games/4850718823/Skate-Park-TRICKS-BETA
  2.  
  3. local Chat = Instance.new("ScreenGui")
  4. local bg = Instance.new("ImageButton")
  5. local exit = Instance.new("TextButton")
  6. local title = Instance.new("TextLabel")
  7. local soundlabel = Instance.new("TextLabel")
  8. local tricklabel = Instance.new("TextLabel")
  9. local sound = Instance.new("ImageButton")
  10. local x = Instance.new("TextLabel")
  11. local trick = Instance.new("ImageButton")
  12. local x2 = Instance.new("TextLabel")
  13.  
  14.  
  15. Chat.Name = "Chat"
  16. Chat.Parent = game:GetService("CoreGui")
  17.  
  18. bg.Name = "bg"
  19. bg.Parent = Chat
  20. bg.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  21. bg.BackgroundTransparency = 1.000
  22. bg.Position = UDim2.new(0.364406765, 0, 0.277777791, 0)
  23. bg.Size = UDim2.new(0, 352, 0, 271)
  24. bg.Image = "rbxassetid://2790390993"
  25. bg.ScaleType = Enum.ScaleType.Slice
  26. bg.SliceCenter = Rect.new(16, 16, 240, 240)
  27.  
  28. exit.Name = "exit"
  29. exit.Parent = bg
  30. exit.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  31. exit.BackgroundTransparency = 1.000
  32. exit.BorderSizePixel = 0
  33. exit.Position = UDim2.new(0.90625, 0, 0.0405904055, 0)
  34. exit.Size = UDim2.new(0, 20, 0, 27)
  35. exit.Font = Enum.Font.ArialBold
  36. exit.Text = "X"
  37. exit.TextColor3 = Color3.fromRGB(0, 0, 0)
  38. exit.TextScaled = true
  39. exit.TextSize = 14.000
  40. exit.TextTransparency = 0.400
  41. exit.TextWrapped = true
  42. exit.MouseEnter:Connect(function()
  43.         for i = 0.4, 0, -.1 do --fades in
  44.         exit.TextTransparency = i
  45.         wait()
  46.     end
  47. end)
  48. exit.MouseLeave:Connect(function()
  49.         for i = 0, .4, .1 do --fades out
  50.         exit.TextTransparency = i
  51.         wait()
  52.     end
  53. end)
  54. exit.MouseButton1Click:Connect(function()
  55.     Chat:Destroy()
  56. end)
  57.  
  58.  
  59. title.Name = "title"
  60. title.Parent = bg
  61. title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  62. title.BackgroundTransparency = 1.000
  63. title.BorderSizePixel = 0
  64. title.Position = UDim2.new(0.215909094, 0, 0, 0)
  65. title.Size = UDim2.new(0, 200, 0, 50)
  66. title.Font = Enum.Font.GothamBold
  67. title.Text = "SS Spam"
  68. title.TextColor3 = Color3.fromRGB(0, 0, 0)
  69. title.TextSize = 25.000
  70.  
  71. soundlabel.Name = "soundlabel"
  72. soundlabel.Parent = bg
  73. soundlabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  74. soundlabel.BackgroundTransparency = 1.000
  75. soundlabel.BorderSizePixel = 0
  76. soundlabel.Position = UDim2.new(0.03125, 0, 0.335793346, 0)
  77. soundlabel.Size = UDim2.new(0, 200, 0, 50)
  78. soundlabel.Font = Enum.Font.GothamBold
  79. soundlabel.Text = "Sound Spam (Server Sided)"
  80. soundlabel.TextColor3 = Color3.fromRGB(0, 0, 0)
  81. soundlabel.TextSize = 14.000
  82.  
  83. tricklabel.Name = "tricklabel"
  84. tricklabel.Parent = bg
  85. tricklabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  86. tricklabel.BackgroundTransparency = 1.000
  87. tricklabel.BorderSizePixel = 0
  88. tricklabel.Position = UDim2.new(0.03125, 0, 0.564575672, 0)
  89. tricklabel.Size = UDim2.new(0, 200, 0, 50)
  90. tricklabel.Font = Enum.Font.GothamBold
  91. tricklabel.Text = "Trick Spam (Server Sided)"
  92. tricklabel.TextColor3 = Color3.fromRGB(0, 0, 0)
  93. tricklabel.TextSize = 15.000
  94.  
  95.  
  96.  
  97. x.Name = "x"
  98. x.Parent = sound
  99. x.AnchorPoint = Vector2.new(0.5, 0.5)
  100. x.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  101. x.BackgroundTransparency = 1.000
  102. x.BorderSizePixel = 0
  103. x.Position = UDim2.new(0.5, 0, 0.5, 0)
  104. x.Size = UDim2.new(1, -5, 1, -5)
  105. x.Font = Enum.Font.GothamSemibold
  106. x.Text = "X"
  107. x.TextColor3 = Color3.fromRGB(255, 255, 255)
  108. x.TextSize = 14.000
  109. x.TextTransparency = 1
  110.  
  111. sound.Name = "sound"
  112. sound.Parent = bg
  113. sound.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  114. sound.BackgroundTransparency = 1.000
  115. sound.Position = UDim2.new(0.727272749, 0, 0.369003683, 0)
  116. sound.Size = UDim2.new(0, 63, 0, 31)
  117. sound.Image = "rbxassetid://2790389767"
  118. sound.ImageColor3 = Color3.fromRGB(35, 35, 35)
  119. sound.ScaleType = Enum.ScaleType.Slice
  120. sound.SliceCenter = Rect.new(8, 8, 248, 248)
  121. local togglesound = false
  122. sound.MouseButton1Click:Connect(function()
  123.     if togglesound == false then
  124.                 for i = 1, 0, -.1 do --fades in
  125.         x.TextTransparency = i
  126.         wait()
  127.     end
  128.     togglesound = true
  129.     else
  130.         for i = 0, 1, .1 do --fades out
  131.         x.TextTransparency = i
  132.         wait()
  133.     end
  134.     togglesound = false
  135.     end
  136. end)
  137. sound.MouseButton1Click:Connect(function()
  138. if _G.Enabled then
  139. _G.Enabled = false
  140. else
  141. while _G.Enabled do wait(0.001)
  142. local args = {
  143. [1] = "ollie2",
  144. }
  145.  
  146. game:GetService("Players").LocalPlayer.Character.plr_282028881.SkateboardPlatform.Remotes.Sound:FireServer(unpack(args))
  147. end
  148. end
  149. end)
  150.  
  151. x2.Name = "x2"
  152. x2.Parent = trick
  153. x2.AnchorPoint = Vector2.new(0.5, 0.5)
  154. x2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  155. x2.BackgroundTransparency = 1.000
  156. x2.BorderSizePixel = 0
  157. x2.Position = UDim2.new(0.5, 0, 0.5, 0)
  158. x2.Size = UDim2.new(1, -5, 1, -5)
  159. x2.Font = Enum.Font.GothamSemibold
  160. x2.Text = "X"
  161. x2.TextColor3 = Color3.fromRGB(255, 255, 255)
  162. x2.TextSize = 14.000
  163. x2.TextTransparency = 1
  164.  
  165. trick.Name = "trick"
  166. trick.Parent = bg
  167. trick.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  168. trick.BackgroundTransparency = 1.000
  169. trick.Position = UDim2.new(0.727272749, 0, 0.59778595, 0)
  170. trick.Size = UDim2.new(0, 63, 0, 31)
  171. trick.Image = "rbxassetid://2790389767"
  172. trick.ImageColor3 = Color3.fromRGB(35, 35, 35)
  173. trick.ScaleType = Enum.ScaleType.Slice
  174. trick.SliceCenter = Rect.new(8, 8, 248, 248)
  175. local toggletrick = false
  176. trick.MouseButton1Click:Connect(function()
  177.     if toggletrick == false then
  178.         for i = 1, 0, -.1 do --fades in
  179.             x2.TextTransparency = i
  180.             wait()
  181.         end
  182.     toggletrick = true
  183.     else
  184.         for i = 0, 1, .1 do --fades out
  185.             x2.TextTransparency = i
  186.             wait()
  187.         end
  188.     toggletrick = false
  189.     end
  190. end)
  191.  
  192.  
  193. trick.MouseButton1Click:Connect(function()
  194. if _G.Enabled then
  195. _G.Enabled = false
  196. else
  197. while _G.Enabled do wait(0.001)
  198. local args = {
  199.     [1] = "heelunder",
  200. }
  201.  
  202. game:GetService("Players").LocalPlayer.Character.plr_282028881.SkateboardPlatform.Remotes.Trick:FireServer(unpack(args))
  203. end
  204. end
  205. end)
  206.  
  207. local Frame = bg
  208.  
  209. function dragify(Frame)
  210. dragToggle = nil
  211. dragSpeed = .25 -- You can edit this.
  212. dragInput = nil
  213. dragStart = nil
  214. dragPos = nil
  215.  
  216. function updateInput(input)
  217. Delta = input.Position - dragStart
  218. Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
  219. game:GetService("TweenService"):Create(Frame, TweenInfo.new(.25), {Position = Position}):Play()
  220. end
  221.  
  222. Frame.InputBegan:Connect(function(input)
  223. if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) then
  224. dragToggle = true
  225. dragStart = input.Position
  226. startPos = Frame.Position
  227. input.Changed:Connect(function()
  228. if (input.UserInputState == Enum.UserInputState.End) then
  229. dragToggle = false
  230. end
  231. end)
  232. end
  233. end)
  234.  
  235. Frame.InputChanged:Connect(function(input)
  236. if (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then
  237. dragInput = input
  238. end
  239. end)
  240.  
  241. game:GetService("UserInputService").InputChanged:Connect(function(input)
  242. if (input == dragInput and dragToggle) then
  243. updateInput(input)
  244. end
  245. end)
  246. end
  247.  
  248. dragify(Frame)
Add Comment
Please, Sign In to add comment