Advertisement
AlbertsHere

[Leak] Ozfinity Hub Scripts 2

Feb 18th, 2019
181
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. Auto Mod
  3. Code:
  4. SawmillC = false
  5. Mouse = game.Players.LocalPlayer:GetMouse()
  6. _G.MAIN=Instance.new("ScreenGui",game.Players.LocalPlayer.PlayerGui)
  7. Instruction = Instance.new("TextLabel",_G.MAIN)
  8. Instruction.Position = UDim2.new(0,200,0,400)
  9. Instruction.Size = UDim2.new(0,100,0,50)
  10. Instruction.TextWrapped = true
  11. Instruction.TextScaled = true
  12. Instruction.Text = "'Q' to select a tree, Press P to select a sawmill, press Z to activate!"
  13. Instruction.Active = true
  14. Instruction.Draggable = true
  15. Instruction.ZIndex = 2
  16. Exit = Instance.new("TextButton",Instruction)
  17. Exit.Position=UDim2.new(1,0,0,0)
  18. Exit.Size = UDim2.new(0,30,0,30)
  19. Exit.Text = "Exit"
  20. Exit.MouseButton1Click:connect(function()
  21. _G.MAIN:Destroy()
  22. end)
  23.  
  24. Mouse.KeyDown:connect(function(key)
  25. if key:lower() == "q" then
  26. Treee = Mouse.Target
  27. elseif key:lower() == "p" then
  28. if Mouse.Target.Parent:FindFirstChild("BlockageAlert") then
  29. Sawmill = Mouse.Target.Parent
  30. else
  31. Sawmill=Mouse.Target.Parent.Parent
  32. end
  33. if Sawmill:FindFirstChild("BlockageAlert") and Sawmill:FindFirstChild("Owner") then
  34. SawmillC = true
  35. else
  36. SawmillC = false
  37. print"Something went wrong while setting the sawmill!"
  38. end
  39. elseif key:lower() == "z" then
  40. if Treee ~= nil then
  41. Mod(Treee)
  42. else
  43. print("Select tree with 'Q'!")
  44. end
  45. end
  46. end)
  47.  
  48. function Mod(SelectedPart)
  49. if SawmillC ~= true then
  50. print'Set the sawmill with "P"!'
  51. return
  52. end
  53. if SelectedPart.Parent:FindFirstChild("TreeClass") and SelectedPart.Parent:FindFirstChild("Owner") then
  54. print("Tree: "..SelectedPart.Parent.TreeClass.Value)
  55. Tree = SelectedPart.Parent
  56. Tree.PrimaryPart = SelectedPart
  57. game.ReplicatedStorage.Interaction.Verify:FireServer('Item owned by player',Tree)
  58. Tree:SetPrimaryPartCFrame(Sawmill.Particles.CFrame)
  59. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(Tree)
  60. end
  61. end
Advertisement
RAW Paste Data Copied
Advertisement