Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Objects
- local RagdollEngineKick = Instance.new("ScreenGui")
- local Top = Instance.new("Frame")
- local Background = Instance.new("Frame")
- local kb = Instance.new("TextButton")
- local rt = Instance.new("TextBox")
- local pn = Instance.new("TextBox")
- -- Properties
- RagdollEngineKick.Name = "RagdollEngineKick"
- RagdollEngineKick.Parent = game.CoreGui
- RagdollEngineKick.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Top.Name = "Top"
- Top.Parent = RagdollEngineKick
- Top.BackgroundColor3 = Color3.new(1, 1, 1)
- Top.BorderSizePixel = 0
- Top.Position = UDim2.new(0.207994998, 0, 0.454433501, 0)
- Top.Size = UDim2.new(0, 354, 0, 35)
- Background.Name = "Background"
- Background.Parent = Top
- Background.BackgroundColor3 = Color3.new(0.247059, 0.247059, 0.247059)
- Background.BorderSizePixel = 0
- Background.Position = UDim2.new(0, 0, 0.983251095, 0)
- Background.Size = UDim2.new(0, 353, 0, 87)
- kb.Name = "kb"
- kb.Parent = Background
- kb.BackgroundColor3 = Color3.new(1, 1, 1)
- kb.BorderSizePixel = 0
- kb.Position = UDim2.new(0.703364968, 0, 0.310344845, 0)
- kb.Size = UDim2.new(0, 92, 0, 33)
- kb.Font = Enum.Font.SourceSansLight
- kb.Text = "Kick"
- kb.TextColor3 = Color3.new(1, 1, 1)
- kb.TextScaled = true
- kb.TextSize = 14
- kb.TextWrapped = true
- rt.Name = "rt"
- rt.Parent = Background
- rt.BackgroundColor3 = Color3.new(1, 1, 1)
- rt.BorderSizePixel = 0
- rt.Position = UDim2.new(0.32861191, 0, 0.310344815, 0)
- rt.Size = UDim2.new(0, 118, 0, 33)
- rt.Font = Enum.Font.SourceSansLight
- rt.PlaceholderColor3 = Color3.new(1, 1, 1)
- rt.PlaceholderText = "Reason"
- rt.Text = "Reason"
- rt.TextColor3 = Color3.new(1, 1, 1)
- rt.TextScaled = true
- rt.TextSize = 14
- rt.TextWrapped = true
- pn.Name = "pn"
- pn.Parent = Background
- pn.BackgroundColor3 = Color3.new(1, 1, 1)
- pn.BorderSizePixel = 0
- pn.Position = UDim2.new(0.033994332, 0, 0.310344815, 0)
- pn.Size = UDim2.new(0, 89, 0, 33)
- pn.Font = Enum.Font.SourceSansLight
- pn.PlaceholderColor3 = Color3.new(1, 1, 1)
- pn.PlaceholderText = "Player"
- pn.Text = "Player"
- pn.TextColor3 = Color3.new(1, 1, 1)
- pn.TextScaled = true
- pn.TextSize = 14
- pn.TextWrapped = true
- kb.MouseButton1Click:Connect(function()
- local findPlayer = game.Players:FindFirstChild(pn.Text)
- if findPlayer then
- local text = rt.Text
- game.ReplicatedStorage.Events.KickCommand:FireServer(findPlayer, text)
- end
- end)
- local UserInputService,gui,dragging,dragInput,dragStart,startPos = game:GetService("UserInputService"),Top
- local function update(input)
- local delta = input.Position - dragStart
- gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
- end
- gui.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
- dragging = true
- dragStart = input.Position
- startPos = gui.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragging = false
- end
- end)
- end
- end)
- gui.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
- dragInput = input
- end
- end)
- UserInputService.InputChanged:Connect(function(input)
- if input == dragInput and dragging then
- update(input)
- end
- end)
- while wait() do
- local r = (math.sin(workspace.DistributedGameTime/2)/2)+0.5
- local g = (math.sin(workspace.DistributedGameTime)/2)+0.5
- local b = (math.sin(workspace.DistributedGameTime*1.5)/2)+0.5
- local color = Color3.new(r, g, b)
- kb.BackgroundColor3 = color
- pn.BackgroundColor3 = color
- rt.BackgroundColor3 = color
- Top.BackgroundColor3 = color
- end
Advertisement
Add Comment
Please, Sign In to add comment