Advertisement
Guest User

TextLineScript

a guest
Apr 23rd, 2019
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. TextLine script: local clickdetector = script.Parent.ClickDetector
  2. local player = game.Players.LocalPlayer
  3.  
  4. local accept2 = script.Parent.Accept2
  5. local deny = script.Parent.Deny
  6. local greeting = "Welcome to beyblade burst turbo I remember when I was young."
  7. local storybeggining = "My dream was to be the strongest Bladder in the world Yet it seemed I failed. Can you Complete my Dream "
  8. itskindaimpossible = "Listen to learn something valuable this world is so bright. Isn't it"
  9. speaktojohn = "Please Speak to John."
  10. accept = "I can"
  11. deny2 = "I can't"
  12. continue = "Continue"
  13. exit = "Exit"
  14. -- Font Scripting
  15. script.Parent.Font = "Cartoon"
  16. -- Main Scripting --
  17.  
  18. script.Parent.Text = greeting
  19. script.Parent.Accept.Text = continue
  20. script.Parent.Deny.Text = deny
  21.  
  22. game.StarterGui.ChatNPCTown.TextLine.Accept.MouseButton1Click:Connect(function()
  23. script.Parent.Text = itskindaimpossible
  24. end)
  25.  
  26.  
  27.  
  28. game.StarterGui.ChatNPCTown.TextLine.Deny.MouseButton1Click:Connect(function()
  29. script.Parent.Visible = false
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41. end)
  42.  
  43. script.Parent.Accept2.Visible = true
  44.  
  45. script.Parent.Accept2.Text = accept
  46.  
  47. script.Parent.Accept2.MouseButton1Click:Connect(function()
  48. script.Parent.Text = storybeggining
  49.  
  50.  
  51. end)
  52.  
  53.  
  54. script.Parent.Accept3.Visible = true
  55.  
  56. script.Parent.Accept3.Text = accept
  57.  
  58. deny.Text = deny2
  59.  
  60. script.Parent.Accept3.MouseButton1Click:Connect(function()
  61. script.Parent.Text = speaktojohn
  62. end)
  63.  
  64. script.Parent.Accept4.Visible = true
  65. script.Parent.Accept4.Text = continue
  66.  
  67. script.Parent.Accept4.MouseButton1Click:Connect(function()
  68. script.Parent.Visible = false
  69. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement