Advertisement
Zach_script_stealer2

UFO

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