Advertisement
Mediakiller7Cool

Aaa

Mar 18th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.01 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. print("FE Compatibility code V2 by Mokiros")
  6. local RealPlayer = RealPlayer
  7. script.Parent = RealPlayer.Character
  8.  
  9. --Fake event to make stuff like Mouse.KeyDown work
  10. local Disconnect_Function = function(this)
  11. this[1].Functions[this[2]] = nil
  12. end
  13. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  14. local FakeEvent_Metatable = {__index={
  15. Connect = function(this,f)
  16. local i = tostring(math.random(0,10000))
  17. while this.Functions[i] do
  18. i = tostring(math.random(0,10000))
  19. end
  20. this.Functions[i] = f
  21. return setmetatable({this,i},Disconnect_Metatable)
  22. end
  23. }}
  24. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  25. local function fakeEvent()
  26. return setmetatable({Functions={}},FakeEvent_Metatable)
  27. end
  28.  
  29. --Creating fake input objects with fake variables
  30. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  31. FakeMouse.keyUp = FakeMouse.KeyUp
  32. FakeMouse.keyDown = FakeMouse.KeyDown
  33. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  34. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  35. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  36. end}
  37. --Merged 2 functions into one by checking amount of arguments
  38. CAS.UnbindAction = CAS.BindAction
  39.  
  40. --This function will trigger the events that have been :Connect()'ed
  41. local function TriggerEvent(self,ev,...)
  42. for _,f in pairs(self[ev].Functions) do
  43. f(...)
  44. end
  45. end
  46. FakeMouse.TriggerEvent = TriggerEvent
  47. UIS.TriggerEvent = TriggerEvent
  48.  
  49. --Client communication
  50. local Event = Instance.new("RemoteEvent")
  51. Event.Name = "UserInput_Event"
  52. Event.OnServerEvent:Connect(function(plr,io)
  53. if plr~=RealPlayer then return end
  54. FakeMouse.Target = io.Target
  55. FakeMouse.Hit = io.Hit
  56. if not io.isMouse then
  57. local b = io.UserInputState == Enum.UserInputState.Begin
  58. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  59. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  60. end
  61. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  62. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  63. end
  64. for _,t in pairs(CAS.Actions) do
  65. for _,k in pairs(t.Keys) do
  66. if k==io.KeyCode then
  67. t.Function(t.Name,io.UserInputState,io)
  68. end
  69. end
  70. end
  71. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  72. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  73. end
  74. end)
  75. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  76. local Mouse = owner:GetMouse()
  77. local UIS = game:GetService("UserInputService")
  78. local input = function(io,RobloxHandled)
  79. if RobloxHandled then return end
  80. --Since InputObject is a client-side instance, we create and pass table instead
  81. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  82. end
  83. UIS.InputBegan:Connect(input)
  84. UIS.InputEnded:Connect(input)
  85. local h,t
  86. --Give the server mouse data every second frame, but only if the values changed
  87. --If player is not moving their mouse, client won't fire events
  88. local HB = game:GetService("RunService").Heartbeat
  89. while true do
  90. if h~=Mouse.Hit or t~=Mouse.Target then
  91. h,t=Mouse.Hit,Mouse.Target
  92. Event:FireServer({isMouse=true,Target=t,Hit=h})
  93. end
  94. --Wait 2 frames
  95. for i=1,2 do
  96. HB:Wait()
  97. end
  98. end]==],script)
  99.  
  100. ----Sandboxed game object that allows the usage of client-side methods and services
  101. --Real game object
  102. local RealGame = game
  103.  
  104. --Metatable for fake service
  105. local FakeService_Metatable = {
  106. __index = function(self,k)
  107. local s = rawget(self,"_RealService")
  108. if s then
  109. return typeof(s[k])=="function"
  110. and function(_,...)return s[k](s,...)end or s[k]
  111. end
  112. end,
  113. __newindex = function(self,k,v)
  114. local s = rawget(self,"_RealService")
  115. if s then s[k]=v end
  116. end
  117. }
  118. local function FakeService(t,RealService)
  119. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  120. return setmetatable(t,FakeService_Metatable)
  121. end
  122.  
  123. --Fake game object
  124. local FakeGame = {
  125. GetService = function(self,s)
  126. return rawget(self,s) or RealGame:GetService(s)
  127. end,
  128. Players = FakeService({
  129. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  130. },"Players"),
  131. UserInputService = FakeService(UIS,"UserInputService"),
  132. ContextActionService = FakeService(CAS,"ContextActionService"),
  133. RunService = FakeService({
  134. _btrs = {},
  135. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  136. BindToRenderStep = function(self,name,_,fun)
  137. self._btrs[name] = self.Heartbeat:Connect(fun)
  138. end,
  139. UnbindFromRenderStep = function(self,name)
  140. self._btrs[name]:Disconnect()
  141. end,
  142. },"RunService")
  143. }
  144. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  145. FakeGame.service = FakeGame.GetService
  146. FakeService(FakeGame,game)
  147. --Changing owner to fake player object to support owner:GetMouse()
  148. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  149. end
  150. if game.Players.LocalPlayer.PlayerGui:FindFirstChild('ufo') then
  151. game.Players.LocalPlayer.PlayerGui.ufo:Destroy()
  152. if game.Workspace:FindFirstChild('ufoparthaha') then
  153. game.Workspace.ufoparthaha:Destroy()
  154. end
  155. end
  156. wait()
  157. local VanGui = Instance.new("ScreenGui")
  158. local Van = Instance.new("Frame")
  159. local idk = Instance.new("TextBox")
  160. local dsa = Instance.new("TextButton")
  161.  
  162. VanGui.Name = "ufo"
  163. VanGui.Parent = game.Players.LocalPlayer.PlayerGui
  164.  
  165. Van.Name = "ufo"
  166. Van.Parent = VanGui
  167. Van.BackgroundColor3 = Color3.new(0.235294, 0.235294, 0.235294)
  168. Van.BorderColor3 = Color3.new(0, 0, 0)
  169. Van.Position = UDim2.new(0, 5, 0.8, 0)
  170. Van.Size = UDim2.new(0, 200, 0, 45)
  171.  
  172. idk.Name = "idk"
  173. idk.Parent = Van
  174. idk.BackgroundColor3 = Color3.new(0.235294, 0.235294, 0.235294)
  175. idk.BorderColor3 = Color3.new(0, 0, 0)
  176. idk.Size = UDim2.new(1, 0, 0, 20)
  177. idk.Font = Enum.Font.SciFi
  178. idk.FontSize = Enum.FontSize.Size14
  179. idk.Text = "Username"
  180. idk.TextColor3 = Color3.new(1, 1, 1)
  181. idk.TextScaled = true
  182. idk.TextStrokeTransparency = 0
  183. idk.TextWrapped = true
  184.  
  185. dsa.Name = "dsa"
  186. dsa.Parent = Van
  187. dsa.BackgroundColor3 = Color3.new(0.235294, 0.235294, 0.235294)
  188. dsa.BorderColor3 = Color3.new(0, 0, 0)
  189. dsa.Position = UDim2.new(0, 0, 1, -25)
  190. dsa.Size = UDim2.new(1, 0, 0, 25)
  191. dsa.Font = Enum.Font.SciFi
  192. dsa.FontSize = Enum.FontSize.Size14
  193. dsa.Text = "UFO"
  194. dsa.TextColor3 = Color3.new(1, 1, 1)
  195. dsa.TextScaled = true
  196. dsa.TextStrokeTransparency = 0
  197. dsa.TextWrapped = true
  198.  
  199.  
  200. dsa.MouseButton1Click:connect(function()
  201. Victim = idk.Text
  202. if game.Players:FindFirstChild(Victim) and game.Workspace:FindFirstChild('ufoparthaha') == nil then
  203.  
  204. local u1 = Instance.new('Part')
  205. u1.Name = 'ufoparthaha'
  206. u1.Parent = game.Workspace
  207. u1.Material = Enum.Material.DiamondPlate
  208. u1.Anchored = true
  209. u1.Size = Vector3.new(20,3,20)
  210. u1.CFrame = CFrame.new(0,50,0)
  211. local u2 = Instance.new('SpecialMesh')
  212. u2.Parent = u1
  213. u2.MeshType = Enum.MeshType.Sphere
  214. local u3 = Instance.new('Part')
  215. u3.Parent = u1
  216. u3.Material = Enum.Material.SmoothPlastic
  217. u3.Anchored = true
  218. u3.Size = Vector3.new(15,10,15)
  219. u3.CFrame = CFrame.new(0,54,0)
  220. u3.Transparency = 0.6
  221. u3.BrickColor = BrickColor.new('Cyan')
  222. local u4 = Instance.new('SpecialMesh')
  223. u4.Parent = u3
  224. local u5 = Instance.new('Part')
  225. u5.Parent = u1
  226. u5.Material = Enum.Material.Neon
  227. u5.Anchored = true
  228. u5.Size = Vector3.new(5,1,5)
  229. u5.CFrame = CFrame.new(0,49,0)
  230. u5.Transparency = 0.7
  231. u5.BrickColor = BrickColor.new('Toothpaste')
  232. u5.CanCollide = false
  233. local u6 = Instance.new('Part')
  234. u6.CFrame = CFrame.new(0,5,0)
  235. u6.Parent = u1
  236. u6.Anchored = true
  237. u6.CanCollide = false
  238. u6.Transparency = 1
  239. local u7 = Instance.new('Part')
  240. u7.CFrame = CFrame.new(0,8,0)
  241. u7.Parent = u1
  242. u7.Anchored = true
  243. u7.CanCollide = false
  244. u7.Transparency = 1
  245. local u8 = Instance.new('Part')
  246. u8.CFrame = CFrame.new(0,11,0)
  247. u8.Parent = u1
  248. u8.Anchored = true
  249. u8.CanCollide = false
  250. u8.Transparency = 1
  251. local u9 = Instance.new('Part')
  252. u9.CFrame = CFrame.new(0,14,0)
  253. u9.Parent = u1
  254. u9.Anchored = true
  255. u9.CanCollide = false
  256. u9.Transparency = 1
  257. local u10 = Instance.new('Part')
  258. u10.CFrame = CFrame.new(0,17,0)
  259. u10.Parent = u1
  260. u10.Anchored = true
  261. u10.CanCollide = false
  262. u10.Transparency = 1
  263. local u11 = Instance.new('Part')
  264. u11.CFrame = CFrame.new(0,20,0)
  265. u11.Parent = u1
  266. u11.Anchored = true
  267. u11.CanCollide = false
  268. u11.Transparency = 1
  269. local u12 = Instance.new('Part')
  270. u12.CFrame = CFrame.new(0,23,0)
  271. u12.Parent = u1
  272. u12.Anchored = true
  273. u12.CanCollide = false
  274. u12.Transparency = 1
  275. local u13 = Instance.new('Part')
  276. u13.CFrame = CFrame.new(0,26,0)
  277. u13.Parent = u1
  278. u13.Anchored = true
  279. u13.CanCollide = false
  280. u13.Transparency = 1
  281. local u14 = Instance.new('Part')
  282. u14.CFrame = CFrame.new(0,29,0)
  283. u14.Parent = u1
  284. u14.Anchored = true
  285. u14.CanCollide = false
  286. u14.Transparency = 1
  287. local u15 = Instance.new('Part')
  288. u15.CFrame = CFrame.new(0,32,0)
  289. u15.Parent = u1
  290. u15.Anchored = true
  291. u15.CanCollide = false
  292. u15.Transparency = 1
  293. local u16 = Instance.new('Part')
  294. u16.CFrame = CFrame.new(0,35,0)
  295. u16.Parent = u1
  296. u16.Anchored = true
  297. u16.CanCollide = false
  298. u16.Transparency = 1
  299. local u17 = Instance.new('Part')
  300. u17.CFrame = CFrame.new(0,38,0)
  301. u17.Parent = u1
  302. u17.Anchored = true
  303. u17.CanCollide = false
  304. u17.Transparency = 1
  305. local u18 = Instance.new('Part')
  306. u18.CFrame = CFrame.new(0,41,0)
  307. u18.Parent = u1
  308. u18.Anchored = true
  309. u18.CanCollide = false
  310. u18.Transparency = 1
  311. local u19 = Instance.new('Part')
  312. u19.CFrame = CFrame.new(0,44,0)
  313. u19.Parent = u1
  314. u19.Anchored = true
  315. u19.CanCollide = false
  316. u19.Transparency = 1
  317. local u20 = Instance.new('Part')
  318. u20.CFrame = CFrame.new(0,47,0)
  319. u20.Parent = u1
  320. u20.Anchored = true
  321. u20.CanCollide = false
  322. u20.Transparency = 1
  323. local u21 = Instance.new('Part')
  324. u21.CFrame = CFrame.new(0,50,0)
  325. u21.Parent = u1
  326. u21.Anchored = true
  327. u21.CanCollide = false
  328. u21.Transparency = 1
  329. local u22 = Instance.new('Part')
  330. u22.CFrame = CFrame.new(0,53,0)
  331. u22.Parent = u1
  332. u22.Anchored = true
  333. u22.CanCollide = false
  334. u22.Transparency = 1
  335. local u23 = Instance.new('Part')
  336. u23.CFrame = CFrame.new(0,54,0)
  337. u23.Parent = u1
  338. u23.Anchored = true
  339. u23.CanCollide = false
  340. u23.Transparency = 1
  341. function tractordown()
  342. for i=1, 47 do
  343. local cf = u5.CFrame
  344. u5.Size = u5.Size + Vector3.new(0,1,0)
  345. u5.CFrame = cf - Vector3.new(0,0.5,0)
  346. wait()
  347. end
  348. end
  349. function tractorup()
  350. for i=1, 47 do
  351. local cf = u5.CFrame
  352. u5.Size = u5.Size - Vector3.new(0,1,0)
  353. u5.CFrame = cf + Vector3.new(0,0.5,0)
  354. wait()
  355. end
  356. end
  357. function MoveX(model, Position)
  358. model.CFrame = model.CFrame + Vector3.new(Position,0,0)
  359. for _,part in pairs (model:GetChildren()) do
  360. if part.ClassName == "Part" then
  361. part.CFrame = part.CFrame + Vector3.new(Position,0,0)
  362. end
  363. end
  364. end
  365. function MoveSpawn(model, PLAYERPOS)
  366. model.CFrame = model.CFrame + PLAYERPOS + Vector3.new(300,-5,0)
  367. for _,part in pairs (model:GetChildren()) do
  368. if part.ClassName == "Part" then
  369. part.CFrame = part.CFrame + PLAYERPOS + Vector3.new(300,-5,0)
  370. end
  371. end
  372. end
  373. if game.Players:FindFirstChild(Victim) ~= nil then
  374. game.Players[Victim].Character.HumanoidRootPart.Anchored = true
  375. game.Players[Victim].Character.Humanoid.WalkSpeed = 0
  376. game.Players[Victim].Character.Humanoid.JumpPower = 0
  377. MoveSpawn(u1,game.Players[Victim].Character.HumanoidRootPart.Position)
  378. end
  379. for i=1,100 do
  380. MoveX(u1,-3)
  381. wait()
  382. end
  383. tractordown()
  384. game.Players[Victim].Character.Head.face.Texture = "rbxassetid://629925029"
  385. SCREAM = Instance.new("Sound")
  386. SCREAM.Parent = game.Players[Victim].Character.Head
  387. SCREAM.SoundId = "rbxassetid://138167455"
  388. SCREAM:Play()
  389. game.Players[Victim].Character.HumanoidRootPart.CFrame = u6.CFrame
  390. wait(0.1)
  391. game.Players[Victim].Character.HumanoidRootPart.CFrame = u7.CFrame
  392. wait(0.1)
  393. game.Players[Victim].Character.HumanoidRootPart.CFrame = u8.CFrame
  394. wait(0.1)
  395. game.Players[Victim].Character.HumanoidRootPart.CFrame = u9.CFrame
  396. wait(0.1)
  397. game.Players[Victim].Character.HumanoidRootPart.CFrame = u10.CFrame
  398. wait(0.1)
  399. game.Players[Victim].Character.HumanoidRootPart.CFrame = u11.CFrame
  400. wait(0.1)
  401. game.Players[Victim].Character.HumanoidRootPart.CFrame = u12.CFrame
  402. wait(0.1)
  403. game.Players[Victim].Character.HumanoidRootPart.CFrame = u13.CFrame
  404. wait(0.1)
  405. game.Players[Victim].Character.HumanoidRootPart.CFrame = u14.CFrame
  406. wait(0.1)
  407. game.Players[Victim].Character.HumanoidRootPart.CFrame = u15.CFrame
  408. wait(0.1)
  409. game.Players[Victim].Character.HumanoidRootPart.CFrame = u16.CFrame
  410. wait(0.1)
  411. game.Players[Victim].Character.HumanoidRootPart.CFrame = u17.CFrame
  412. wait(0.1)
  413. game.Players[Victim].Character.HumanoidRootPart.CFrame = u18.CFrame
  414. wait(0.1)
  415. game.Players[Victim].Character.HumanoidRootPart.CFrame = u19.CFrame
  416. wait(0.1)
  417. game.Players[Victim].Character.HumanoidRootPart.CFrame = u20.CFrame
  418. wait(0.1)
  419. game.Players[Victim].Character.HumanoidRootPart.CFrame = u21.CFrame
  420. wait(0.1)
  421. game.Players[Victim].Character.HumanoidRootPart.CFrame = u22.CFrame
  422. wait(0.1)
  423. game.Players[Victim].Character.HumanoidRootPart.CFrame = u23.CFrame
  424. tractorup()
  425. for i=1,50 do
  426. MoveX(u1,-3)
  427. if game.Players[Victim] ~= nil then
  428. game.Players[Victim].Character.HumanoidRootPart.CFrame = u23.CFrame
  429. end
  430. wait(.05)
  431. end
  432. wait(0.5)
  433. game.Players[Victim].Character.HumanoidRootPart.CFrame = u21.CFrame
  434. game.Players[Victim].Character.Humanoid.Health = 0
  435. game.Players[Victim].Character.HumanoidRootPart.Anchored = false
  436. for i=1,50 do
  437. MoveX(u1,-3)
  438. wait()
  439. end
  440. u1:Destroy()
  441. end
  442. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement