Josemmoya

thot

Jan 26th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.38 KB | None | 0 0
  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 = game:GetService("Players").LocalPlayer
  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.  
  87. --SCP-035 [OBJECT CLASS: KETER]
  88.  
  89. ply = owner
  90. char = ply.Character
  91. cam = game.Workspace.CurrentCamera
  92. minicooldown = 0
  93.  
  94. repeat wait() until ply and char and cam and mouse
  95. state = nil
  96. function create()
  97. tool = Instance.new("Tool", workspace)
  98. tool.Name = "SCP-035"
  99. tool.GripPos = Vector3.new(0, 0, .2)
  100. tool.CanBeDropped = false
  101. handle = Instance.new("Part", tool)
  102. handle.Name = "Handle"
  103. handle.Size = Vector3.new(.5, .5, .5)
  104. handle.CanCollide = true
  105. handle.Anchored = false
  106. handle.CFrame = char.Torso.CFrame
  107. specmesh = Instance.new("SpecialMesh", handle)
  108. specmesh.MeshId = "rbxassetid://13520257"
  109. specmesh.TextureId = "rbxassetid://149756906"
  110. bgui = Instance.new("BillboardGui", handle)
  111. bgui.Active = false
  112. bgui.AlwaysOnTop = true
  113. bgui.Enabled = true
  114. bgui.MaxDistance = 100
  115. bgui.Size = UDim2.new(0.5, 0, 0.5, 0)
  116. bgui.SizeOffset = Vector2.new(-20, 5)
  117. bgui.Name = "FrameHolder"
  118. bgui.Adornee = handle
  119. frame = Instance.new("Frame", bgui)
  120. frame.Active = false
  121. frame.BackgroundTransparency = 1
  122. frame.Size = UDim2.new(42, 0, 4, 0)
  123. frame.Name = "Frame"
  124. text = Instance.new("TextLabel", frame)
  125. text.Active = false
  126. text.BackgroundTransparency = 1
  127. text.Size = UDim2.new(1, 0, 1, 0)
  128. text.Visible = true
  129. text.Font = "Antique"
  130. text.TextScaled = true
  131. text.TextSize = 14
  132. text.TextColor3 = Color3.new(255/255, 0/255, 0/255)
  133. text.TextTransparency = 0.5
  134. text.Text = ""
  135.  
  136. cam.CameraSubject = handle
  137. cam.CameraType = "Custom"
  138. char.Parent = nil
  139.  
  140. end
  141.  
  142. create()
  143.  
  144.  
  145. tool.Handle.Touched:connect(function(hit)
  146. print(hit.Parent)
  147. end)
  148.  
  149. store = {}
  150.  
  151. function lerp(a, b, t)
  152. return a:lerp(b, t)
  153. end
  154.  
  155. mouse.KeyDown:connect(function(key)
  156. if key == "f" and tool.Parent:FindFirstChild("Humanoid") then
  157. dir = tool.Parent
  158. if dir.Torso["Right Shoulder"] and state ~= "Possessing" then
  159. minicooldown = 1
  160. state = "Possessing"
  161. handle.Transparency = 1
  162. mask = Instance.new("Part", dir)
  163. mask.Anchored = false
  164. mask.CanCollide = false
  165. mask.Size = Vector3.new(.5, .5, .5)
  166. local mesh = Instance.new("SpecialMesh", mask)
  167. mesh.MeshId = "rbxassetid://13520257"
  168. mesh.TextureId = "rbxassetid://149756906"
  169. local weldpart = Instance.new("Weld", mask)
  170. weldpart.Part0 = mask
  171. weldpart.Part1 = dir["Right Arm"]
  172. weldpart.C0 = CFrame.new(0, .48, 0) *CFrame.Angles(0, math.rad(25), 0)
  173. weld = Instance.new("Weld", dir.Torso)
  174. weld.Part0 = dir.Torso["Right Shoulder"].Part0
  175. weld.Part1 = dir.Torso["Right Shoulder"].Part1
  176. weld.Name = dir.Torso["Right Shoulder"].Name
  177. weld.C0 = dir.Torso["Right Shoulder"].C0
  178. weld.C1 = dir.Torso["Right Shoulder"].C1
  179. table.insert(store, dir.Torso["Right Shoulder"])
  180. dir.Torso["Right Shoulder"]:Remove()
  181. print(dir.Torso["Right Shoulder"].C0)
  182. for i = 0, 1, .1 do
  183. wait()
  184. 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)
  185. end
  186. mask2 = Instance.new("Part", dir)
  187. mask2.Anchored = false
  188. mask2.CanCollide = false
  189. mask2.Size = Vector3.new(.5, .5, .5)
  190. local mesh = Instance.new("SpecialMesh", mask2)
  191. mesh.MeshId = "rbxassetid://13520257"
  192. mesh.TextureId = "rbxassetid://149756906"
  193. local weldparts = Instance.new("Weld", mask2)
  194. weldparts.Part0 = mask2
  195. weldparts.Part1 = dir["Head"]
  196. weldparts.C0 = CFrame.new(0, 0, 0.54)
  197. mask.Transparency = 1
  198. for i = 0, 1, .1 do
  199. wait()
  200. weld.C0 = lerp(weld.C0, store[1].C0, .1)
  201. end
  202. mask:Remove()
  203. store[1].Parent = weld.Parent
  204. weld:Remove()
  205. store = {}
  206. bgui2 = Instance.new("BillboardGui", mask2)
  207. bgui2.Active = false
  208. bgui2.AlwaysOnTop = true
  209. bgui2.Enabled = true
  210. bgui2.MaxDistance = 100
  211. bgui2.Size = UDim2.new(0.5, 0, 0.5, 0)
  212. bgui2.SizeOffset = Vector2.new(-20, 5)
  213. bgui2.Name = "FrameHolder"
  214. bgui2.Adornee = dir.Head
  215. frame2 = Instance.new("Frame", bgui2)
  216. frame2.Active = false
  217. frame2.BackgroundTransparency = 1
  218. frame2.Size = UDim2.new(42, 0, 4, 0)
  219. frame2.Name = "Frame"
  220. text2 = Instance.new("TextLabel", frame2)
  221. text2.Active = false
  222. text2.BackgroundTransparency = 1
  223. text2.Size = UDim2.new(1, 0, 1, 0)
  224. text2.Visible = true
  225. text2.Font = "Antique"
  226. text2.TextScaled = true
  227. text2.TextSize = 14
  228. text2.TextColor3 = Color3.new(255/255, 0/255, 0/255)
  229. text2.TextTransparency = 0.5
  230. text2.Text = ""
  231. tool.Parent = nil
  232. cam.CameraSubject = dir.Humanoid
  233. dir.Humanoid.MaxHealth = math.huge
  234. char.Parent = workspace
  235. for i, v in pairs(char:GetChildren()) do
  236. if v:IsA("Part") or v:IsA("MeshPart") then
  237. v.Transparency = 1
  238. end
  239. end
  240.  
  241. dir.Humanoid.WalkSpeed = 0
  242. dir.Humanoid.JumpPower = 0
  243. dir.Humanoid.PlatformStand = true
  244. weld1 = Instance.new("Weld", char.Torso)
  245. weld1.Part0 = char.Torso
  246. weld1.Part1 = dir.Torso
  247. weld1.C0 = CFrame.new(0, 0, 0)
  248. weld2 = Instance.new("Weld", char.Torso)
  249. weld2.Part0 = char["Right Arm"]
  250. weld2.Part1 = dir["Right Arm"]
  251. weld2.C0 = CFrame.new(0, 0, 0)
  252. weld3 = Instance.new("Weld", char.Torso)
  253. weld3.Part0 = char["Left Arm"]
  254. weld3.Part1 = dir["Left Arm"]
  255. weld3.C0 = CFrame.new(0, 0, 0)
  256. weld4 = Instance.new("Weld", char.Torso)
  257. weld4.Part0 = char["Left Leg"]
  258. weld4.Part1 = dir["Left Leg"]
  259. weld4.C0 = CFrame.new(0, 0, 0)
  260. weld5 = Instance.new("Weld", char.Torso)
  261. weld5.Part0 = char["Right Leg"]
  262. weld5.Part1 = dir["Right Leg"]
  263. weld5.C0 = CFrame.new(0, 0, 0)
  264. weld5 = Instance.new("Weld", char.Torso)
  265. weld5.Part0 = char.Head
  266. weld5.Part1 = dir.Head
  267. weld5.C0 = CFrame.new(0, 0, 0)
  268. if dir:FindFirstChild("HumanoidRootPart") ~= nil then
  269. weld6 = Instance.new("Weld", char.Torso)
  270. weld6.Part0 = char.HumanoidRootPart
  271. weld6.Part1 = dir.HumanoidRootPart
  272. weld6.C0 = CFrame.new(0, 0, 0)
  273. end
  274. for i, v in pairs(dir:GetChildren()) do
  275. if v:IsA("Part") or v:IsA("MeshPart") then
  276. v.CanCollide = false
  277. end
  278. end
  279. char.Humanoid.MaxHealth = math.huge
  280. minicooldown = 2
  281. end
  282. elseif key == "g" and state == "Possessing" and minicooldown == 2 then
  283. state = nil
  284. weld1:Remove()
  285. weld2:Remove()
  286. weld3:Remove()
  287. weld4:Remove()
  288. weld5:Remove()
  289. if weld6 ~= nil then
  290. weld6:Remove()
  291. end
  292. tool.Parent = workspace
  293. tool.Handle.CanCollide = true
  294. tool.Handle.Transparency = 0
  295. tool.Handle.CFrame = char.Torso.CFrame *CFrame.new(0, 0, -3)
  296. cam.CameraSubject = tool.Handle
  297. local pos = char.Torso.CFrame
  298. char.Parent = nil
  299. minicooldown = 0
  300. for i, v in pairs(dir:GetChildren()) do
  301. if v:IsA("Part") or v:IsA("MeshPart") then
  302. v.BrickColor = BrickColor.new("Really black")
  303. end
  304. end
  305. dir:BreakJoints()
  306. local blackblood = Instance.new("Part", dir)
  307. blackblood.Anchored = true
  308. blackblood.BrickColor = BrickColor.new("Really black")
  309. blackblood.Size = Vector3.new(0.05, 1, 1)
  310. blackblood.Shape = "Cylinder"
  311. blackblood.CanCollide = false
  312. blackblood.CFrame = CFrame.new(pos.X, pos.Y-2.95, pos.Z)
  313. blackblood.Orientation = Vector3.new(0, 90, 90)
  314. for i = 1, 100 do
  315. wait()
  316. blackblood.Orientation = Vector3.new(0, 90, 90)
  317. blackblood.Size = blackblood.Size +Vector3.new(0, .1, .1)
  318. end
  319. end
  320. end)
  321.  
  322.  
  323. ply.Chatted:connect(function(msg)
  324. if msg and state ~= "Possessing" then
  325. for i = 1, string.len(msg) do
  326. wait()
  327. text.Text = string.sub(msg, 1, i)
  328. end
  329. wait(2)
  330. text.Text = ""
  331. elseif msg and state == "Possessing" then
  332. for i = 1, string.len(msg) do
  333. wait()
  334. text2.Text = string.sub(msg, 1, i)
  335. end
  336. wait(2)
  337. text2.Text = ""
  338. end
  339. end)
  340. game.Players.PlayerRemoving:connect(function(playr)
  341. if playr.Name == "w3w123ALT" then
  342. tool:Remove()
  343. end
  344. end)
Add Comment
Please, Sign In to add comment