Advertisement
GabeTheDog

German Dog script

Mar 23rd, 2018
3,085
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 49.04 KB | None | 0 0
  1. --Made By Bartus2009_Bro/GabeTheDog
  2. --Discord: Gabe#2408
  3.  
  4. --Converted with ttyyuu12345's model to script plugin v4
  5. function sandbox(var,func)
  6. local env = getfenv(func)
  7. local newenv = setmetatable({},{
  8. __index = function(self,k)
  9. if k=="script" then
  10. return var
  11. else
  12. return env[k]
  13. end
  14. end,
  15. })
  16. setfenv(func,newenv)
  17. return func
  18. end
  19. cors = {}
  20. mas = Instance.new("Model",game:GetService("Lighting"))
  21. Model0 = Instance.new("Model")
  22. Part1 = Instance.new("Part")
  23. SpecialMesh2 = Instance.new("SpecialMesh")
  24. SpecialMesh3 = Instance.new("SpecialMesh")
  25. BodyGyro4 = Instance.new("BodyGyro")
  26. BodyGyro5 = Instance.new("BodyGyro")
  27. BodyGyro6 = Instance.new("BodyGyro")
  28. BodyGyro7 = Instance.new("BodyGyro")
  29. BodyGyro8 = Instance.new("BodyGyro")
  30. BodyGyro9 = Instance.new("BodyGyro")
  31. Part10 = Instance.new("Part")
  32. Sound11 = Instance.new("Sound")
  33. SpecialMesh12 = Instance.new("SpecialMesh")
  34. Sound13 = Instance.new("Sound")
  35. ClickDetector14 = Instance.new("ClickDetector")
  36. Script15 = Instance.new("Script")
  37. ScreenGui16 = Instance.new("ScreenGui")
  38. Frame17 = Instance.new("Frame")
  39. TextLabel18 = Instance.new("TextLabel")
  40. Frame19 = Instance.new("Frame")
  41. Frame20 = Instance.new("Frame")
  42. Frame21 = Instance.new("Frame")
  43. TextBox22 = Instance.new("TextBox")
  44. TextLabel23 = Instance.new("TextLabel")
  45. Frame24 = Instance.new("Frame")
  46. TextButton25 = Instance.new("TextButton")
  47. TextButton26 = Instance.new("TextButton")
  48. TextButton27 = Instance.new("TextButton")
  49. Script28 = Instance.new("Script")
  50. TextLabel29 = Instance.new("TextLabel")
  51. Frame30 = Instance.new("Frame")
  52. TextLabel31 = Instance.new("TextLabel")
  53. TextLabel32 = Instance.new("TextLabel")
  54. TextButton33 = Instance.new("TextButton")
  55. TextButton34 = Instance.new("TextButton")
  56. TextButton35 = Instance.new("TextButton")
  57. TextButton36 = Instance.new("TextButton")
  58. TextButton37 = Instance.new("TextButton")
  59. TextButton38 = Instance.new("TextButton")
  60. TextButton39 = Instance.new("TextButton")
  61. TextButton40 = Instance.new("TextButton")
  62. TextButton41 = Instance.new("TextButton")
  63. TextButton42 = Instance.new("TextButton")
  64. TextBox43 = Instance.new("TextBox")
  65. TextLabel44 = Instance.new("TextLabel")
  66. TextButton45 = Instance.new("TextButton")
  67. Script46 = Instance.new("Script")
  68. ObjectValue47 = Instance.new("ObjectValue")
  69. ObjectValue48 = Instance.new("ObjectValue")
  70. ScrollingFrame49 = Instance.new("ScrollingFrame")
  71. TextButton50 = Instance.new("TextButton")
  72. Part51 = Instance.new("Part")
  73. SpecialMesh52 = Instance.new("SpecialMesh")
  74. Part53 = Instance.new("Part")
  75. SpecialMesh54 = Instance.new("SpecialMesh")
  76. Part55 = Instance.new("Part")
  77. SpecialMesh56 = Instance.new("SpecialMesh")
  78. Part57 = Instance.new("Part")
  79. SpecialMesh58 = Instance.new("SpecialMesh")
  80. Part59 = Instance.new("Part")
  81. Script60 = Instance.new("Script")
  82. Humanoid61 = Instance.new("Humanoid")
  83. ManualWeld62 = Instance.new("ManualWeld")
  84. Script63 = Instance.new("Script")
  85. Part64 = Instance.new("Part")
  86. SurfaceGui65 = Instance.new("SurfaceGui")
  87. BlockMesh66 = Instance.new("BlockMesh")
  88. Part67 = Instance.new("Part")
  89. SurfaceGui68 = Instance.new("SurfaceGui")
  90. BlockMesh69 = Instance.new("BlockMesh")
  91. Part70 = Instance.new("Part")
  92. SurfaceGui71 = Instance.new("SurfaceGui")
  93. TextLabel72 = Instance.new("TextLabel")
  94. SurfaceGui73 = Instance.new("SurfaceGui")
  95. TextLabel74 = Instance.new("TextLabel")
  96. Part75 = Instance.new("Part")
  97. SurfaceGui76 = Instance.new("SurfaceGui")
  98. TextLabel77 = Instance.new("TextLabel")
  99. SurfaceGui78 = Instance.new("SurfaceGui")
  100. TextLabel79 = Instance.new("TextLabel")
  101. BlockMesh80 = Instance.new("BlockMesh")
  102. Model0.Name = "Police Doggo"
  103. Model0.Parent = mas
  104. Part1.Name = "Torso"
  105. Part1.Parent = Model0
  106. Part1.BrickColor = BrickColor.new("Really black")
  107. Part1.Transparency = 1
  108. Part1.Rotation = Vector3.new(-0.0599999987, -55.7799988, -0.0700000003)
  109. Part1.Anchored = true
  110. Part1.CanCollide = false
  111. Part1.FormFactor = Enum.FormFactor.Custom
  112. Part1.Size = Vector3.new(1, 1.5, 3.75)
  113. Part1.CFrame = CFrame.new(-35.3941956, 2.47100091, -4.44286823, 0.562329412, 0.000707395142, -0.826914012, -0.000379030767, 1.00000119, 0.000597711361, 0.826911271, -2.26851444e-05, 0.562331021)
  114. Part1.BottomSurface = Enum.SurfaceType.Smooth
  115. Part1.TopSurface = Enum.SurfaceType.Smooth
  116. Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  117. Part1.Position = Vector3.new(-35.3941956, 2.47100091, -4.44286823)
  118. Part1.Orientation = Vector3.new(-0.0299999993, -55.7799988, -0.0199999996)
  119. Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  120. SpecialMesh2.Parent = Part1
  121. SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=257307222"
  122. SpecialMesh2.Scale = Vector3.new(1.10000002, 1, 1)
  123. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  124. SpecialMesh2.Scale = Vector3.new(1.10000002, 1, 1)
  125. SpecialMesh3.Parent = SpecialMesh2
  126. SpecialMesh3.MeshId = "http://www.roblox.com/asset/?id=257307555"
  127. SpecialMesh3.Offset = Vector3.new(0.0250000004, 0.200000003, 0.75)
  128. SpecialMesh3.MeshType = Enum.MeshType.FileMesh
  129. BodyGyro4.Parent = Part1
  130. BodyGyro4.CFrame = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  131. BodyGyro4.maxTorque = Vector3.new(8.99999949e+09, 0, 8.99999949e+09)
  132. BodyGyro4.MaxTorque = Vector3.new(8.99999949e+09, 0, 8.99999949e+09)
  133. BodyGyro5.Parent = Part1
  134. BodyGyro5.CFrame = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  135. BodyGyro5.maxTorque = Vector3.new(8.99999949e+09, 0, 8.99999949e+09)
  136. BodyGyro5.MaxTorque = Vector3.new(8.99999949e+09, 0, 8.99999949e+09)
  137. BodyGyro6.Parent = Part1
  138. BodyGyro6.CFrame = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  139. BodyGyro6.maxTorque = Vector3.new(8.99999949e+09, 0, 8.99999949e+09)
  140. BodyGyro6.MaxTorque = Vector3.new(8.99999949e+09, 0, 8.99999949e+09)
  141. BodyGyro7.Parent = Part1
  142. BodyGyro7.CFrame = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  143. BodyGyro7.maxTorque = Vector3.new(8.99999949e+09, 0, 8.99999949e+09)
  144. BodyGyro7.MaxTorque = Vector3.new(8.99999949e+09, 0, 8.99999949e+09)
  145. BodyGyro8.Parent = Part1
  146. BodyGyro8.CFrame = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  147. BodyGyro8.maxTorque = Vector3.new(8.99999949e+09, 0, 8.99999949e+09)
  148. BodyGyro8.MaxTorque = Vector3.new(8.99999949e+09, 0, 8.99999949e+09)
  149. BodyGyro9.Parent = Part1
  150. BodyGyro9.CFrame = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  151. BodyGyro9.maxTorque = Vector3.new(8.99999949e+09, 0, 8.99999949e+09)
  152. BodyGyro9.MaxTorque = Vector3.new(8.99999949e+09, 0, 8.99999949e+09)
  153. Part10.Name = "Head"
  154. Part10.Parent = Model0
  155. Part10.BrickColor = BrickColor.new("Really black")
  156. Part10.Transparency = 1
  157. Part10.Rotation = Vector3.new(-0.0599999987, -55.7799988, -0.0700000003)
  158. Part10.Anchored = true
  159. Part10.CanCollide = false
  160. Part10.FormFactor = Enum.FormFactor.Custom
  161. Part10.Size = Vector3.new(1, 0.200000003, 1)
  162. Part10.CFrame = CFrame.new(-34.2569809, 3.32026744, -5.21656227, 0.562329412, 0.000707395142, -0.826914012, -0.000379030767, 1.00000119, 0.000597711361, 0.826911271, -2.26851444e-05, 0.562331021)
  163. Part10.BottomSurface = Enum.SurfaceType.Smooth
  164. Part10.TopSurface = Enum.SurfaceType.Smooth
  165. Part10.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  166. Part10.Position = Vector3.new(-34.2569809, 3.32026744, -5.21656227)
  167. Part10.Orientation = Vector3.new(-0.0299999993, -55.7799988, -0.0199999996)
  168. Part10.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  169. Sound11.Name = "Bark"
  170. Sound11.Parent = Part10
  171. Sound11.SoundId = "rbxassetid://133322522"
  172. Sound11.TimePosition = 3.5
  173. Sound11.Volume = 1
  174. SpecialMesh12.Parent = Part10
  175. SpecialMesh12.Offset = Vector3.new(0.0250000004, 0.200000003, 0.75)
  176. SpecialMesh12.MeshType = Enum.MeshType.FileMesh
  177. Sound13.Parent = Part10
  178. ClickDetector14.Parent = Part10
  179. Script15.Parent = Part10
  180. table.insert(cors,sandbox(Script15,function()
  181. GID = 0
  182. RID = 0
  183.  
  184. script.Parent.ClickDetector.MouseClick:connect(function(player)
  185. if player:GetRankInGroup(GID) >= RID or player.Name == "United_Navy" then
  186. script.Parent.Parent.Name = "K9" ..player.Name
  187. local Gui = script.K9Gui:Clone()
  188. Gui.K9.Value = script.Parent.Parent
  189. Gui.Main.Script.Disabled = false
  190. Gui.Player.Value = player
  191. if not player.PlayerGui:FindFirstChild("K9Gui") then
  192. Gui.Parent = player.PlayerGui
  193. Gui.Main.Script.Disabled = false
  194. end
  195. script.Disabled = true
  196. end
  197. end)
  198.  
  199. end))
  200. ScreenGui16.Name = "K9Gui"
  201. ScreenGui16.Parent = Script15
  202. Frame17.Name = "Start"
  203. Frame17.Parent = ScreenGui16
  204. Frame17.Transparency = 0.20000000298023
  205. Frame17.Size = UDim2.new(0.300000012, 0, 0.400000006, 0)
  206. Frame17.Position = UDim2.new(0.300000012, 0, 0.300000012, 0)
  207. Frame17.BackgroundColor3 = Color3.new(0, 0, 0)
  208. Frame17.BackgroundTransparency = 0.20000000298023
  209. Frame17.BorderColor3 = Color3.new(1, 1, 1)
  210. Frame17.BorderSizePixel = 0
  211. TextLabel18.Name = "Title"
  212. TextLabel18.Parent = Frame17
  213. TextLabel18.Transparency = 1
  214. TextLabel18.Size = UDim2.new(1, 0, 0.100000001, 0)
  215. TextLabel18.Text = " Police K9 System"
  216. TextLabel18.BackgroundColor3 = Color3.new(1, 1, 1)
  217. TextLabel18.BackgroundTransparency = 1
  218. TextLabel18.Font = Enum.Font.Code
  219. TextLabel18.TextColor3 = Color3.new(1, 1, 1)
  220. TextLabel18.TextScaled = true
  221. TextLabel18.TextWrapped = true
  222. Frame19.Name = "Line"
  223. Frame19.Parent = Frame17
  224. Frame19.Size = UDim2.new(0.899999976, 0, 0, 2)
  225. Frame19.Position = UDim2.new(0.0500000007, 0, 0.119999997, 0)
  226. Frame19.BackgroundColor3 = Color3.new(1, 1, 1)
  227. Frame20.Name = "Options"
  228. Frame20.Parent = Frame17
  229. Frame20.Transparency = 1
  230. Frame20.Size = UDim2.new(1, 0, -0.725000024, 0)
  231. Frame20.Position = UDim2.new(0, 0, 1, 0)
  232. Frame20.BackgroundColor3 = Color3.new(1, 1, 1)
  233. Frame20.BackgroundTransparency = 1
  234. Frame20.BorderSizePixel = 0
  235. Frame21.Name = "DoggoName"
  236. Frame21.Parent = Frame20
  237. Frame21.Transparency = 1
  238. Frame21.Size = UDim2.new(1, 0, 0.300000012, 0)
  239. Frame21.BackgroundColor3 = Color3.new(1, 1, 1)
  240. Frame21.BackgroundTransparency = 1
  241. Frame21.BorderSizePixel = 0
  242. TextBox22.Name = "BoxName"
  243. TextBox22.Parent = Frame21
  244. TextBox22.Transparency = 0.40000000596046
  245. TextBox22.Size = UDim2.new(1, 0, -0.550000012, 0)
  246. TextBox22.Text = "Henry"
  247. TextBox22.Position = UDim2.new(0, 0, 1, 0)
  248. TextBox22.BackgroundColor3 = Color3.new(1, 1, 1)
  249. TextBox22.BackgroundTransparency = 0.40000000596046
  250. TextBox22.BorderSizePixel = 0
  251. TextBox22.Font = Enum.Font.SourceSans
  252. TextBox22.FontSize = Enum.FontSize.Size14
  253. TextBox22.TextScaled = true
  254. TextBox22.TextWrapped = true
  255. TextLabel23.Name = "LabelName"
  256. TextLabel23.Parent = Frame21
  257. TextLabel23.Transparency = 1
  258. TextLabel23.Size = UDim2.new(1, 0, 0.349999994, 0)
  259. TextLabel23.Text = "Insert Doggo's Name : "
  260. TextLabel23.BackgroundColor3 = Color3.new(1, 1, 1)
  261. TextLabel23.BackgroundTransparency = 1
  262. TextLabel23.BorderSizePixel = 0
  263. TextLabel23.Font = Enum.Font.SourceSans
  264. TextLabel23.FontSize = Enum.FontSize.Size14
  265. TextLabel23.TextColor3 = Color3.new(1, 1, 1)
  266. TextLabel23.TextScaled = true
  267. TextLabel23.TextWrapped = true
  268. Frame24.Name = "DoggoVest"
  269. Frame24.Parent = Frame20
  270. Frame24.Transparency = 1
  271. Frame24.Size = UDim2.new(1, 0, 0.25, 0)
  272. Frame24.Position = UDim2.new(0, 0, 0.349999994, 0)
  273. Frame24.BackgroundColor3 = Color3.new(1, 1, 1)
  274. Frame24.BackgroundTransparency = 1
  275. Frame24.BorderSizePixel = 0
  276. TextButton25.Name = "FirstDoggoVest"
  277. TextButton25.Parent = Frame24
  278. TextButton25.Size = UDim2.new(0.474999994, 0, 1, 0)
  279. TextButton25.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  280. TextButton25.Text = "First Doggo Vest"
  281. TextButton25.BackgroundColor3 = Color3.new(1, 1, 1)
  282. TextButton25.BorderSizePixel = 0
  283. TextButton25.Font = Enum.Font.SourceSans
  284. TextButton25.FontSize = Enum.FontSize.Size14
  285. TextButton25.TextScaled = true
  286. TextButton25.TextWrapped = true
  287. TextButton26.Name = "SecondDoggoVest"
  288. TextButton26.Parent = Frame24
  289. TextButton26.Size = UDim2.new(-0.474999994, 0, 1, 0)
  290. TextButton26.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  291. TextButton26.Text = "Second Doggo Vest"
  292. TextButton26.Position = UDim2.new(1, 0, 0, 0)
  293. TextButton26.BackgroundColor3 = Color3.new(1, 1, 1)
  294. TextButton26.BorderSizePixel = 0
  295. TextButton26.Font = Enum.Font.SourceSans
  296. TextButton26.FontSize = Enum.FontSize.Size14
  297. TextButton26.TextScaled = true
  298. TextButton26.TextWrapped = true
  299. TextButton27.Name = "Submit"
  300. TextButton27.Parent = Frame20
  301. TextButton27.Size = UDim2.new(1, 0, -0.300000012, 0)
  302. TextButton27.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  303. TextButton27.Text = "Submit"
  304. TextButton27.Position = UDim2.new(0, 0, 1, 0)
  305. TextButton27.BackgroundColor3 = Color3.new(1, 1, 1)
  306. TextButton27.BorderSizePixel = 0
  307. TextButton27.Font = Enum.Font.SourceSans
  308. TextButton27.FontSize = Enum.FontSize.Size14
  309. TextButton27.TextScaled = true
  310. TextButton27.TextWrapped = true
  311. Script28.Parent = Frame17
  312. table.insert(cors,sandbox(Script28,function()
  313. K9 = script.Parent.Parent.K9.Value
  314.  
  315. Text1 = K9.K9NameInd.Left.TextLabel
  316. Text2 = K9.K9NameInd.Right.TextLabel
  317.  
  318. BadgeID1 = ""
  319. BadgeID2 = ""
  320.  
  321. script.Parent.Options.Submit.MouseButton1Down:connect(function ()
  322. local dName = script.Parent.Options.DoggoName.BoxName.Text
  323. script.Parent.Parent.Main.NameLabel.Text = dName
  324. Text1.Text = dName
  325. Text2.Text = dName
  326.  
  327. script.Parent.Visible = false
  328. script.Parent.Parent.Main.Visible = true
  329. script.Parent.Parent.PlayerSelection.Visible = true
  330. end)
  331. end))
  332. TextLabel29.Parent = Frame17
  333. TextLabel29.Transparency = 1
  334. TextLabel29.Size = UDim2.new(1, 0, 0.100000001, 0)
  335. TextLabel29.Text = "Version Of System - 0.1.0"
  336. TextLabel29.Position = UDim2.new(0, 0, 0.119999997, 0)
  337. TextLabel29.BackgroundColor3 = Color3.new(1, 1, 1)
  338. TextLabel29.BackgroundTransparency = 1
  339. TextLabel29.Font = Enum.Font.SciFi
  340. TextLabel29.FontSize = Enum.FontSize.Size18
  341. TextLabel29.TextColor3 = Color3.new(1, 1, 1)
  342. TextLabel29.TextScaled = true
  343. TextLabel29.TextWrapped = true
  344. Frame30.Name = "Main"
  345. Frame30.Parent = ScreenGui16
  346. Frame30.Transparency = 0.89999997615814
  347. Frame30.Size = UDim2.new(0, 250, 0, 400)
  348. Frame30.Position = UDim2.new(1, -300, 0, 20)
  349. Frame30.Visible = false
  350. Frame30.BackgroundColor3 = Color3.new(0, 0, 0)
  351. Frame30.BackgroundTransparency = 0.89999997615814
  352. Frame30.ZIndex = 2
  353. TextLabel31.Name = "NameLabel"
  354. TextLabel31.Parent = Frame30
  355. TextLabel31.Size = UDim2.new(1, 0, 0.075000003, 0)
  356. TextLabel31.Text = "Henry"
  357. TextLabel31.BackgroundColor3 = Color3.new(1, 1, 1)
  358. TextLabel31.BorderSizePixel = 0
  359. TextLabel31.ZIndex = 3
  360. TextLabel31.Font = Enum.Font.Garamond
  361. TextLabel31.FontSize = Enum.FontSize.Size14
  362. TextLabel31.TextColor3 = Color3.new(0.427451, 0.427451, 0.427451)
  363. TextLabel31.TextScaled = true
  364. TextLabel31.TextWrapped = true
  365. TextLabel32.Name = "HealthLabel"
  366. TextLabel32.Parent = Frame30
  367. TextLabel32.Size = UDim2.new(1, 0, 0.075000003, 0)
  368. TextLabel32.Text = "Health : 100%"
  369. TextLabel32.Position = UDim2.new(0, 0, 0.0850000009, 0)
  370. TextLabel32.BackgroundColor3 = Color3.new(1, 1, 1)
  371. TextLabel32.BorderSizePixel = 0
  372. TextLabel32.ZIndex = 3
  373. TextLabel32.Font = Enum.Font.Garamond
  374. TextLabel32.FontSize = Enum.FontSize.Size14
  375. TextLabel32.TextColor3 = Color3.new(0.427451, 0.427451, 0.427451)
  376. TextLabel32.TextScaled = true
  377. TextLabel32.TextWrapped = true
  378. TextButton33.Name = "Come"
  379. TextButton33.Parent = Frame30
  380. TextButton33.Size = UDim2.new(0.5, 0, 0.100000001, 0)
  381. TextButton33.Style = Enum.ButtonStyle.RobloxRoundButton
  382. TextButton33.Text = "Come"
  383. TextButton33.Position = UDim2.new(0, 0, 0.360000014, 0)
  384. TextButton33.BackgroundColor3 = Color3.new(1, 1, 1)
  385. TextButton33.BorderSizePixel = 0
  386. TextButton33.ZIndex = 3
  387. TextButton33.Font = Enum.Font.SciFi
  388. TextButton33.FontSize = Enum.FontSize.Size9
  389. TextButton33.TextColor3 = Color3.new(1, 1, 1)
  390. TextButton33.TextScaled = true
  391. TextButton33.TextStrokeColor3 = Color3.new(1, 1, 1)
  392. TextButton33.TextStrokeTransparency = 0.75
  393. TextButton33.TextWrapped = true
  394. TextButton34.Name = "Attack"
  395. TextButton34.Parent = Frame30
  396. TextButton34.Size = UDim2.new(0.5, 0, 0.100000001, 0)
  397. TextButton34.Style = Enum.ButtonStyle.RobloxRoundButton
  398. TextButton34.Text = "Attack"
  399. TextButton34.Position = UDim2.new(0, 0, 0.25999999, 0)
  400. TextButton34.BackgroundColor3 = Color3.new(1, 1, 1)
  401. TextButton34.BorderSizePixel = 0
  402. TextButton34.ZIndex = 3
  403. TextButton34.Font = Enum.Font.SciFi
  404. TextButton34.FontSize = Enum.FontSize.Size9
  405. TextButton34.TextColor3 = Color3.new(1, 1, 1)
  406. TextButton34.TextScaled = true
  407. TextButton34.TextStrokeColor3 = Color3.new(1, 1, 1)
  408. TextButton34.TextStrokeTransparency = 0.75
  409. TextButton34.TextWrapped = true
  410. TextButton35.Name = "Teleport"
  411. TextButton35.Parent = Frame30
  412. TextButton35.Size = UDim2.new(1, 0, 0.100000001, 0)
  413. TextButton35.Style = Enum.ButtonStyle.RobloxRoundButton
  414. TextButton35.Text = "Teleport"
  415. TextButton35.Position = UDim2.new(0, 0, 0.165000007, 0)
  416. TextButton35.BackgroundColor3 = Color3.new(1, 1, 1)
  417. TextButton35.BorderSizePixel = 0
  418. TextButton35.ZIndex = 3
  419. TextButton35.Font = Enum.Font.SciFi
  420. TextButton35.FontSize = Enum.FontSize.Size9
  421. TextButton35.TextColor3 = Color3.new(1, 1, 1)
  422. TextButton35.TextScaled = true
  423. TextButton35.TextStrokeColor3 = Color3.new(1, 1, 1)
  424. TextButton35.TextStrokeTransparency = 0.75
  425. TextButton35.TextWrapped = true
  426. TextButton36.Name = "Jump"
  427. TextButton36.Parent = Frame30
  428. TextButton36.Size = UDim2.new(0.5, 0, 0.100000001, 0)
  429. TextButton36.Style = Enum.ButtonStyle.RobloxRoundButton
  430. TextButton36.Text = "Jump"
  431. TextButton36.Position = UDim2.new(0, 0, 0.460000008, 0)
  432. TextButton36.BackgroundColor3 = Color3.new(1, 1, 1)
  433. TextButton36.BorderSizePixel = 0
  434. TextButton36.ZIndex = 3
  435. TextButton36.Font = Enum.Font.SciFi
  436. TextButton36.FontSize = Enum.FontSize.Size9
  437. TextButton36.TextColor3 = Color3.new(1, 1, 1)
  438. TextButton36.TextScaled = true
  439. TextButton36.TextStrokeColor3 = Color3.new(1, 1, 1)
  440. TextButton36.TextStrokeTransparency = 0.75
  441. TextButton36.TextWrapped = true
  442. TextButton37.Name = "Bark"
  443. TextButton37.Parent = Frame30
  444. TextButton37.Size = UDim2.new(0.5, 0, 0.100000001, 0)
  445. TextButton37.Style = Enum.ButtonStyle.RobloxRoundButton
  446. TextButton37.Text = "Speak"
  447. TextButton37.Position = UDim2.new(0, 0, 0.560000002, 0)
  448. TextButton37.BackgroundColor3 = Color3.new(1, 1, 1)
  449. TextButton37.BorderSizePixel = 0
  450. TextButton37.ZIndex = 3
  451. TextButton37.Font = Enum.Font.SciFi
  452. TextButton37.FontSize = Enum.FontSize.Size9
  453. TextButton37.TextColor3 = Color3.new(1, 1, 1)
  454. TextButton37.TextScaled = true
  455. TextButton37.TextStrokeColor3 = Color3.new(1, 1, 1)
  456. TextButton37.TextStrokeTransparency = 0.75
  457. TextButton37.TextWrapped = true
  458. TextButton38.Name = "ToggleVest"
  459. TextButton38.Parent = Frame30
  460. TextButton38.Size = UDim2.new(-0.5, 0, 0.100000001, 0)
  461. TextButton38.Style = Enum.ButtonStyle.RobloxRoundButton
  462. TextButton38.Text = "Toggle Vest"
  463. TextButton38.Position = UDim2.new(1, 0, 0.560000002, 0)
  464. TextButton38.BackgroundColor3 = Color3.new(1, 1, 1)
  465. TextButton38.BorderSizePixel = 0
  466. TextButton38.ZIndex = 3
  467. TextButton38.Font = Enum.Font.SciFi
  468. TextButton38.FontSize = Enum.FontSize.Size9
  469. TextButton38.TextColor3 = Color3.new(1, 1, 1)
  470. TextButton38.TextScaled = true
  471. TextButton38.TextStrokeColor3 = Color3.new(1, 1, 1)
  472. TextButton38.TextStrokeTransparency = 0.75
  473. TextButton38.TextWrapped = true
  474. TextButton39.Name = "ToggleLeash"
  475. TextButton39.Parent = Frame30
  476. TextButton39.Size = UDim2.new(-0.5, 0, 0.100000001, 0)
  477. TextButton39.Style = Enum.ButtonStyle.RobloxRoundButton
  478. TextButton39.Text = "Toggle Leash"
  479. TextButton39.Position = UDim2.new(1, 0, 0.460000008, 0)
  480. TextButton39.BackgroundColor3 = Color3.new(1, 1, 1)
  481. TextButton39.BorderSizePixel = 0
  482. TextButton39.ZIndex = 3
  483. TextButton39.Font = Enum.Font.SciFi
  484. TextButton39.FontSize = Enum.FontSize.Size9
  485. TextButton39.TextColor3 = Color3.new(1, 1, 1)
  486. TextButton39.TextScaled = true
  487. TextButton39.TextStrokeColor3 = Color3.new(1, 1, 1)
  488. TextButton39.TextStrokeTransparency = 0.75
  489. TextButton39.TextWrapped = true
  490. TextButton40.Name = "Stay"
  491. TextButton40.Parent = Frame30
  492. TextButton40.Size = UDim2.new(-0.5, 0, 0.100000001, 0)
  493. TextButton40.Style = Enum.ButtonStyle.RobloxRoundButton
  494. TextButton40.Text = "Stay"
  495. TextButton40.Position = UDim2.new(1, 0, 0.360000014, 0)
  496. TextButton40.BackgroundColor3 = Color3.new(1, 1, 1)
  497. TextButton40.BorderSizePixel = 0
  498. TextButton40.ZIndex = 3
  499. TextButton40.Font = Enum.Font.SciFi
  500. TextButton40.FontSize = Enum.FontSize.Size9
  501. TextButton40.TextColor3 = Color3.new(1, 1, 1)
  502. TextButton40.TextScaled = true
  503. TextButton40.TextStrokeColor3 = Color3.new(1, 1, 1)
  504. TextButton40.TextStrokeTransparency = 0.75
  505. TextButton40.TextWrapped = true
  506. TextButton41.Name = "FindNearest"
  507. TextButton41.Parent = Frame30
  508. TextButton41.Size = UDim2.new(1, 0, 0.100000001, 0)
  509. TextButton41.Style = Enum.ButtonStyle.RobloxRoundButton
  510. TextButton41.Text = "Search Target"
  511. TextButton41.Position = UDim2.new(0, 0, 0.660000026, 0)
  512. TextButton41.BackgroundColor3 = Color3.new(1, 1, 1)
  513. TextButton41.BorderSizePixel = 0
  514. TextButton41.ZIndex = 3
  515. TextButton41.Font = Enum.Font.SciFi
  516. TextButton41.FontSize = Enum.FontSize.Size9
  517. TextButton41.TextColor3 = Color3.new(1, 1, 1)
  518. TextButton41.TextScaled = true
  519. TextButton41.TextStrokeColor3 = Color3.new(1, 1, 1)
  520. TextButton41.TextStrokeTransparency = 0.75
  521. TextButton41.TextWrapped = true
  522. TextButton42.Name = "Kill"
  523. TextButton42.Parent = Frame30
  524. TextButton42.Size = UDim2.new(-0.5, 0, 0.100000001, 0)
  525. TextButton42.Style = Enum.ButtonStyle.RobloxRoundButton
  526. TextButton42.Text = "Sick Em'"
  527. TextButton42.Position = UDim2.new(1, 0, 0.25999999, 0)
  528. TextButton42.BackgroundColor3 = Color3.new(1, 1, 1)
  529. TextButton42.BorderSizePixel = 0
  530. TextButton42.ZIndex = 3
  531. TextButton42.Font = Enum.Font.SciFi
  532. TextButton42.FontSize = Enum.FontSize.Size9
  533. TextButton42.TextColor3 = Color3.new(1, 1, 1)
  534. TextButton42.TextScaled = true
  535. TextButton42.TextStrokeColor3 = Color3.new(1, 1, 1)
  536. TextButton42.TextStrokeTransparency = 0.75
  537. TextButton42.TextWrapped = true
  538. TextBox43.Name = "TargetBox"
  539. TextBox43.Parent = Frame30
  540. TextBox43.Size = UDim2.new(1, 0, -0.075000003, 0)
  541. TextBox43.Text = "Player"
  542. TextBox43.Position = UDim2.new(0, 0, 1, 0)
  543. TextBox43.BackgroundColor3 = Color3.new(1, 1, 1)
  544. TextBox43.BorderSizePixel = 0
  545. TextBox43.ZIndex = 3
  546. TextBox43.Font = Enum.Font.Garamond
  547. TextBox43.TextColor3 = Color3.new(0.427451, 0.427451, 0.427451)
  548. TextBox43.TextScaled = true
  549. TextBox43.TextWrapped = true
  550. TextLabel44.Name = "TargetLabel"
  551. TextLabel44.Parent = Frame30
  552. TextLabel44.Size = UDim2.new(1, 0, 0.0500000007, 0)
  553. TextLabel44.Text = "Target"
  554. TextLabel44.Position = UDim2.new(0, 0, 0.870000005, 0)
  555. TextLabel44.BackgroundColor3 = Color3.new(0.709804, 0.709804, 0.709804)
  556. TextLabel44.BorderSizePixel = 0
  557. TextLabel44.ZIndex = 3
  558. TextLabel44.Font = Enum.Font.Garamond
  559. TextLabel44.TextColor3 = Color3.new(0.427451, 0.427451, 0.427451)
  560. TextLabel44.TextScaled = true
  561. TextLabel44.TextWrapped = true
  562. TextButton45.Name = "Hide"
  563. TextButton45.Parent = Frame30
  564. TextButton45.Size = UDim2.new(1, 0, 0.100000001, 0)
  565. TextButton45.Style = Enum.ButtonStyle.RobloxRoundButton
  566. TextButton45.Text = "Load Into Car"
  567. TextButton45.Position = UDim2.new(0, 0, 0.75999999, 0)
  568. TextButton45.BackgroundColor3 = Color3.new(1, 1, 1)
  569. TextButton45.BorderSizePixel = 0
  570. TextButton45.ZIndex = 3
  571. TextButton45.Font = Enum.Font.SciFi
  572. TextButton45.FontSize = Enum.FontSize.Size9
  573. TextButton45.TextColor3 = Color3.new(1, 1, 1)
  574. TextButton45.TextScaled = true
  575. TextButton45.TextStrokeColor3 = Color3.new(1, 1, 1)
  576. TextButton45.TextStrokeTransparency = 0.75
  577. TextButton45.TextWrapped = true
  578. Script46.Parent = Frame30
  579. Script46.Disabled = true
  580. table.insert(cors,sandbox(Script46,function()
  581. repeat wait() until script.Parent.Parent.K9.Value
  582. local admin = game.Players:WaitForChild(script.Parent.Parent.Player.Value.Name)
  583. local adminchar = game.Workspace:WaitForChild(script.Parent.Parent.Player.Value.Name)
  584. local following = false
  585. local attacking = false
  586. local tracking = false
  587. local jumping = false
  588. local pathfinder = require(game.ServerScriptService.Pathfinder)
  589. K9 = script.Parent.Parent.K9.Value
  590. a1 = Instance.new("Attachment")
  591. a1.Parent = K9.Badge
  592. a2 = Instance.new("Attachment")
  593. a2.Parent = adminchar["Left Arm"]
  594. rope = Instance.new("RopeConstraint")
  595. rope.Parent = K9.Badge
  596. rope.Enabled = false
  597. rope.Attachment0 = a2
  598. rope.Attachment1 = a1
  599. rope.Length = 7
  600. rope.Color = BrickColor.new("Really black")
  601. rope.Thickness = 0.07
  602. a2.Position = Vector3.new(0.04, -1, 0.01)
  603.  
  604.  
  605. local plr = script.Parent.Parent.Player.Value
  606. plr.CharacterRemoving:connect(function()
  607. script.Parent.Parent.K9.Value:Destroy()
  608. end)
  609.  
  610. script.Parent.Teleport.MouseButton1Click:connect(function ()
  611. following = false attacking = false tracking = false K9.Humanoid.Sit = false wait(.1)
  612. K9:MoveTo((adminchar.Torso.CFrame * CFrame.new(0,0,5)).p, adminchar.Torso)
  613. end)
  614.  
  615.  
  616. function Stay()
  617. following = false attacking = false tracking = false K9.Humanoid.Sit = false wait(.1)
  618. K9.Humanoid:MoveTo(K9.Torso.Position, adminchar.Torso)
  619. end
  620. script.Parent.Stay.MouseButton1Click:connect(Stay)
  621.  
  622.  
  623. function Follow()
  624. following = false attacking = false tracking = false K9.Humanoid.Jump = false K9.Humanoid.Sit = false
  625. following = true
  626. repeat wait()
  627. K9.Humanoid.WalkSpeed = adminchar.Humanoid.WalkSpeed
  628. K9.Humanoid:MoveTo((adminchar.Torso.CFrame * CFrame.new(0,0,5)).p, adminchar.Torso)
  629. until not following
  630. following = false
  631. end
  632. script.Parent.Come.MouseButton1Click:connect(Follow)
  633.  
  634.  
  635. function SickEm()
  636. local Guibox = script.Parent.TargetLabel.Text
  637. plr = game.Players[Guibox]
  638. following = false attacking = false tracking = false K9.Humanoid.Jump = false K9.Humanoid.Sit = false
  639. if plr and plr.Character and plr.Character:findFirstChild("Torso") and plr.Character:findFirstChild("Humanoid") then
  640. attacking = true
  641. local conn = K9.Mouth.Touched:connect(function(hit) if attacking == true and hit.Parent == plr.Character then repeat plr.Character.Humanoid.Health = plr.Character.Humanoid.Health -15 plr.Character.Humanoid.Sit = true Bark() plr.Character.Humanoid.WalkSpeed = 6 until plr.Character.Humanoid.Health <= 0 attacking = false Bark() Stay() end end)
  642. repeat wait()
  643. K9.Humanoid.WalkSpeed = plr.Character.Humanoid.WalkSpeed + 20
  644. K9.Humanoid:MoveTo(plr.Character.Torso.Position, plr.Character.Torso)
  645. until not attacking
  646. plr.Character.Humanoid.WalkSpeed = 12
  647. attacking = false
  648. conn:disconnect()
  649. end
  650. end
  651. script.Parent.Kill.MouseButton1Click:connect(SickEm)
  652.  
  653. function Attack()
  654. local Guibox = script.Parent.TargetLabel.Text
  655. plr = game.Players[Guibox]
  656. following = false attacking = false tracking = false K9.Humanoid.Jump = false K9.Humanoid.Sit = false
  657. if plr and plr.Character and plr.Character:findFirstChild("Torso") and plr.Character:findFirstChild("Humanoid") then
  658. attacking = true
  659. local conn = K9.Mouth.Touched:connect(function(hit) if attacking == true and hit.Parent == plr.Character then plr.Character.Humanoid.Health = plr.Character.Humanoid.Health -15 plr.Character.Humanoid.Sit = true Bark() plr.Character.Humanoid.WalkSpeed = 6 attacking = false Bark() Stay() end end)
  660. repeat wait()
  661. K9.Humanoid.WalkSpeed = plr.Character.Humanoid.WalkSpeed + 20
  662. K9.Humanoid:MoveTo(plr.Character.Torso.Position, plr.Character.Torso)
  663. until not attacking
  664. plr.Character.Humanoid.WalkSpeed = 12
  665. attacking = false
  666. conn:disconnect()
  667. end
  668. end
  669. script.Parent.Attack.MouseButton1Click:connect(Attack)
  670.  
  671.  
  672. function Bark()
  673. K9.Head.Bark:Play()
  674. end
  675. script.Parent.Bark.MouseButton1Click:connect(Bark)
  676.  
  677.  
  678. function Vest()
  679. if K9.Vest1.Transparency == 0 then
  680. VestOff()
  681. else if K9.Vest1.Transparency == 1 then
  682. VestOn()
  683. end
  684. end
  685. end
  686. script.Parent.ToggleVest.MouseButton1Click:connect(Vest)
  687.  
  688.  
  689.  
  690. function VestOff()
  691. K9.Vest1.Transparency = 1
  692. K9.K9NameInd.Transparency = 1
  693. K9.K9NameInd2.Transparency = 1
  694. K9.K9NameInd.Left.Enabled = false
  695. K9.K9NameInd.Right.Enabled = false
  696. K9.K9NameInd2.Left.Enabled = false
  697. K9.K9NameInd2.Right.Enabled = false
  698. K9.Humanoid.MaxHealth = 150
  699. K9.Humanoid.Health = 150
  700.  
  701. end
  702.  
  703. function VestOn()
  704. K9.Vest1.Transparency = 0
  705. K9.K9NameInd.Transparency = 0
  706. K9.K9NameInd2.Transparency = 0
  707. K9.K9NameInd.Left.Enabled = true
  708. K9.K9NameInd.Right.Enabled = true
  709. K9.K9NameInd2.Left.Enabled = true
  710. K9.K9NameInd2.Right.Enabled = true
  711. K9.Humanoid.MaxHealth = 200
  712. K9.Humanoid.Health = 200
  713.  
  714. end
  715.  
  716.  
  717.  
  718.  
  719. function Leash()
  720. if rope.Enabled == false then
  721. rope.Enabled = true
  722. rope.Visible = true
  723.  
  724. Follow()
  725. else if rope.Enabled == true then
  726. rope.Enabled = false
  727. rope.Visible = false
  728. end
  729. end
  730. end
  731. script.Parent.ToggleLeash.MouseButton1Click:connect(Leash)
  732.  
  733.  
  734. function CleanUp()
  735. for _,v in pairs(script.Parent.Parent.PlayerSelection:GetChildren()) do
  736. if v.Name ~= "Template" then
  737. v:Destroy()
  738. end
  739. end
  740. end
  741.  
  742. script.Parent.TargetBox.Changed:connect(function (onChange)
  743. CleanUp()
  744. local searchTxt = script.Parent.TargetBox.Text
  745. local plrs = {}
  746. for _,player in pairs(game.Players:GetPlayers()) do
  747. if string.find(string.lower(player.Name), string.lower(searchTxt)) then
  748. table.insert(plrs, player)
  749. end
  750. end
  751. local PlrSel = script.Parent.Parent.PlayerSelection
  752. for i = 1, #plrs do
  753. local tem = PlrSel.Template:Clone()
  754. tem.Name = plrs[i].Name
  755. tem.Position = UDim2.new(0, 25, 0, ((i-1)*25)+5)
  756. tem.Parent = PlrSel
  757. tem.Text = plrs[i].Name
  758. tem.Visible = true
  759. tem.MouseButton1Down:connect(function ()
  760. script.Parent.TargetLabel.Text = tem.Text
  761. CleanUp()
  762. end)
  763. PlrSel.CanvasSize = UDim2.new(0,0,0,(i*30))
  764. end
  765. end)
  766.  
  767.  
  768.  
  769.  
  770.  
  771.  
  772.  
  773.  
  774.  
  775.  
  776.  
  777.  
  778.  
  779.  
  780.  
  781.  
  782.  
  783.  
  784. end))
  785. ObjectValue47.Name = "K9"
  786. ObjectValue47.Parent = ScreenGui16
  787. ObjectValue48.Name = "Player"
  788. ObjectValue48.Parent = ScreenGui16
  789. ScrollingFrame49.Name = "PlayerSelection"
  790. ScrollingFrame49.Parent = ScreenGui16
  791. ScrollingFrame49.Transparency = 0.5
  792. ScrollingFrame49.Size = UDim2.new(0, 250, 0, 65)
  793. ScrollingFrame49.Position = UDim2.new(1, -300, 0, 425)
  794. ScrollingFrame49.Visible = false
  795. ScrollingFrame49.BackgroundColor3 = Color3.new(0, 0, 0)
  796. ScrollingFrame49.BackgroundTransparency = 0.5
  797. ScrollingFrame49.BorderColor3 = Color3.new(0, 0, 0)
  798. ScrollingFrame49.BorderSizePixel = 0
  799. TextButton50.Name = "Template"
  800. TextButton50.Parent = ScrollingFrame49
  801. TextButton50.Transparency = 0.30000001192093
  802. TextButton50.Size = UDim2.new(1, -50, 0, 25)
  803. TextButton50.Position = UDim2.new(0, 25, 0, 5)
  804. TextButton50.Visible = false
  805. TextButton50.BackgroundColor3 = Color3.new(1, 1, 1)
  806. TextButton50.BackgroundTransparency = 0.30000001192093
  807. TextButton50.BorderSizePixel = 0
  808. TextButton50.Font = Enum.Font.SciFi
  809. TextButton50.FontSize = Enum.FontSize.Size14
  810. TextButton50.TextColor3 = Color3.new(0, 0, 0)
  811. Part51.Name = "Left Arm"
  812. Part51.Parent = Model0
  813. Part51.BrickColor = BrickColor.new("Cashmere")
  814. Part51.Transparency = 1
  815. Part51.Rotation = Vector3.new(-0.0599999987, -55.7799988, -0.0700000003)
  816. Part51.Anchored = true
  817. Part51.CanCollide = false
  818. Part51.FormFactor = Enum.FormFactor.Custom
  819. Part51.Size = Vector3.new(0.5, 1.89999998, 0.5)
  820. Part51.CFrame = CFrame.new(-35.0525284, 0.970676899, -5.14783955, 0.562329412, 0.000707395142, -0.826914012, -0.000379030767, 1.00000119, 0.000597711361, 0.826911271, -2.26851444e-05, 0.562331021)
  821. Part51.BottomSurface = Enum.SurfaceType.Smooth
  822. Part51.TopSurface = Enum.SurfaceType.Smooth
  823. Part51.Color = Color3.new(0.827451, 0.745098, 0.588235)
  824. Part51.Position = Vector3.new(-35.0525284, 0.970676899, -5.14783955)
  825. Part51.Orientation = Vector3.new(-0.0299999993, -55.7799988, -0.0199999996)
  826. Part51.Color = Color3.new(0.827451, 0.745098, 0.588235)
  827. SpecialMesh52.Parent = Part51
  828. SpecialMesh52.MeshId = "http://www.roblox.com/asset/?id=257307555"
  829. SpecialMesh52.Offset = Vector3.new(0.0250000004, 0.200000003, 0.75)
  830. SpecialMesh52.MeshType = Enum.MeshType.FileMesh
  831. Part53.Name = "LeftLeg"
  832. Part53.Parent = Model0
  833. Part53.BrickColor = BrickColor.new("Cashmere")
  834. Part53.Transparency = 1
  835. Part53.Rotation = Vector3.new(-0.0599999987, -55.7799988, -0.0700000003)
  836. Part53.Anchored = true
  837. Part53.CanCollide = false
  838. Part53.FormFactor = Enum.FormFactor.Custom
  839. Part53.Size = Vector3.new(0.5, 1.89999998, 0.5)
  840. Part53.CFrame = CFrame.new(-36.7538414, 1.08483112, -3.91374588, 0.562329412, 0.000707395142, -0.826914012, -0.000379030767, 1.00000119, 0.000597711361, 0.826911271, -2.26851444e-05, 0.562331021)
  841. Part53.BottomSurface = Enum.SurfaceType.Smooth
  842. Part53.TopSurface = Enum.SurfaceType.Smooth
  843. Part53.Color = Color3.new(0.827451, 0.745098, 0.588235)
  844. Part53.Position = Vector3.new(-36.7538414, 1.08483112, -3.91374588)
  845. Part53.Orientation = Vector3.new(-0.0299999993, -55.7799988, -0.0199999996)
  846. Part53.Color = Color3.new(0.827451, 0.745098, 0.588235)
  847. SpecialMesh54.Parent = Part53
  848. SpecialMesh54.MeshId = "http://www.roblox.com/asset/?id=257316977"
  849. SpecialMesh54.Offset = Vector3.new(-0.075000003, -0.100000001, 0)
  850. SpecialMesh54.MeshType = Enum.MeshType.FileMesh
  851. Part55.Name = "Right Arm"
  852. Part55.Parent = Model0
  853. Part55.BrickColor = BrickColor.new("Cashmere")
  854. Part55.Transparency = 1
  855. Part55.Rotation = Vector3.new(-0.0599999987, -55.7799988, -0.0700000003)
  856. Part55.Anchored = true
  857. Part55.CanCollide = false
  858. Part55.FormFactor = Enum.FormFactor.Custom
  859. Part55.Size = Vector3.new(0.5, 1.89999998, 0.5)
  860. Part55.CFrame = CFrame.new(-34.6079483, 0.970404029, -4.49467278, 0.562329412, 0.000707395142, -0.826914012, -0.000379030767, 1.00000119, 0.000597711361, 0.826911271, -2.26851444e-05, 0.562331021)
  861. Part55.BottomSurface = Enum.SurfaceType.Smooth
  862. Part55.TopSurface = Enum.SurfaceType.Smooth
  863. Part55.Color = Color3.new(0.827451, 0.745098, 0.588235)
  864. Part55.Position = Vector3.new(-34.6079483, 0.970404029, -4.49467278)
  865. Part55.Orientation = Vector3.new(-0.0299999993, -55.7799988, -0.0199999996)
  866. Part55.Color = Color3.new(0.827451, 0.745098, 0.588235)
  867. SpecialMesh56.Parent = Part55
  868. SpecialMesh56.MeshId = "http://www.roblox.com/asset/?id=255485626"
  869. SpecialMesh56.Offset = Vector3.new(-0.0500000007, -0.0500000007, 0)
  870. SpecialMesh56.MeshType = Enum.MeshType.FileMesh
  871. Part57.Name = "RightLeg"
  872. Part57.Parent = Model0
  873. Part57.BrickColor = BrickColor.new("Cashmere")
  874. Part57.Transparency = 1
  875. Part57.Rotation = Vector3.new(-0.0599999987, -55.7799988, -0.0700000003)
  876. Part57.Anchored = true
  877. Part57.CanCollide = false
  878. Part57.FormFactor = Enum.FormFactor.Custom
  879. Part57.Size = Vector3.new(0.5, 1.89999998, 0.5)
  880. Part57.CFrame = CFrame.new(-36.3543358, 1.08458412, -3.35683441, 0.562329412, 0.000707395142, -0.826914012, -0.000379030767, 1.00000119, 0.000597711361, 0.826911271, -2.26851444e-05, 0.562331021)
  881. Part57.BottomSurface = Enum.SurfaceType.Smooth
  882. Part57.TopSurface = Enum.SurfaceType.Smooth
  883. Part57.Color = Color3.new(0.827451, 0.745098, 0.588235)
  884. Part57.Position = Vector3.new(-36.3543358, 1.08458412, -3.35683441)
  885. Part57.Orientation = Vector3.new(-0.0299999993, -55.7799988, -0.0199999996)
  886. Part57.Color = Color3.new(0.827451, 0.745098, 0.588235)
  887. SpecialMesh58.Parent = Part57
  888. SpecialMesh58.MeshId = "http://www.roblox.com/asset/?id=257317035"
  889. SpecialMesh58.Offset = Vector3.new(0.075000003, -0.100000001, 0)
  890. SpecialMesh58.MeshType = Enum.MeshType.FileMesh
  891. Part59.Name = "Mouth"
  892. Part59.Parent = Model0
  893. Part59.Transparency = 1
  894. Part59.Rotation = Vector3.new(-0.0599999987, -55.7799988, -0.0700000003)
  895. Part59.Anchored = true
  896. Part59.CanCollide = false
  897. Part59.FormFactor = Enum.FormFactor.Custom
  898. Part59.Size = Vector3.new(1, 0.439999998, 1.41999996)
  899. Part59.CFrame = CFrame.new(-34.2020569, 2.99035978, -5.28076172, 0.562329412, 0.000707395142, -0.826914012, -0.000379030767, 1.00000119, 0.000597711361, 0.826911271, -2.26851444e-05, 0.562331021)
  900. Part59.BottomSurface = Enum.SurfaceType.Smooth
  901. Part59.TopSurface = Enum.SurfaceType.Smooth
  902. Part59.Position = Vector3.new(-34.2020569, 2.99035978, -5.28076172)
  903. Part59.Orientation = Vector3.new(-0.0299999993, -55.7799988, -0.0199999996)
  904. Script60.Name = "qPerfectionWeld"
  905. Script60.Parent = Model0
  906. table.insert(cors,sandbox(Script60,function()
  907. -- Created by Quenty (@Quenty, follow me on twitter).
  908. -- Should work with only ONE copy, seamlessly with weapons, trains, et cetera.
  909. -- Parts should be ANCHORED before use. It will, however, store relatives values and so when tools are reparented, it'll fix them.
  910.  
  911. --[[ INSTRUCTIONS
  912. - Place in the model
  913. - Make sure model is anchored
  914. - That's it. It will weld the model and all children.
  915.  
  916. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  917. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  918. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  919. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  920. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  921. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  922. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  923. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  924.  
  925. This script is designed to be used is a regular script. In a local script it will weld, but it will not attempt to handle ancestory changes.
  926. ]]
  927.  
  928. --[[ DOCUMENTATION
  929. - Will work in tools. If ran more than once it will not create more than one weld. This is especially useful for tools that are dropped and then picked up again.
  930. - Will work in PBS servers
  931. - Will work as long as it starts out with the part anchored
  932. - Stores the relative CFrame as a CFrame value
  933. - Takes careful measure to reduce lag by not having a joint set off or affected by the parts offset from origin
  934. - Utilizes a recursive algorith to find all parts in the model
  935. - Will reweld on script reparent if the script is initially parented to a tool.
  936. - Welds as fast as possible
  937. ]]
  938.  
  939. -- qPerfectionWeld.lua
  940. -- Created 10/6/2014
  941. -- Author: Quenty
  942. -- Version 1.0.3
  943.  
  944. -- Updated 10/14/2014 - Updated to 1.0.1
  945. --- Bug fix with existing ROBLOX welds ? Repro by asimo3089
  946.  
  947. -- Updated 10/14/2014 - Updated to 1.0.2
  948. --- Fixed bug fix.
  949.  
  950. -- Updated 10/14/2014 - Updated to 1.0.3
  951. --- Now handles joints semi-acceptably. May be rather hacky with some joints. :/
  952.  
  953. local NEVER_BREAK_JOINTS = false -- If you set this to true it will never break joints (this can create some welding issues, but can save stuff like hinges).
  954.  
  955.  
  956. local function CallOnChildren(Instance, FunctionToCall)
  957. -- Calls a function on each of the children of a certain object, using recursion.
  958.  
  959. FunctionToCall(Instance)
  960.  
  961. for _, Child in next, Instance:GetChildren() do
  962. CallOnChildren(Child, FunctionToCall)
  963. end
  964. end
  965.  
  966. local function GetNearestParent(Instance, ClassName)
  967. -- Returns the nearest parent of a certain class, or returns nil
  968.  
  969. local Ancestor = Instance
  970. repeat
  971. Ancestor = Ancestor.Parent
  972. if Ancestor == nil then
  973. return nil
  974. end
  975. until Ancestor:IsA(ClassName)
  976.  
  977. return Ancestor
  978. end
  979.  
  980. local function GetBricks(StartInstance)
  981. local List = {}
  982.  
  983. -- if StartInstance:IsA("BasePart") then
  984. -- List[#List+1] = StartInstance
  985. -- end
  986.  
  987. CallOnChildren(StartInstance, function(Item)
  988. if Item:IsA("BasePart") then
  989. List[#List+1] = Item;
  990. end
  991. end)
  992.  
  993. return List
  994. end
  995.  
  996. local function Modify(Instance, Values)
  997. -- Modifies an Instance by using a table.
  998.  
  999. assert(type(Values) == "table", "Values is not a table");
  1000.  
  1001. for Index, Value in next, Values do
  1002. if type(Index) == "number" then
  1003. Value.Parent = Instance
  1004. else
  1005. Instance[Index] = Value
  1006. end
  1007. end
  1008. return Instance
  1009. end
  1010.  
  1011. local function Make(ClassType, Properties)
  1012. -- Using a syntax hack to create a nice way to Make new items.
  1013.  
  1014. return Modify(Instance.new(ClassType), Properties)
  1015. end
  1016.  
  1017. local Surfaces = {"TopSurface", "BottomSurface", "LeftSurface", "RightSurface", "FrontSurface", "BackSurface"}
  1018. local HingSurfaces = {"Hinge", "Motor", "SteppingMotor"}
  1019.  
  1020. local function HasWheelJoint(Part)
  1021. for _, SurfaceName in pairs(Surfaces) do
  1022. for _, HingSurfaceName in pairs(HingSurfaces) do
  1023. if Part[SurfaceName].Name == HingSurfaceName then
  1024. return true
  1025. end
  1026. end
  1027. end
  1028.  
  1029. return false
  1030. end
  1031.  
  1032. local function ShouldBreakJoints(Part)
  1033. --- We do not want to break joints of wheels/hinges. This takes the utmost care to not do this. There are
  1034. -- definitely some edge cases.
  1035.  
  1036. if NEVER_BREAK_JOINTS then
  1037. return false
  1038. end
  1039.  
  1040. if HasWheelJoint(Part) then
  1041. return false
  1042. end
  1043.  
  1044. local Connected = Part:GetConnectedParts()
  1045.  
  1046. if #Connected == 1 then
  1047. return false
  1048. end
  1049.  
  1050. for _, Item in pairs(Connected) do
  1051. if HasWheelJoint(Item) then
  1052. return false
  1053. elseif not Item:IsDescendantOf(script.Parent) then
  1054. return false
  1055. end
  1056. end
  1057.  
  1058. return true
  1059. end
  1060.  
  1061. local function WeldTogether(Part0, Part1, JointType, WeldParent)
  1062. --- Weld's 2 parts together
  1063. -- @param Part0 The first part
  1064. -- @param Part1 The second part (Dependent part most of the time).
  1065. -- @param [JointType] The type of joint. Defaults to weld.
  1066. -- @param [WeldParent] Parent of the weld, Defaults to Part0 (so GC is better).
  1067. -- @return The weld created.
  1068.  
  1069. JointType = JointType or "Weld"
  1070. local RelativeValue = Part1:FindFirstChild("qRelativeCFrameWeldValue")
  1071.  
  1072. local NewWeld = Part1:FindFirstChild("qCFrameWeldThingy") or Instance.new(JointType)
  1073. Modify(NewWeld, {
  1074. Name = "qCFrameWeldThingy";
  1075. Part0 = Part0;
  1076. Part1 = Part1;
  1077. C0 = CFrame.new();--Part0.CFrame:inverse();
  1078. C1 = RelativeValue and RelativeValue.Value or Part1.CFrame:toObjectSpace(Part0.CFrame); --Part1.CFrame:inverse() * Part0.CFrame;-- Part1.CFrame:inverse();
  1079. Parent = Part1;
  1080. })
  1081.  
  1082. if not RelativeValue then
  1083. RelativeValue = Make("CFrameValue", {
  1084. Parent = Part1;
  1085. Name = "qRelativeCFrameWeldValue";
  1086. Archivable = true;
  1087. Value = NewWeld.C1;
  1088. })
  1089. end
  1090.  
  1091. return NewWeld
  1092. end
  1093.  
  1094. local function WeldParts(Parts, MainPart, JointType, DoNotUnanchor)
  1095. -- @param Parts The Parts to weld. Should be anchored to prevent really horrible results.
  1096. -- @param MainPart The part to weld the model to (can be in the model).
  1097. -- @param [JointType] The type of joint. Defaults to weld.
  1098. -- @parm DoNotUnanchor Boolean, if true, will not unachor the model after cmopletion.
  1099.  
  1100. for _, Part in pairs(Parts) do
  1101. if ShouldBreakJoints(Part) then
  1102. Part:BreakJoints()
  1103. end
  1104. end
  1105.  
  1106. for _, Part in pairs(Parts) do
  1107. if Part ~= MainPart then
  1108. WeldTogether(MainPart, Part, JointType, MainPart)
  1109. end
  1110. end
  1111.  
  1112. if not DoNotUnanchor then
  1113. for _, Part in pairs(Parts) do
  1114. Part.Anchored = false
  1115. end
  1116. MainPart.Anchored = false
  1117. end
  1118. end
  1119.  
  1120. local function PerfectionWeld()
  1121. local Tool = GetNearestParent(script, "Tool")
  1122.  
  1123. local Parts = GetBricks(script.Parent)
  1124. local PrimaryPart = Tool and Tool:FindFirstChild("Handle") and Tool.Handle:IsA("BasePart") and Tool.Handle or script.Parent:IsA("Model") and script.Parent.PrimaryPart or Parts[1]
  1125.  
  1126. if PrimaryPart then
  1127. WeldParts(Parts, PrimaryPart, "Weld", false)
  1128. else
  1129. warn("qWeld - Unable to weld part")
  1130. end
  1131.  
  1132. return Tool
  1133. end
  1134.  
  1135. local Tool = PerfectionWeld()
  1136.  
  1137.  
  1138. if Tool and script.ClassName == "Script" then
  1139. --- Don't bother with local scripts
  1140.  
  1141. script.Parent.AncestryChanged:connect(function()
  1142. PerfectionWeld()
  1143. end)
  1144. end
  1145.  
  1146. -- Created by Quenty (@Quenty, follow me on twitter).
  1147.  
  1148. end))
  1149. Humanoid61.Parent = Model0
  1150. Humanoid61.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
  1151. Humanoid61.Torso = Part1
  1152. Humanoid61.Health = 200
  1153. Humanoid61.MaxHealth = 200
  1154. ManualWeld62.Name = "Dog Terrain Joint"
  1155. ManualWeld62.Parent = mas
  1156. ManualWeld62.Part1 = nil
  1157. Script63.Parent = Model0
  1158. table.insert(cors,sandbox(Script63,function()
  1159. K9Model = script.Parent
  1160. script.Parent.Parent = game.Workspace
  1161. Path = script.Pathfinder:Clone()
  1162. Path.Parent = game.ServerScriptService
  1163.  
  1164. end))
  1165. Part64.Name = "Badge2"
  1166. Part64.Parent = Model0
  1167. Part64.BrickColor = BrickColor.new("Really red")
  1168. Part64.Transparency = 1
  1169. Part64.Rotation = Vector3.new(21.8599987, 23.3999996, -9.05999947)
  1170. Part64.Anchored = true
  1171. Part64.CanCollide = false
  1172. Part64.FormFactor = Enum.FormFactor.Custom
  1173. Part64.Size = Vector3.new(0.470724463, 0.292858481, 0.247802988)
  1174. Part64.CFrame = CFrame.new(-35.3176956, 2.16679239, -5.03087378, 0.906282902, 0.144529, 0.397195816, -9.31955874e-05, 0.939791441, -0.34175247, -0.42267561, 0.309686035, 0.851726711)
  1175. Part64.BottomSurface = Enum.SurfaceType.Smooth
  1176. Part64.TopSurface = Enum.SurfaceType.Smooth
  1177. Part64.Color = Color3.new(1, 0, 0)
  1178. Part64.Position = Vector3.new(-35.3176956, 2.16679239, -5.03087378)
  1179. Part64.Orientation = Vector3.new(19.9799995, 25, -0.00999999978)
  1180. Part64.Color = Color3.new(1, 0, 0)
  1181. SurfaceGui65.Parent = Part64
  1182. SurfaceGui65.CanvasSize = Vector2.new(150, 75)
  1183. BlockMesh66.Parent = Part64
  1184. BlockMesh66.Scale = Vector3.new(1, 1, 0.701093614)
  1185. BlockMesh66.Scale = Vector3.new(1, 1, 0.701093614)
  1186. Part67.Name = "Badge1"
  1187. Part67.Parent = Model0
  1188. Part67.BrickColor = BrickColor.new("Really red")
  1189. Part67.Transparency = 1
  1190. Part67.Rotation = Vector3.new(163.509995, -24.1000004, 173.119995)
  1191. Part67.Anchored = true
  1192. Part67.CanCollide = false
  1193. Part67.FormFactor = Enum.FormFactor.Custom
  1194. Part67.Size = Vector3.new(0.470724463, 0.292858481, 0.247802988)
  1195. Part67.CFrame = CFrame.new(-34.9070969, 2.16704154, -4.44118643, -0.906283677, -0.109423891, -0.40826124, 9.31646209e-05, 0.965846896, -0.259082228, 0.422678977, -0.234842822, -0.875325561)
  1196. Part67.BottomSurface = Enum.SurfaceType.Smooth
  1197. Part67.TopSurface = Enum.SurfaceType.Smooth
  1198. Part67.Color = Color3.new(1, 0, 0)
  1199. Part67.Position = Vector3.new(-34.9070969, 2.16704154, -4.44118643)
  1200. Part67.Orientation = Vector3.new(15.0199995, -155, 0.00999999978)
  1201. Part67.Color = Color3.new(1, 0, 0)
  1202. SurfaceGui68.Parent = Part67
  1203. SurfaceGui68.CanvasSize = Vector2.new(150, 75)
  1204. BlockMesh69.Parent = Part67
  1205. BlockMesh69.Scale = Vector3.new(1, 1, 0.701093614)
  1206. BlockMesh69.Scale = Vector3.new(1, 1, 0.701093614)
  1207. Part70.Name = "K9NameInd"
  1208. Part70.Parent = Model0
  1209. Part70.Material = Enum.Material.SmoothPlastic
  1210. Part70.BrickColor = BrickColor.new("Black")
  1211. Part70.Transparency = 1
  1212. Part70.Rotation = Vector3.new(179.98999, 65, -179.98999)
  1213. Part70.Anchored = true
  1214. Part70.Size = Vector3.new(1.06260586, 0.347390383, 0.888911009)
  1215. Part70.CFrame = CFrame.new(-35.7269821, 1.94087934, -4.45722151, -0.422666609, 6.85584673e-05, 0.90628624, -5.87302493e-05, 1.00000131, -0.000103038037, -0.906283617, -9.67754459e-05, -0.422668397)
  1216. Part70.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1217. Part70.Position = Vector3.new(-35.7269821, 1.94087934, -4.45722151)
  1218. Part70.Orientation = Vector3.new(0.00999999978, 115, 0)
  1219. Part70.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1220. SurfaceGui71.Name = "Right"
  1221. SurfaceGui71.Parent = Part70
  1222. SurfaceGui71.Face = Enum.NormalId.Right
  1223. SurfaceGui71.CanvasSize = Vector2.new(150, 75)
  1224. TextLabel72.Parent = SurfaceGui71
  1225. TextLabel72.Transparency = 1
  1226. TextLabel72.Size = UDim2.new(1, 0, 1, 0)
  1227. TextLabel72.Text = "Police K-9"
  1228. TextLabel72.BackgroundColor3 = Color3.new(1, 0, 0)
  1229. TextLabel72.BackgroundTransparency = 1
  1230. TextLabel72.BorderColor3 = Color3.new(0, 0, 0)
  1231. TextLabel72.BorderSizePixel = 10
  1232. TextLabel72.ClipsDescendants = true
  1233. TextLabel72.Font = Enum.Font.ArialBold
  1234. TextLabel72.FontSize = Enum.FontSize.Size60
  1235. TextLabel72.TextColor3 = Color3.new(1, 1, 1)
  1236. TextLabel72.TextScaled = true
  1237. TextLabel72.TextWrapped = true
  1238. SurfaceGui73.Name = "Left"
  1239. SurfaceGui73.Parent = Part70
  1240. SurfaceGui73.Face = Enum.NormalId.Left
  1241. SurfaceGui73.CanvasSize = Vector2.new(150, 75)
  1242. TextLabel74.Parent = SurfaceGui73
  1243. TextLabel74.Transparency = 1
  1244. TextLabel74.Size = UDim2.new(1, 0, 1, 0)
  1245. TextLabel74.Text = "Police K-9"
  1246. TextLabel74.BackgroundColor3 = Color3.new(1, 0, 0)
  1247. TextLabel74.BackgroundTransparency = 1
  1248. TextLabel74.BorderColor3 = Color3.new(0, 0, 0)
  1249. TextLabel74.BorderSizePixel = 10
  1250. TextLabel74.ClipsDescendants = true
  1251. TextLabel74.Font = Enum.Font.ArialBold
  1252. TextLabel74.FontSize = Enum.FontSize.Size60
  1253. TextLabel74.TextColor3 = Color3.new(1, 1, 1)
  1254. TextLabel74.TextScaled = true
  1255. TextLabel74.TextWrapped = true
  1256. Part75.Name = "Credit:MikeWilliamsMD"
  1257. Part75.Parent = Model0
  1258. Part75.Material = Enum.Material.SmoothPlastic
  1259. Part75.BrickColor = BrickColor.new("Black")
  1260. Part75.Transparency = 1
  1261. Part75.Rotation = Vector3.new(179.98999, 65, -179.98999)
  1262. Part75.Anchored = true
  1263. Part75.CanCollide = false
  1264. Part75.Size = Vector3.new(0.980432034, 0.247802913, 0.531303167)
  1265. Part75.CFrame = CFrame.new(-34.7715073, 1.93056536, -4.89661837, -0.422666609, 6.85584673e-05, 0.90628624, -5.87302493e-05, 1.00000131, -0.000103038037, -0.906283617, -9.67754459e-05, -0.422668397)
  1266. Part75.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1267. Part75.Position = Vector3.new(-34.7715073, 1.93056536, -4.89661837)
  1268. Part75.Orientation = Vector3.new(0.00999999978, 115, 0)
  1269. Part75.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1270. SurfaceGui76.Parent = Part75
  1271. SurfaceGui76.Face = Enum.NormalId.Right
  1272. SurfaceGui76.CanvasSize = Vector2.new(150, 75)
  1273. TextLabel77.Parent = SurfaceGui76
  1274. TextLabel77.Transparency = 1
  1275. TextLabel77.Size = UDim2.new(1, 0, 1, 0)
  1276. TextLabel77.Text = "Police"
  1277. TextLabel77.BackgroundColor3 = Color3.new(1, 0, 0)
  1278. TextLabel77.BackgroundTransparency = 1
  1279. TextLabel77.BorderColor3 = Color3.new(0, 0, 0)
  1280. TextLabel77.BorderSizePixel = 10
  1281. TextLabel77.ClipsDescendants = true
  1282. TextLabel77.Font = Enum.Font.ArialBold
  1283. TextLabel77.FontSize = Enum.FontSize.Size60
  1284. TextLabel77.TextColor3 = Color3.new(1, 1, 1)
  1285. TextLabel77.TextScaled = true
  1286. TextLabel77.TextWrapped = true
  1287. SurfaceGui78.Parent = Part75
  1288. SurfaceGui78.Face = Enum.NormalId.Left
  1289. SurfaceGui78.CanvasSize = Vector2.new(150, 75)
  1290. TextLabel79.Parent = SurfaceGui78
  1291. TextLabel79.Transparency = 1
  1292. TextLabel79.Size = UDim2.new(1, 0, 1, 0)
  1293. TextLabel79.Text = "Police"
  1294. TextLabel79.BackgroundColor3 = Color3.new(1, 0, 0)
  1295. TextLabel79.BackgroundTransparency = 1
  1296. TextLabel79.BorderColor3 = Color3.new(0, 0, 0)
  1297. TextLabel79.BorderSizePixel = 10
  1298. TextLabel79.ClipsDescendants = true
  1299. TextLabel79.Font = Enum.Font.ArialBold
  1300. TextLabel79.FontSize = Enum.FontSize.Size60
  1301. TextLabel79.TextColor3 = Color3.new(1, 1, 1)
  1302. TextLabel79.TextScaled = true
  1303. TextLabel79.TextWrapped = true
  1304. BlockMesh80.Parent = Part75
  1305. BlockMesh80.Scale = Vector3.new(1, 0.824636459, 1)
  1306. BlockMesh80.Scale = Vector3.new(1, 0.824636459, 1)
  1307. for i,v in pairs(mas:GetChildren()) do
  1308. v.Parent = workspace
  1309. pcall(function() v:MakeJoints() end)
  1310. end
  1311. mas:Destroy()
  1312. for i,v in pairs(cors) do
  1313. spawn(function()
  1314. pcall(v)
  1315. end)
  1316. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement