Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function sendMessage(msg,from)
- local MessageGui = Instance.new("ScreenGui")
- local Outer = Instance.new("Frame")
- local Top = Instance.new("TextLabel")
- local PlayerName = Instance.new("TextLabel")
- local CloseButton = Instance.new("TextButton")
- local Bottom = Instance.new("TextLabel")
- local Message = Instance.new("TextLabel")
- local CountDown = Instance.new("TextLabel")
- --Properties:
- MessageGui.Name = "MessageGui"
- MessageGui.Parent = nil
- MessageGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Outer.Name = "Outer"
- Outer.Parent = MessageGui
- Outer.AnchorPoint = Vector2.new(1, 1)
- Outer.BackgroundColor3 = Color3.fromRGB(255, 90, 255)
- Outer.BackgroundTransparency = 0.500
- Outer.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Outer.BorderSizePixel = 0
- Outer.Position = UDim2.new(0.996352255, 0, 0.993518531, 0)
- Outer.Size = UDim2.new(0.300000012, 0, 0.150000006, 0)
- Outer.SizeConstraint = Enum.SizeConstraint.RelativeXX
- Top.Name = "Top"
- Top.Parent = Outer
- Top.AnchorPoint = Vector2.new(0.5, 0.5)
- Top.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Top.BackgroundTransparency = 0.200
- Top.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Top.BorderSizePixel = 0
- Top.Position = UDim2.new(0.5, 0, 0.0900000036, 0)
- Top.Size = UDim2.new(0.980000019, 0, 0.140000001, 0)
- Top.Font = Enum.Font.SourceSans
- Top.Text = ""
- Top.TextColor3 = Color3.fromRGB(255, 255, 255)
- Top.TextScaled = true
- Top.TextSize = 14.000
- Top.TextWrapped = true
- Top.TextXAlignment = Enum.TextXAlignment.Left
- PlayerName.Name = "PlayerName"
- PlayerName.Parent = Top
- PlayerName.AnchorPoint = Vector2.new(0, 0.5)
- PlayerName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- PlayerName.BackgroundTransparency = 1.000
- PlayerName.BorderColor3 = Color3.fromRGB(0, 0, 0)
- PlayerName.BorderSizePixel = 0
- PlayerName.Position = UDim2.new(0.0143876318, 0, 0.499999017, 0)
- PlayerName.Size = UDim2.new(0.985612571, 0, 0.699999988, 0)
- PlayerName.Font = Enum.Font.SourceSans
- PlayerName.Text = "Message from Memo1332:"
- PlayerName.TextColor3 = Color3.fromRGB(255, 255, 255)
- PlayerName.TextScaled = true
- PlayerName.TextSize = 14.000
- PlayerName.TextWrapped = true
- PlayerName.TextXAlignment = Enum.TextXAlignment.Left
- CloseButton.Name = "CloseButton"
- CloseButton.Parent = Top
- CloseButton.AnchorPoint = Vector2.new(1, 0)
- CloseButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- CloseButton.BackgroundTransparency = 1.000
- CloseButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
- CloseButton.BorderSizePixel = 0
- CloseButton.Position = UDim2.new(1, 0, 0, 0)
- CloseButton.Size = UDim2.new(1, 0, 1, 0)
- CloseButton.SizeConstraint = Enum.SizeConstraint.RelativeYY
- CloseButton.Font = Enum.Font.SourceSans
- CloseButton.Text = "X"
- CloseButton.TextColor3 = Color3.fromRGB(255, 0, 4)
- CloseButton.TextScaled = true
- CloseButton.TextSize = 14.000
- CloseButton.TextWrapped = true
- Bottom.Name = "Bottom"
- Bottom.Parent = Outer
- Bottom.AnchorPoint = Vector2.new(0.5, 0.5)
- Bottom.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Bottom.BackgroundTransparency = 0.200
- Bottom.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Bottom.BorderSizePixel = 0
- Bottom.Position = UDim2.new(0.49999994, 0, 0.580677807, 0)
- Bottom.Size = UDim2.new(0.980000019, 0, 0.794795692, 0)
- Bottom.Font = Enum.Font.SourceSans
- Bottom.Text = ""
- Bottom.TextColor3 = Color3.fromRGB(255, 255, 255)
- Bottom.TextScaled = true
- Bottom.TextSize = 14.000
- Bottom.TextWrapped = true
- Bottom.TextXAlignment = Enum.TextXAlignment.Left
- Message.Name = "Message"
- Message.Parent = Bottom
- Message.AnchorPoint = Vector2.new(0, 0.5)
- Message.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Message.BackgroundTransparency = 1.000
- Message.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Message.BorderSizePixel = 0
- Message.Position = UDim2.new(0.0143876467, 0, 0.505529761, 0)
- Message.Size = UDim2.new(0.985612571, 0, 0.922082603, 0)
- Message.Font = Enum.Font.SourceSans
- Message.Text = "When I was a young boy\\nMy father took me into the city\\nTo see a marching band\\nHe said, \"Son, when you grow up\\nWould you be the savior of the broken\\nThe beaten and the damned?\"\\nHe said, \"Will you defeat them?\\nYour demons, and all the non-believers\\nThe plans that they have made?\"\\n\"Because one day, I'll leave you a phantom\\nTo lead you in the summer\\nTo join the black parade\"\\nWhen I was a young boy\\nMy father took me into the city\\nTo see a marching band\\nHe said, \"Son, when you grow up\\nWould you be the savior of the broken\\nThe beaten and the damned?\"\\nSometimes I get the feelin'\\nShe's watchin' over me\\nAnd other times I feel like I should go\\nAnd through it all, the rise and fall\\nThe bodies in the streets\\nAnd when you're gone, we want you all to know\\nWe'll carry on, we'll carry on\\nAnd though you're dead and gone, believe me\\nYour memory will carry on\\nWe'll carry on\\nAnd in my heart, I can't contain it\\nThe anthem won't explain it\\nA world that sends you reelin'\\nFrom decimated dreams\\nYour misery and hate will kill us all\\nSo paint it black and take it back\\nLet's shout it loud and clear\\nDefiant to the end, we hear the call\\nTo carry on, we'll carry on\\nAnd though you're dead and gone, believe me\\nYour memory will carry on\\nWe'll carry on\\nAnd though you're broken and defeated\\nYour weary widow marches\\nOn and on, we carry through the fears\\nOh, ah, ha\\nDisappointed faces of your peers\\nOh, ah, ha\\nTake a look at me, 'cause I could not care at all\\nDo or die, you'll never make me\\nBecause the world will never take my heart\\nGo and try, you'll never break me\\nWe want it all, we wanna play this part\\nI won't explain or say I'm sorry\\nI'm unashamed, I'm gonna show my scars\\nGive a cheer for all the broken\\nListen here, because it's who we are\\nJust a man, I'm not a hero\\nJust a boy, who had to sing this song\\nJust a man, I'm not a hero\\nI don't care\\nWe'll carry on, we'll carry on\\nAnd though you're dead and gone, believe me\\nYour memory will carry on\\nYou'll carry on\\nAnd though you're broken and defeated\\nYour weary widow marches, oh\\nDo or die, you'll never make me\\nBecause the world will never take my heart\\nGo and try, you'll never break me\\nWe want it all, we wanna play this part (we'll carry on)\\nDo or die, you'll never make me (we'll carry on)\\nBecause the world will never take my heart (we'll carry on)\\nGo and try, you'll never break me (we'll carry on)\\nWe want it all, we wanna play this part (we'll carry on!)"
- Message.TextColor3 = Color3.fromRGB(255, 255, 255)
- Message.TextSize = 30.000
- Message.TextWrapped = true
- Message.TextXAlignment = Enum.TextXAlignment.Left
- Message.TextYAlignment = Enum.TextYAlignment.Top
- CountDown.Name = "CountDown"
- CountDown.Parent = Bottom
- CountDown.AnchorPoint = Vector2.new(0, 0.5)
- CountDown.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- CountDown.BackgroundTransparency = 1.000
- CountDown.BorderColor3 = Color3.fromRGB(0, 0, 0)
- CountDown.BorderSizePixel = 0
- CountDown.Position = UDim2.new(0.0143876467, 0, 0.522244036, 0)
- CountDown.Size = UDim2.new(0.969879985, 0, 0.955511093, 0)
- CountDown.Font = Enum.Font.SourceSans
- CountDown.Text = "30"
- CountDown.TextColor3 = Color3.fromRGB(255, 255, 255)
- CountDown.TextSize = 30.000
- CountDown.TextWrapped = true
- CountDown.TextXAlignment = Enum.TextXAlignment.Right
- CountDown.TextYAlignment = Enum.TextYAlignment.Bottom
- for i,v in pairs(game:GetService("Players"):GetPlayers()) do
- local clon = MessageGui:Clone()
- clon.Outer.Position = UDim2.new(0.996+0.5, 0,0.994, 0)
- clon.Parent = v.PlayerGui
- clon.Outer.Top.PlayerName.Text = "Message from "..tostring(from.DisplayName)..":"
- clon.Outer.Bottom.Message.Text = msg
- clon.Outer:TweenPosition(UDim2.new(0.996, 0,0.994, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Back,0.5,true)
- local closing = false
- local function close()
- closing = true
- clon.Outer:TweenPosition(UDim2.new(0.996+0.5, 0,0.994, 0),Enum.EasingDirection.In,Enum.EasingStyle.Back,0.5,true)
- wait(0.5)
- clon:Destroy()
- end
- clon.Outer.Top.CloseButton.MouseButton1Click:Connect(function()
- close()
- end)
- coroutine.resume(coroutine.create(function()
- for i=1,#msg,3 do
- clon.Text = string.sub(msg,1,i)
- wait()
- end
- end))
- coroutine.resume(coroutine.create(function()
- for i=1,10 do
- clon.Outer.Bottom.CountDown.Text = tostring(10-i)
- wait(1)
- if closing then
- break
- end
- end
- if not closing then
- close()
- end
- end))
- end
- end
- owner.Chatted:Connect(function(msg)
- local split = string.split(msg,"/")
- if split[1] == "m" then
- sendMessage(split[2],owner)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement