Advertisement
nobiclol

Untitled

Dec 17th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = owner
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86. --SCP-035 [OBJECT CLASS: KETER]
  87.  
  88. ply = owner
  89. char = ply.Character
  90. cam = game.Workspace.CurrentCamera
  91. minicooldown = 0
  92.  
  93. repeat wait() until ply and char and cam and mouse
  94. state = nil
  95. function create()
  96. tool = Instance.new("Tool", workspace)
  97. tool.Name = "SCP-035"
  98. tool.GripPos = Vector3.new(0, 0, .2)
  99. tool.CanBeDropped = false
  100. handle = Instance.new("Part", tool)
  101. handle.Name = "Handle"
  102. handle.Size = Vector3.new(.5, .5, .5)
  103. handle.CanCollide = true
  104. handle.Anchored = false
  105. handle.CFrame = char.Torso.CFrame
  106. specmesh = Instance.new("SpecialMesh", handle)
  107. specmesh.MeshId = "rbxassetid://13520257"
  108. specmesh.TextureId = "rbxassetid://149756906"
  109. bgui = Instance.new("BillboardGui", handle)
  110. bgui.Active = false
  111. bgui.AlwaysOnTop = true
  112. bgui.Enabled = true
  113. bgui.MaxDistance = 100
  114. bgui.Size = UDim2.new(0.5, 0, 0.5, 0)
  115. bgui.SizeOffset = Vector2.new(-20, 5)
  116. bgui.Name = "FrameHolder"
  117. bgui.Adornee = handle
  118. frame = Instance.new("Frame", bgui)
  119. frame.Active = false
  120. frame.BackgroundTransparency = 1
  121. frame.Size = UDim2.new(42, 0, 4, 0)
  122. frame.Name = "Frame"
  123. text = Instance.new("TextLabel", frame)
  124. text.Active = false
  125. text.BackgroundTransparency = 1
  126. text.Size = UDim2.new(1, 0, 1, 0)
  127. text.Visible = true
  128. text.Font = "Antique"
  129. text.TextScaled = true
  130. text.TextSize = 14
  131. text.TextColor3 = Color3.new(255/255, 0/255, 0/255)
  132. text.TextTransparency = 0.5
  133. text.Text = ""
  134.  
  135. cam.CameraSubject = handle
  136. cam.CameraType = "Custom"
  137. char.Parent = nil
  138.  
  139. end
  140.  
  141. create()
  142.  
  143.  
  144. tool.Handle.Touched:connect(function(hit)
  145. print(hit.Parent)
  146. end)
  147.  
  148. store = {}
  149.  
  150. function lerp(a, b, t)
  151. return a:lerp(b, t)
  152. end
  153.  
  154. mouse.KeyDown:connect(function(key)
  155. if key == "f" and tool.Parent:FindFirstChild("Humanoid") then
  156. dir = tool.Parent
  157. if dir.Torso["Right Shoulder"] and state ~= "Possessing" then
  158. minicooldown = 1
  159. state = "Possessing"
  160. handle.Transparency = 1
  161. mask = Instance.new("Part", dir)
  162. mask.Anchored = false
  163. mask.CanCollide = false
  164. mask.Size = Vector3.new(.5, .5, .5)
  165. local mesh = Instance.new("SpecialMesh", mask)
  166. mesh.MeshId = "rbxassetid://13520257"
  167. mesh.TextureId = "rbxassetid://149756906"
  168. local weldpart = Instance.new("Weld", mask)
  169. weldpart.Part0 = mask
  170. weldpart.Part1 = dir["Right Arm"]
  171. weldpart.C0 = CFrame.new(0, .48, 0) *CFrame.Angles(0, math.rad(25), 0)
  172. weld = Instance.new("Weld", dir.Torso)
  173. weld.Part0 = dir.Torso["Right Shoulder"].Part0
  174. weld.Part1 = dir.Torso["Right Shoulder"].Part1
  175. weld.Name = dir.Torso["Right Shoulder"].Name
  176. weld.C0 = dir.Torso["Right Shoulder"].C0
  177. weld.C1 = dir.Torso["Right Shoulder"].C1
  178. table.insert(store, dir.Torso["Right Shoulder"])
  179. dir.Torso["Right Shoulder"]:Remove()
  180. print(dir.Torso["Right Shoulder"].C0)
  181. for i = 0, 1, .1 do
  182. wait()
  183. 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)
  184. end
  185. mask2 = Instance.new("Part", dir)
  186. mask2.Anchored = false
  187. mask2.CanCollide = false
  188. mask2.Size = Vector3.new(.5, .5, .5)
  189. local mesh = Instance.new("SpecialMesh", mask2)
  190. mesh.MeshId = "rbxassetid://13520257"
  191. mesh.TextureId = "rbxassetid://149756906"
  192. local weldparts = Instance.new("Weld", mask2)
  193. weldparts.Part0 = mask2
  194. weldparts.Part1 = dir["Head"]
  195. weldparts.C0 = CFrame.new(0, 0, 0.54)
  196. mask.Transparency = 1
  197. for i = 0, 1, .1 do
  198. wait()
  199. weld.C0 = lerp(weld.C0, store[1].C0, .1)
  200. end
  201. mask:Remove()
  202. store[1].Parent = weld.Parent
  203. weld:Remove()
  204. store = {}
  205. bgui2 = Instance.new("BillboardGui", mask2)
  206. bgui2.Active = false
  207. bgui2.AlwaysOnTop = true
  208. bgui2.Enabled = true
  209. bgui2.MaxDistance = 100
  210. bgui2.Size = UDim2.new(0.5, 0, 0.5, 0)
  211. bgui2.SizeOffset = Vector2.new(-20, 5)
  212. bgui2.Name = "FrameHolder"
  213. bgui2.Adornee = dir.Head
  214. frame2 = Instance.new("Frame", bgui2)
  215. frame2.Active = false
  216. frame2.BackgroundTransparency = 1
  217. frame2.Size = UDim2.new(42, 0, 4, 0)
  218. frame2.Name = "Frame"
  219. text2 = Instance.new("TextLabel", frame2)
  220. text2.Active = false
  221. text2.BackgroundTransparency = 1
  222. text2.Size = UDim2.new(1, 0, 1, 0)
  223. text2.Visible = true
  224. text2.Font = "Antique"
  225. text2.TextScaled = true
  226. text2.TextSize = 14
  227. text2.TextColor3 = Color3.new(255/255, 0/255, 0/255)
  228. text2.TextTransparency = 0.5
  229. text2.Text = ""
  230. tool.Parent = nil
  231. cam.CameraSubject = dir.Humanoid
  232. dir.Humanoid.MaxHealth = math.huge
  233. char.Parent = workspace
  234. for i, v in pairs(char:GetChildren()) do
  235. if v:IsA("Part") or v:IsA("MeshPart") then
  236. v.Transparency = 1
  237. end
  238. end
  239.  
  240. dir.Humanoid.WalkSpeed = 0
  241. dir.Humanoid.JumpPower = 0
  242. dir.Humanoid.PlatformStand = true
  243. weld1 = Instance.new("Weld", char.Torso)
  244. weld1.Part0 = char.Torso
  245. weld1.Part1 = dir.Torso
  246. weld1.C0 = CFrame.new(0, 0, 0)
  247. weld2 = Instance.new("Weld", char.Torso)
  248. weld2.Part0 = char["Right Arm"]
  249. weld2.Part1 = dir["Right Arm"]
  250. weld2.C0 = CFrame.new(0, 0, 0)
  251. weld3 = Instance.new("Weld", char.Torso)
  252. weld3.Part0 = char["Left Arm"]
  253. weld3.Part1 = dir["Left Arm"]
  254. weld3.C0 = CFrame.new(0, 0, 0)
  255. weld4 = Instance.new("Weld", char.Torso)
  256. weld4.Part0 = char["Left Leg"]
  257. weld4.Part1 = dir["Left Leg"]
  258. weld4.C0 = CFrame.new(0, 0, 0)
  259. weld5 = Instance.new("Weld", char.Torso)
  260. weld5.Part0 = char["Right Leg"]
  261. weld5.Part1 = dir["Right Leg"]
  262. weld5.C0 = CFrame.new(0, 0, 0)
  263. weld5 = Instance.new("Weld", char.Torso)
  264. weld5.Part0 = char.Head
  265. weld5.Part1 = dir.Head
  266. weld5.C0 = CFrame.new(0, 0, 0)
  267. if dir:FindFirstChild("HumanoidRootPart") ~= nil then
  268. weld6 = Instance.new("Weld", char.Torso)
  269. weld6.Part0 = char.HumanoidRootPart
  270. weld6.Part1 = dir.HumanoidRootPart
  271. weld6.C0 = CFrame.new(0, 0, 0)
  272. end
  273. for i, v in pairs(dir:GetChildren()) do
  274. if v:IsA("Part") or v:IsA("MeshPart") then
  275. v.CanCollide = false
  276. end
  277. end
  278. char.Humanoid.MaxHealth = math.huge
  279. minicooldown = 2
  280. end
  281. elseif key == "g" and state == "Possessing" and minicooldown == 2 then
  282. state = nil
  283. weld1:Remove()
  284. weld2:Remove()
  285. weld3:Remove()
  286. weld4:Remove()
  287. weld5:Remove()
  288. if weld6 ~= nil then
  289. weld6:Remove()
  290. end
  291. tool.Parent = workspace
  292. tool.Handle.CanCollide = true
  293. tool.Handle.Transparency = 0
  294. tool.Handle.CFrame = char.Torso.CFrame *CFrame.new(0, 0, -3)
  295. cam.CameraSubject = tool.Handle
  296. local pos = char.Torso.CFrame
  297. char.Parent = nil
  298. minicooldown = 0
  299. for i, v in pairs(dir:GetChildren()) do
  300. if v:IsA("Part") or v:IsA("MeshPart") then
  301. v.BrickColor = BrickColor.new("Really black")
  302. end
  303. end
  304. dir:BreakJoints()
  305. local blackblood = Instance.new("Part", dir)
  306. blackblood.Anchored = true
  307. blackblood.BrickColor = BrickColor.new("Really black")
  308. blackblood.Size = Vector3.new(0.05, 1, 1)
  309. blackblood.Shape = "Cylinder"
  310. blackblood.CanCollide = false
  311. blackblood.CFrame = CFrame.new(pos.X, pos.Y-2.95, pos.Z)
  312. blackblood.Orientation = Vector3.new(0, 90, 90)
  313. for i = 1, 100 do
  314. wait()
  315. blackblood.Orientation = Vector3.new(0, 90, 90)
  316. blackblood.Size = blackblood.Size +Vector3.new(0, .1, .1)
  317. end
  318. end
  319. end)
  320.  
  321.  
  322. ply.Chatted:connect(function(msg)
  323. if msg and state ~= "Possessing" then
  324. for i = 1, string.len(msg) do
  325. wait()
  326. text.Text = string.sub(msg, 1, i)
  327. end
  328. wait(2)
  329. text.Text = ""
  330. elseif msg and state == "Possessing" then
  331. for i = 1, string.len(msg) do
  332. wait()
  333. text2.Text = string.sub(msg, 1, i)
  334. end
  335. wait(2)
  336. text2.Text = ""
  337. end
  338. end)
  339.  
  340.  
  341. game.Players.PlayerRemoving:connect(function(playr)
  342. if playr.Name == "w3w123ALT" then
  343. tool:Remove()
  344. end
  345. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement