Advertisement
javaleaf

Custom TextLabel In-Game Script

Jan 11th, 2020
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.61 KB | None | 0 0
  1. -- Instructions:
  2. -- Enter a LocalScript into your screengui.
  3. -- Make sure your TextLabel, TextBox, and TextButton have the default name
  4. -- Insert this script.
  5.  
  6. local plr = game.Players.LocalPlayer
  7. local TextLabel = script.Parent.TextLabel
  8. local TextBox = script.Parent.TextBox
  9.  
  10. script.Parent.TextButton.MouseButton1Click:Conncect(function()
  11.     if script.Parent.TextBox.Text ~= nil then
  12.         script.Parent.TextLabel.Text = script.Parent.TextBox.Text
  13.     end
  14. end)
  15.  
  16. --Made by javaleaf,
  17. -- Links:
  18. -- Youtube: https://www.youtube.com/channel/UCgmGcMh4lOBPPxCYQWaqScA
  19. -- ROBLOX: https://web.roblox.com/users/185456867/profile
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement