Hellotop2

Untitled

Feb 14th, 2019
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.75 KB | None | 0 0
  1. -- Objects
  2.  
  3. local RagdollEngineKick = Instance.new("ScreenGui")
  4. local Top = Instance.new("Frame")
  5. local Background = Instance.new("Frame")
  6. local kb = Instance.new("TextButton")
  7. local rt = Instance.new("TextBox")
  8. local pn = Instance.new("TextBox")
  9.  
  10. -- Properties
  11.  
  12. RagdollEngineKick.Name = "RagdollEngineKick"
  13. RagdollEngineKick.Parent = game.CoreGui
  14. RagdollEngineKick.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  15.  
  16. Top.Name = "Top"
  17. Top.Parent = RagdollEngineKick
  18. Top.BackgroundColor3 = Color3.new(1, 1, 1)
  19. Top.BorderSizePixel = 0
  20. Top.Position = UDim2.new(0.207994998, 0, 0.454433501, 0)
  21. Top.Size = UDim2.new(0, 354, 0, 35)
  22.  
  23. Background.Name = "Background"
  24. Background.Parent = Top
  25. Background.BackgroundColor3 = Color3.new(0.247059, 0.247059, 0.247059)
  26. Background.BorderSizePixel = 0
  27. Background.Position = UDim2.new(0, 0, 0.983251095, 0)
  28. Background.Size = UDim2.new(0, 353, 0, 87)
  29.  
  30. kb.Name = "kb"
  31. kb.Parent = Background
  32. kb.BackgroundColor3 = Color3.new(1, 1, 1)
  33. kb.BorderSizePixel = 0
  34. kb.Position = UDim2.new(0.703364968, 0, 0.310344845, 0)
  35. kb.Size = UDim2.new(0, 92, 0, 33)
  36. kb.Font = Enum.Font.SourceSansLight
  37. kb.Text = "Kick"
  38. kb.TextColor3 = Color3.new(1, 1, 1)
  39. kb.TextScaled = true
  40. kb.TextSize = 14
  41. kb.TextWrapped = true
  42.  
  43. rt.Name = "rt"
  44. rt.Parent = Background
  45. rt.BackgroundColor3 = Color3.new(1, 1, 1)
  46. rt.BorderSizePixel = 0
  47. rt.Position = UDim2.new(0.32861191, 0, 0.310344815, 0)
  48. rt.Size = UDim2.new(0, 118, 0, 33)
  49. rt.Font = Enum.Font.SourceSansLight
  50. rt.PlaceholderColor3 = Color3.new(1, 1, 1)
  51. rt.PlaceholderText = "Reason"
  52. rt.Text = "Reason"
  53. rt.TextColor3 = Color3.new(1, 1, 1)
  54. rt.TextScaled = true
  55. rt.TextSize = 14
  56. rt.TextWrapped = true
  57.  
  58. pn.Name = "pn"
  59. pn.Parent = Background
  60. pn.BackgroundColor3 = Color3.new(1, 1, 1)
  61. pn.BorderSizePixel = 0
  62. pn.Position = UDim2.new(0.033994332, 0, 0.310344815, 0)
  63. pn.Size = UDim2.new(0, 89, 0, 33)
  64. pn.Font = Enum.Font.SourceSansLight
  65. pn.PlaceholderColor3 = Color3.new(1, 1, 1)
  66. pn.PlaceholderText = "Player"
  67. pn.Text = "Player"
  68. pn.TextColor3 = Color3.new(1, 1, 1)
  69. pn.TextScaled = true
  70. pn.TextSize = 14
  71. pn.TextWrapped = true
  72.  
  73. kb.MouseButton1Click:Connect(function()
  74. local findPlayer = game.Players:FindFirstChild(pn.Text)
  75. if findPlayer then
  76. local text = rt.Text
  77. game.ReplicatedStorage.Events.KickCommand:FireServer(findPlayer, text)
  78. end
  79. end)
  80. local UserInputService,gui,dragging,dragInput,dragStart,startPos = game:GetService("UserInputService"),Top
  81.  
  82. local function update(input)
  83. local delta = input.Position - dragStart
  84. gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  85. end
  86.  
  87. gui.InputBegan:Connect(function(input)
  88. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  89. dragging = true
  90. dragStart = input.Position
  91. startPos = gui.Position
  92.  
  93. input.Changed:Connect(function()
  94. if input.UserInputState == Enum.UserInputState.End then
  95. dragging = false
  96. end
  97. end)
  98. end
  99. end)
  100.  
  101. gui.InputChanged:Connect(function(input)
  102. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  103. dragInput = input
  104. end
  105. end)
  106.  
  107. UserInputService.InputChanged:Connect(function(input)
  108. if input == dragInput and dragging then
  109. update(input)
  110. end
  111. end)
  112. while wait() do
  113. local r = (math.sin(workspace.DistributedGameTime/2)/2)+0.5
  114. local g = (math.sin(workspace.DistributedGameTime)/2)+0.5
  115. local b = (math.sin(workspace.DistributedGameTime*1.5)/2)+0.5
  116. local color = Color3.new(r, g, b)
  117. kb.BackgroundColor3 = color
  118. pn.BackgroundColor3 = color
  119. rt.BackgroundColor3 = color
  120. Top.BackgroundColor3 = color
  121. end
Advertisement
Add Comment
Please, Sign In to add comment