Advertisement
Guest User

Untitled

a guest
Dec 9th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.52 KB | None | 0 0
  1. --By Rufus14, i dont want to fight with admins, so everyone enjoy family friendly version of cop
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. script.Parent = game.Players.LocalPlayer.PlayerGui
  4. mouse = game.Players.LocalPlayer:GetMouse()
  5. game.Players.LocalPlayer.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
  6. local txtfag = Instance.new("BillboardGui", game.Players.LocalPlayer.Character.Head)
  7. txtfag.Adornee = suckadick
  8. txtfag.Name = "kys nigga"
  9. txtfag.Size = UDim2.new(2, 0, 1.2, 0)
  10. txtfag.StudsOffset = Vector3.new(-5, 3, 0)
  11. local textfag = Instance.new("TextLabel", txtfag)
  12. textfag.Size = UDim2.new(6, 0, 1, 0)
  13. textfag.FontSize = "Size8"
  14. textfag.TextScaled = true
  15. textfag.TextTransparency = 0
  16. textfag.BackgroundTransparency = 1
  17. textfag.TextTransparency = 0
  18. textfag.TextStrokeTransparency = 0
  19. textfag.Font = "SourceSans"
  20. textfag.TextStrokeColor3 = Color3.new(0, 1, 0)
  21. v = Instance.new("Part")
  22. v.Name = "ColorBrick"
  23. v.Parent = part
  24. v.FormFactor = "Symmetric"
  25. v.Anchored = true
  26. v.CanCollide = false
  27. v.BottomSurface = "Smooth"
  28. v.TopSurface = "Smooth"
  29. v.Size = Vector3.new(10, 5, 3)
  30. v.Transparency = 0.7
  31. v.BrickColor = game.Players.LocalPlayer.Character.Torso.BrickColor
  32. v.Transparency = 1
  33. textfag.TextColor3 = v.BrickColor.Color
  34. textfag.TextStrokeColor3 = Color3.new(0, 0, 0)
  35. v.Shape = "Block"
  36. textfag.Text = "Script By Rufus14"
  37. wait(2)
  38. textfag.Text = "This is family friendly version, ok?"
  39. wait(2)
  40. textfag.Text = game.Players.LocalPlayer.Character.Name.." the Anti-Skid Cop"
  41. local music = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
  42. music.Volume = 7
  43. music.SoundId = "rbxassetid://1005514617"
  44. music.PlaybackSpeed = 0.97
  45. music:Play()
  46. music.Looped = true
  47. music.Name = "Boi, its family friendly now, ok?"
  48. alert = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
  49. alert.Volume = 10
  50. alert.SoundId = "rbxassetid://1011639456"
  51. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 17
  52. --Converted with ttyyuu12345's model to script plugin v4
  53. function sandbox(var,func)
  54. local env = getfenv(func)
  55. local newenv = setmetatable({},{
  56. __index = function(self,k)
  57. if k=="script" then
  58. return var
  59. else
  60. return env[k]
  61. end
  62. end,
  63. })
  64. setfenv(func,newenv)
  65. return func
  66. end
  67. cors = {}
  68. mas = Instance.new("Model",game:GetService("Lighting"))
  69. Model0 = Instance.new("Model")
  70. Part1 = Instance.new("Part")
  71. Part2 = Instance.new("Part")
  72. Part3 = Instance.new("Part")
  73. Part4 = Instance.new("Part")
  74. Part5 = Instance.new("Part")
  75. Part6 = Instance.new("Part")
  76. Part7 = Instance.new("Part")
  77. Part8 = Instance.new("Part")
  78. Part9 = Instance.new("Part")
  79. Part10 = Instance.new("Part")
  80. Part11 = Instance.new("Part")
  81. SurfaceGui12 = Instance.new("SurfaceGui")
  82. TextLabel13 = Instance.new("TextLabel")
  83. Part14 = Instance.new("Part")
  84. Part15 = Instance.new("Part")
  85. Part16 = Instance.new("Part")
  86. Part17 = Instance.new("Part")
  87. Part18 = Instance.new("Part")
  88. Part19 = Instance.new("Part")
  89. Part20 = Instance.new("Part")
  90. Part21 = Instance.new("Part")
  91. Part22 = Instance.new("Part")
  92. Part23 = Instance.new("Part")
  93. Part24 = Instance.new("Part")
  94. Part25 = Instance.new("Part")
  95. Part26 = Instance.new("Part")
  96. Part27 = Instance.new("Part")
  97. Part28 = Instance.new("Part")
  98. Part29 = Instance.new("Part")
  99. Part30 = Instance.new("Part")
  100. Part31 = Instance.new("Part")
  101. Model0.Name = "Cage made in: USA"
  102. Model0.Parent = mas
  103. Part1.Parent = Model0
  104. Part1.Size = Vector3.new(47.2700005, 0.0500000007, 43.0499954)
  105. Part1.CFrame = CFrame.new(4.84311581, 0.0250000004, -146.123688, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  106. Part1.BottomSurface = Enum.SurfaceType.Smooth
  107. Part1.TopSurface = Enum.SurfaceType.Smooth
  108. Part1.Position = Vector3.new(4.84311581, 0.0250000004, -146.123688)
  109. Part2.Parent = Model0
  110. Part2.Material = Enum.Material.Glass
  111. Part2.BrickColor = BrickColor.new("Dirt brown")
  112. Part2.Transparency = 0.60000002384186
  113. Part2.Size = Vector3.new(1.04000008, 19.5599995, 2.4599998)
  114. Part2.CFrame = CFrame.new(13.5710411, 9.77999973, -125.828674, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  115. Part2.BottomSurface = Enum.SurfaceType.Smooth
  116. Part2.TopSurface = Enum.SurfaceType.Smooth
  117. Part2.Color = Color3.new(0.239216, 0.239216, 0.243137)
  118. Part2.Position = Vector3.new(13.5710411, 9.77999973, -125.828674)
  119. Part2.Color = Color3.new(0.239216, 0.239216, 0.243137)
  120. Part3.Parent = Model0
  121. Part3.Material = Enum.Material.Glass
  122. Part3.BrickColor = BrickColor.new("Dirt brown")
  123. Part3.Transparency = 0.60000002384186
  124. Part3.Size = Vector3.new(1.04000008, 19.5599995, 2.4599998)
  125. Part3.CFrame = CFrame.new(5.77168941, 9.77999973, -125.828674, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  126. Part3.BottomSurface = Enum.SurfaceType.Smooth
  127. Part3.TopSurface = Enum.SurfaceType.Smooth
  128. Part3.Color = Color3.new(0.239216, 0.239216, 0.243137)
  129. Part3.Position = Vector3.new(5.77168941, 9.77999973, -125.828674)
  130. Part3.Color = Color3.new(0.239216, 0.239216, 0.243137)
  131. Part4.Parent = Model0
  132. Part4.Material = Enum.Material.Glass
  133. Part4.BrickColor = BrickColor.new("Dirt brown")
  134. Part4.Transparency = 0.60000002384186
  135. Part4.Size = Vector3.new(1.04000008, 19.5599995, 2.4599998)
  136. Part4.CFrame = CFrame.new(-10.4467468, 9.77999973, -125.828674, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  137. Part4.BottomSurface = Enum.SurfaceType.Smooth
  138. Part4.TopSurface = Enum.SurfaceType.Smooth
  139. Part4.Color = Color3.new(0.239216, 0.239216, 0.243137)
  140. Part4.Position = Vector3.new(-10.4467468, 9.77999973, -125.828674)
  141. Part4.Color = Color3.new(0.239216, 0.239216, 0.243137)
  142. Part5.Parent = Model0
  143. Part5.Material = Enum.Material.Glass
  144. Part5.BrickColor = BrickColor.new("Dirt brown")
  145. Part5.Transparency = 0.60000002384186
  146. Part5.Size = Vector3.new(1.04000008, 19.5599995, 2.4599998)
  147. Part5.CFrame = CFrame.new(-6.42777252, 9.77999973, -125.828674, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  148. Part5.BottomSurface = Enum.SurfaceType.Smooth
  149. Part5.TopSurface = Enum.SurfaceType.Smooth
  150. Part5.Color = Color3.new(0.239216, 0.239216, 0.243137)
  151. Part5.Position = Vector3.new(-6.42777252, 9.77999973, -125.828674)
  152. Part5.Color = Color3.new(0.239216, 0.239216, 0.243137)
  153. Part6.Parent = Model0
  154. Part6.Material = Enum.Material.Glass
  155. Part6.BrickColor = BrickColor.new("Dirt brown")
  156. Part6.Transparency = 0.60000002384186
  157. Part6.Size = Vector3.new(1.04000008, 19.5599995, 2.4599998)
  158. Part6.CFrame = CFrame.new(-4.45135212, 9.77999973, -125.828674, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  159. Part6.BottomSurface = Enum.SurfaceType.Smooth
  160. Part6.TopSurface = Enum.SurfaceType.Smooth
  161. Part6.Color = Color3.new(0.239216, 0.239216, 0.243137)
  162. Part6.Position = Vector3.new(-4.45135212, 9.77999973, -125.828674)
  163. Part6.Color = Color3.new(0.239216, 0.239216, 0.243137)
  164. Part7.Parent = Model0
  165. Part7.Material = Enum.Material.Glass
  166. Part7.BrickColor = BrickColor.new("Dirt brown")
  167. Part7.Transparency = 0.60000002384186
  168. Part7.Size = Vector3.new(1.04000008, 19.5599995, 2.4599998)
  169. Part7.CFrame = CFrame.new(-8.45885181, 9.77999973, -125.828674, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  170. Part7.BottomSurface = Enum.SurfaceType.Smooth
  171. Part7.TopSurface = Enum.SurfaceType.Smooth
  172. Part7.Color = Color3.new(0.239216, 0.239216, 0.243137)
  173. Part7.Position = Vector3.new(-8.45885181, 9.77999973, -125.828674)
  174. Part7.Color = Color3.new(0.239216, 0.239216, 0.243137)
  175. Part8.Parent = Model0
  176. Part8.Size = Vector3.new(1.73000002, 19.9200039, 43.0499954)
  177. Part8.CFrame = CFrame.new(-17.9268837, 9.96000195, -146.123688, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  178. Part8.BottomSurface = Enum.SurfaceType.Smooth
  179. Part8.TopSurface = Enum.SurfaceType.Smooth
  180. Part8.Position = Vector3.new(-17.9268837, 9.96000195, -146.123688)
  181. Part9.Parent = Model0
  182. Part9.Size = Vector3.new(1.64999998, 20.2000008, 43.0499954)
  183. Part9.CFrame = CFrame.new(27.6531181, 10.1000004, -146.123688, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  184. Part9.BottomSurface = Enum.SurfaceType.Smooth
  185. Part9.TopSurface = Enum.SurfaceType.Smooth
  186. Part9.Position = Vector3.new(27.6531181, 10.1000004, -146.123688)
  187. Part10.Parent = Model0
  188. Part10.Size = Vector3.new(47.2700005, 1.91000092, 43.0499954)
  189. Part10.CFrame = CFrame.new(4.84311581, 20.305006, -146.123688, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  190. Part10.BottomSurface = Enum.SurfaceType.Smooth
  191. Part10.TopSurface = Enum.SurfaceType.Smooth
  192. Part10.Position = Vector3.new(4.84311581, 20.305006, -146.123688)
  193. Part11.Name = "wall"
  194. Part11.Parent = Model0
  195. Part11.Size = Vector3.new(47.2700005, 20.8199997, 0.499995023)
  196. Part11.CFrame = CFrame.new(4.84311581, 10.4099998, -167.398682, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  197. Part11.BottomSurface = Enum.SurfaceType.Smooth
  198. Part11.TopSurface = Enum.SurfaceType.Smooth
  199. Part11.Position = Vector3.new(4.84311581, 10.4099998, -167.398682)
  200. SurfaceGui12.Parent = Part11
  201. SurfaceGui12.Face = Enum.NormalId.Back
  202. TextLabel13.Parent = SurfaceGui12
  203. TextLabel13.Transparency = 1
  204. TextLabel13.Size = UDim2.new(1, 0, 1, 0)
  205. TextLabel13.Text = "u are a skid lol"
  206. TextLabel13.BackgroundColor3 = Color3.new(1, 1, 1)
  207. TextLabel13.BackgroundTransparency = 1
  208. TextLabel13.Font = Enum.Font.SourceSans
  209. TextLabel13.FontSize = Enum.FontSize.Size14
  210. TextLabel13.TextScaled = true
  211. TextLabel13.TextWrapped = true
  212. Part14.Parent = Model0
  213. Part14.Material = Enum.Material.Glass
  214. Part14.BrickColor = BrickColor.new("Dirt brown")
  215. Part14.Transparency = 1
  216. Part14.Size = Vector3.new(45.0499916, 19.5599995, 2.4599998)
  217. Part14.CFrame = CFrame.new(4.59112835, 9.77999973, -125.828674, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  218. Part14.BottomSurface = Enum.SurfaceType.Smooth
  219. Part14.TopSurface = Enum.SurfaceType.Smooth
  220. Part14.Color = Color3.new(0.239216, 0.239216, 0.243137)
  221. Part14.Position = Vector3.new(4.59112835, 9.77999973, -125.828674)
  222. Part14.Color = Color3.new(0.239216, 0.239216, 0.243137)
  223. Part15.Parent = Model0
  224. Part15.Material = Enum.Material.Glass
  225. Part15.BrickColor = BrickColor.new("Dirt brown")
  226. Part15.Transparency = 0.60000002384186
  227. Part15.Size = Vector3.new(1.04000008, 19.5599995, 2.4599998)
  228. Part15.CFrame = CFrame.new(11.3973522, 9.77999973, -125.828674, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  229. Part15.BottomSurface = Enum.SurfaceType.Smooth
  230. Part15.TopSurface = Enum.SurfaceType.Smooth
  231. Part15.Color = Color3.new(0.239216, 0.239216, 0.243137)
  232. Part15.Position = Vector3.new(11.3973522, 9.77999973, -125.828674)
  233. Part15.Color = Color3.new(0.239216, 0.239216, 0.243137)
  234. Part16.Parent = Model0
  235. Part16.Material = Enum.Material.Glass
  236. Part16.BrickColor = BrickColor.new("Dirt brown")
  237. Part16.Transparency = 0.60000002384186
  238. Part16.Size = Vector3.new(1.04000008, 19.5599995, 2.4599998)
  239. Part16.CFrame = CFrame.new(21.5248566, 9.77999973, -125.828674, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  240. Part16.BottomSurface = Enum.SurfaceType.Smooth
  241. Part16.TopSurface = Enum.SurfaceType.Smooth
  242. Part16.Color = Color3.new(0.239216, 0.239216, 0.243137)
  243. Part16.Position = Vector3.new(21.5248566, 9.77999973, -125.828674)
  244. Part16.Color = Color3.new(0.239216, 0.239216, 0.243137)
  245. Part17.Parent = Model0
  246. Part17.Material = Enum.Material.Glass
  247. Part17.BrickColor = BrickColor.new("Dirt brown")
  248. Part17.Transparency = 0.60000002384186
  249. Part17.Size = Vector3.new(1.04000008, 19.5599995, 2.4599998)
  250. Part17.CFrame = CFrame.new(3.67004967, 9.77999973, -125.828674, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  251. Part17.BottomSurface = Enum.SurfaceType.Smooth
  252. Part17.TopSurface = Enum.SurfaceType.Smooth
  253. Part17.Color = Color3.new(0.239216, 0.239216, 0.243137)
  254. Part17.Position = Vector3.new(3.67004967, 9.77999973, -125.828674)
  255. Part17.Color = Color3.new(0.239216, 0.239216, 0.243137)
  256. Part18.Parent = Model0
  257. Part18.Material = Enum.Material.Glass
  258. Part18.BrickColor = BrickColor.new("Dirt brown")
  259. Part18.Transparency = 0.60000002384186
  260. Part18.Size = Vector3.new(1.04000008, 19.5599995, 2.4599998)
  261. Part18.CFrame = CFrame.new(-0.491317272, 9.77999973, -125.828674, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  262. Part18.BottomSurface = Enum.SurfaceType.Smooth
  263. Part18.TopSurface = Enum.SurfaceType.Smooth
  264. Part18.Color = Color3.new(0.239216, 0.239216, 0.243137)
  265. Part18.Position = Vector3.new(-0.491317272, 9.77999973, -125.828674)
  266. Part18.Color = Color3.new(0.239216, 0.239216, 0.243137)
  267. Part19.Parent = Model0
  268. Part19.Material = Enum.Material.Glass
  269. Part19.BrickColor = BrickColor.new("Dirt brown")
  270. Part19.Transparency = 0.60000002384186
  271. Part19.Size = Vector3.new(1.04000008, 19.5599995, 2.4599998)
  272. Part19.CFrame = CFrame.new(-12.5608559, 9.77999973, -125.828674, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  273. Part19.BottomSurface = Enum.SurfaceType.Smooth
  274. Part19.TopSurface = Enum.SurfaceType.Smooth
  275. Part19.Color = Color3.new(0.239216, 0.239216, 0.243137)
  276. Part19.Position = Vector3.new(-12.5608559, 9.77999973, -125.828674)
  277. Part19.Color = Color3.new(0.239216, 0.239216, 0.243137)
  278. Part20.Parent = Model0
  279. Part20.Material = Enum.Material.Glass
  280. Part20.BrickColor = BrickColor.new("Dirt brown")
  281. Part20.Transparency = 0.60000002384186
  282. Part20.Size = Vector3.new(1.04000008, 19.5599995, 2.4599998)
  283. Part20.CFrame = CFrame.new(19.5271378, 9.77999973, -125.828674, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  284. Part20.BottomSurface = Enum.SurfaceType.Smooth
  285. Part20.TopSurface = Enum.SurfaceType.Smooth
  286. Part20.Color = Color3.new(0.239216, 0.239216, 0.243137)
  287. Part20.Position = Vector3.new(19.5271378, 9.77999973, -125.828674)
  288. Part20.Color = Color3.new(0.239216, 0.239216, 0.243137)
  289. Part21.Parent = Model0
  290. Part21.Material = Enum.Material.Glass
  291. Part21.BrickColor = BrickColor.new("Dirt brown")
  292. Part21.Transparency = 0.60000002384186
  293. Part21.Size = Vector3.new(1.04000008, 19.5599995, 2.4599998)
  294. Part21.CFrame = CFrame.new(23.8515377, 9.77999973, -125.828674, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  295. Part21.BottomSurface = Enum.SurfaceType.Smooth
  296. Part21.TopSurface = Enum.SurfaceType.Smooth
  297. Part21.Color = Color3.new(0.239216, 0.239216, 0.243137)
  298. Part21.Position = Vector3.new(23.8515377, 9.77999973, -125.828674)
  299. Part21.Color = Color3.new(0.239216, 0.239216, 0.243137)
  300. Part22.Parent = Model0
  301. Part22.Material = Enum.Material.Glass
  302. Part22.BrickColor = BrickColor.new("Dirt brown")
  303. Part22.Transparency = 0.60000002384186
  304. Part22.Size = Vector3.new(1.04000008, 19.5599995, 2.4599998)
  305. Part22.CFrame = CFrame.new(17.6356087, 9.77999973, -125.828674, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  306. Part22.BottomSurface = Enum.SurfaceType.Smooth
  307. Part22.TopSurface = Enum.SurfaceType.Smooth
  308. Part22.Color = Color3.new(0.239216, 0.239216, 0.243137)
  309. Part22.Position = Vector3.new(17.6356087, 9.77999973, -125.828674)
  310. Part22.Color = Color3.new(0.239216, 0.239216, 0.243137)
  311. Part23.Parent = Model0
  312. Part23.Material = Enum.Material.Glass
  313. Part23.BrickColor = BrickColor.new("Dirt brown")
  314. Part23.Transparency = 0.60000002384186
  315. Part23.Size = Vector3.new(1.04000008, 19.5599995, 2.4599998)
  316. Part23.CFrame = CFrame.new(9.30171013, 9.77999973, -125.828674, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  317. Part23.BottomSurface = Enum.SurfaceType.Smooth
  318. Part23.TopSurface = Enum.SurfaceType.Smooth
  319. Part23.Color = Color3.new(0.239216, 0.239216, 0.243137)
  320. Part23.Position = Vector3.new(9.30171013, 9.77999973, -125.828674)
  321. Part23.Color = Color3.new(0.239216, 0.239216, 0.243137)
  322. Part24.Parent = Model0
  323. Part24.Material = Enum.Material.Glass
  324. Part24.BrickColor = BrickColor.new("Dirt brown")
  325. Part24.Transparency = 0.60000002384186
  326. Part24.Size = Vector3.new(1.04000008, 19.5599995, 2.4599998)
  327. Part24.CFrame = CFrame.new(-14.5114193, 9.77999973, -125.828674, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  328. Part24.BottomSurface = Enum.SurfaceType.Smooth
  329. Part24.TopSurface = Enum.SurfaceType.Smooth
  330. Part24.Color = Color3.new(0.239216, 0.239216, 0.243137)
  331. Part24.Position = Vector3.new(-14.5114193, 9.77999973, -125.828674)
  332. Part24.Color = Color3.new(0.239216, 0.239216, 0.243137)
  333. Part25.Parent = Model0
  334. Part25.Material = Enum.Material.Glass
  335. Part25.BrickColor = BrickColor.new("Dirt brown")
  336. Part25.Transparency = 0.60000002384186
  337. Part25.Size = Vector3.new(1.04000008, 19.5599995, 2.4599998)
  338. Part25.CFrame = CFrame.new(1.60006809, 9.77999973, -125.828674, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  339. Part25.BottomSurface = Enum.SurfaceType.Smooth
  340. Part25.TopSurface = Enum.SurfaceType.Smooth
  341. Part25.Color = Color3.new(0.239216, 0.239216, 0.243137)
  342. Part25.Position = Vector3.new(1.60006809, 9.77999973, -125.828674)
  343. Part25.Color = Color3.new(0.239216, 0.239216, 0.243137)
  344. Part26.Parent = Model0
  345. Part26.Material = Enum.Material.Glass
  346. Part26.BrickColor = BrickColor.new("Dirt brown")
  347. Part26.Transparency = 0.60000002384186
  348. Part26.Size = Vector3.new(1.04000008, 19.5599995, 2.4599998)
  349. Part26.CFrame = CFrame.new(7.55406761, 9.77999973, -125.828674, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  350. Part26.BottomSurface = Enum.SurfaceType.Smooth
  351. Part26.TopSurface = Enum.SurfaceType.Smooth
  352. Part26.Color = Color3.new(0.239216, 0.239216, 0.243137)
  353. Part26.Position = Vector3.new(7.55406761, 9.77999973, -125.828674)
  354. Part26.Color = Color3.new(0.239216, 0.239216, 0.243137)
  355. Part27.Parent = Model0
  356. Part27.Material = Enum.Material.Glass
  357. Part27.BrickColor = BrickColor.new("Dirt brown")
  358. Part27.Transparency = 0.60000002384186
  359. Part27.Size = Vector3.new(1.04000008, 19.5599995, 2.4599998)
  360. Part27.CFrame = CFrame.new(25.8261185, 9.77999973, -125.828674, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  361. Part27.BottomSurface = Enum.SurfaceType.Smooth
  362. Part27.TopSurface = Enum.SurfaceType.Smooth
  363. Part27.Color = Color3.new(0.239216, 0.239216, 0.243137)
  364. Part27.Position = Vector3.new(25.8261185, 9.77999973, -125.828674)
  365. Part27.Color = Color3.new(0.239216, 0.239216, 0.243137)
  366. Part28.Parent = Model0
  367. Part28.Material = Enum.Material.Glass
  368. Part28.BrickColor = BrickColor.new("Dirt brown")
  369. Part28.Transparency = 0.60000002384186
  370. Part28.Size = Vector3.new(1.04000008, 19.5599995, 2.4599998)
  371. Part28.CFrame = CFrame.new(25.8261185, 9.77999973, -125.828674, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  372. Part28.BottomSurface = Enum.SurfaceType.Smooth
  373. Part28.TopSurface = Enum.SurfaceType.Smooth
  374. Part28.Color = Color3.new(0.239216, 0.239216, 0.243137)
  375. Part28.Position = Vector3.new(25.8261185, 9.77999973, -125.828674)
  376. Part28.Color = Color3.new(0.239216, 0.239216, 0.243137)
  377. Part29.Parent = Model0
  378. Part29.Material = Enum.Material.Glass
  379. Part29.BrickColor = BrickColor.new("Dirt brown")
  380. Part29.Transparency = 0.60000002384186
  381. Part29.Size = Vector3.new(1.04000008, 19.5599995, 2.4599998)
  382. Part29.CFrame = CFrame.new(15.5452538, 9.77999973, -125.828674, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  383. Part29.BottomSurface = Enum.SurfaceType.Smooth
  384. Part29.TopSurface = Enum.SurfaceType.Smooth
  385. Part29.Color = Color3.new(0.239216, 0.239216, 0.243137)
  386. Part29.Position = Vector3.new(15.5452538, 9.77999973, -125.828674)
  387. Part29.Color = Color3.new(0.239216, 0.239216, 0.243137)
  388. Part30.Parent = Model0
  389. Part30.Material = Enum.Material.Glass
  390. Part30.BrickColor = BrickColor.new("Dirt brown")
  391. Part30.Transparency = 0.60000002384186
  392. Part30.Size = Vector3.new(1.04000008, 19.5599995, 2.4599998)
  393. Part30.CFrame = CFrame.new(-2.50907612, 9.77999973, -125.828674, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  394. Part30.BottomSurface = Enum.SurfaceType.Smooth
  395. Part30.TopSurface = Enum.SurfaceType.Smooth
  396. Part30.Color = Color3.new(0.239216, 0.239216, 0.243137)
  397. Part30.Position = Vector3.new(-2.50907612, 9.77999973, -125.828674)
  398. Part30.Color = Color3.new(0.239216, 0.239216, 0.243137)
  399. Part31.Parent = Model0
  400. Part31.Material = Enum.Material.Glass
  401. Part31.BrickColor = BrickColor.new("Dirt brown")
  402. Part31.Transparency = 0.60000002384186
  403. Part31.Size = Vector3.new(1.04000008, 19.5599995, 2.4599998)
  404. Part31.CFrame = CFrame.new(-16.5557938, 9.77999973, -125.828674, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  405. Part31.BottomSurface = Enum.SurfaceType.Smooth
  406. Part31.TopSurface = Enum.SurfaceType.Smooth
  407. Part31.Color = Color3.new(0.239216, 0.239216, 0.243137)
  408. Part31.Position = Vector3.new(-16.5557938, 9.77999973, -125.828674)
  409. Part31.Color = Color3.new(0.239216, 0.239216, 0.243137)
  410. for i,v in pairs(mas:GetChildren()) do
  411. v.Parent = game:GetService("Players").LocalPlayer.Character
  412. pcall(function() v:MakeJoints() end)
  413. end
  414. mas:Destroy()
  415. for i,v in pairs(cors) do
  416. spawn(function()
  417. pcall(v)
  418. end)
  419. end
  420. for i,v in pairs(Model0:GetChildren()) do
  421. if v.ClassName == "Part" then
  422. v.Anchored = true
  423. end
  424. end
  425. for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  426. if v.ClassName == "Hat" or v.ClassName == "Accessory" then
  427. v:destroy()
  428. end
  429. end
  430. --Converted with ttyyuu12345's model to script plugin v4
  431. function sandbox(var,func)
  432. local env = getfenv(func)
  433. local newenv = setmetatable({},{
  434. __index = function(self,k)
  435. if k=="script" then
  436. return var
  437. else
  438. return env[k]
  439. end
  440. end,
  441. })
  442. setfenv(func,newenv)
  443. return func
  444. end
  445. cors = {}
  446. mas = Instance.new("Model",game:GetService("Lighting"))
  447. Part0hat = Instance.new("Part")
  448. SpecialMesh1 = Instance.new("SpecialMesh")
  449. Part0hat.Name = "Police Cap"
  450. Part0hat.Parent = mas
  451. Part0hat.Rotation = Vector3.new(0, -90, 0)
  452. Part0hat.Anchored = false
  453. Part0hat.FormFactor = Enum.FormFactor.Plate
  454. Part0hat.Size = Vector3.new(2, 0.400000006, 1)
  455. Part0hat.CFrame = CFrame.new(-6.5, 0.599538267, -62, 0, 0, -1, 0, 1, -0, 1, 0, -0)
  456. Part0hat.BottomSurface = Enum.SurfaceType.Weld
  457. Part0hat.TopSurface = Enum.SurfaceType.Smooth
  458. Part0hat.Position = Vector3.new(-6.5, 0.599538267, -62)
  459. Part0hat.Orientation = Vector3.new(0, -90, 0)
  460. SpecialMesh1.Parent = Part0hat
  461. SpecialMesh1.MeshId = "http://www.roblox.com/asset/?id=1028788"
  462. SpecialMesh1.Scale = Vector3.new(1.10000002, 1.10000002, 1.10000002)
  463. SpecialMesh1.TextureId = "http://www.roblox.com/asset/?id=1028787"
  464. SpecialMesh1.VertexColor = Vector3.new(2, 1, 1)
  465. SpecialMesh1.MeshType = Enum.MeshType.FileMesh
  466. SpecialMesh1.Scale = Vector3.new(1.10000002, 1.10000002, 1.10000002)
  467. for i,v in pairs(mas:GetChildren()) do
  468. v.Parent = game:GetService("Players").LocalPlayer.Character
  469. pcall(function() v:MakeJoints() end)
  470. end
  471. mas:Destroy()
  472. for i,v in pairs(cors) do
  473. spawn(function()
  474. pcall(v)
  475. end)
  476. end
  477. --Converted with ttyyuu12345's model to script plugin v4
  478. function sandbox(var,func)
  479. local env = getfenv(func)
  480. local newenv = setmetatable({},{
  481. __index = function(self,k)
  482. if k=="script" then
  483. return var
  484. else
  485. return env[k]
  486. end
  487. end,
  488. })
  489. setfenv(func,newenv)
  490. return func
  491. end
  492. cors = {}
  493. mas = Instance.new("Model",game:GetService("Lighting"))
  494. Part0e = Instance.new("Part")
  495. Part0e.Name = "pos"
  496. Part0e.Parent = mas
  497. Part0e.Anchored = true
  498. Part0e.Transparency = 1
  499. Part0e.CanCollide = false
  500. Part0e.Size = Vector3.new(4, 1, 2)
  501. Part0e.CFrame = CFrame.new(4.841, 0.5, -120.804)
  502. Part0e.BottomSurface = Enum.SurfaceType.Smooth
  503. Part0e.TopSurface = Enum.SurfaceType.Smooth
  504. for i,v in pairs(mas:GetChildren()) do
  505. v.Parent = workspace
  506. pcall(function() v:MakeJoints() end)
  507. end
  508. mas:Destroy()
  509. for i,v in pairs(cors) do
  510. spawn(function()
  511. pcall(v)
  512. end)
  513. end
  514. Part0e.Parent = Model0
  515. local weldofcap = Instance.new("Weld", Part0hat)
  516. weldofcap.Part0 = game.Players.LocalPlayer.Character.Head
  517. weldofcap.Part1 = Part0hat
  518. weldofcap.C0 = CFrame.new(0,0.5,0)
  519. -- Objects
  520.  
  521. local SurfaceGui = Instance.new("SurfaceGui")
  522. local TextLabel = Instance.new("TextLabel")
  523.  
  524. -- Properties
  525.  
  526. SurfaceGui.Parent = Part11
  527. SurfaceGui.Face = Enum.NormalId.Back
  528.  
  529. TextLabel.Parent = SurfaceGui
  530. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  531. TextLabel.BackgroundTransparency = 1
  532. TextLabel.Size = UDim2.new(1, 0, 1, 0)
  533. TextLabel.Font = Enum.Font.SourceSans
  534. TextLabel.FontSize = Enum.FontSize.Size14
  535. TextLabel.Text = "u are a skid lol"
  536. TextLabel.TextScaled = true
  537. TextLabel.TextSize = 14
  538. TextLabel.TextWrapped = true
  539. function lol()
  540. TextLabel.TextColor3 = Color3.fromRGB(math.random(1,255),math.random(1,255),math.random(1,255))
  541. end
  542. game:GetService("RunService").RenderStepped:connect(lol)
  543. jailedbois = {}
  544. canjail = true
  545. using = false
  546. function clicked()
  547. local humanoid = mouse.Target.Parent:findFirstChildOfClass("Humanoid")
  548. if humanoid and not using and canjail then
  549. if humanoid.Parent.Name ~= "Rufus14" or humanoid.Parent.Name ~= "alexion9581" then
  550. using = true
  551. local lhandclone = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
  552. local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  553. lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  554. lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
  555. lhandweld.C0 = CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  556. table.insert(jailedbois, humanoid.Parent.Name)
  557. local donttp = Instance.new("BoolValue", humanoid.Parent)
  558. donttp.Name = "DontTp"
  559. humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
  560. for i,v in pairs(humanoid.Parent:GetChildren()) do
  561. if v.ClassName == "LocalScript" or v.ClassName == "Script" then
  562. v:Remove()
  563. end
  564. end
  565. --Converted with ttyyuu12345's model to script plugin v4
  566. function sandbox(var,func)
  567. local env = getfenv(func)
  568. local newenv = setmetatable({},{
  569. __index = function(self,k)
  570. if k=="script" then
  571. return var
  572. else
  573. return env[k]
  574. end
  575. end,
  576. })
  577. setfenv(func,newenv)
  578. return func
  579. end
  580. cors = {}
  581. mas = Instance.new("Model",game:GetService("Lighting"))
  582. local Sound0 = Instance.new("Sound")
  583. Sound0.Name = "crybabi"
  584. Sound0.Parent = mas
  585. Sound0.SoundId = "rbxassetid://553084572"
  586. Sound0.Volume = 10
  587. for i,v in pairs(mas:GetChildren()) do
  588. v.Parent = game:GetService("Players").LocalPlayer.Character
  589. pcall(function() v:MakeJoints() end)
  590. end
  591. mas:Destroy()
  592. for i,v in pairs(cors) do
  593. spawn(function()
  594. pcall(v)
  595. end)
  596. end
  597. humanoid.Name = "ContentCOPP'D"
  598. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
  599. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 0
  600. alert:Play()
  601. music.Volume = 5
  602. textfag.Text = "HEY!"
  603. for i = 0,1 , 0.05 do
  604. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame:lerp(CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position,humanoid.Parent.Torso.Position),i)
  605. --humanoid.Parent.Torso.CFrame = humanoid.Parent.Torso.CFrame:lerp(CFrame.new(humanoid.Parent.Torso.Position,game.Players.LocalPlayer.Character.Torso.Position),i)
  606. game:GetService("RunService").RenderStepped:wait()
  607. end
  608. wait(0.5)
  609. humanoid.WalkSpeed = 0
  610. humanoid.JumpPower = 0
  611. textfag.Text = "Stop!"
  612. for i = 0,1 , 0.05 do
  613. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame:lerp(CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position,humanoid.Parent.Torso.Position),i)
  614. humanoid.Parent.Torso.CFrame = humanoid.Parent.Torso.CFrame:lerp(CFrame.new(humanoid.Parent.Torso.Position,game.Players.LocalPlayer.Character.Torso.Position),i)
  615. game:GetService("RunService").RenderStepped:wait()
  616. end
  617. for i = 0,1 , 0.08 do
  618. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0.436240673, -0.959949374, 1, -5.23747954e-22, -2.65673535e-22, -2.65673535e-22, 3.13253081e-22, -1, 5.23747954e-22, 1, 3.13253081e-22),i)
  619. game:GetService("RunService").RenderStepped:wait()
  620. end
  621. local he = humanoid.Parent.Head
  622. local to = humanoid.Parent.Torso
  623. wait(1)
  624. textfag.Text = "You are arrested by Anti-Skid police!"
  625. wait(2)
  626. textfag.Text = "BECAUSE YOU ARE ABUSING SCRIPTS!"
  627. wait(2)
  628. Sound0:Play()
  629. local path = game:GetService("PathfindingService"):ComputeRawPathAsync(humanoid.Parent.Torso.Position,Part0e.Position,200)
  630. local go = path:GetPointCoordinates()
  631. textfag.Text = game.Players.LocalPlayer.Character.Name.." the Anti-Skid Cop"
  632. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 20
  633. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 80
  634. for i = 1, #go do
  635. local pos = Instance.new("Part", humanoid.Parent)
  636. pos.Name = "GoTo1"
  637. pos.TopSurface = "Smooth"
  638. pos.BottomSurface = "Smooth"
  639. pos.Transparency = 1
  640. pos.CanCollide = false
  641. pos.Size = Vector3.new(0.4,0.4,0.4)
  642. pos.Anchored = true
  643. pos.Position = go[i] + Vector3.new(0,2.8,0)
  644. for i = 0,0.5 , 0.04 do
  645. to.CFrame = to.CFrame:lerp(pos.CFrame,i)
  646. game:GetService("RunService").RenderStepped:wait()
  647. end
  648. pos:destroy()
  649. --to.CFrame = CFrame.new(to.Position,game.Players.LocalPlayer.Character.Jailol.GlassDoor.Position)
  650. end
  651. using = false
  652. lhandweld:destroy()
  653. lhandclone.Parent = game.Players.LocalPlayer.Character.Torso
  654. to.Anchored = true
  655. for i = 0,1 , 0.03 do
  656. to.CFrame = Part11.CFrame * CFrame.new(0,0,7)
  657. game:GetService("RunService").RenderStepped:wait()
  658. end
  659. local isinjail = Instance.new("BoolValue", he.Parent)
  660. isinjail.Name = "injail"
  661. donttp:destroy()
  662. local torposit = to.CFrame
  663. local txtfage = Instance.new("BillboardGui", he)
  664. txtfage.Adornee = oboi
  665. txtfage.Name = "time"
  666. txtfage.Size = UDim2.new(2, 0, 1.2, 0)
  667. txtfage.StudsOffset = Vector3.new(-5, 3, 0)
  668. local textfag = Instance.new("TextLabel", txtfage)
  669. textfag.Size = UDim2.new(6, 0, 1, 0)
  670. textfag.FontSize = "Size8"
  671. textfag.TextScaled = true
  672. textfag.TextTransparency = 0
  673. textfag.BackgroundTransparency = 1
  674. textfag.TextTransparency = 0
  675. textfag.TextStrokeTransparency = 0
  676. textfag.Font = "SourceSans"
  677. textfag.TextStrokeColor3 = Color3.new(0, 1, 0)
  678. v = Instance.new("Part")
  679. v.Name = "ColorBrick"
  680. v.Parent = part
  681. v.FormFactor = "Symmetric"
  682. v.Anchored = true
  683. v.CanCollide = false
  684. v.BottomSurface = "Smooth"
  685. v.TopSurface = "Smooth"
  686. v.Size = Vector3.new(10, 5, 3)
  687. v.Transparency = 0.7
  688. v.BrickColor = to.BrickColor
  689. v.Transparency = 1
  690. textfag.TextColor3 = v.BrickColor.Color
  691. textfag.TextStrokeColor3 = Color3.new(0, 0, 0)
  692. v.Shape = "Block"
  693. local numberfag = Instance.new("NumberValue", txtfage)
  694. numberfag.Name = "TimeValue"
  695. numberfag.Value = math.random(500,1000)
  696. textfag.Text = humanoid.Parent.Name.." (Time: "..numberfag.Value..")"
  697. to.Anchored = false
  698. humanoid.WalkSpeed = 16
  699. humanoid.JumpPower = 80
  700. wait(2)
  701. donttp:destroy()
  702. to.CFrame = torposit
  703. end
  704. end
  705. end
  706. mouse.Button1Down:connect(clicked)
  707. while true do
  708. for i,v in pairs(game.Players:GetChildren()) do
  709. if v.Character then
  710. for i = 1,#jailedbois do
  711. if v.Character.Name == jailedbois[i] then
  712. if not v.Character:findFirstChild("DontTp") then
  713. if not v.Character:findFirstChild("injail") then
  714. if v.Character:findFirstChild("Head") then
  715. local isinjail = Instance.new("BoolValue", v.Character)
  716. isinjail.Name = "injail"
  717. v.Character.Head.CFrame = Part3.CFrame * CFrame.new(0,0,-4)
  718. local txtfage = Instance.new("BillboardGui", v.Character.Head)
  719. txtfage.Adornee = oboi
  720. txtfage.Name = "time"
  721. txtfage.Size = UDim2.new(2, 0, 1.2, 0)
  722. txtfage.StudsOffset = Vector3.new(-5, 3, 0)
  723. local textfag = Instance.new("TextLabel", txtfage)
  724. textfag.Size = UDim2.new(6, 0, 1, 0)
  725. textfag.FontSize = "Size8"
  726. textfag.TextScaled = true
  727. textfag.TextTransparency = 0
  728. textfag.BackgroundTransparency = 1
  729. textfag.TextTransparency = 0
  730. textfag.TextStrokeTransparency = 0
  731. textfag.Font = "SourceSans"
  732. textfag.TextStrokeColor3 = Color3.new(0, 1, 0)
  733. e = Instance.new("Part")
  734. e.Name = "ColorBrick"
  735. e.Parent = v.Character
  736. e.FormFactor = "Symmetric"
  737. e.Anchored = true
  738. e.CanCollide = false
  739. e.BottomSurface = "Smooth"
  740. e.TopSurface = "Smooth"
  741. e.Size = Vector3.new(10, 5, 3)
  742. e.Transparency = 0.7
  743. e.BrickColor = v.Character.Torso.BrickColor
  744. e.Transparency = 1
  745. textfag.TextColor3 = e.BrickColor.Color
  746. textfag.TextStrokeColor3 = Color3.new(0, 0, 0)
  747. e.Shape = "Block"
  748. local numberfag = Instance.new("NumberValue", txtfage)
  749. numberfag.Name = "TimeValue"
  750. numberfag.Value = math.random(500,1000)
  751. textfag.Text = v.Character.Name.." (Time: "..numberfag.Value..")"
  752. end
  753. end
  754. end
  755. end
  756. end
  757. if v.Character:findFirstChild("Head") then
  758. local timebillboard = v.Character.Head:findFirstChild("time")
  759. if timebillboard then
  760. local timetxt = timebillboard:findFirstChild("TimeValue")
  761. if timetxt then
  762. for q,w in pairs(v.Character:GetChildren()) do
  763. if w.ClassName == "LocalScript" or w.ClassName == "Script" then
  764. w:Remove()
  765. end
  766. end
  767. timetxt.Value = timetxt.Value - 1
  768. timebillboard.TextLabel.Text = v.Character.Name.." (Time: "..timetxt.Value..")"
  769. end
  770. if timetxt.Value < 1 then
  771. v.Character.Torso.CFrame = Part0e.CFrame * CFrame.new(0,3.5,0)
  772. timebillboard:destroy()
  773. local humm = v.Character:findFirstChildOfClass("Humanoid")
  774. for i,v in pairs(jailedbois) do
  775. if v == humm.Parent.Name then
  776. table.remove(jailedbois, i)
  777. end
  778. end
  779. if humm then
  780. humm.Name = "Humanoid"
  781. humm:SetStateEnabled(Enum.HumanoidStateType.Dead, true)
  782. end
  783. end
  784. end
  785. end
  786. end
  787. end
  788. if music.Parent == nil then
  789. music.Parent = game.Players.LocalPlayer.Character.Head
  790. end
  791. if alert.Parent == nil then
  792. alert.Parent = game.Players.LocalPlayer.Character.Head
  793. end
  794. wait(1)
  795. end
  796. -- This script has been converted to FE by iPxter
  797.  
  798.  
  799. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  800. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  801. do
  802. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  803. script.Parent = Player.Character
  804.  
  805. --RemoteEvent for communicating
  806. local Event = Instance.new("RemoteEvent")
  807. Event.Name = "UserInput_Event"
  808.  
  809. --Fake event to make stuff like Mouse.KeyDown work
  810. local function fakeEvent()
  811. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  812. t.connect = t.Connect
  813. return t
  814. end
  815.  
  816. --Creating fake input objects with fake variables
  817. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  818. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  819. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  820. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  821. end}
  822. --Merged 2 functions into one by checking amount of arguments
  823. CAS.UnbindAction = CAS.BindAction
  824.  
  825. --This function will trigger the events that have been :Connect()'ed
  826. local function te(self,ev,...)
  827. local t = m[ev]
  828. if t and t._fakeEvent and t.Function then
  829. t.Function(...)
  830. end
  831. end
  832. m.TrigEvent = te
  833. UIS.TrigEvent = te
  834.  
  835. Event.OnServerEvent:Connect(function(plr,io)
  836. if plr~=Player then return end
  837. if io.isMouse then
  838. m.Target = io.Target
  839. m.Hit = io.Hit
  840. else
  841. local b = io.UserInputState == Enum.UserInputState.Begin
  842. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  843. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  844. end
  845. for _,t in pairs(CAS.Actions) do
  846. for _,k in pairs(t.Keys) do
  847. if k==io.KeyCode then
  848. t.Function(t.Name,io.UserInputState,io)
  849. end
  850. end
  851. end
  852. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  853. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  854. end
  855. end)
  856. Event.Parent = NLS([==[
  857. local Player = game:GetService("Players").LocalPlayer
  858. local Event = script:WaitForChild("UserInput_Event")
  859.  
  860. local UIS = game:GetService("UserInputService")
  861. local input = function(io,a)
  862. if a then return end
  863. --Since InputObject is a client-side instance, we create and pass table instead
  864. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  865. end
  866. UIS.InputBegan:Connect(input)
  867. UIS.InputEnded:Connect(input)
  868.  
  869. local Mouse = Player:GetMouse()
  870. local h,t
  871. --Give the server mouse data 30 times every second, but only if the values changed
  872. --If player is not moving their mouse, client won't fire events
  873. while wait(1/30) do
  874. if h~=Mouse.Hit or t~=Mouse.Target then
  875. h,t=Mouse.Hit,Mouse.Target
  876. Event:FireServer({isMouse=true,Target=t,Hit=h})
  877. end
  878. end]==],Player.Character)
  879. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  880. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement