Expl0re

Change Text Sign

Aug 4th, 2017
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.27 KB | None | 0 0
  1.  
  2. p = game.Players.LocalPlayer
  3. t = Instance.new("Tool")
  4. t.Parent = p.Backpack
  5. t.Name = "Sign lololo"
  6. local handlelol = Instance.new("Part")
  7. handlelol.Name = "Handle"
  8. handlelol.Parent = t
  9. handlelol.formFactor = "Plate"
  10. handlelol.BrickColor = BrickColor.new("Brown")
  11. handlelol.Size = Vector3.new(1, 4.5, .5)
  12. handlelol.TopSurface = "Smooth"
  13. handlelol.BottomSurface = "Smooth"
  14. handlelol.Reflectance = 0
  15. handlelol.Material = "Wood"
  16. local sign = Instance.new("Part")
  17. sign.Name = "Part"
  18. sign.Parent = t
  19. sign.formFactor = "Plate"
  20. sign.BrickColor = BrickColor.new("Bright bluish green")
  21. sign.Size = Vector3.new(5, 4, 1)
  22. sign.TopSurface = "Smooth"
  23. sign.BottomSurface = "Smooth"
  24. sign.Reflectance = 0
  25.  
  26. mesh123 = Instance.new("BlockMesh")
  27. mesh123.Parent = sign
  28. mesh123.Scale = Vector3.new(1.1, 1.1, 0.8)
  29.  
  30. w2 = Instance.new("Weld")
  31. w2.Parent = handlelol
  32. w2.Part0 = sign
  33. w2.Part1 = handlelol
  34. w2.C0 = CFrame.fromEulerAnglesXYZ(0, 0, 0) + Vector3.new(0, -2.5, 0)
  35. -----------------------------------------------------------------------
  36. local SurfaceGui = Instance.new("SurfaceGui")
  37. local TextBox = Instance.new("TextBox")
  38. local ScreenGui = Instance.new("ScreenGui")
  39. local TextLabel = Instance.new("TextBox")
  40. ScreenGui.Parent = p.PlayerGui
  41. TextBox.Parent = ScreenGui
  42. TextBox.BackgroundColor3 = Color3.new(0.756863, 0.705882, 1)
  43. TextBox.Position = UDim2.new(0, 74, 0, 374)
  44. TextBox.Size = UDim2.new(0, 176, 0, 50)
  45. TextBox.Font = Enum.Font.Highway
  46. TextBox.FontSize = Enum.FontSize.Size28
  47. TextBox.Text = "Type text you want here"
  48. TextBox.TextSize = 10
  49. TextBox.TextWrapped = true
  50. TextBox.Visible = false
  51. SurfaceGui.Parent = sign
  52. SurfaceGui.Face = Enum.NormalId.Front
  53. TextLabel.Parent = SurfaceGui
  54. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  55. TextLabel.BackgroundTransparency = 1
  56. TextLabel.Size = UDim2.new(0, 800, 0, 600)
  57. TextLabel.Font = Enum.Font.SourceSans
  58. TextLabel.FontSize = Enum.FontSize.Size96
  59. TextLabel.Text = "same"
  60. TextLabel.TextColor3 = Color3.new(0.956863, 0.345098, 0.0588235)
  61. TextLabel.TextSize = 100
  62. TextLabel.TextWrapped = true
  63. t.Equipped:connect(function()
  64. TextBox.Visible = true
  65. end)
  66.  
  67. t.Unequipped:connect(function()
  68. TextBox.Visible = false
  69. end)
  70. wait(1)
  71. TextBox.Changed:connect(function()
  72. TextLabel.Text = TextBox.Text
  73. end)
Advertisement
Add Comment
Please, Sign In to add comment