Advertisement
Derek1017

Luapad

Jun 23rd, 2015
448
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.60 KB | None | 0 0
  1. --Scripted by AnimeWiki
  2.  
  3. local datastore = game:GetService("DataStoreService"):GetDataStore("sb_executer")
  4.  
  5.  
  6.  
  7. local player = owner or game:GetService("Players").LocalPlayer
  8.  
  9. if not datastore:GetAsync(player.Name) then
  10. data = datastore:SetAsync(player.Name,{})
  11. else
  12. data = datastore:GetAsync(player.Name)
  13. end
  14.  
  15. player.Character:WaitForChild("Humanoid")
  16.  
  17.  
  18. local q1 = Instance.new('ScreenGui',player:FindFirstChild("PlayerGui"))
  19. q1.Name = 'ScreenGui'
  20. q1.Archivable = true
  21. local q2 = Instance.new('Frame',q1)
  22. q2.BackgroundColor3 = Color3.new(1, 1, 1)
  23. q2.BackgroundTransparency = 1
  24. q2.BorderColor3 = Color3.new(1, 1, 1)
  25. q2.BorderSizePixel = 1
  26. q2.Name = 'Frame'
  27. q2.Position = UDim2.new(0,0,0.60000002384186,0)
  28. q2.Rotation = 0
  29. q2.Size = UDim2.new(1,0,0.40000000596046,0)
  30. q2.SizeConstraint = Enum.SizeConstraint.RelativeXY
  31. q2.Style = Enum.FrameStyle.Custom
  32. q2.Visible = true
  33. q2.ZIndex = 1
  34. q2.Archivable = true
  35. q2.ClipsDescendants = false
  36. q2.Draggable = false
  37. q2.Active = true
  38. local q3 = Instance.new('ScrollingFrame',q2)
  39. q3.BackgroundColor3 = Color3.new(1, 1, 1)
  40. q3.BackgroundTransparency = 0
  41. q3.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  42. q3.BorderSizePixel = 1
  43. q3.Name = 'ScrollingFrame'
  44. q3.Position = UDim2.new(0,0,0.050000000745058,0)
  45. q3.Rotation = 0
  46. q3.Size = UDim2.new(1,0,0.94999998807907,0)
  47. q3.SizeConstraint = Enum.SizeConstraint.RelativeXY
  48. q3.Visible = true
  49. q3.ZIndex = 1
  50. q3.Archivable = true
  51. q3.ClipsDescendants = true
  52. q3.Draggable = false
  53. q3.Active = false
  54. q3.BottomImage = 'rbxasset://textures/blackBkg_square.png'
  55. q3.CanvasPosition = Vector2.new(0, 0)
  56. q3.CanvasSize = UDim2.new(1,0,2,0)
  57. q3.ScrollBarThickness = 15
  58. q3.TopImage = 'rbxasset://textures/blackBkg_square.png'
  59. q3.MidImage = 'rbxasset://textures/blackBkg_square.png'
  60. q3.ScrollingEnabled = true
  61. local q4 = Instance.new('TextBox',q3)
  62. q4.BackgroundColor3 = Color3.new(1, 1, 1)
  63. q4.BackgroundTransparency = 1
  64. q4.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  65. q4.BorderSizePixel = 0
  66. q4.Name = 'TextBox'
  67. q4.Position = UDim2.new(0,65,0,0)
  68. q4.Rotation = 0
  69. q4.Size = UDim2.new(0.91000002622604,0,1,0)
  70. q4.SizeConstraint = Enum.SizeConstraint.RelativeXY
  71. q4.Visible = true
  72. q4.ZIndex = 1
  73. q4.Archivable = true
  74. q4.ClipsDescendants = false
  75. q4.Draggable = false
  76. q4.ClearTextOnFocus = false
  77. q4.MultiLine = true
  78. q4.Font = Enum.Font.SourceSans
  79. q4.FontSize = Enum.FontSize.Size18
  80. q4.Text = 'Hello world'
  81. q4.TextColor3 = Color3.new(0, 0, 0)
  82. q4.TextScaled = false
  83. q4.TextStrokeColor3 = Color3.new(0, 0, 0)
  84. q4.TextStrokeTransparency = 1
  85. q4.TextTransparency = 0
  86. q4.TextWrapped = true
  87. q4.TextXAlignment = Enum.TextXAlignment.Left
  88. q4.TextYAlignment = Enum.TextYAlignment.Top
  89. q4.Active = true
  90. local q5 = Instance.new('Frame',q3)
  91. q5.BackgroundColor3 = Color3.new(0.866667, 0.866667, 0.866667)
  92. q5.BackgroundTransparency = 0
  93. q5.BorderColor3 = Color3.new(0.866667, 0.866667, 0.866667)
  94. q5.BorderSizePixel = 1
  95. q5.Name = 'First'
  96. q5.Position = UDim2.new(0,0,0,0)
  97. q5.Rotation = 0
  98. q5.Size = UDim2.new(0,18,1,0)
  99. q5.SizeConstraint = Enum.SizeConstraint.RelativeXY
  100. q5.Style = Enum.FrameStyle.Custom
  101. q5.Visible = true
  102. q5.ZIndex = 3
  103. q5.Archivable = true
  104. q5.ClipsDescendants = false
  105. q5.Draggable = false
  106. q5.Active = false
  107. local q6 = Instance.new('Frame',q3)
  108. q6.BackgroundColor3 = Color3.new(0.905882, 0.905882, 0.905882)
  109. q6.BackgroundTransparency = 0
  110. q6.BorderColor3 = Color3.new(0.905882, 0.905882, 0.905882)
  111. q6.BorderSizePixel = 1
  112. q6.Name = 'Frame'
  113. q6.Position = UDim2.new(0,18,0,0)
  114. q6.Rotation = 0
  115. q6.Size = UDim2.new(0,16,1,0)
  116. q6.SizeConstraint = Enum.SizeConstraint.RelativeXY
  117. q6.Style = Enum.FrameStyle.Custom
  118. q6.Visible = true
  119. q6.ZIndex = 2
  120. q6.Archivable = true
  121. q6.ClipsDescendants = false
  122. q6.Draggable = false
  123. q6.Active = false
  124. local q7 = Instance.new('Frame',q3)
  125. q7.BackgroundColor3 = Color3.new(0.980392, 0.980392, 0.980392)
  126. q7.BackgroundTransparency = 0
  127. q7.BorderColor3 = Color3.new(0.980392, 0.980392, 0.980392)
  128. q7.BorderSizePixel = 1
  129. q7.Name = 'Frame'
  130. q7.Position = UDim2.new(0,36,0,0)
  131. q7.Rotation = 0
  132. q7.Size = UDim2.new(0,18,1,0)
  133. q7.SizeConstraint = Enum.SizeConstraint.RelativeXY
  134. q7.Style = Enum.FrameStyle.Custom
  135. q7.Visible = true
  136. q7.ZIndex = 1
  137. q7.Archivable = true
  138. q7.ClipsDescendants = false
  139. q7.Draggable = false
  140. q7.Active = false
  141. local q8 = Instance.new('Frame',q2)
  142. q8.BackgroundColor3 = Color3.new(0.470588, 0.470588, 0.470588)
  143. q8.BackgroundTransparency = 0
  144. q8.BorderColor3 = Color3.new(0.25098, 0.25098, 0.25098)
  145. q8.BorderSizePixel = 1
  146. q8.Name = 'Frame'
  147. q8.Position = UDim2.new(0,0,0,0)
  148. q8.Rotation = 0
  149. q8.Size = UDim2.new(1,0,0.050000000745058,0)
  150. q8.SizeConstraint = Enum.SizeConstraint.RelativeXY
  151. q8.Style = Enum.FrameStyle.Custom
  152. q8.Visible = true
  153. q8.ZIndex = 3
  154. q8.Archivable = true
  155. q8.ClipsDescendants = false
  156. q8.Draggable = false
  157. q8.Active = false
  158. local q9 = Instance.new('TextButton',q8)
  159. q9.BackgroundColor3 = Color3.new(0.215686, 0.592157, 0.0588235)
  160. q9.BackgroundTransparency = 0
  161. q9.BorderColor3 = Color3.new(0.215686, 0.592157, 0.0588235)
  162. q9.BorderSizePixel = 1
  163. q9.Name = 'TextButton'
  164. q9.Position = UDim2.new(0.89999997615814,0,0,0)
  165. q9.Rotation = 0
  166. q9.Size = UDim2.new(0.10000000149012,0,1,0)
  167. q9.SizeConstraint = Enum.SizeConstraint.RelativeXY
  168. q9.Style = Enum.ButtonStyle.Custom
  169. q9.Visible = true
  170. q9.ZIndex = 3
  171. q9.Archivable = true
  172. q9.ClipsDescendants = false
  173. q9.Draggable = false
  174. q9.Font = Enum.Font.SourceSans
  175. q9.FontSize = Enum.FontSize.Size14
  176. q9.Text = 'RUN'
  177. q9.TextColor3 = Color3.new(1, 1, 1)
  178. q9.TextScaled = false
  179. q9.TextStrokeColor3 = Color3.new(0, 0, 0)
  180. q9.TextStrokeTransparency = 1
  181. q9.TextTransparency = 0
  182. q9.TextWrapped = true
  183. q9.TextXAlignment = Enum.TextXAlignment.Center
  184. q9.TextYAlignment = Enum.TextYAlignment.Center
  185. q9.AutoButtonColor = true
  186. q9.Active = true
  187. q9.Modal = false
  188. q9.Selected = false
  189.  
  190.  
  191.  
  192.  
  193. local part = Instance.new("Part", player.Character)
  194. part.FormFactor = "Custom"
  195. part.Size = Vector3.new(26,16,.1)
  196. part.BrickColor = BrickColor.new("Institutional white")
  197. part.Locked = true
  198. part.Anchored = true
  199. part.CFrame = player.Character:FindFirstChild("Torso").CFrame *CFrame.new(0,5,-10) *CFrame.fromEulerAnglesXYZ(math.pi,0,math.pi)
  200. part.BottomSurface = "Smooth"
  201. part.TopSurface = "Smooth"
  202. part.Transparency = 1
  203. part.CanCollide = false
  204.  
  205. local surface = Instance.new("SurfaceGui", part)
  206. surface.CanvasSize = Vector2.new(1920,1080)
  207. surface.Enabled = true
  208. surface.Face = "Front"
  209. local backsurface = surface:Clone()
  210. backsurface.Face = "Back"
  211. backsurface.Parent = part
  212. local bframe = Instance.new("Frame", backsurface)
  213. bframe.BackgroundColor3 = Color3.new(255/255,255/255,255/255)
  214. bframe.BorderColor3 = Color3.new(255/255,255/255,255/255)
  215. bframe.Size = UDim2.new(1,0,1,0)
  216. local frame = q2:Clone()
  217. frame.Parent = surface
  218. frame.Size = UDim2.new(1,0,1,0)
  219. frame.Position = UDim2.new(0,0,0,0)
  220. frame.Frame:remove()
  221. frame.ScrollingFrame.Size = UDim2.new(1,0,1,0)
  222. frame.ScrollingFrame.Position = UDim2.new(0,0,0,0)
  223. frame.ScrollingFrame.TextBox.FontSize = "Size36"
  224. frame.ScrollingFrame.ScrollBarThickness = 0
  225. frame.ScrollingFrame.TextBox.Text = q4.Text
  226.  
  227.  
  228.  
  229. q9.MouseButton1Click:connect(function()
  230. loadstring(q4.Text)()  
  231. end)
  232.  
  233. q4.Text = tostring(datastore:GetAsync(player.Name)[1])
  234. frame.ScrollingFrame.TextBox.Text = q4.Text
  235.  
  236. --print(datastore:GetAsync(player.Name)[1])
  237.  
  238.  
  239.  
  240.  
  241. q4.Changed:connect(function(v)
  242. if v == "Text" then
  243. frame.ScrollingFrame.TextBox.Text = q4.Text
  244. end
  245. end)
  246.  
  247. q3.Changed:connect(function(v)
  248. if v == "CanvasPosition" then
  249. frame.ScrollingFrame.CanvasPosition = q3.CanvasPosition
  250. end
  251. end)
  252.  
  253. coroutine.wrap(function()
  254. while wait(5) do
  255. ypcall(function()  
  256. datastore:SetAsync(player.Name,{q4.Text})
  257. print("Saving..")
  258. end)
  259. end
  260. end)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement