Advertisement
cat568

Untitled

Jul 11th, 2018
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.52 KB | None | 0 0
  1. --SCP-035 [OBJECT CLASS: KETER]
  2.  
  3. ply = game.Players.LocalPlayer
  4. mouse = ply:GetMouse()
  5. char = ply.Character
  6. cam = game.Workspace.CurrentCamera
  7. minicooldown = 0
  8.  
  9. repeat wait() until ply and char and cam and mouse
  10. state = nil
  11. function create()
  12. tool = Instance.new("Tool", workspace)
  13. tool.Name = "HaCk3D Fabergé Egg"
  14. tool.GripPos = Vector3.new(0, 0, .2)
  15. tool.CanBeDropped = false
  16. handle = Instance.new("Part", tool)
  17. handle.Name = "Handle"
  18. handle.Size = Vector3.new(2, 2, 2)
  19. handle.CanCollide = true
  20. handle.Anchored = false
  21. handle.CFrame = char.Torso.CFrame
  22. specmesh = Instance.new("SpecialMesh", handle)
  23. specmesh.MeshId = "rbxassetid://24829283"
  24. specmesh.TextureId = "rbxassetid://76667800"
  25. bgui = Instance.new("BillboardGui", handle)
  26. bgui.Active = false
  27. bgui.AlwaysOnTop = true
  28. bgui.Enabled = true
  29. bgui.MaxDistance = 100
  30. bgui.Size = UDim2.new(0.5, 0, 0.5, 0)
  31. bgui.SizeOffset = Vector2.new(-20, 5)
  32. bgui.Name = "FrameHolder"
  33. bgui.Adornee = handle
  34. frame = Instance.new("Frame", bgui)
  35. frame.Active = false
  36. frame.BackgroundTransparency = 1
  37. frame.Size = UDim2.new(42, 0, 4, 0)
  38. frame.Name = "Frame"
  39. text = Instance.new("TextLabel", frame)
  40. text.Active = false
  41. text.BackgroundTransparency = 1
  42. text.Size = UDim2.new(1, 0, 1, 0)
  43. text.Visible = true
  44. text.Font = "Antique"
  45. text.TextScaled = true
  46. text.TextSize = 14
  47. text.TextColor3 = Color3.new(255/255, 0/255, 0/255)
  48. text.TextTransparency = 0.5
  49. text.Text = ""
  50.  
  51. cam.CameraSubject = handle
  52. cam.CameraType = "Custom"
  53. char.Parent = nil
  54.  
  55. end
  56.  
  57. create()
  58.  
  59.  
  60. tool.Handle.Touched:connect(function(hit)
  61. print(hit.Parent)
  62. end)
  63.  
  64. store = {}
  65.  
  66. function lerp(a, b, t)
  67. return a:lerp(b, t)
  68. end
  69.  
  70. mouse.KeyDown:connect(function(key)
  71. if key == "f" and tool.Parent:FindFirstChild("Humanoid") then
  72. dir = tool.Parent
  73. if dir.Torso["Right Shoulder"] and state ~= "Possessing" then
  74. minicooldown = 1
  75. state = "Possessing"
  76. handle.Transparency = 1
  77. mask = Instance.new("Part", dir)
  78. mask.Anchored = false
  79. mask.CanCollide = false
  80. mask.Size = Vector3.new(0.5, 0.5, 0.5)
  81. local mesh = Instance.new("SpecialMesh", mask)
  82. mesh.MeshId = "rbxassetid://24829283"
  83. mesh.TextureId = "rbxassetid://76667800"
  84. local weldpart = Instance.new("Weld", mask)
  85. weldpart.Part0 = mask
  86. weldpart.Part1 = dir["Right Arm"]
  87. weldpart.C0 = CFrame.new(0, .48, 0) *CFrame.Angles(0, math.rad(25), 0)
  88. weld = Instance.new("Weld", dir.Torso)
  89. weld.Part0 = dir.Torso["Right Shoulder"].Part0
  90. weld.Part1 = dir.Torso["Right Shoulder"].Part1
  91. weld.Name = dir.Torso["Right Shoulder"].Name
  92. weld.C0 = dir.Torso["Right Shoulder"].C0
  93. weld.C1 = dir.Torso["Right Shoulder"].C1
  94. table.insert(store, dir.Torso["Right Shoulder"])
  95. dir.Torso["Right Shoulder"]:Remove()
  96. print(dir.Torso["Right Shoulder"].C0)
  97. for i = 0, 1, .1 do
  98. wait()
  99. weld.C0 = lerp(weld.C0, CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0) *CFrame.Angles(math.rad(-10), math.rad(85), math.rad(-195)), i)
  100. end
  101. mask2 = Instance.new("Part", dir)
  102. mask2.Anchored = false
  103. mask2.CanCollide = false
  104. mask2.Size = Vector3.new(2, 2.5, 2)
  105. local mesh = Instance.new("SpecialMesh", mask2)
  106. mesh.MeshId = "rbxassetid://24829283"
  107. mesh.TextureId = "rbxassetid://76667800"
  108. local weldparts = Instance.new("Weld", mask2)
  109. weldparts.Part0 = mask2
  110. weldparts.Part1 = dir["Head"]
  111. weldparts.C0 = CFrame.new(0, -1.6, 0)
  112. mask.Transparency = 1
  113. for i = 0, 1, .1 do
  114. wait()
  115. weld.C0 = lerp(weld.C0, store[1].C0, .1)
  116. end
  117. mask:Remove()
  118. store[1].Parent = weld.Parent
  119. weld:Remove()
  120. store = {}
  121. bgui2 = Instance.new("BillboardGui", mask2)
  122. bgui2.Active = false
  123. bgui2.AlwaysOnTop = true
  124. bgui2.Enabled = true
  125. bgui2.MaxDistance = 100
  126. bgui2.Size = UDim2.new(0.5, 0, 0.5, 0)
  127. bgui2.SizeOffset = Vector2.new(-20, 5)
  128. bgui2.Name = "FrameHolder"
  129. bgui2.Adornee = dir.Head
  130. frame2 = Instance.new("Frame", bgui2)
  131. frame2.Active = false
  132. frame2.BackgroundTransparency = 1
  133. frame2.Size = UDim2.new(42, 0, 4, 0)
  134. frame2.Name = "Frame"
  135. text2 = Instance.new("TextLabel", frame2)
  136. text2.Active = false
  137. text2.BackgroundTransparency = 1
  138. text2.Size = UDim2.new(1, 0, 1, 0)
  139. text2.Visible = true
  140. text2.Font = "Antique"
  141. text2.TextScaled = true
  142. text2.TextSize = 14
  143. text2.TextColor3 = Color3.new(255/255, 0/255, 0/255)
  144. text2.TextTransparency = 0.5
  145. text2.Text = ""
  146. tool.Parent = nil
  147. cam.CameraSubject = dir.Humanoid
  148. dir.Humanoid.MaxHealth = math.huge
  149. char.Parent = workspace
  150. for i, v in pairs(char:GetChildren()) do
  151. if v:IsA("Part") or v:IsA("MeshPart") then
  152. v.Transparency = 1
  153. end
  154. end
  155.  
  156. dir.Humanoid.WalkSpeed = 0
  157. dir.Humanoid.JumpPower = 0
  158. dir.Humanoid.PlatformStand = true
  159. weld1 = Instance.new("Weld", char.Torso)
  160. weld1.Part0 = char.Torso
  161. weld1.Part1 = dir.Torso
  162. weld1.C0 = CFrame.new(0, 0, 0)
  163. weld2 = Instance.new("Weld", char.Torso)
  164. weld2.Part0 = char["Right Arm"]
  165. weld2.Part1 = dir["Right Arm"]
  166. weld2.C0 = CFrame.new(0, 0, 0)
  167. weld3 = Instance.new("Weld", char.Torso)
  168. weld3.Part0 = char["Left Arm"]
  169. weld3.Part1 = dir["Left Arm"]
  170. weld3.C0 = CFrame.new(0, 0, 0)
  171. weld4 = Instance.new("Weld", char.Torso)
  172. weld4.Part0 = char["Left Leg"]
  173. weld4.Part1 = dir["Left Leg"]
  174. weld4.C0 = CFrame.new(0, 0, 0)
  175. weld5 = Instance.new("Weld", char.Torso)
  176. weld5.Part0 = char["Right Leg"]
  177. weld5.Part1 = dir["Right Leg"]
  178. weld5.C0 = CFrame.new(0, 0, 0)
  179. weld5 = Instance.new("Weld", char.Torso)
  180. weld5.Part0 = char.Head
  181. weld5.Part1 = dir.Head
  182. weld5.C0 = CFrame.new(0, 0, 0)
  183. if dir:FindFirstChild("HumanoidRootPart") ~= nil then
  184. weld6 = Instance.new("Weld", char.Torso)
  185. weld6.Part0 = char.HumanoidRootPart
  186. weld6.Part1 = dir.HumanoidRootPart
  187. weld6.C0 = CFrame.new(0, 0, 0)
  188. end
  189. for i, v in pairs(dir:GetChildren()) do
  190. if v:IsA("Part") or v:IsA("MeshPart") then
  191. v.CanCollide = false
  192. end
  193. end
  194. char.Humanoid.MaxHealth = math.huge
  195. minicooldown = 2
  196. end
  197. elseif key == "g" and state == "Possessing" and minicooldown == 2 then
  198. state = nil
  199. weld1:Remove()
  200. weld2:Remove()
  201. weld3:Remove()
  202. weld4:Remove()
  203. weld5:Remove()
  204. if weld6 ~= nil then
  205. weld6:Remove()
  206. end
  207. tool.Parent = workspace
  208. tool.Handle.CanCollide = true
  209. tool.Handle.Transparency = 0
  210. tool.Handle.CFrame = char.Torso.CFrame *CFrame.new(0, 0, -3)
  211. cam.CameraSubject = tool.Handle
  212. local pos = char.Torso.CFrame
  213. char.Parent = nil
  214. minicooldown = 0
  215. for i, v in pairs(dir:GetChildren()) do
  216. if v:IsA("Part") or v:IsA("MeshPart") then
  217. v.BrickColor = BrickColor.new("Really black")
  218. end
  219. end
  220. dir:BreakJoints()
  221. local blackblood = Instance.new("Part", dir)
  222. blackblood.Anchored = true
  223. blackblood.BrickColor = BrickColor.new("Really black")
  224. blackblood.Size = Vector3.new(0.05, 1, 1)
  225. blackblood.Shape = "Cylinder"
  226. blackblood.CanCollide = false
  227. blackblood.CFrame = CFrame.new(pos.X, pos.Y-2.95, pos.Z)
  228. blackblood.Orientation = Vector3.new(0, 90, 90)
  229. for i = 1, 100 do
  230. wait()
  231. blackblood.Orientation = Vector3.new(0, 90, 90)
  232. blackblood.Size = blackblood.Size +Vector3.new(0, .1, .1)
  233. end
  234. end
  235. end)
  236.  
  237.  
  238. ply.Chatted:connect(function(msg)
  239. if msg and state ~= "Possessing" then
  240. for i = 1, string.len(msg) do
  241. wait()
  242. text.Text = string.sub(msg, 1, i)
  243. end
  244. wait(2)
  245. text.Text = ""
  246. elseif msg and state == "Possessing" then
  247. for i = 1, string.len(msg) do
  248. wait()
  249. text2.Text = string.sub(msg, 1, i)
  250. end
  251. wait(2)
  252. text2.Text = ""
  253. end
  254. end)
  255.  
  256. game:GetService("RunService").RenderStepped:connect(function()
  257. end)
  258.  
  259. game.Players.PlayerRemoving:connect(function(playr)
  260. if playr.Name == "w3w123ALT" then
  261. tool:Remove()
  262. end
  263. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement