Advertisement
MysteriousL

Nametest

Jul 22nd, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.99 KB | None | 0 0
  1. screem = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
  2. screem.SoundId = "rbxassetid://362485838"
  3. screem.Volume = 30
  4. plr = game.Players.LocalPlayer.Character
  5. mouse = game.Players.LocalPlayer:GetMouse()
  6. function key(key)
  7. key = key:lower()
  8. if key == "q" then
  9. for i = 1,10 do
  10. wait()
  11. plr.Torso.Neck.C0 = plr.Torso.Neck.C0 * CFrame.Angles(-0.07,0,0)
  12. plr.Torso["Left Shoulder"].C0 = plr.Torso["Left Shoulder"].C0 * CFrame.new(0,-0.15,0.05)
  13. plr.Torso["Left Shoulder"].C0 = plr.Torso["Left Shoulder"].C0 * CFrame.Angles(-0.3,0,0)
  14. plr.Torso["Right Shoulder"].C0 = plr.Torso["Right Shoulder"].C0 * CFrame.new(0,-0.15,0.05)
  15. plr.Torso["Right Shoulder"].C0 = plr.Torso["Right Shoulder"].C0 * CFrame.Angles(-0.3,0,0)
  16. end
  17. local boomb = Instance.new("Part", plr.Head)
  18. local mesh = Instance.new("SpecialMesh", boomb)
  19. mesh.MeshId = "http://www.roblox.com/asset/?id=192488915"
  20. mesh.TextureId = "http://www.roblox.com/asset/?id=192488947"
  21. local weld = Instance.new("Weld", boomb)
  22. weld.Part0 = boomb
  23. weld.Part1 = plr["Left Arm"]
  24. weld.C0 = weld.C0 * CFrame.Angles(0,0,3.3)
  25. weld.C0 = weld.C0 * CFrame.new(1.9,1.65,0)
  26. plr.Humanoid.JumpPower = 0
  27. plr.Humanoid.WalkSpeed = 0
  28. local cringe = Instance.new("Sound", boomb)
  29. cringe.Volume = 20
  30. local Math = math.random(1,4)
  31. if Math == 1 then
  32. cringe.SoundId = "rbxassetid://362485838"
  33. end
  34. if Math == 2 then
  35. cringe.SoundId = "rbxassetid://362485838"
  36. end
  37. if Math == 3 then
  38. cringe.SoundId = "rbxassetid://362485838"
  39. end
  40. if Math == 4 then
  41. cringe.SoundId = "rbxassetid://362485838"
  42. end
  43. cringe:Play()
  44. wait(8)
  45. screem:Play()
  46. for i = 1,150 do
  47. wait()
  48. plr.Torso.Neck.C0 = plr.Torso.Neck.C0 * CFrame.Angles(math.random(0.1,0.9),math.random(0.1,0.9),math.random(0.1,0.9))
  49. end
  50. local boom = Instance.new("Explosion", workspace)
  51. boom.BlastPressure = 2000000
  52. boom.BlastRadius = 50
  53. boom.Position = boomb.Position
  54. screem:Stop()
  55. end
  56. end
  57. mouse.KeyDown:connect(key)
  58.  
  59. local listOfPhrases = {"Example", "Whatever you want", "Hello, world!", "LOL!"} --Just fill this table with whatever you want the part to be able to say.
  60. local interval = 3 --This is the amount of time before the part's text changes to the next phrase.
  61. local textColor = Color3.new(0, 0, 0) --Currently black, change to whatever you want the text color to be.
  62.  
  63. local bbGui = Instance.new("BillboardGui")
  64. bbGui.Adornee = script.Parent --So that the GUI appears above the Part
  65. bbGui.Size = UDim2.new(2, 0, 2, 0)
  66. bbGui.StudsOffset = Vector3.new(-4, 2, 0) --Distance from the actual part relatively, helps center the text
  67. bbGui.Parent = script.Parent
  68.  
  69. local textLabel = Instance.new("TextLabel")
  70. textLabel.Size = UDim2.new(5, 0, 1, 0)
  71. textLabel.BackgroundTransparency = 1
  72. textLabel.Font = "ArialBold"
  73. textLabel.TextScaled = true
  74. textLabel.TextColor3 = textColor
  75. textLabel.Parent = bbGui
  76.  
  77. while wait() do
  78. for k,v in pairs(listOfPhrases) do
  79. textLabel.Text = v
  80. wait(interval)
  81. end
  82. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement