Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function message(m)
- -- Edit the text below to display different dialog!
- -- Created by hihi624
- -- Credit to Aurarus for the basic design(Text box around it and ontop of screen"
- -- I basicly eddited the script so it has really cool subtitles.
- -- Thanks for taking.
- ---------------------------------------------------------------\\
- m.Text = "John (You) I haven't visited my old work place since so much, let's see hows it going."
- wait(5)
- m.Text = " " --You can change the text and time it stays for AND colour. --Change the colour by using the codes below.
- wait(3)
- m.Text = " "
- m.TextColor3 = Color3.new(1,1,1)
- wait(2)
- m.Text = " "
- m.TextColor3 = Color3.new(1,1,1)
- wait(2)
- ---------------------------------------------------------------//
- -- Color codes:
- -- (1,0,0) is Red
- -- (0,1,0) is Green
- -- (0,0,1) is Blue
- -- (1,1,1) is White
- -- And you can also mix colors. (1,0,1) is Purple for example
- -- For more settings, read the green text around the section below
- end
- function onTouch(hit)
- if hit.Parent:FindFirstChild("Humanoid") ~= nil then
- if game.Players:FindFirstChild(hit.Parent.Name) ~= nil then
- local player = game.Players:FindFirstChild(hit.Parent.Name)
- if player:FindFirstChild("PlayerGui"):FindFirstChild("ScreenGui") == nil then
- sg = Instance.new("ScreenGui")
- sg.Parent = player:FindFirstChild("PlayerGui")
- end
- if player.PlayerGui.ScreenGui:FindFirstChild("MessageBox") == nil then
- -- In this section below, you can edit how the text box looks like
- local f = Instance.new("Frame")
- f.Name = "MessageBox"
- f.Position = UDim2.new(0.50, 3, 0.1, 500)
- f.Size = UDim2.new(0.0, 0, 0, 0) -- If Text box needs to be bigger, simply change "0.4"
- f.Style = "RobloxRound" -- Styles: "ChatBlue", "Chat Red", "Chat Green"
- f.Parent = player.PlayerGui:FindFirstChild("ScreenGui")
- local m = Instance.new("TextLabel")
- m.Position = UDim2.new(0.100, 0, 0.5, 0)
- m.FontSize = "Size14" -- Font Sizes: 10, 11, 12, 14, 18, 24
- m.TextColor3 = Color3.new(1,1,1) -- Colors: (1,0,0) = Red, (0,1,0) = Green, (0,0,1) = Blue
- m.Parent = f
- message(m)
- -- Don't edit below this
- f:Destroy()
- end
- end
- end
- end
- script.Parent.Touched:connect(onTouch)
Add Comment
Please, Sign In to add comment