Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Hello world!")
- wait(5)
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local createPartEvent = ReplicatedStorage:WaitForChild("oops")
- local TextBox = script.Parent.Parent.PlayerGui.ScreenGui:WaitForChild("victim")
- TextBox.FocusLost:Connect(function(enterPressed, inputThatCausedFocusLost)
- if enterPressed then
- createPartEvent:FireServer(TextBox.Text)
- else
- print("Player pressed", inputThatCausedFocusLost.KeyCode)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement