Advertisement
AlbertsHere

[Leak] Ozfinity Hub Scripts

Feb 18th, 2019
255
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. The Gui is crap so i thought i just leak it.
  2.  
  3. Auto Dupe
  4. Code:
  5. Screen = Instance.new("ScreenGui",game.Players.LocalPlayer.PlayerGui)
  6. Scrolling = Instance.new("ScrollingFrame",Screen)
  7. Scrolling.Size = UDim2.new(0,300,0,500)
  8. Scrolling.CanvasSize = UDim2.new(0,300,3,0)
  9. Exit = Instance.new("TextButton", Scrolling)
  10. Exit.Size = UDim2.new(0,30,0,20)
  11. Exit.Position = UDim2.new(1,-40,0,0)
  12. Exit.Text = "Exit"
  13. DontTP = Instance.new("TextButton", Scrolling)
  14. DontTP.Size = UDim2.new(0,40,0,40)
  15. DontTP.Position = UDim2.new(1,-60,0,50)
  16. DontTP.Text = "Don't TP back"
  17. DontTP.TextWrapped = true
  18. DontTPVar = false
  19. sendNotice = game.ReplicatedStorage.Notices.SendUserNotice
  20. DontTP.MouseButton1Click:connect(function()
  21. DontTPVar = true
  22. end)
  23. Exit.MouseButton1Click:connect(function()
  24. Screen:Destroy()
  25. end)
  26. g = 0
  27. Sniggle = false
  28. function InitButton(ButtonName)
  29. TreeClick = TreeButton.MouseButton1Click:Connect(function()
  30. if game.Players.LocalPlayer.CurrentSaveSlot ~= -1 then
  31. TreeClick:Disconnect()
  32. Scrolling.Visible = false
  33. game.Players.LocalPlayer.PlayerGui.MenuGUI.Open.Visible = false
  34. TP(ButtonName)
  35. else
  36. sendNotice:Fire("You must load/save first!")
  37. end
  38. end)
  39. end
  40. gg = {}
  41. OpenMenu = game.Players.LocalPlayer.PlayerGui.MenuGUI.Open.Changed:connect(function()
  42. if game.Players.LocalPlayer.PlayerGui.MenuGUI.Open.Visible == true then
  43. game.Players.LocalPlayer.PlayerGui.MenuGUI.Open.Visible = false
  44. end
  45. end)
  46. function Start()
  47. Sniggle = true
  48. for i,v in pairs(game.Workspace.PlayerModels:GetChildren()) do
  49. if v:FindFirstChild("Owner") and v.Owner.Value == game.Players.LocalPlayer then
  50. if v:FindFirstChild("TreeClass") then
  51. if Scrolling:FindFirstChild(v.TreeClass.Value) then
  52. if not gg[i] then
  53. Scrolling[v.TreeClass.Value.." Value"].Value = Scrolling[v.TreeClass.Value.." Value"].Value+1
  54. Scrolling[v.TreeClass.Value].Text = v.TreeClass.Value.." ("..Scrolling[v.TreeClass.Value.." Value"].Value..")"
  55. end
  56. else
  57. g = g+1
  58. TreeButton = Instance.new("TextButton",Scrolling)
  59. TreeButton.Size = UDim2.new(0,100,0,50)
  60. TreeButton.Position = UDim2.new(0,10,0,70*g)
  61. TreeButton.Name = v.TreeClass.Value
  62. TreeButton.Text = v.TreeClass.Value.." (1)"
  63. InitButton(TreeButton)
  64. TreeVal = Instance.new("NumberValue",Scrolling)
  65. TreeVal.Name = v.TreeClass.Value.." Value"
  66. TreeVal.Value = 1
  67. gg[i] = v.TreeClass.Value
  68. end
  69. end
  70. end
  71. end
  72. end
  73. if not Sniggle then
  74. Start()
  75. end
  76. --[[game.Workspace.PlayerModels.ChildAdded:connect(function(Item)
  77. Item:WaitForChild("Owner")
  78. if Item.Owner.Value == game.Players.LocalPlayer then
  79. Start()
  80. end
  81. end)]]
  82. game.Workspace.PlayerModels.ChildRemoved:connect(function(Item)
  83. if Item:FindFirstChild("Owner") and Item.Owner.Value == game.Players.LocalPlayer and Item:FindFirstChild("TreeClass") and Scrolling:FindFirstChild(Item.TreeClass.Value.." Value") then
  84. Scrolling[Item.TreeClass.Value.." Value"].Value = Scrolling[Item.TreeClass.Value.." Value"].Value-1
  85. if Scrolling[Item.TreeClass.Value.." Value"].Value == 0 then
  86. Scrolling[Item.TreeClass.Value]:Destroy()
  87. Scrolling[Item.TreeClass.Value.." Value"]:Destroy()
  88. else
  89. Scrolling[Item.TreeClass.Value].Text = Item.TreeClass.Value.." ("..Scrolling[Item.TreeClass.Value.." Value"].Value..")"
  90. end
  91. end
  92. end)
  93.  
  94. function TP(Name)
  95. sendNotice:Fire("Click on a whitelisted base")
  96. local ButtonPress
  97. ButtonPress = game.Players.LocalPlayer:GetMouse().Button1Down:Connect(function()
  98. Square = game.Players.LocalPlayer:GetMouse().Target
  99. if ((Square.Name == "OriginSquare" or Square.Name == "Square") and Square.Parent.Owner.Value ~= game.Players.LocalPlayer and Square.Parent.Owner.Value ~= nil) then
  100. ButtonPress:Disconnect()
  101. sendNotice:Fire("Auto Whitelisted player: "..Square.Parent.Owner.Value.Name,0.8)
  102. game.ReplicatedStorage.Interaction.ClientSetListPlayer:InvokeServer(game.Players.LocalPlayer.WhitelistFolder,Square.Parent.Owner.Value,true)
  103. game.ReplicatedStorage.LoadSaveRequests.RequestSave:InvokeServer(game.Players.LocalPlayer.CurrentSaveSlot.Value)
  104. local success, errorMessage = game.ReplicatedStorage.LoadSaveRequests.RequestLoad:InvokeServer(game.Players.LocalPlayer.CurrentSaveSlot.Value,game.Players.LocalPlayer)
  105. if success then
  106. print'Initial Reload Success'
  107. sendNotice:Fire("Reload success", 0.8)
  108. game.Players.LocalPlayer.CurrentSaveSlot.RobloxLocked = true
  109. game.Players.LocalPlayer.CurrentSaveSlot.Set.RobloxLocked = true
  110. for i,v in pairs(game.Workspace.PlayerModels:GetChildren()) do
  111. print'TPing'
  112. if v:FindFirstChild("TreeClass") and v.TreeClass.Value == Name and v.Owner.Value == game.Players.LocalPlayer then
  113. v:MoveTo(Square.Position)
  114. v.Name = "TpMe"
  115. for i=1,10 do
  116. game:GetService("RunService").RenderStepped:wait()
  117. for i=1,10 do
  118. v.WoodSection.CFrame = CFrame.new(Vector3.new(Square.Position.X,Square.Position.Y+5,Square.Position.Z))*CFrame.Angles(math.rad(90),0,0)
  119. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(v)
  120. end
  121. end
  122. end
  123. end
  124. Wait = 0
  125. while Wait < 60 do
  126. Wait = Wait + 1
  127. sendNotice:Fire("Waiting: "..60-Wait,1)
  128. wait(1)
  129. end
  130. local succes, errormessage = game.ReplicatedStorage.LoadSaveRequests.RequestLoad:InvokeServer(game.Players.LocalPlayer.CurrentSaveSlot.Value,game.Players.LocalPlayer)
  131. if succes then
  132. sendNotice:Fire("Reload success", 0.8)
  133. game.Players.LocalPlayer.CurrentSaveSlot.RobloxLocked = false
  134. game.Players.LocalPlayer.CurrentSaveSlot.Set.RobloxLocked = false
  135. if not DontTPVar then
  136. DontTPVar = false
  137. for i,v in pairs(game.Workspace.Properties:GetChildren()) do
  138. if v.Owner and v.Owner.Value == game.Players.LocalPlayer and v:FindFirstChild("OriginSquare") then
  139. Square = v.OriginSquare
  140. for i,v in pairs(game.Workspace.PlayerModels:GetChildren()) do
  141. if v.Name == "TpMe" then
  142. v.Name = "Model"
  143. print'Secondary Reload Success'
  144. game.Players.LocalPlayer.CurrentSaveSlot.RobloxLocked = false
  145. game.Players.LocalPlayer.CurrentSaveSlot.Set.RobloxLocked = false
  146. game.ReplicatedStorage.Interaction.ClientRequestOwnership:FireServer(v)
  147. v:MoveTo(Square.Position)
  148. for i=1,10 do
  149. game:GetService("RunService").RenderStepped:wait()
  150. for i=1,10 do
  151. v.WoodSection.CFrame = (CFrame.new(Vector3.new(Square.Position.X,Square.Position.Y+5,Square.Position.Z))*CFrame.Angles(math.rad(90),0,0))
  152. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(v)
  153. end
  154. end
  155. end
  156. end
  157. end
  158. end
  159. end
  160. OpenMenu:Disconnect()
  161. sendNotice:Fire("Duping Done, if you're going to dupe again, you must reload.")
  162. Scrolling.Visible = true
  163. game.Players.LocalPlayer.PlayerGui.MenuGUI.Open.Visible = true
  164. Start()
  165. else
  166. print('Secondary Reload Error: '..errormessage)
  167. sendNotice:Fire(errormessage)
  168. end
  169. else
  170. OOF = true
  171. while OOF do
  172. wait(0.5)
  173. local _,Fail = game.ReplicatedStorage.LoadSaveRequests.RequestLoad:InvokeServer(game.Players.LocalPlayer.CurrentSaveSlot.Value,game.Players.LocalPlayer)
  174. print(string.sub(Fail,49,50))
  175. if tonumber(string.sub(Fail,49,50)) == 1 then
  176. OOF = false
  177. end
  178. print('Initial Reload Error: '..Fail)
  179. Deb = true
  180. sendNotice:Fire("Wait "..string.sub(Fail,49,50),1)
  181. end
  182. if Deb then
  183. Deb = false
  184. TP(Name)
  185. end
  186. end
  187. else
  188. sendNotice:Fire("Something went wrong! Try re-executing.")
  189. game.Players.LocalPlayer.PlayerGui.MenuGUI.Open.Visible = true
  190. end
  191.  
  192. end)
  193.  
  194. end
  195. --game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer()
  196. --v:MoveTo(game.Players.LocalPlayer.Character.Torso.Position)
  197.  
  198. --game.Players.LocalPlayer.PlayerGui.ScreenGui:Destroy()
Advertisement
RAW Paste Data Copied
Advertisement