Vortex_Tech Dec 14th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand