sawgamer1

Untitled

Jun 28th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.93 KB | None | 0 0
  1. --Created with PenguinAnonymous's compiler
  2. --PenguinAnonymous is not responsible for damages caused to your game
  3. --This plugin does not remove things
  4. --PenguinAnonymous cannot be held resonsible for manual deletion for the purpose of testing
  5. --Keep in mind, any items that cause errors in compilation will be skipped and documented within the last line of the disclaimer comments
  6. --Thank you for using my plugin and enjoy :)
  7. --It is free to use
  8. --If you use this plugin to create your own, please give me credit
  9. --Z_V edited my plugin to look like his own and published it without giving me credit, and that makes me very angry
  10. --Errors: UnionOperation,MeshPart
  11. local runDummyScript = function(f,scri)
  12. local oldenv = getfenv(f)
  13. local newenv = setmetatable({}, {
  14. __index = function(_, k)
  15. if k:lower() == 'script' then
  16. return scri
  17. else
  18. return oldenv[k]
  19. end
  20. end
  21. })
  22. setfenv(f, newenv)
  23. ypcall(function() f() end)
  24. end
  25. cors = {}
  26. mas = Instance.new("Model",game:GetService("Lighting"))
  27. mas.Name = "CompiledModel"
  28. o1 = Instance.new("Model")
  29. o6 = Instance.new("Part")
  30. o7 = Instance.new("SpecialMesh")
  31. o9 = Instance.new("Sound")
  32. o10 = Instance.new("Part")
  33. o11 = Instance.new("Sound")
  34. o12 = Instance.new("Sound")
  35. o13 = Instance.new("BodyGyro")
  36. o14 = Instance.new("Script")
  37. o15 = Instance.new("Script")
  38. o16 = Instance.new("Script")
  39. o1.Name = "SCP-173"
  40. o1.Parent = mas
  41. o6.Name = "Phys5"
  42. o6.Parent = o1
  43. o6.Material = Enum.Material.Concrete
  44. o6.BrickColor = BrickColor.new("Reddish brown")
  45. o6.Transparency = 1
  46. o6.Position = Vector3.new(-19.2606335, 2.94207191, -18.0173988)
  47. o6.Rotation = Vector3.new(0, 90, 0)
  48. o6.Anchored = true
  49. o6.FormFactor = Enum.FormFactor.Custom
  50. o6.Size = Vector3.new(3.75079608, 5.55895472, 3.24950099)
  51. o6.CFrame = CFrame.new(-19.2606335, 2.94207191, -18.0173988, -6.33452146e-05, 1.58898172e-09, 1, -1.19373141e-07, 1, 1.58143054e-09, -1, -1.19287023e-07, -6.33452146e-05)
  52. o6.BottomSurface = Enum.SurfaceType.Smooth
  53. o6.TopSurface = Enum.SurfaceType.Smooth
  54. o6.Color = Color3.new(0.411765, 0.25098, 0.156863)
  55. o6.Position = Vector3.new(-19.2606335, 2.94207191, -18.0173988)
  56. o7.Parent = o6
  57. o7.MeshType = Enum.MeshType.Brick
  58. o9.Name = "Slide"
  59. o9.Parent = mas
  60. o9.SoundId = "http://www.roblox.com/asset/?id=149293656"
  61. o9.Looped = true
  62. o10.Name = "Face"
  63. o10.Parent = mas
  64. o10.Transparency = 1
  65. o10.Position = Vector3.new(-19.1050835, 6.53591108, -18.4958687)
  66. o10.Anchored = true
  67. o10.FormFactor = Enum.FormFactor.Custom
  68. o10.Size = Vector3.new(1.61000001, 1.41999996, 0.200000048)
  69. o10.CFrame = CFrame.new(-19.1050835, 6.53591108, -18.4958687, 1, 1.59643188e-09, 6.24958411e-05, 1.58153013e-09, 1, 1.63032712e-10, -6.24958411e-05, -7.69111302e-11, 1)
  70. o10.Position = Vector3.new(-19.1050835, 6.53591108, -18.4958687)
  71. o11.Name = "Kill"
  72. o11.Parent = mas
  73. o11.SoundId = "http://www.roblox.com/asset/?id=149293645"
  74. o11.Volume = 1
  75. o11.PlayOnRemove = true
  76. o12.Parent = mas
  77. o12.SoundId = "rbxassetid://150184965"
  78. o12.Volume = 1
  79. o12.PlayOnRemove = true
  80. o13.Parent = mas
  81. o13.maxTorque = Vector3.new(900000, 0, 900000)
  82. o13.MaxTorque = Vector3.new(900000, 0, 900000)
  83. o14.Parent = o13
  84. table.insert(cors,coroutine.create(function()
  85. wait()
  86. runDummyScript(function()
  87. script.Parent.maxTorque = Vector3.new(4e+009, 0, 4e+009)
  88. end,o14)
  89. end))
  90. o15.Name = "Closer"
  91. o15.Parent = mas
  92. table.insert(cors,coroutine.create(function()
  93. wait()
  94. runDummyScript(function()
  95.  
  96. local head = script.Parent
  97. local sound = head:findFirstChild("Sound")
  98.  
  99.  
  100. function onTouched(part)
  101. local h = part.Parent:findFirstChild("Humanoid")
  102. if h~=nil then
  103. sound:play()
  104.  
  105. end
  106. end
  107.  
  108. script.Parent.Touched:connect(onTouched)
  109.  
  110. end,o15)
  111. end))
  112. o16.Parent = mas
  113. table.insert(cors,coroutine.create(function()
  114. wait()
  115. runDummyScript(function()
  116. local soundIds = {150185006,150184965,150185025}
  117. local sounds = {}
  118. for i=1,#soundIds do
  119. local s = Instance.new("Sound")
  120. s.SoundId = "http://www.roblox.com/asset/?id=" .. soundIds[i]
  121. s.Volume = 1
  122. s.Parent = script.Parent
  123. sounds[#sounds + 1] = s
  124. end
  125. fpor = game.Workspace.FindPartOnRay
  126. seen_dist = 200
  127. function canSee(subject,viewer)
  128. if (not subject) or (not viewer) then return false end
  129. local sh = subject:findFirstChild("Death")
  130. local vh = viewer:findFirstChild("Head")
  131. if (not sh) or (not vh) then return false end
  132. local vec = sh.Position - vh.Position
  133. local isInFOV = (vec:Dot(vh.CFrame.lookVector) > 0)
  134. if (isInFOV) and (vec.magnitude < seen_dist) then
  135. local ray = Ray.new(vh.Position,vec.unit*200)
  136. local por = fpor(workspace,ray,viewer,false)
  137. return (por == nil) or (por:IsDescendantOf(subject))
  138. end
  139. return false
  140. end
  141. function canSee2(subject,viewer)
  142. if (not subject) or (not viewer) then return false end
  143. local sh = subject:findFirstChild("Death")
  144. local vh = viewer:findFirstChild("Head")
  145. if (not sh) or (not vh) then return false end
  146. local vec = sh.Position - vh.Position
  147. if (vec.magnitude < seen_dist) then
  148. local ray = Ray.new(vh.Position,vec.unit*200)
  149. local por = fpor(workspace,ray,viewer,false)
  150. return (por == nil) or (por:IsDescendantOf(subject))
  151. end
  152. return false
  153. end
  154.  
  155. function stick(x, y)
  156. weld = Instance.new("Weld")
  157. weld.Part0 = x
  158. weld.Part1 = y
  159. local HitPos = x.Position
  160. local CJ = CFrame.new(HitPos)
  161. local C0 = x.CFrame:inverse() *CJ
  162. local C1 = y.CFrame:inverse() * CJ
  163. weld.C0 = C0
  164. weld.C1 = C1
  165. weld.Parent = x
  166. x.Anchored = false
  167. y.Anchored = false
  168.  
  169. end
  170. stick(script.Parent, script.Parent.Parent.Phys)
  171. function stick2(x, y)
  172. weld = Instance.new("Weld")
  173. weld.Part0 = x
  174. weld.Part1 = y
  175. local HitPos = x.Position
  176. local CJ = CFrame.new(HitPos)
  177. local C0 = x.CFrame:inverse() *CJ
  178. local C1 = y.CFrame:inverse() * CJ
  179. weld.C0 = C0
  180. weld.C1 = C1
  181. weld.Parent = x
  182. x.Anchored = false
  183. y.Anchored = false
  184. end
  185. stick(script.Parent, script.Parent.Parent.Phys4)
  186. function stick2(x, y)
  187. weld = Instance.new("Weld")
  188. weld.Part0 = x
  189. weld.Part1 = y
  190. local HitPos = x.Position
  191. local CJ = CFrame.new(HitPos)
  192. local C0 = x.CFrame:inverse() *CJ
  193. local C1 = y.CFrame:inverse() * CJ
  194. weld.C0 = C0
  195. weld.C1 = C1
  196. weld.Parent = x
  197. x.Anchored = false
  198. y.Anchored = false
  199. end
  200. stick(script.Parent, script.Parent.Parent.Phys5)
  201. stick(script.Parent, script.Parent.Face)
  202. function stick2(x, y)
  203. weld = Instance.new("Weld")
  204. weld.Part0 = x
  205. weld.Part1 = y
  206. local HitPos = x.Position
  207. local CJ = CFrame.new(HitPos)
  208. local C0 = x.CFrame:inverse() *CJ
  209. local C1 = y.CFrame:inverse() * CJ
  210. weld.C0 = C0
  211. weld.C1 = C1
  212. weld.Parent = x
  213. x.Anchored = false
  214. y.Anchored = false
  215. end
  216.  
  217. stick(script.Parent, script.Parent.Parent.Phys3)
  218. function stick2(x, y)
  219. weld = Instance.new("Weld")
  220. weld.Part0 = x
  221. weld.Part1 = y
  222. local HitPos = x.Position
  223. local CJ = CFrame.new(HitPos)
  224. local C0 = x.CFrame:inverse() *CJ
  225. local C1 = y.CFrame:inverse() * CJ
  226. weld.C0 = C0
  227. weld.C1 = C1
  228. weld.Parent = x
  229. x.Anchored = false
  230. y.Anchored = false
  231. end
  232. stick2(script.Parent, script.Parent.Parent.Phys2)
  233. while true do
  234. local minmag = nil
  235. local minply = nil
  236. local mindir = nil
  237. local beingwatched = false
  238. players = game:GetService("Players"):GetChildren()
  239. for i=1,#players do
  240. char = players[i].Character
  241. if char then
  242. local foundhead = char:FindFirstChild("Head")
  243. local foundtorso = char:FindFirstChild("Torso")
  244. local foundHumanoidRootPart = char:FindFirstChild("HumanoidRootPart")
  245. local foundhum = char:FindFirstChild("Humanoid")
  246. if foundhead and foundtorso and foundHumanoidRootPart and foundhum and foundhum.Health > 0 then
  247. local sub = (script.Parent.CFrame.p - foundhead.CFrame.p)
  248. local dir = sub.unit
  249. local mag = sub.magnitude
  250. if not minmag or minmag > mag then
  251. minmag = mag
  252. minply = char:FindFirstChild("HumanoidRootPart")
  253. mindir = dir
  254. if canSee(script.Parent.Parent, char) then beingwatched = true end
  255. end
  256. end
  257. end
  258. end
  259.  
  260. if minply and not beingwatched and canSee2(script.Parent.Parent, minply.Parent) then
  261. if minmag and minmag <= 200 then
  262. local unit = (script.Parent.Position-minply.Position).unit
  263. unit = Vector3.new(unit.X,0,unit.Z)
  264. script.Parent.CFrame = CFrame.new(script.Parent.Position + (unit*-15), Vector3.new(minply.Position.X, script.Parent.Position.Y, minply.Position.Z))
  265. script.Parent.CFrame = script.Parent.CFrame * CFrame.Angles(0,math.rad(180),0)
  266. script.Parent.Slide:Play()
  267. wait(0.000001)
  268. if minmag < 10 and minply.Parent:FindFirstChild("Humanoid") and minply.Parent.Humanoid.Health > 0 and not beingwatched then
  269. script.Parent.CFrame = CFrame.new(script.Parent.Position, Vector3.new(minply.Position.X, script.Parent.Position.Y, minply.Position.Z))
  270. minply.Parent:BreakJoints()
  271. script.Parent.Kill:Play()
  272. end
  273. end
  274. end
  275. wait(.000001)
  276. script.Parent.Slide:Pause()
  277. wait(.000001)
  278. end
  279. end,o16)
  280. end))
  281. mas.Parent = workspace
  282. mas:MakeJoints()
  283. local mas1 = mas:GetChildren()
  284. for i=1,#mas1 do
  285. mas1[i].Parent = workspace
  286. ypcall(function() mas1[i]:MakeJoints() end)
  287. end
  288. mas:Destroy()
  289. for i=1,#cors do
  290. coroutine.resume(cors[i])
  291. end
Advertisement
Add Comment
Please, Sign In to add comment