Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function GetPlayer(String)
- local Found = {}
- local strl = String:lower()
- if strl == "all" then
- for i,v in pairs(game.Players:GetPlayers()) do
- table.insert(Found,v.Name)
- end
- elseif strl == "others" then
- for i,v in pairs(game.Players:GetPlayers()) do
- if v.Name ~= game.Players.LocalPlayer.Name then
- table.insert(Found,v.Name)
- end
- end
- elseif strl == "me" then
- for i,v in pairs(game.Players:GetPlayers()) do
- if v.Name == game.Players.LocalPlayer.Name then
- table.insert(Found,v.Name)
- end
- end
- else
- for i,v in pairs(game.Players:GetPlayers()) do
- if v.Name:lower():sub(1, #String) == String:lower() then
- table.insert(Found,v.Name)
- end
- end
- end
- return Found
- end
- local RagdollEngineGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local TextLabel = Instance.new("TextLabel")
- local Kill = Instance.new("TextButton")
- local Seizure = Instance.new("TextButton")
- local Jail = Instance.new("TextButton")
- local Release = Instance.new("TextButton")
- local Sword = Instance.new("TextButton")
- local Player = Instance.new("TextBox")
- local Line = Instance.new("TextLabel")
- local Ragdoll = Instance.new("TextButton")
- local TextLabel_2 = Instance.new("TextLabel")
- RagdollEngineGui.Name = "RagdollEngineGui"
- RagdollEngineGui.Parent = game.CoreGui
- RagdollEngineGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Frame.Active = true
- Frame.Draggable = true
- Frame.Parent = RagdollEngineGui
- Frame.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
- Frame.BorderColor3 = Color3.new(0, 0, 0)
- Frame.BorderSizePixel = 0
- Frame.Position = UDim2.new(0.0181470867, 0, 0.556782365, 0)
- Frame.Size = UDim2.new(0, 337, 0, 260)
- TextLabel.Parent = Frame
- TextLabel.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
- TextLabel.BorderColor3 = Color3.new(0, 0, 0)
- TextLabel.BorderSizePixel = 0
- TextLabel.Size = UDim2.new(0, 337, 0, 42)
- TextLabel.Font = Enum.Font.Cartoon
- TextLabel.Text = "Ragdoll Engine Gui"
- TextLabel.TextColor3 = Color3.new(0.196078, 0.196078, 0.196078)
- TextLabel.TextScaled = true
- TextLabel.TextSize = 14
- TextLabel.TextWrapped = true
- Kill.Name = "Kill"
- Kill.Parent = Frame
- Kill.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
- Kill.BorderColor3 = Color3.new(0, 0, 0)
- Kill.BorderSizePixel = 0
- Kill.Position = UDim2.new(0.0579999983, 0, 0.224000007, 0)
- Kill.Size = UDim2.new(0, 131, 0, 33)
- Kill.Font = Enum.Font.Cartoon
- Kill.Text = "Kill"
- Kill.TextColor3 = Color3.new(0.196078, 0.196078, 0.196078)
- Kill.TextScaled = true
- Kill.TextSize = 14
- Kill.TextWrapped = true
- Seizure.Name = "Seizure"
- Seizure.Parent = Frame
- Seizure.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
- Seizure.BorderColor3 = Color3.new(0, 0, 0)
- Seizure.BorderSizePixel = 0
- Seizure.Position = UDim2.new(0.550999999, 0, 0.220153868, 0)
- Seizure.Size = UDim2.new(0, 131, 0, 33)
- Seizure.Font = Enum.Font.Cartoon
- Seizure.Text = "Seizure"
- Seizure.TextColor3 = Color3.new(0.196078, 0.196078, 0.196078)
- Seizure.TextScaled = true
- Seizure.TextSize = 14
- Seizure.TextWrapped = true
- Jail.Name = "Jail"
- Jail.Parent = Frame
- Jail.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
- Jail.BorderColor3 = Color3.new(0, 0, 0)
- Jail.BorderSizePixel = 0
- Jail.Position = UDim2.new(0.0590000004, 0, 0.412, 0)
- Jail.Size = UDim2.new(0, 131, 0, 33)
- Jail.Font = Enum.Font.Cartoon
- Jail.Text = "Jail"
- Jail.TextColor3 = Color3.new(0.196078, 0.196078, 0.196078)
- Jail.TextScaled = true
- Jail.TextSize = 14
- Jail.TextWrapped = true
- Release.Name = "Release"
- Release.Parent = Frame
- Release.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
- Release.BorderColor3 = Color3.new(0, 0, 0)
- Release.BorderSizePixel = 0
- Release.Position = UDim2.new(0.550999999, 0, 0.408615381, 0)
- Release.Size = UDim2.new(0, 131, 0, 33)
- Release.Font = Enum.Font.Cartoon
- Release.Text = "Release"
- Release.TextColor3 = Color3.new(0.196078, 0.196078, 0.196078)
- Release.TextScaled = true
- Release.TextSize = 14
- Release.TextWrapped = true
- Sword.Name = "Sword"
- Sword.Parent = Frame
- Sword.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
- Sword.BorderColor3 = Color3.new(0, 0, 0)
- Sword.BorderSizePixel = 0
- Sword.Position = UDim2.new(0.0579999983, 0, 0.830769241, 0)
- Sword.Size = UDim2.new(0, 131, 0, 33)
- Sword.Font = Enum.Font.Cartoon
- Sword.Text = "Sword"
- Sword.TextColor3 = Color3.new(0.196078, 0.196078, 0.196078)
- Sword.TextScaled = true
- Sword.TextSize = 14
- Sword.TextWrapped = true
- Player.Name = "Player"
- Player.Parent = Frame
- Player.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
- Player.BorderColor3 = Color3.new(0, 0, 0)
- Player.BorderSizePixel = 0
- Player.Position = UDim2.new(0.202000022, 0, 0.597000003, 0)
- Player.Size = UDim2.new(0, 200, 0, 33)
- Player.Font = Enum.Font.Cartoon
- Player.PlaceholderColor3 = Color3.new(0.490196, 0.490196, 0.490196)
- Player.PlaceholderText = "Player"
- Player.Text = ""
- Player.TextColor3 = Color3.new(0.196078, 0.196078, 0.196078)
- Player.TextScaled = true
- Player.TextSize = 14
- Player.TextWrapped = true
- Line.Name = "Line"
- Line.Parent = Frame
- Line.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
- Line.BorderColor3 = Color3.new(0, 0, 0)
- Line.BorderSizePixel = 0
- Line.Position = UDim2.new(0, 0, 0.749999881, 0)
- Line.Size = UDim2.new(0, 337, 0, 10)
- Line.Font = Enum.Font.Cartoon
- Line.Text = ""
- Line.TextColor3 = Color3.new(0.196078, 0.196078, 0.196078)
- Line.TextScaled = true
- Line.TextSize = 14
- Line.TextWrapped = true
- Ragdoll.Name = "Ragdoll"
- Ragdoll.Parent = Frame
- Ragdoll.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
- Ragdoll.BorderColor3 = Color3.new(0, 0, 0)
- Ragdoll.BorderSizePixel = 0
- Ragdoll.Position = UDim2.new(0.550581574, 0, 0.830769241, 0)
- Ragdoll.Size = UDim2.new(0, 131, 0, 33)
- Ragdoll.Font = Enum.Font.Cartoon
- Ragdoll.Text = "Ragdoll"
- Ragdoll.TextColor3 = Color3.new(0.196078, 0.196078, 0.196078)
- Ragdoll.TextScaled = true
- Ragdoll.TextSize = 14
- Ragdoll.TextWrapped = true
- TextLabel_2.Parent = Frame
- TextLabel_2.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
- TextLabel_2.BorderColor3 = Color3.new(0, 0, 0)
- TextLabel_2.BorderSizePixel = 0
- TextLabel_2.Position = UDim2.new(0.854599416, 0, 0.596153736, 0)
- TextLabel_2.Size = UDim2.new(0, 49, 0, 40)
- TextLabel_2.Font = Enum.Font.Cartoon
- TextLabel_2.Text = "Gui by Uctron"
- TextLabel_2.TextColor3 = Color3.new(0.196078, 0.196078, 0.196078)
- TextLabel_2.TextScaled = true
- TextLabel_2.TextSize = 14
- TextLabel_2.TextWrapped = true
- Kill.MouseButton1Click:Connect(function()
- for i,v in pairs(GetPlayer(Player.Text)) do
- game.ReplicatedStorage.Events.Jail:FireServer(game.Players[v])
- game.ReplicatedStorage.Events.Release:FireServer(game.Players[v])
- end
- end)
- Seizure.MouseButton1Click:Connect(function()
- for i,v in pairs(GetPlayer(Player.Text)) do
- repeat
- game.ReplicatedStorage.Events.Jail:FireServer(game.Players[v])
- game.ReplicatedStorage.Events.Release:FireServer(game.Players[v])
- game:GetService("RunService").RenderStepped:Wait()
- until game.Players.LocalPlayer.Character.Humanoid.Health == 0
- end
- end)
- Jail.MouseButton1Click:Connect(function()
- for i,v in pairs(GetPlayer(Player.Text)) do
- game.ReplicatedStorage.Events.Jail:FireServer(game.Players[v])
- end
- end)
- Release.MouseButton1Click:Connect(function()
- for i,v in pairs(GetPlayer(Player.Text)) do
- game.ReplicatedStorage.Events.Release:FireServer(game.Players[v])
- end
- end)
- Sword.MouseButton1Click:Connect(function()
- local Sword = Instance.new("Tool")
- local Handle = Instance.new("Part")
- local Mesh = Instance.new("SpecialMesh")
- local Unsheath = Instance.new("Sound")
- local SwordSlash = Instance.new("Sound")
- SwordSlash.Name = "SwordSlash"
- Unsheath.Name = "Unsheath"
- Unsheath.SoundId = "http://www.roblox.com/asset/?id=12222225"
- Unsheath.Volume = 1
- SwordSlash.SoundId = "http://www.roblox.com/asset/?id=12222216"
- SwordSlash.Volume = .7
- Unsheath.Parent = Handle
- SwordSlash.Parent = Handle
- Mesh.Parent = Handle
- Mesh.MeshId = "rbxassetid://497078148"
- Mesh.Scale = Vector3.new(5,5,5)
- Handle.Name = "Handle"
- Handle.Parent = Sword
- Sword.GripForward = Vector3.new(-1,0,0)
- Sword.GripPos = Vector3.new(0,0,-1.5)
- Sword.GripRight = Vector3.new(0,1,0)
- Sword.GripUp = Vector3.new(0,0,1)
- Sword.ToolTip = "Uctron's Sword"
- Sword.TextureId = "rbxasset://Textures/Sword128.png"
- Sword.CanBeDropped = false
- Sword.RequiresHandle = true
- Handle.Orientation = Vector3.new(-46.24, 42.14, 50.93)
- Handle.Position = Vector3.new(-3.174,1.57,3.04)
- Handle.CanCollide = true
- Handle.Size = Vector3.new(1,.8,4)
- Mesh.MeshId = "rbxasset://fonts/sword.mesh"
- Mesh.MeshType = "FileMesh"
- Mesh.Offset = Vector3.new(0,0,0)
- Mesh.Scale = Vector3.new(1,1,1)
- Mesh.TextureId = "rbxasset://textures/SwordTexture.png"
- Sword.Equipped:Connect(function()
- Unsheath:Play()
- end)
- Sword.Activated:Connect(function()
- SwordSlash:Play()
- Handle.Touched:Connect(function(Handle)
- p=game.Players:FindFirstChild(Handle.Parent.Name)
- game.ReplicatedStorage.Events.Jail:FireServer(p)
- game.ReplicatedStorage.Events.Release:FireServer(p)
- end)
- local Anim = Instance.new("StringValue")
- Anim.Name = "toolanim"
- Anim.Value = "Slash"
- Anim.Parent = Sword
- end)
- Mouse_Icon = "rbxasset://textures/GunCursor.png"
- Reloading_Icon = "rbxasset://textures/GunWaitCursor.png"
- Tool = Sword
- Mouse = nil
- function UpdateIcon()
- if Mouse then
- Mouse.Icon = Tool.Enabled and Mouse_Icon or Reloading_Icon
- end
- end
- function OnEquipped(ToolMouse)
- Mouse = ToolMouse
- UpdateIcon()
- end
- function OnChanged(Property)
- if Property == "Enabled" then
- UpdateIcon()
- end
- end
- Tool.Equipped:Connect(OnEquipped)
- Tool.Changed:Connect(OnChanged)
- Sword.Parent = game.Players.LocalPlayer.Backpack
- end)
- Ragdoll.MouseButton1Click:Connect(function()
- game.ReplicatedStorage.Events.RagdollState:FireServer(true)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement