Advertisement
Exploiter3030

MOTG GUI by me

Feb 17th, 2019
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.36 KB | None | 0 0
  1. -- Instances:
  2. local ScreenGui = Instance.new("ScreenGui")
  3. local Frame = Instance.new("Frame")
  4. local itemname = Instance.new("TextBox")
  5. local ID = Instance.new("TextBox")
  6. local spawn = Instance.new("TextButton")
  7. local play = Instance.new("TextButton")
  8. --Properties:
  9. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  10. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  11.  
  12. Frame.Parent = ScreenGui
  13. Frame.BackgroundColor3 = Color3.new(1, 0, 0.0156863)
  14. Frame.Position = UDim2.new(0.710766435, 0, 0.370558381, 0)
  15. Frame.Size = UDim2.new(0, 260, 0, 136)
  16. Frame.Active = true
  17. Frame.Draggable = true
  18.  
  19. itemname.Name = "itemname"
  20. itemname.Parent = Frame
  21. itemname.BackgroundColor3 = Color3.new(0.231373, 0, 1)
  22. itemname.Size = UDim2.new(0, 124, 0, 39)
  23. itemname.Font = Enum.Font.SourceSans
  24. itemname.Text = "Item Name"
  25. itemname.TextColor3 = Color3.new(0, 0, 0)
  26. itemname.TextSize = 14
  27.  
  28. ID.Name = "ID"
  29. ID.Parent = Frame
  30. ID.BackgroundColor3 = Color3.new(0.231373, 0, 1)
  31. ID.Position = UDim2.new(0.523076952, 0, 0, 0)
  32. ID.Size = UDim2.new(0, 124, 0, 39)
  33. ID.Font = Enum.Font.SourceSans
  34. ID.Text = "Song ID"
  35. ID.TextColor3 = Color3.new(0, 0, 0)
  36. ID.TextSize = 14
  37.  
  38. spawn.Name = "spawn"
  39. spawn.Parent = Frame
  40. spawn.BackgroundColor3 = Color3.new(0.231373, 0, 1)
  41. spawn.Position = UDim2.new(0, 0, 0.449152529, 0)
  42. spawn.Size = UDim2.new(0, 124, 0, 50)
  43. spawn.Font = Enum.Font.SourceSans
  44. spawn.Text = "Spawn Item"
  45. spawn.TextColor3 = Color3.new(0, 0, 0)
  46. spawn.TextSize = 20
  47. spawn.MouseButton1Click:connect(function()
  48. local p = game.Players.LocalPlayer.Character.Head.Position
  49. local A_1 = itemname.Text
  50. local A_2 = Vector3.new(p.x, p.y, p.z) + Vector3.new(0, 2, 0)
  51. local Event = game:GetService("ReplicatedStorage").Resources.Remotes.MakeItem
  52. Event:FireServer(A_1, A_2)
  53. end)
  54.  
  55. play.Name = "play"
  56. play.Parent = Frame
  57. play.BackgroundColor3 = Color3.new(0.231373, 0, 1)
  58. play.Position = UDim2.new(0.523076952, 0, 0.449152529, 0)
  59. play.Size = UDim2.new(0, 124, 0, 50)
  60. play.Font = Enum.Font.SourceSans
  61. play.Text = "Play Song"
  62. play.TextColor3 = Color3.new(0, 0, 0)
  63. play.TextSize = 20
  64. play.MouseButton1Click:connect(function()
  65. for i,v in pairs(game.Players:GetPlayers()) do
  66. local A_1 = "rbxassetid://" ..ID.Text
  67. local A_2 = v.Character.HumanoidRootPart
  68. local Event = game:GetService("ReplicatedStorage").Resources.Remotes.PlaySound
  69. Event:FireServer(A_1, A_2)
  70. end
  71. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement