Advertisement
Vortex_Tech

Untitled

Dec 14th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. print("Hello world!")
  2. wait(5)
  3. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  4. local createPartEvent = ReplicatedStorage:WaitForChild("oops")
  5. local TextBox = script.Parent.Parent.PlayerGui.ScreenGui:WaitForChild("victim")
  6. TextBox.FocusLost:Connect(function(enterPressed, inputThatCausedFocusLost)
  7. if enterPressed then
  8. createPartEvent:FireServer(TextBox.Text)
  9. else
  10. print("Player pressed", inputThatCausedFocusLost.KeyCode)
  11. end
  12. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement