Manaphy2100idk

Untitled

Sep 14th, 2018
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.64 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  6.  
  7. --SCP-035 [OBJECT CLASS: KETER]
  8.  
  9. ply = game.Players.LocalPlayer
  10. mouse = ply:GetMouse()
  11. char = ply.Character
  12. cam = game.Workspace.CurrentCamera
  13. minicooldown = 0
  14.  
  15. repeat wait() until ply and char and cam and mouse
  16. state = nil
  17. function create()
  18. tool = Instance.new("Tool", workspace)
  19. tool.Name = "SCP-035"
  20. tool.GripPos = Vector3.new(0, 0, .2)
  21. tool.CanBeDropped = false
  22. handle = Instance.new("Part", tool)
  23. handle.Name = "Handle"
  24. handle.Size = Vector3.new(.5, .5, .5)
  25. handle.CanCollide = true
  26. handle.Anchored = false
  27. handle.CFrame = char.Torso.CFrame
  28. specmesh = Instance.new("SpecialMesh", handle)
  29. specmesh.MeshId = "rbxassetid://13520257"
  30. specmesh.TextureId = "rbxassetid://149756906"
  31. bgui = Instance.new("BillboardGui", handle)
  32. bgui.Active = false
  33. bgui.AlwaysOnTop = true
  34. bgui.Enabled = true
  35. bgui.MaxDistance = 100
  36. bgui.Size = UDim2.new(0.5, 0, 0.5, 0)
  37. bgui.SizeOffset = Vector2.new(-20, 5)
  38. bgui.Name = "FrameHolder"
  39. bgui.Adornee = handle
  40. frame = Instance.new("Frame", bgui)
  41. frame.Active = false
  42. frame.BackgroundTransparency = 1
  43. frame.Size = UDim2.new(42, 0, 4, 0)
  44. frame.Name = "Frame"
  45. text = Instance.new("TextLabel", frame)
  46. text.Active = false
  47. text.BackgroundTransparency = 1
  48. text.Size = UDim2.new(1, 0, 1, 0)
  49. text.Visible = true
  50. text.Font = "Antique"
  51. text.TextScaled = true
  52. text.TextSize = 14
  53. text.TextColor3 = Color3.new(255/255, 0/255, 0/255)
  54. text.TextTransparency = 0.5
  55. text.Text = ""
  56.  
  57. cam.CameraSubject = handle
  58. cam.CameraType = "Custom"
  59. char.Parent = nil
  60.  
  61. end
  62.  
  63. create()
  64.  
  65.  
  66. tool.Handle.Touched:connect(function(hit)
  67. print(hit.Parent)
  68. end)
  69.  
  70. store = {}
  71.  
  72. function lerp(a, b, t)
  73. return a:lerp(b, t)
  74. end
  75.  
  76. mouse.KeyDown:connect(function(key)
  77. if key == "f" and tool.Parent:FindFirstChild("Humanoid") then
  78. dir = tool.Parent
  79. if dir.Torso["Right Shoulder"] and state ~= "Possessing" then
  80. minicooldown = 1
  81. state = "Possessing"
  82. handle.Transparency = 1
  83. mask = Instance.new("Part", dir)
  84. mask.Anchored = false
  85. mask.CanCollide = false
  86. mask.Size = Vector3.new(.5, .5, .5)
  87. local mesh = Instance.new("SpecialMesh", mask)
  88. mesh.MeshId = "rbxassetid://13520257"
  89. mesh.TextureId = "rbxassetid://149756906"
  90. local weldpart = Instance.new("Weld", mask)
  91. weldpart.Part0 = mask
  92. weldpart.Part1 = dir["Right Arm"]
  93. weldpart.C0 = CFrame.new(0, .48, 0) *CFrame.Angles(0, math.rad(25), 0)
  94. weld = Instance.new("Weld", dir.Torso)
  95. weld.Part0 = dir.Torso["Right Shoulder"].Part0
  96. weld.Part1 = dir.Torso["Right Shoulder"].Part1
  97. weld.Name = dir.Torso["Right Shoulder"].Name
  98. weld.C0 = dir.Torso["Right Shoulder"].C0
  99. weld.C1 = dir.Torso["Right Shoulder"].C1
  100. table.insert(store, dir.Torso["Right Shoulder"])
  101. dir.Torso["Right Shoulder"]:Remove()
  102. print(dir.Torso["Right Shoulder"].C0)
  103. for i = 0, 1, .1 do
  104. wait()
  105. 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)
  106. end
  107. mask2 = Instance.new("Part", dir)
  108. mask2.Anchored = false
  109. mask2.CanCollide = false
  110. mask2.Size = Vector3.new(.5, .5, .5)
  111. local mesh = Instance.new("SpecialMesh", mask2)
  112. mesh.MeshId = "rbxassetid://13520257"
  113. mesh.TextureId = "rbxassetid://149756906"
  114. local weldparts = Instance.new("Weld", mask2)
  115. weldparts.Part0 = mask2
  116. weldparts.Part1 = dir["Head"]
  117. weldparts.C0 = CFrame.new(0, 0, 0.54)
  118. mask.Transparency = 1
  119. for i = 0, 1, .1 do
  120. wait()
  121. weld.C0 = lerp(weld.C0, store[1].C0, .1)
  122. end
  123. mask:Remove()
  124. store[1].Parent = weld.Parent
  125. weld:Remove()
  126. store = {}
  127. bgui2 = Instance.new("BillboardGui", mask2)
  128. bgui2.Active = false
  129. bgui2.AlwaysOnTop = true
  130. bgui2.Enabled = true
  131. bgui2.MaxDistance = 100
  132. bgui2.Size = UDim2.new(0.5, 0, 0.5, 0)
  133. bgui2.SizeOffset = Vector2.new(-20, 5)
  134. bgui2.Name = "FrameHolder"
  135. bgui2.Adornee = dir.Head
  136. frame2 = Instance.new("Frame", bgui2)
  137. frame2.Active = false
  138. frame2.BackgroundTransparency = 1
  139. frame2.Size = UDim2.new(42, 0, 4, 0)
  140. frame2.Name = "Frame"
  141. text2 = Instance.new("TextLabel", frame2)
  142. text2.Active = false
  143. text2.BackgroundTransparency = 1
  144. text2.Size = UDim2.new(1, 0, 1, 0)
  145. text2.Visible = true
  146. text2.Font = "Antique"
  147. text2.TextScaled = true
  148. text2.TextSize = 14
  149. text2.TextColor3 = Color3.new(255/255, 0/255, 0/255)
  150. text2.TextTransparency = 0.5
  151. text2.Text = ""
  152. tool.Parent = nil
  153. cam.CameraSubject = dir.Humanoid
  154. dir.Humanoid.MaxHealth = math.huge
  155. char.Parent = workspace
  156. for i, v in pairs(char:GetChildren()) do
  157. if v:IsA("Part") or v:IsA("MeshPart") then
  158. v.Transparency = 1
  159. end
  160. end
  161.  
  162. dir.Humanoid.WalkSpeed = 0
  163. dir.Humanoid.JumpPower = 0
  164. dir.Humanoid.PlatformStand = true
  165. weld1 = Instance.new("Weld", char.Torso)
  166. weld1.Part0 = char.Torso
  167. weld1.Part1 = dir.Torso
  168. weld1.C0 = CFrame.new(0, 0, 0)
  169. weld2 = Instance.new("Weld", char.Torso)
  170. weld2.Part0 = char["Right Arm"]
  171. weld2.Part1 = dir["Right Arm"]
  172. weld2.C0 = CFrame.new(0, 0, 0)
  173. weld3 = Instance.new("Weld", char.Torso)
  174. weld3.Part0 = char["Left Arm"]
  175. weld3.Part1 = dir["Left Arm"]
  176. weld3.C0 = CFrame.new(0, 0, 0)
  177. weld4 = Instance.new("Weld", char.Torso)
  178. weld4.Part0 = char["Left Leg"]
  179. weld4.Part1 = dir["Left Leg"]
  180. weld4.C0 = CFrame.new(0, 0, 0)
  181. weld5 = Instance.new("Weld", char.Torso)
  182. weld5.Part0 = char["Right Leg"]
  183. weld5.Part1 = dir["Right Leg"]
  184. weld5.C0 = CFrame.new(0, 0, 0)
  185. weld5 = Instance.new("Weld", char.Torso)
  186. weld5.Part0 = char.Head
  187. weld5.Part1 = dir.Head
  188. weld5.C0 = CFrame.new(0, 0, 0)
  189. if dir:FindFirstChild("HumanoidRootPart") ~= nil then
  190. weld6 = Instance.new("Weld", char.Torso)
  191. weld6.Part0 = char.HumanoidRootPart
  192. weld6.Part1 = dir.HumanoidRootPart
  193. weld6.C0 = CFrame.new(0, 0, 0)
  194. end
  195. for i, v in pairs(dir:GetChildren()) do
  196. if v:IsA("Part") or v:IsA("MeshPart") then
  197. v.CanCollide = false
  198. end
  199. end
  200. char.Humanoid.MaxHealth = math.huge
  201. minicooldown = 2
  202. end
  203. elseif key == "g" and state == "Possessing" and minicooldown == 2 then
  204. state = nil
  205. weld1:Remove()
  206. weld2:Remove()
  207. weld3:Remove()
  208. weld4:Remove()
  209. weld5:Remove()
  210. if weld6 ~= nil then
  211. weld6:Remove()
  212. end
  213. tool.Parent = workspace
  214. tool.Handle.CanCollide = true
  215. tool.Handle.Transparency = 0
  216. tool.Handle.CFrame = char.Torso.CFrame *CFrame.new(0, 0, -3)
  217. cam.CameraSubject = tool.Handle
  218. local pos = char.Torso.CFrame
  219. char.Parent = nil
  220. minicooldown = 0
  221. for i, v in pairs(dir:GetChildren()) do
  222. if v:IsA("Part") or v:IsA("MeshPart") then
  223. v.BrickColor = BrickColor.new("Really black")
  224. end
  225. end
  226. dir:BreakJoints()
  227. local blackblood = Instance.new("Part", dir)
  228. blackblood.Anchored = true
  229. blackblood.BrickColor = BrickColor.new("Really black")
  230. blackblood.Size = Vector3.new(0.05, 1, 1)
  231. blackblood.Shape = "Cylinder"
  232. blackblood.CanCollide = false
  233. blackblood.CFrame = CFrame.new(pos.X, pos.Y-2.95, pos.Z)
  234. blackblood.Orientation = Vector3.new(0, 90, 90)
  235. for i = 1, 100 do
  236. wait()
  237. blackblood.Orientation = Vector3.new(0, 90, 90)
  238. blackblood.Size = blackblood.Size +Vector3.new(0, .1, .1)
  239. end
  240. end
  241. end)
  242.  
  243.  
  244. ply.Chatted:connect(function(msg)
  245. if msg and state ~= "Possessing" then
  246. for i = 1, string.len(msg) do
  247. wait()
  248. text.Text = string.sub(msg, 1, i)
  249. end
  250. wait(2)
  251. text.Text = ""
  252. elseif msg and state == "Possessing" then
  253. for i = 1, string.len(msg) do
  254. wait()
  255. text2.Text = string.sub(msg, 1, i)
  256. end
  257. wait(2)
  258. text2.Text = ""
  259. end
  260. end)
  261.  
  262. game:GetService("RunService").RenderStepped:connect(function()
  263. end)
  264.  
  265. game.Players.PlayerRemoving:connect(function(playr)
  266. if playr.Name == "w3w123ALT" then
  267. tool:Remove()
  268. end
  269. end)
Add Comment
Please, Sign In to add comment