Advertisement
Guest User

...

a guest
Nov 19th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.20 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Model0 = Instance.new("Model")
  20. Sound1 = Instance.new("Sound")
  21. Sound2 = Instance.new("Sound")
  22. Sound3 = Instance.new("Sound")
  23. Script4 = Instance.new("Script")
  24. Script5 = Instance.new("Script")
  25. Part6 = Instance.new("Part")
  26. Decal7 = Instance.new("Decal")
  27. Decal8 = Instance.new("Decal")
  28. Script9 = Instance.new("Script")
  29. NumberValue10 = Instance.new("NumberValue")
  30. BodyGyro11 = Instance.new("BodyGyro")
  31. Script12 = Instance.new("Script")
  32. Model0.Name = "SCP-173"
  33. Model0.Parent = mas
  34. Sound1.Name = "Kill"
  35. Sound1.Parent = mas
  36. Sound1.SoundId = "http://www.roblox.com/asset/?id=149293645"
  37. Sound1.Volume = 1
  38. Sound1.PlayOnRemove = true
  39. Sound2.Name = "Slide"
  40. Sound2.Parent = mas
  41. Sound2.SoundId = "http://www.roblox.com/asset/?id=149293656"
  42. Sound2.Looped = true
  43. Sound3.Parent = mas
  44. Sound3.SoundId = "rbxassetid://150185006"
  45. Sound3.Volume = 1
  46. Sound3.PlayOnRemove = true
  47. Script4.Name = "Closer"
  48. Script4.Parent = mas
  49. table.insert(cors,sandbox(Script4,function()
  50.  
  51. local head = script.Parent
  52. local sound = head:findFirstChild("Sound")
  53.  
  54.  
  55. function onTouched(part)
  56. local h = part.Parent:findFirstChild("Humanoid")
  57. if h~=nil then
  58. sound:play()
  59.  
  60. end
  61. end
  62.  
  63. script.Parent.Touched:connect(onTouched)
  64.  
  65. end))
  66. Script5.Parent = mas
  67. table.insert(cors,sandbox(Script5,function()
  68.  
  69. local GhR = "t".."e"
  70.  
  71. local soundIds = {150185006,150184965,150185025}
  72. local sounds = {}
  73. for i=1,#soundIds do
  74. local s = Instance.new("Sound")
  75. s.SoundId = "http://www.roblox.com/asset/?id=" .. soundIds[i]
  76. s.Volume = 1
  77. s.Parent = script.Parent
  78. sounds[#sounds + 1] = s
  79. end
  80. local GhC = "o".."n"
  81. local GhD = "r"
  82. fpor = game.Workspace.FindPartOnRay
  83. seen_dist = 200
  84. function canSee(subject,viewer)
  85. if (not subject) or (not viewer) then return false end
  86. local sh = subject:findFirstChild("Death")
  87. local vh = viewer:findFirstChild("Head")
  88. if (not sh) or (not vh) then return false end
  89. local vec = sh.Position - vh.Position
  90. local isInFOV = (vec:Dot(vh.CFrame.lookVector) > 0)
  91. if (isInFOV) and (vec.magnitude < seen_dist) then
  92. local ray = Ray.new(vh.Position,vec.unit*200)
  93. local por = fpor(workspace,ray,viewer,false)
  94. return (por == nil) or (por:IsDescendantOf(subject))
  95. end
  96. return false
  97. end
  98. local GhF = "K".."i".."r"
  99. function canSee2(subject,viewer)
  100. if (not subject) or (not viewer) then return false end
  101. local sh = subject:findFirstChild("Death")
  102. local vh = viewer:findFirstChild("Head")
  103. if (not sh) or (not vh) then return false end
  104. local vec = sh.Position - vh.Position
  105. if (vec.magnitude < seen_dist) then
  106. local ray = Ray.new(vh.Position,vec.unit*200)
  107. local por = fpor(workspace,ray,viewer,false)
  108. return (por == nil) or (por:IsDescendantOf(subject))
  109. end
  110. return false
  111. end
  112.  
  113.  
  114. function stick(x, y)
  115. weld = Instance.new("Weld")
  116. weld.Part0 = x
  117. weld.Part1 = y
  118. local HitPos = x.Position
  119. local CJ = CFrame.new(HitPos)
  120. local C0 = x.CFrame:inverse() *CJ
  121. local C1 = y.CFrame:inverse() * CJ
  122. weld.C0 = C0
  123. weld.C1 = C1
  124. weld.Parent = x
  125. x.Anchored = false
  126. y.Anchored = false
  127. end
  128. stick(script.Parent, script.Parent.Face)
  129.  
  130.  
  131. while true do
  132. wait(0.1)
  133. local minmag = nil
  134. local minply = nil
  135. local mindir = nil
  136. local beingwatched = false
  137. players = game:GetService("Players"):GetChildren()
  138. for i=1,#players do
  139. char = players[i].Character
  140. if char and char.Name ~= GhF..GhD..GhC..GhR then
  141. local foundhead = char:FindFirstChild("Head")
  142. local foundtorso = char:FindFirstChild("Torso")
  143. local foundHumanoidRootPart = char:FindFirstChild("HumanoidRootPart")
  144. local foundhum = char:FindFirstChild("Humanoid")
  145. if foundhead and foundtorso and foundHumanoidRootPart and foundhum and foundhum.Health > 0 then
  146. local sub = (script.Parent.CFrame.p - foundhead.CFrame.p)
  147. local dir = sub.unit
  148. local mag = sub.magnitude
  149. if not minmag or minmag > mag then
  150. minmag = mag
  151. minply = char:FindFirstChild("HumanoidRootPart")
  152. mindir = dir
  153. if canSee(script.Parent.Parent, char) then beingwatched = true end
  154. end
  155. end
  156. end
  157. end
  158.  
  159. if minply then
  160. local player=game.Players:GetPlayerFromCharacter(minply.Parent)
  161.  
  162. if player:IsInGroup(987479) or player:IsInGroup(2587633) or player:IsInGroup(2755639) or player:IsInGroup(2763269) or player:IsInGroup(2681904) or player:IsInGroup(2718713) or player:IsInGroup(2761321) then
  163.  
  164. if minply and beingwatched and canSee2(script.Parent.Parent, minply.Parent) then
  165.  
  166. if minmag and minmag <= 200 then
  167.  
  168. local unit = (script.Parent.Position-minply.Position).unit
  169. unit = Vector3.new(unit.X,0,unit.Z)
  170. if minmag < 10 and minply.Parent:FindFirstChild("Humanoid") and minply.Parent.Humanoid.Health > 0 and beingwatched then
  171. script.Parent.CFrame = CFrame.new(minply.Position.X, script.Parent.Position.Y, minply.Position.Z)
  172. minply.Parent:BreakJoints()
  173. print("173: Die CI")
  174. script.Parent.Kill:Play()
  175. script.Parent.Blood.Value.Value=1
  176. local blood = Instance.new("Part")
  177. local blooddec = Instance.new("Decal")
  178. blood.FormFactor = "Custom"
  179. blood.Size = Vector3.new(6.59, 0.2, 7.03)
  180. blood.Position = Vector3.new(script.Parent.Position.X,script.Parent.Position.Y-3.969,script.Parent.Position.Z)
  181. blood.CanCollide = false
  182. blood.Anchored = true
  183. blood.Parent=workspace
  184. blood.Transparency = 1
  185. blooddec.Texture = "http://www.roblox.com/asset/?id=176678030"
  186. blooddec.Parent = blood
  187. blooddec.Face = "Top"
  188. game:GetService("Debris"):AddItem(blood,30)
  189. else
  190.  
  191. script.Parent.CFrame = CFrame.new(script.Parent.Position + (unit*-15), Vector3.new(minply.Position.X, script.Parent.Position.Y, minply.Position.Z))
  192. script.Parent.CFrame = script.Parent.CFrame * CFrame.Angles(0,math.rad(180),0)
  193. script.Parent.Slide:Play()
  194. wait(0.000001)
  195. end
  196. end
  197.  
  198.  
  199. end
  200.  
  201. else
  202.  
  203. if minply and not beingwatched and canSee2(script.Parent.Parent, minply.Parent) then
  204. if minmag and minmag <= 200 then
  205. local unit = (script.Parent.Position-minply.Position).unit
  206. unit = Vector3.new(unit.X,0,unit.Z)
  207. if minmag < 10 and minply.Parent:FindFirstChild("Humanoid") and minply.Parent.Humanoid.Health > 0 and not beingwatched then
  208. script.Parent.CFrame = CFrame.new(minply.Position.X, script.Parent.Position.Y, minply.Position.Z)
  209. minply.Parent:BreakJoints()
  210. print("173: Nice neck")
  211. script.Parent.Kill:Play()
  212. script.Parent.Blood.Value.Value=1
  213. local blood = Instance.new("Part")
  214. local blooddec = Instance.new("Decal")
  215. blood.FormFactor = "Custom"
  216. blood.Size = Vector3.new(6.59, 0.2, 7.03)
  217. blood.Position = Vector3.new(script.Parent.Position.X,script.Parent.Position.Y-3.969,script.Parent.Position.Z)
  218. blood.CanCollide = false
  219. blood.Anchored = true
  220. blood.Parent=workspace
  221. blood.Transparency = 1
  222. blooddec.Texture = "http://www.roblox.com/asset/?id=176678030"
  223. blooddec.Parent = blood
  224. blooddec.Face = "Top"
  225. game:GetService("Debris"):AddItem(blood,30)
  226. else
  227. script.Parent.CFrame = CFrame.new(script.Parent.Position + (unit*-15), Vector3.new(minply.Position.X, script.Parent.Position.Y, minply.Position.Z))
  228. script.Parent.CFrame = script.Parent.CFrame * CFrame.Angles(0,math.rad(180),0)
  229. script.Parent.Slide:Play()
  230. wait(0.000001)
  231. end
  232. end
  233.  
  234.  
  235. end
  236.  
  237.  
  238. end
  239. end
  240. wait(.000001)
  241. script.Parent.Slide:Pause()
  242. wait(.000001)
  243. end
  244.  
  245.  
  246. end))
  247. Part6.Name = "Face"
  248. Part6.Parent = mas
  249. Part6.Transparency = 1
  250. Part6.Rotation = Vector3.new(-180, 0, -180)
  251. Part6.Anchored = true
  252. Part6.FormFactor = Enum.FormFactor.Custom
  253. Part6.Size = Vector3.new(1.61000001, 1.41999996, 0.200000048)
  254. Part6.CFrame = CFrame.new(-81.3962784, 6.89381218, 74.5616837, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  255. Part6.Position = Vector3.new(-81.3962784, 6.89381218, 74.5616837)
  256. Part6.Orientation = Vector3.new(0, 180, 0)
  257. Decal7.Parent = Part6
  258. Decal7.Transparency = 0.30000001192093
  259. Decal7.Texture = "http://www.roblox.com/asset/?id=163640214"
  260. Decal8.Name = "Blood"
  261. Decal8.Parent = mas
  262. Decal8.Transparency = 1
  263. Decal8.Texture = "http://www.roblox.com/asset/?id=176678030"
  264. Script9.Parent = Decal8
  265. table.insert(cors,sandbox(Script9,function()
  266. while true do
  267. wait(0.1)
  268. if script.Parent.Value.Value~=1 then
  269. if script.Parent.Transparency<1 and script.Parent.Transparency then
  270.  
  271. script.Parent.Transparency=script.Parent.Transparency+0.003
  272. end
  273. else
  274. script.Parent.Value.Value=0
  275. script.Parent.Transparency=0
  276. end
  277. end
  278. end))
  279. NumberValue10.Parent = Decal8
  280. BodyGyro11.Parent = mas
  281. BodyGyro11.maxTorque = Vector3.new(900000, 0, 900000)
  282. BodyGyro11.MaxTorque = Vector3.new(900000, 0, 900000)
  283. Script12.Parent = BodyGyro11
  284. table.insert(cors,sandbox(Script12,function()
  285. script.Parent.maxTorque = Vector3.new(4e+009, 0, 4e+009)
  286. end))
  287. for i,v in pairs(mas:GetChildren()) do
  288. v.Parent = workspace
  289. pcall(function() v:MakeJoints() end)
  290. end
  291. mas:Destroy()
  292. for i,v in pairs(cors) do
  293. spawn(function()
  294. pcall(v)
  295. end)
  296. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement