Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Instances:
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local Item = Instance.new("TextBox")
- local Song = Instance.new("TextBox")
- local Spawn = Instance.new("TextButton")
- local Play = Instance.new("TextButton")
- --Properties:
- ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame.Position = UDim2.new(0.802007258, 0, 0.337563455, 0)
- Frame.Size = UDim2.new(0, 154, 0, 179)
- Frame.Active = true
- Frame.Draggable = true
- Item.Name = "Item"
- Item.Parent = Frame
- Item.BackgroundColor3 = Color3.new(1, 0, 0.0156863)
- Item.Size = UDim2.new(0, 154, 0, 46)
- Item.Font = Enum.Font.SourceSans
- Item.Text = "Item Name"
- Item.TextColor3 = Color3.new(0, 0, 0)
- Item.TextSize = 14
- Item.Draggable = true
- Song.Name = "Song"
- Song.Parent = Frame
- Song.BackgroundColor3 = Color3.new(1, 0, 0.0156863)
- Song.Position = UDim2.new(0, 0, 0.25698325, 0)
- Song.Size = UDim2.new(0, 154, 0, 46)
- Song.Font = Enum.Font.SourceSans
- Song.Text = "Song ID"
- Song.TextColor3 = Color3.new(0, 0, 0)
- Song.TextSize = 14
- Song.Draggable = true
- Spawn.Name = "Spawn"
- Spawn.Parent = Frame
- Spawn.BackgroundColor3 = Color3.new(0, 0, 0)
- Spawn.Position = UDim2.new(0, 0, 0.513966501, 0)
- Spawn.Size = UDim2.new(0, 154, 0, 42)
- Spawn.Font = Enum.Font.SourceSans
- Spawn.Text = "Spawn Item"
- Spawn.TextColor3 = Color3.new(1, 0, 0.0156863)
- Spawn.TextSize = 14
- Spawn.Draggable = true
- Spawn.MouseButton1Click:connect(function()
- local p = game.Players.LocalPlayer.Character.Head.Position
- local A_1 = Item.Text
- local A_2 = Vector3.new(p.x, p.y, p.z) + Vector3.new(0, 2, 0)
- local Event = game:GetService("ReplicatedStorage").Resources.Remotes.MakeItem
- Event:FireServer(A_1, A_2)
- end)
- Play.Name = "Play"
- Play.Parent = Frame
- Play.BackgroundColor3 = Color3.new(0, 0, 0)
- Play.Position = UDim2.new(0, 0, 0.748603344, 0)
- Play.Size = UDim2.new(0, 154, 0, 45)
- Play.Font = Enum.Font.SourceSans
- Play.Text = "Play Song"
- Play.TextColor3 = Color3.new(1, 0, 0.0156863)
- Play.TextSize = 14
- Play.Draggable = true
- Play.MouseButton1Click:connect(function()
- for i,v in pairs(game.Players:GetPlayers()) do
- local A_1 = "rbxassetid://" ..Song.Text
- local A_2 = v.Character.HumanoidRootPart
- local Event = game:GetService("ReplicatedStorage").Resources.Remotes.PlaySound
- Event:FireServer(A_1, A_2)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement