Advertisement
Runixer

Untitled

Aug 8th, 2019
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.82 KB | None | 0 0
  1. function GetPlayer(String)
  2. local Found = {}
  3. local strl = String:lower()
  4. if strl == "all" then
  5. for i,v in pairs(game.Players:GetPlayers()) do
  6. table.insert(Found,v.Name)
  7. end
  8. elseif strl == "others" then
  9. for i,v in pairs(game.Players:GetPlayers()) do
  10. if v.Name ~= game.Players.LocalPlayer.Name then
  11. table.insert(Found,v.Name)
  12. end
  13. end
  14. elseif strl == "me" then
  15. for i,v in pairs(game.Players:GetPlayers()) do
  16. if v.Name == game.Players.LocalPlayer.Name then
  17. table.insert(Found,v.Name)
  18. end
  19. end
  20. else
  21. for i,v in pairs(game.Players:GetPlayers()) do
  22. if v.Name:lower():sub(1, #String) == String:lower() then
  23. table.insert(Found,v.Name)
  24. end
  25. end
  26. end
  27. return Found
  28. end
  29.  
  30. local RagdollEngineGui = Instance.new("ScreenGui")
  31. local Frame = Instance.new("Frame")
  32. local TextLabel = Instance.new("TextLabel")
  33. local Kill = Instance.new("TextButton")
  34. local Seizure = Instance.new("TextButton")
  35. local Jail = Instance.new("TextButton")
  36. local Release = Instance.new("TextButton")
  37. local Sword = Instance.new("TextButton")
  38. local Player = Instance.new("TextBox")
  39. local Line = Instance.new("TextLabel")
  40. local Ragdoll = Instance.new("TextButton")
  41. local TextLabel_2 = Instance.new("TextLabel")
  42.  
  43. RagdollEngineGui.Name = "RagdollEngineGui"
  44. RagdollEngineGui.Parent = game.CoreGui
  45. RagdollEngineGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  46.  
  47. Frame.Active = true
  48. Frame.Draggable = true
  49. Frame.Parent = RagdollEngineGui
  50. Frame.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  51. Frame.BorderColor3 = Color3.new(0, 0, 0)
  52. Frame.BorderSizePixel = 0
  53. Frame.Position = UDim2.new(0.0181470867, 0, 0.556782365, 0)
  54. Frame.Size = UDim2.new(0, 337, 0, 260)
  55.  
  56. TextLabel.Parent = Frame
  57. TextLabel.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  58. TextLabel.BorderColor3 = Color3.new(0, 0, 0)
  59. TextLabel.BorderSizePixel = 0
  60. TextLabel.Size = UDim2.new(0, 337, 0, 42)
  61. TextLabel.Font = Enum.Font.Cartoon
  62. TextLabel.Text = "Ragdoll Engine Gui"
  63. TextLabel.TextColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  64. TextLabel.TextScaled = true
  65. TextLabel.TextSize = 14
  66. TextLabel.TextWrapped = true
  67.  
  68. Kill.Name = "Kill"
  69. Kill.Parent = Frame
  70. Kill.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  71. Kill.BorderColor3 = Color3.new(0, 0, 0)
  72. Kill.BorderSizePixel = 0
  73. Kill.Position = UDim2.new(0.0579999983, 0, 0.224000007, 0)
  74. Kill.Size = UDim2.new(0, 131, 0, 33)
  75. Kill.Font = Enum.Font.Cartoon
  76. Kill.Text = "Kill"
  77. Kill.TextColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  78. Kill.TextScaled = true
  79. Kill.TextSize = 14
  80. Kill.TextWrapped = true
  81.  
  82. Seizure.Name = "Seizure"
  83. Seizure.Parent = Frame
  84. Seizure.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  85. Seizure.BorderColor3 = Color3.new(0, 0, 0)
  86. Seizure.BorderSizePixel = 0
  87. Seizure.Position = UDim2.new(0.550999999, 0, 0.220153868, 0)
  88. Seizure.Size = UDim2.new(0, 131, 0, 33)
  89. Seizure.Font = Enum.Font.Cartoon
  90. Seizure.Text = "Seizure"
  91. Seizure.TextColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  92. Seizure.TextScaled = true
  93. Seizure.TextSize = 14
  94. Seizure.TextWrapped = true
  95.  
  96. Jail.Name = "Jail"
  97. Jail.Parent = Frame
  98. Jail.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  99. Jail.BorderColor3 = Color3.new(0, 0, 0)
  100. Jail.BorderSizePixel = 0
  101. Jail.Position = UDim2.new(0.0590000004, 0, 0.412, 0)
  102. Jail.Size = UDim2.new(0, 131, 0, 33)
  103. Jail.Font = Enum.Font.Cartoon
  104. Jail.Text = "Jail"
  105. Jail.TextColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  106. Jail.TextScaled = true
  107. Jail.TextSize = 14
  108. Jail.TextWrapped = true
  109.  
  110. Release.Name = "Release"
  111. Release.Parent = Frame
  112. Release.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  113. Release.BorderColor3 = Color3.new(0, 0, 0)
  114. Release.BorderSizePixel = 0
  115. Release.Position = UDim2.new(0.550999999, 0, 0.408615381, 0)
  116. Release.Size = UDim2.new(0, 131, 0, 33)
  117. Release.Font = Enum.Font.Cartoon
  118. Release.Text = "Release"
  119. Release.TextColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  120. Release.TextScaled = true
  121. Release.TextSize = 14
  122. Release.TextWrapped = true
  123.  
  124. Sword.Name = "Sword"
  125. Sword.Parent = Frame
  126. Sword.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  127. Sword.BorderColor3 = Color3.new(0, 0, 0)
  128. Sword.BorderSizePixel = 0
  129. Sword.Position = UDim2.new(0.0579999983, 0, 0.830769241, 0)
  130. Sword.Size = UDim2.new(0, 131, 0, 33)
  131. Sword.Font = Enum.Font.Cartoon
  132. Sword.Text = "Sword"
  133. Sword.TextColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  134. Sword.TextScaled = true
  135. Sword.TextSize = 14
  136. Sword.TextWrapped = true
  137.  
  138. Player.Name = "Player"
  139. Player.Parent = Frame
  140. Player.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  141. Player.BorderColor3 = Color3.new(0, 0, 0)
  142. Player.BorderSizePixel = 0
  143. Player.Position = UDim2.new(0.202000022, 0, 0.597000003, 0)
  144. Player.Size = UDim2.new(0, 200, 0, 33)
  145. Player.Font = Enum.Font.Cartoon
  146. Player.PlaceholderColor3 = Color3.new(0.490196, 0.490196, 0.490196)
  147. Player.PlaceholderText = "Player"
  148. Player.Text = ""
  149. Player.TextColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  150. Player.TextScaled = true
  151. Player.TextSize = 14
  152. Player.TextWrapped = true
  153.  
  154. Line.Name = "Line"
  155. Line.Parent = Frame
  156. Line.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  157. Line.BorderColor3 = Color3.new(0, 0, 0)
  158. Line.BorderSizePixel = 0
  159. Line.Position = UDim2.new(0, 0, 0.749999881, 0)
  160. Line.Size = UDim2.new(0, 337, 0, 10)
  161. Line.Font = Enum.Font.Cartoon
  162. Line.Text = ""
  163. Line.TextColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  164. Line.TextScaled = true
  165. Line.TextSize = 14
  166. Line.TextWrapped = true
  167.  
  168. Ragdoll.Name = "Ragdoll"
  169. Ragdoll.Parent = Frame
  170. Ragdoll.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  171. Ragdoll.BorderColor3 = Color3.new(0, 0, 0)
  172. Ragdoll.BorderSizePixel = 0
  173. Ragdoll.Position = UDim2.new(0.550581574, 0, 0.830769241, 0)
  174. Ragdoll.Size = UDim2.new(0, 131, 0, 33)
  175. Ragdoll.Font = Enum.Font.Cartoon
  176. Ragdoll.Text = "Ragdoll"
  177. Ragdoll.TextColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  178. Ragdoll.TextScaled = true
  179. Ragdoll.TextSize = 14
  180. Ragdoll.TextWrapped = true
  181.  
  182. TextLabel_2.Parent = Frame
  183. TextLabel_2.BackgroundColor3 = Color3.new(0.784314, 0.784314, 0.784314)
  184. TextLabel_2.BorderColor3 = Color3.new(0, 0, 0)
  185. TextLabel_2.BorderSizePixel = 0
  186. TextLabel_2.Position = UDim2.new(0.854599416, 0, 0.596153736, 0)
  187. TextLabel_2.Size = UDim2.new(0, 49, 0, 40)
  188. TextLabel_2.Font = Enum.Font.Cartoon
  189. TextLabel_2.Text = "Gui by Uctron"
  190. TextLabel_2.TextColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  191. TextLabel_2.TextScaled = true
  192. TextLabel_2.TextSize = 14
  193. TextLabel_2.TextWrapped = true
  194.  
  195. Kill.MouseButton1Click:Connect(function()
  196. for i,v in pairs(GetPlayer(Player.Text)) do
  197. game.ReplicatedStorage.Events.Jail:FireServer(game.Players[v])
  198. game.ReplicatedStorage.Events.Release:FireServer(game.Players[v])
  199. end
  200. end)
  201.  
  202. Seizure.MouseButton1Click:Connect(function()
  203. for i,v in pairs(GetPlayer(Player.Text)) do
  204. repeat
  205. game.ReplicatedStorage.Events.Jail:FireServer(game.Players[v])
  206. game.ReplicatedStorage.Events.Release:FireServer(game.Players[v])
  207. game:GetService("RunService").RenderStepped:Wait()
  208. until game.Players.LocalPlayer.Character.Humanoid.Health == 0
  209. end
  210. end)
  211.  
  212. Jail.MouseButton1Click:Connect(function()
  213. for i,v in pairs(GetPlayer(Player.Text)) do
  214. game.ReplicatedStorage.Events.Jail:FireServer(game.Players[v])
  215. end
  216. end)
  217.  
  218. Release.MouseButton1Click:Connect(function()
  219. for i,v in pairs(GetPlayer(Player.Text)) do
  220. game.ReplicatedStorage.Events.Release:FireServer(game.Players[v])
  221. end
  222. end)
  223.  
  224. Sword.MouseButton1Click:Connect(function()
  225. local Sword = Instance.new("Tool")
  226. local Handle = Instance.new("Part")
  227. local Mesh = Instance.new("SpecialMesh")
  228. local Unsheath = Instance.new("Sound")
  229. local SwordSlash = Instance.new("Sound")
  230. SwordSlash.Name = "SwordSlash"
  231. Unsheath.Name = "Unsheath"
  232. Unsheath.SoundId = "http://www.roblox.com/asset/?id=12222225"
  233. Unsheath.Volume = 1
  234. SwordSlash.SoundId = "http://www.roblox.com/asset/?id=12222216"
  235. SwordSlash.Volume = .7
  236. Unsheath.Parent = Handle
  237. SwordSlash.Parent = Handle
  238. Mesh.Parent = Handle
  239. Mesh.MeshId = "rbxassetid://497078148"
  240. Mesh.Scale = Vector3.new(5,5,5)
  241. Handle.Name = "Handle"
  242. Handle.Parent = Sword
  243. Sword.GripForward = Vector3.new(-1,0,0)
  244. Sword.GripPos = Vector3.new(0,0,-1.5)
  245. Sword.GripRight = Vector3.new(0,1,0)
  246. Sword.GripUp = Vector3.new(0,0,1)
  247. Sword.ToolTip = "Uctron's Sword"
  248. Sword.TextureId = "rbxasset://Textures/Sword128.png"
  249. Sword.CanBeDropped = false
  250. Sword.RequiresHandle = true
  251. Handle.Orientation = Vector3.new(-46.24, 42.14, 50.93)
  252. Handle.Position = Vector3.new(-3.174,1.57,3.04)
  253. Handle.CanCollide = true
  254. Handle.Size = Vector3.new(1,.8,4)
  255. Mesh.MeshId = "rbxasset://fonts/sword.mesh"
  256. Mesh.MeshType = "FileMesh"
  257. Mesh.Offset = Vector3.new(0,0,0)
  258. Mesh.Scale = Vector3.new(1,1,1)
  259. Mesh.TextureId = "rbxasset://textures/SwordTexture.png"
  260. Sword.Equipped:Connect(function()
  261. Unsheath:Play()
  262. end)
  263. Sword.Activated:Connect(function()
  264. SwordSlash:Play()
  265. Handle.Touched:Connect(function(Handle)
  266. p=game.Players:FindFirstChild(Handle.Parent.Name)
  267. game.ReplicatedStorage.Events.Jail:FireServer(p)
  268. game.ReplicatedStorage.Events.Release:FireServer(p)
  269. end)
  270. local Anim = Instance.new("StringValue")
  271. Anim.Name = "toolanim"
  272. Anim.Value = "Slash"
  273. Anim.Parent = Sword
  274. end)
  275. Mouse_Icon = "rbxasset://textures/GunCursor.png"
  276. Reloading_Icon = "rbxasset://textures/GunWaitCursor.png"
  277. Tool = Sword
  278. Mouse = nil
  279. function UpdateIcon()
  280. if Mouse then
  281. Mouse.Icon = Tool.Enabled and Mouse_Icon or Reloading_Icon
  282. end
  283. end
  284. function OnEquipped(ToolMouse)
  285. Mouse = ToolMouse
  286. UpdateIcon()
  287. end
  288. function OnChanged(Property)
  289. if Property == "Enabled" then
  290. UpdateIcon()
  291. end
  292. end
  293. Tool.Equipped:Connect(OnEquipped)
  294. Tool.Changed:Connect(OnChanged)
  295. Sword.Parent = game.Players.LocalPlayer.Backpack
  296. end)
  297.  
  298. Ragdoll.MouseButton1Click:Connect(function()
  299. game.ReplicatedStorage.Events.RagdollState:FireServer(true)
  300. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement