Advertisement
Guest User

Untitled

a guest
Mar 28th, 2020
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.29 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local Library = {}
  7.  
  8. function Library:CreateMain()
  9.  
  10. local ScreenGui = Instance.new("ScreenGui")
  11. local Frame = Instance.new("Frame")
  12. local UIListLayout = Instance.new("UIListLayout")
  13.  
  14. ScreenGui.Parent = game:GetService("CoreGui")
  15. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  16.  
  17. Frame.Parent = ScreenGui
  18. Frame.BackgroundColor3 = Color3.fromRGB(72, 72, 72)
  19. Frame.Position = UDim2.new(0.317575783, 0, 0.0877796933, 0)
  20. Frame.Size = UDim2.new(0, 233, 0, 412)
  21.  
  22. UIListLayout.Parent = Frame
  23. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  24.  
  25. local GamerLibrary = {}
  26.  
  27. function GamerLibrary:NewButton(name)
  28. local TextButton = Instance.new("TextButton")
  29.  
  30. TextButton.Parent = Frame
  31. TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  32. TextButton.Size = UDim2.new(0, 200, 0, 50)
  33. TextButton.Font = Enum.Font.SourceSans
  34. TextButton.Text = name
  35. TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  36. TextButton.TextScaled = true
  37. TextButton.TextSize = 14.000
  38. TextButton.TextWrapped = true
  39. end
  40.  
  41. return GamerLibrary;
  42. end
  43.  
  44. return Library;
  45.  
  46. --Properties:
  47.  
  48. TpShazam.MouseButton1Click:Connect(function()
  49. player.Character.HumanoidRootPart.CFrame = game.Workspace.NPC.Shazan.Head.CFrame
  50. end)
  51.  
  52. TpSell.MouseButton1Click:Connect(function()
  53. player.Character.HumanoidRootPart.CFrame = game.Workspace.Area.Sell.CFrame
  54. end)
  55.  
  56. TpWeaponShop.MouseButton1Click:Connect(function()
  57. player.Character.HumanoidRootPart.CFrame = game.Workspace.Area.Shop.CFrame
  58. end)
  59.  
  60. TpAbilityShop.MouseButton1Click:Connect(function()
  61. player.Character.HumanoidRootPart.CFrame = game.Workspace.Area.Shop2.CFrame
  62. end)
  63.  
  64. TpDailyReward.MouseButton1Click:Connect(function()
  65. player.Character.HumanoidRootPart.CFrame = game.Workspace.Area.Daily.CFrame
  66. end)
  67.  
  68. AutoAttack.MouseButton1Click:Connect(function()
  69. while wait() do
  70. game:GetService("ReplicatedStorage").Assets.Remotes.Attack:FireServer("Primary" , Workspace.Monsters:FindFirstChild('UT',true), CFrame.new())
  71. end
  72. end)
  73.  
  74. BringMonster.MouseButton1Click:Connect(function()
  75. while wait() do
  76. game.Workspace.Monsters.Seahorse.HumanoidRootPart.Position = game.Players.LocalPlayer.Character.Head.Position + Vector3.new(0,10,5)
  77. end
  78. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement