TheYoutuber_Pro

Untitled

Jan 31st, 2022 (edited)
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. print([[
  2. c/ (code) to run a script
  3. x/ (code) to run a local script
  4. ]])
  5. local Hand = "Left"
  6. local TweenService = game:GetService("TweenService")
  7. local Info = TweenInfo.new(.25, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut)
  8. local RunService = game:GetService("RunService")
  9. local Character = owner.Character
  10. local Torso = Character.Torso
  11. local Neck = Torso.Neck
  12. local OldNeckC0 = Neck.C0
  13. local OldNeckC1 = Neck.C1
  14. local RightArm = Character["Right Arm"]
  15. local LeftArm = Character["Left Arm"]
  16. local RightShoulder = Instance.new("Weld", Torso)
  17. RightShoulder.Part0 = Torso
  18. RightShoulder.Part1 = RightArm
  19. local LeftShoulder = Instance.new("Weld", Torso)
  20. LeftShoulder.Part0 = Torso
  21. LeftShoulder.Part1 = LeftArm
  22. RightShoulder.C1 = CFrame.new(-0.5, 0.5, 0)
  23. LeftShoulder.C1 = CFrame.new(0.5, 0.5, 0)
  24. RightShoulder.Enabled = false
  25. LeftShoulder.Enabled = false
  26. local function Smooth(Part)
  27.     Part.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  28.     Part.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  29.     Part.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  30.     Part.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  31.     Part.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  32.     Part.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  33. end
  34.  
  35. local GUI = Instance.new("ScreenGui")
  36. local Frame = Instance.new("Frame")
  37. local TextButton = Instance.new("TextButton")
  38. local TextButton2 = Instance.new("TextButton")
  39. local TextBox = Instance.new("TextBox")
  40. GUI.Name = "TextGUI"
  41. GUI.Parent = owner.PlayerGui
  42. Frame.Parent = GUI
  43. Frame.BackgroundColor3 = BrickColor.new("Really black").Color
  44. Frame.Position = UDim2.new(1, -187, 1, -116)
  45. Frame.AnchorPoint = Vector2.new(.5, .5)
  46. Frame.Size = UDim2.new(0, 300, 0, 150)
  47. Frame.Active = true
  48. Frame.BorderColor3 = Color3.new(1, 1, 1)
  49. Frame.BorderSizePixel = 2
  50. Frame.Draggable = true
  51. TextBox.Parent = Frame
  52. TextBox.BackgroundTransparency = 1
  53. TextBox.TextStrokeTransparency = 0
  54. TextBox.TextStrokeColor3 = Color3.new(.7, .7, .7)
  55. TextBox.TextColor3 = Color3.new(1, 1, 1)
  56. TextBox.Position = UDim2.new(0, 50, 0, 20)
  57. TextBox.Size = UDim2.new(0, 200, 0, 30)
  58. TextBox.Font = Enum.Font.Code
  59. TextBox.Text = "Insert Text Here"
  60. TextBox.TextSize = 30
  61. TextBox.TextScaled = true
  62. TextBox.TextWrapped = true
  63. TextButton.Parent = Frame
  64. TextButton.BackgroundTransparency = 1
  65. TextButton.TextStrokeTransparency = 0
  66. TextButton.TextStrokeColor3 = Color3.new(.7, .7, .7)
  67. TextButton.TextColor3 = Color3.new(1, 1, 1)
  68. TextButton.Position = UDim2.new(0, 25, 0, 90)
  69. TextButton.Size = UDim2.new(0, 100, 0, 50)
  70. TextButton.Font = Enum.Font.Code
  71. TextButton.TextSize = 30
  72. TextButton.Text = "Run"
  73. TextButton.Name = "RunText"
  74. TextButton2.Parent = Frame
  75. TextButton2.Name = "ClearText"
  76. TextButton2.BackgroundTransparency = 1
  77. TextButton2.TextStrokeTransparency = 0
  78. TextButton2.TextStrokeColor3 = Color3.new(.7, .7, .7)
  79. TextButton2.TextColor3 = Color3.new(1, 1, 1)
  80. TextButton2.Position = UDim2.new(0, 175, 0, 90)
  81. TextButton2.Size = UDim2.new(0, 100, 0, 50)
  82. TextButton2.Font = Enum.Font.Code
  83. TextButton2.Text = "Clear"
  84. TextButton2.TextSize = 30
  85. local Value = Instance.new("ObjectValue")
  86. Value.Parent = owner.Character
  87. Value.Value = Screen
  88. Value.Name = "ScreenValue"
  89. local Value = Instance.new("ObjectValue")
  90. Value.Parent = owner.Character
  91. Value.Value = GUI
  92. Value.Name = "TextValue"
  93. local Remote = Instance.new("RemoteEvent", Value)
  94. Remote.Name = "TypeEvent"
  95. local Remote2 = Instance.new("RemoteEvent", Value)
  96. Remote2.Name = "RunTextEvent"
  97. local Typing = false
  98. Remote.OnServerEvent:Connect(function(plr, txt, type)
  99. if type == true then
  100. Typing = true
  101. RightShoulder.Enabled = true
  102. LeftShoulder.Enabled = true
  103. RightShoulder.C0 = owner.Character.Torso["Right Shoulder"].C0
  104. --RightShoulder.C1 = owner.Character.Torso["Right Shoulder"].C1
  105. LeftShoulder.C0 = owner.Character.Torso["Left Shoulder"].C0
  106. --LeftShoulder.C1 = owner.Character.Torso["Left Shoulder"].C1
  107. local Sine = math.sin(tick() * 8)/8
  108.     TweenService:Create(Neck, TweenInfo.new(0), {C0 = CFrame.new(0, 1, 0) * CFrame.Angles(0.2 + Sine / 4, (math.random() - 0.5) / 2, 0)}):Play()
  109.     TweenService:Create(Neck, TweenInfo.new(0), {C1 = CFrame.new(0, -.5, 0)}):Play()
  110.     TweenService:Create(RightShoulder, TweenInfo.new(0), {C0 = CFrame.new(1, 0.6 + math.random() / 4, -math.random() * 0.7)
  111.             * CFrame.Angles(1.5 + Sine * math.random(), -Sine / 4, -(0.5 + 2 * Sine * math.random()))}):Play()
  112.  
  113.         TweenService:Create(LeftShoulder, TweenInfo.new(0), {C0 = CFrame.new(-1, 0.6 + math.random() / 4, -math.random() * 0.7)
  114.             * CFrame.Angles(1.5 - Sine * math.random(), Sine / 4, 0.5 + 2 * Sine * math.random())}):Play()
  115. RightShoulder.Enabled = false
  116. LeftShoulder.Enabled = false
  117. for i = 1, 5 do
  118. Neck.C0 = OldNeckC0
  119. Neck.C1 = OldNeckC1
  120. end
  121. end
  122. if type == nil then
  123. Text.Text = txt
  124. if Hand == "Left" and Typing == true then
  125. Hand = "Right"
  126. local Sine = math.sin(tick() * 8)/8
  127.     TweenService:Create(Neck, Info, {C0 = CFrame.new(0, 1, 0) * CFrame.Angles(0.2 + Sine / 4, (math.random() - 0.5) / 2, 0)}):Play()
  128.        
  129.         TweenService:Create(LeftShoulder, Info, {C0 = CFrame.new(-1, 0.6 + math.random() / 4, -math.random() * 0.7)
  130.             * CFrame.Angles(1.5 - Sine * math.random(), Sine / 4, 0.5 + 2 * Sine * math.random())}):Play()
  131. elseif Hand == "Right" and Typing == true then
  132. Hand = "Left"
  133. local Sine = math.sin(tick() * 8)/8
  134.     TweenService:Create(Neck, Info, {C0 = CFrame.new(0, 1, 0) * CFrame.Angles(0.2 + Sine / 4, (math.random() - 0.5) / 2, 0)}):Play()
  135.  
  136. TweenService:Create(RightShoulder, Info, {C0 = CFrame.new(1, 0.6 + math.random() / 4, -math.random() * 0.7)
  137.             * CFrame.Angles(1.5 + Sine * math.random(), -Sine / 4, -(0.5 + 2 * Sine * math.random()))}):Play()
  138. end
  139. end
  140. end
  141. end)
  142. Remote2.OnServerEvent:Connect(function(plr, txt)
  143. if string.lower(string.sub(txt, 1, 2)) == 'c/' then
  144. loadstring(string.sub(txt, 3, #txt))()
  145. elseif string.lower(string.sub(txt, 1, 2)) == 'x/' then
  146. NLS(string.sub(txt, 3, #txt), owner.PlayerGui)
  147. end
  148. end)
  149. NLS([[
  150. local UDim2_new = UDim2.new
  151. local UserInputService = game:GetService("UserInputService")
  152. local DraggableObject       = {}
  153. DraggableObject.__index     = DraggableObject
  154. -- Sets up a new draggable object
  155. function DraggableObject.new(Object)
  156.     local self          = {}
  157.     self.Object         = Object
  158.     self.DragStarted    = nil
  159.     self.DragEnded      = nil
  160.     self.Dragged        = nil
  161.     self.Dragging       = false
  162.    
  163.     setmetatable(self, DraggableObject)
  164.    
  165.     return self
  166. end
  167.  
  168. -- Enables dragging
  169. function DraggableObject:Enable()
  170.     local object            = self.Object
  171.     local dragInput         = nil
  172.     local dragStart         = nil
  173.     local startPos          = nil
  174.     local preparingToDrag   = false
  175.    
  176.     -- Updates the element
  177.     local function update(input)
  178.         local delta         = input.Position - dragStart
  179.         local newPosition   = UDim2_new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  180.         object.Position     = newPosition
  181.    
  182.         return newPosition
  183.     end
  184.    
  185.     self.InputBegan = object.InputBegan:Connect(function(input)
  186.         if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  187.             preparingToDrag = true
  188.            
  189.            
  190.             local connection
  191.             connection = input.Changed:Connect(function()
  192.                 if input.UserInputState == Enum.UserInputState.End and (self.Dragging or preparingToDrag) then
  193.                     self.Dragging = false
  194.                     connection:Disconnect()
  195.                    
  196.                     if self.DragEnded and not preparingToDrag then
  197.                         self.DragEnded()
  198.                     end
  199.                    
  200.                     preparingToDrag = false
  201.                 end
  202.             end)
  203.         end
  204.     end)
  205.    
  206.     self.InputChanged = object.InputChanged:Connect(function(input)
  207.         if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  208.             dragInput = input
  209.         end
  210.     end)
  211.    
  212.     self.InputChanged2 = UserInputService.InputChanged:Connect(function(input)
  213.         if object.Parent == nil then
  214.             self:Disable()
  215.             return
  216.         end
  217.        
  218.         if preparingToDrag then
  219.             preparingToDrag = false
  220.            
  221.             if self.DragStarted then
  222.                 self.DragStarted()
  223.             end
  224.            
  225.             self.Dragging   = true
  226.             dragStart       = input.Position
  227.             startPos        = object.Position
  228.         end
  229.        
  230.         if input == dragInput and self.Dragging then
  231.             local newPosition = update(input)
  232.            
  233.             if self.Dragged then
  234.                 self.Dragged(newPosition)
  235.             end
  236.         end
  237.     end)
  238. end
  239.  
  240. -- Disables dragging
  241. function DraggableObject:Disable()
  242.     self.InputBegan:Disconnect()
  243.     self.InputChanged:Disconnect()
  244.     self.InputChanged2:Disconnect()
  245.    
  246.     if self.Dragging then
  247.         self.Dragging = false
  248.        
  249.         if self.DragEnded then
  250.             self.DragEnded()
  251.         end
  252.     end
  253. end
  254. local Remote = script.Parent.TypeEvent
  255. local Remote2 = script.Parent.RunTextEvent
  256. local GUI = script.Parent.Value
  257. local TextBox = GUI.Frame.TextBox
  258. local TextButton = GUI.Frame.RunText
  259. local TextButton2 = GUI.Frame.ClearText
  260. local Screen = script.Parent.Parent.ScreenValue
  261. local Drag = DraggableObject.new(GUI.Frame)
  262. Drag:Enable()
  263. TextBox.Text = ""
  264. TextBox.PlaceholderText = "Insert Text"
  265. owner.Chatted:Connect(function(Message)
  266. if Message == "clear/" or Message == "clr/" then
  267. TextBox.Text = ""
  268. end
  269. end)
  270. TextBox.ClearTextOnFocus = false
  271. TextBox.Focused:Connect(function()
  272. Remote:FireServer("StartType", true)
  273. end)
  274. TextBox.FocusLost:Connect(function(EnterPressed)
  275. if EnterPressed then
  276. TextBox.Text ..= "\n"
  277. TextBox:CaptureFocus()
  278. else
  279. Remote:FireServer("StopType", false)
  280. end
  281. end)
  282. TextBox:GetPropertyChangedSignal("Text"):Connect(function()
  283. Remote:FireServer(TextBox.Text)
  284. end)
  285. TextButton.MouseButton1Click:Connect(function()
  286. Remote2:FireServer(TextBox.Text)
  287. end)
  288. TextButton2.MouseButton1Click:Connect(function()
  289. TextBox.Text = ""
  290. end)
  291. ]], Value)
  292. coroutine.wrap(function()
  293. for i = 1, #longparagraph do
  294. Text.Text = string.sub(longparagraph, 1, i)
  295. task.wait(1/50)
  296. end
  297. end)
  298. --[[
  299. RunService.Heartbeat:Connect(function()
  300. if Typing == true then
  301.     local Sine = math.sin(tick() * 8)/8
  302.     RightShoulder.Enabled = true
  303.     LeftShoulder.Enabled = true
  304.     Neck.C0 = Neck.C0:Lerp(CFrame.new(0, 1, 0) * CFrame.Angles(0.2 + Sine / 4, (math.random() - 0.5) / 2, 0), 1 )
  305.         Neck.C1 = CFrame.new(0, -0.5, 0)
  306.         RightShoulder.C0 = RightShoulder.C0:Lerp(CFrame.new(1, 0.6 + math.random() / 4, -math.random() * 0.7)
  307.             * CFrame.Angles(1.5 + Sine * math.random(), -Sine / 4, -(0.5 + 2 * Sine * math.random())), 1)
  308.        
  309.         LeftShoulder.C0 = LeftShoulder.C0:Lerp(CFrame.new(-1, 0.6 + math.random() / 4, -math.random() * 0.7)
  310.             * CFrame.Angles(1.5 - Sine * math.random(), Sine / 4, 0.5 + 2 * Sine * math.random()), 1)
  311. else
  312.         RightShoulder.Enabled = false
  313.             LeftShoulder.Enabled = false
  314.                 Neck.C0 = OldNeckC0
  315.             Neck.C1 = OldNeckC1
  316. end
  317. end)
  318. ]]--
Add Comment
Please, Sign In to add comment