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 itemname = Instance.new("TextBox")
- local ID = 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, 0, 0.0156863)
- Frame.Position = UDim2.new(0.710766435, 0, 0.370558381, 0)
- Frame.Size = UDim2.new(0, 260, 0, 136)
- Frame.Active = true
- Frame.Draggable = true
- itemname.Name = "itemname"
- itemname.Parent = Frame
- itemname.BackgroundColor3 = Color3.new(0.231373, 0, 1)
- itemname.Size = UDim2.new(0, 124, 0, 39)
- itemname.Font = Enum.Font.SourceSans
- itemname.Text = "Item Name"
- itemname.TextColor3 = Color3.new(0, 0, 0)
- itemname.TextSize = 14
- ID.Name = "ID"
- ID.Parent = Frame
- ID.BackgroundColor3 = Color3.new(0.231373, 0, 1)
- ID.Position = UDim2.new(0.523076952, 0, 0, 0)
- ID.Size = UDim2.new(0, 124, 0, 39)
- ID.Font = Enum.Font.SourceSans
- ID.Text = "Song ID"
- ID.TextColor3 = Color3.new(0, 0, 0)
- ID.TextSize = 14
- spawn.Name = "spawn"
- spawn.Parent = Frame
- spawn.BackgroundColor3 = Color3.new(0.231373, 0, 1)
- spawn.Position = UDim2.new(0, 0, 0.449152529, 0)
- spawn.Size = UDim2.new(0, 124, 0, 50)
- spawn.Font = Enum.Font.SourceSans
- spawn.Text = "Spawn Item"
- spawn.TextColor3 = Color3.new(0, 0, 0)
- spawn.TextSize = 20
- spawn.MouseButton1Click:connect(function()
- local p = game.Players.LocalPlayer.Character.Head.Position
- local A_1 = itemname.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.231373, 0, 1)
- play.Position = UDim2.new(0.523076952, 0, 0.449152529, 0)
- play.Size = UDim2.new(0, 124, 0, 50)
- play.Font = Enum.Font.SourceSans
- play.Text = "Play Song"
- play.TextColor3 = Color3.new(0, 0, 0)
- play.TextSize = 20
- play.MouseButton1Click:connect(function()
- for i,v in pairs(game.Players:GetPlayers()) do
- local A_1 = "rbxassetid://" ..ID.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