Advertisement
ManOhMan

Untitled

Aug 11th, 2019
148
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 = 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. if owner.PlayerGui:FindFirstChild('ufo') then
  87. owner.PlayerGui.ufo:Destroy()
  88. if game.Workspace:FindFirstChild('ufoparthaha') then
  89. game.Workspace.ufoparthaha:Destroy()
  90. end
  91. end
  92. wait()
  93. local VanGui = Instance.new("ScreenGui")
  94. local Van = Instance.new("Frame")
  95. local idk = Instance.new("TextBox")
  96. local dsa = Instance.new("TextButton")
  97.  
  98. VanGui.Name = "ufo"
  99. VanGui.Parent = owner.PlayerGui
  100.  
  101. Van.Name = "ufo"
  102. Van.Parent = VanGui
  103. Van.BackgroundColor3 = Color3.new(0.235294, 0.235294, 0.235294)
  104. Van.BorderColor3 = Color3.new(0, 0, 0)
  105. Van.Position = UDim2.new(0, 5, 0.8, 0)
  106. Van.Size = UDim2.new(0, 200, 0, 45)
  107.  
  108. idk.Name = "idk"
  109. idk.Parent = Van
  110. idk.BackgroundColor3 = Color3.new(0.235294, 0.235294, 0.235294)
  111. idk.BorderColor3 = Color3.new(0, 0, 0)
  112. idk.Size = UDim2.new(1, 0, 0, 20)
  113. idk.Font = Enum.Font.SciFi
  114. idk.FontSize = Enum.FontSize.Size14
  115. idk.Text = "Username"
  116. idk.TextColor3 = Color3.new(1, 1, 1)
  117. idk.TextScaled = true
  118. idk.TextStrokeTransparency = 0
  119. idk.TextWrapped = true
  120.  
  121. dsa.Name = "dsa"
  122. dsa.Parent = Van
  123. dsa.BackgroundColor3 = Color3.new(0.235294, 0.235294, 0.235294)
  124. dsa.BorderColor3 = Color3.new(0, 0, 0)
  125. dsa.Position = UDim2.new(0, 0, 1, -25)
  126. dsa.Size = UDim2.new(1, 0, 0, 25)
  127. dsa.Font = Enum.Font.SciFi
  128. dsa.FontSize = Enum.FontSize.Size14
  129. dsa.Text = "UFO"
  130. dsa.TextColor3 = Color3.new(1, 1, 1)
  131. dsa.TextScaled = true
  132. dsa.TextStrokeTransparency = 0
  133. dsa.TextWrapped = true
  134.  
  135.  
  136. dsa.MouseButton1Click:connect(function()
  137. Victim = idk.Text
  138. if game.Players:FindFirstChild(Victim) and game.Workspace:FindFirstChild('ufoparthaha') == nil then
  139.  
  140. local u1 = Instance.new('Part')
  141. u1.Name = 'ufoparthaha'
  142. u1.Parent = game.Workspace
  143. u1.Material = Enum.Material.DiamondPlate
  144. u1.Anchored = true
  145. u1.Size = Vector3.new(20,3,20)
  146. u1.CFrame = CFrame.new(0,50,0)
  147. local u2 = Instance.new('SpecialMesh')
  148. u2.Parent = u1
  149. u2.MeshType = Enum.MeshType.Sphere
  150. local u3 = Instance.new('Part')
  151. u3.Parent = u1
  152. u3.Material = Enum.Material.SmoothPlastic
  153. u3.Anchored = true
  154. u3.Size = Vector3.new(15,10,15)
  155. u3.CFrame = CFrame.new(0,54,0)
  156. u3.Transparency = 0.6
  157. u3.BrickColor = BrickColor.new('Cyan')
  158. local u4 = Instance.new('SpecialMesh')
  159. u4.Parent = u3
  160. local u5 = Instance.new('Part')
  161. u5.Parent = u1
  162. u5.Material = Enum.Material.Neon
  163. u5.Anchored = true
  164. u5.Size = Vector3.new(5,1,5)
  165. u5.CFrame = CFrame.new(0,49,0)
  166. u5.Transparency = 0.7
  167. u5.BrickColor = BrickColor.new('Toothpaste')
  168. u5.CanCollide = false
  169. local u6 = Instance.new('Part')
  170. u6.CFrame = CFrame.new(0,5,0)
  171. u6.Parent = u1
  172. u6.Anchored = true
  173. u6.CanCollide = false
  174. u6.Transparency = 1
  175. local u7 = Instance.new('Part')
  176. u7.CFrame = CFrame.new(0,8,0)
  177. u7.Parent = u1
  178. u7.Anchored = true
  179. u7.CanCollide = false
  180. u7.Transparency = 1
  181. local u8 = Instance.new('Part')
  182. u8.CFrame = CFrame.new(0,11,0)
  183. u8.Parent = u1
  184. u8.Anchored = true
  185. u8.CanCollide = false
  186. u8.Transparency = 1
  187. local u9 = Instance.new('Part')
  188. u9.CFrame = CFrame.new(0,14,0)
  189. u9.Parent = u1
  190. u9.Anchored = true
  191. u9.CanCollide = false
  192. u9.Transparency = 1
  193. local u10 = Instance.new('Part')
  194. u10.CFrame = CFrame.new(0,17,0)
  195. u10.Parent = u1
  196. u10.Anchored = true
  197. u10.CanCollide = false
  198. u10.Transparency = 1
  199. local u11 = Instance.new('Part')
  200. u11.CFrame = CFrame.new(0,20,0)
  201. u11.Parent = u1
  202. u11.Anchored = true
  203. u11.CanCollide = false
  204. u11.Transparency = 1
  205. local u12 = Instance.new('Part')
  206. u12.CFrame = CFrame.new(0,23,0)
  207. u12.Parent = u1
  208. u12.Anchored = true
  209. u12.CanCollide = false
  210. u12.Transparency = 1
  211. local u13 = Instance.new('Part')
  212. u13.CFrame = CFrame.new(0,26,0)
  213. u13.Parent = u1
  214. u13.Anchored = true
  215. u13.CanCollide = false
  216. u13.Transparency = 1
  217. local u14 = Instance.new('Part')
  218. u14.CFrame = CFrame.new(0,29,0)
  219. u14.Parent = u1
  220. u14.Anchored = true
  221. u14.CanCollide = false
  222. u14.Transparency = 1
  223. local u15 = Instance.new('Part')
  224. u15.CFrame = CFrame.new(0,32,0)
  225. u15.Parent = u1
  226. u15.Anchored = true
  227. u15.CanCollide = false
  228. u15.Transparency = 1
  229. local u16 = Instance.new('Part')
  230. u16.CFrame = CFrame.new(0,35,0)
  231. u16.Parent = u1
  232. u16.Anchored = true
  233. u16.CanCollide = false
  234. u16.Transparency = 1
  235. local u17 = Instance.new('Part')
  236. u17.CFrame = CFrame.new(0,38,0)
  237. u17.Parent = u1
  238. u17.Anchored = true
  239. u17.CanCollide = false
  240. u17.Transparency = 1
  241. local u18 = Instance.new('Part')
  242. u18.CFrame = CFrame.new(0,41,0)
  243. u18.Parent = u1
  244. u18.Anchored = true
  245. u18.CanCollide = false
  246. u18.Transparency = 1
  247. local u19 = Instance.new('Part')
  248. u19.CFrame = CFrame.new(0,44,0)
  249. u19.Parent = u1
  250. u19.Anchored = true
  251. u19.CanCollide = false
  252. u19.Transparency = 1
  253. local u20 = Instance.new('Part')
  254. u20.CFrame = CFrame.new(0,47,0)
  255. u20.Parent = u1
  256. u20.Anchored = true
  257. u20.CanCollide = false
  258. u20.Transparency = 1
  259. local u21 = Instance.new('Part')
  260. u21.CFrame = CFrame.new(0,50,0)
  261. u21.Parent = u1
  262. u21.Anchored = true
  263. u21.CanCollide = false
  264. u21.Transparency = 1
  265. local u22 = Instance.new('Part')
  266. u22.CFrame = CFrame.new(0,53,0)
  267. u22.Parent = u1
  268. u22.Anchored = true
  269. u22.CanCollide = false
  270. u22.Transparency = 1
  271. local u23 = Instance.new('Part')
  272. u23.CFrame = CFrame.new(0,54,0)
  273. u23.Parent = u1
  274. u23.Anchored = true
  275. u23.CanCollide = false
  276. u23.Transparency = 1
  277. function tractordown()
  278. for i=1, 47 do
  279. local cf = u5.CFrame
  280. u5.Size = u5.Size + Vector3.new(0,1,0)
  281. u5.CFrame = cf - Vector3.new(0,0.5,0)
  282. wait()
  283. end
  284. end
  285. function tractorup()
  286. for i=1, 47 do
  287. local cf = u5.CFrame
  288. u5.Size = u5.Size - Vector3.new(0,1,0)
  289. u5.CFrame = cf + Vector3.new(0,0.5,0)
  290. wait()
  291. end
  292. end
  293. function MoveX(model, Position)
  294. model.CFrame = model.CFrame + Vector3.new(Position,0,0)
  295. for _,part in pairs (model:GetChildren()) do
  296. if part.ClassName == "Part" then
  297. part.CFrame = part.CFrame + Vector3.new(Position,0,0)
  298. end
  299. end
  300. end
  301. function MoveSpawn(model, PLAYERPOS)
  302. model.CFrame = model.CFrame + PLAYERPOS + Vector3.new(300,-5,0)
  303. for _,part in pairs (model:GetChildren()) do
  304. if part.ClassName == "Part" then
  305. part.CFrame = part.CFrame + PLAYERPOS + Vector3.new(300,-5,0)
  306. end
  307. end
  308. end
  309. if game.Players:FindFirstChild(Victim) ~= nil then
  310. game.Players[Victim].Character.HumanoidRootPart.Anchored = true
  311. game.Players[Victim].Character.Humanoid.WalkSpeed = 0
  312. game.Players[Victim].Character.Humanoid.JumpPower = 0
  313. MoveSpawn(u1,game.Players[Victim].Character.HumanoidRootPart.Position)
  314. end
  315. for i=1,100 do
  316. MoveX(u1,-3)
  317. wait()
  318. end
  319. tractordown()
  320. game.Players[Victim].Character.Head.face.Texture = "rbxassetid://629925029"
  321. SCREAM = Instance.new("Sound")
  322. SCREAM.Parent = game.Players[Victim].Character.Head
  323. SCREAM.SoundId = "rbxassetid://138167455"
  324. SCREAM:Play()
  325. game.Players[Victim].Character.HumanoidRootPart.CFrame = u6.CFrame
  326. wait(0.1)
  327. game.Players[Victim].Character.HumanoidRootPart.CFrame = u7.CFrame
  328. wait(0.1)
  329. game.Players[Victim].Character.HumanoidRootPart.CFrame = u8.CFrame
  330. wait(0.1)
  331. game.Players[Victim].Character.HumanoidRootPart.CFrame = u9.CFrame
  332. wait(0.1)
  333. game.Players[Victim].Character.HumanoidRootPart.CFrame = u10.CFrame
  334. wait(0.1)
  335. game.Players[Victim].Character.HumanoidRootPart.CFrame = u11.CFrame
  336. wait(0.1)
  337. game.Players[Victim].Character.HumanoidRootPart.CFrame = u12.CFrame
  338. wait(0.1)
  339. game.Players[Victim].Character.HumanoidRootPart.CFrame = u13.CFrame
  340. wait(0.1)
  341. game.Players[Victim].Character.HumanoidRootPart.CFrame = u14.CFrame
  342. wait(0.1)
  343. game.Players[Victim].Character.HumanoidRootPart.CFrame = u15.CFrame
  344. wait(0.1)
  345. game.Players[Victim].Character.HumanoidRootPart.CFrame = u16.CFrame
  346. wait(0.1)
  347. game.Players[Victim].Character.HumanoidRootPart.CFrame = u17.CFrame
  348. wait(0.1)
  349. game.Players[Victim].Character.HumanoidRootPart.CFrame = u18.CFrame
  350. wait(0.1)
  351. game.Players[Victim].Character.HumanoidRootPart.CFrame = u19.CFrame
  352. wait(0.1)
  353. game.Players[Victim].Character.HumanoidRootPart.CFrame = u20.CFrame
  354. wait(0.1)
  355. game.Players[Victim].Character.HumanoidRootPart.CFrame = u21.CFrame
  356. wait(0.1)
  357. game.Players[Victim].Character.HumanoidRootPart.CFrame = u22.CFrame
  358. wait(0.1)
  359. game.Players[Victim].Character.HumanoidRootPart.CFrame = u23.CFrame
  360. tractorup()
  361. for i=1,50 do
  362. MoveX(u1,-3)
  363. if game.Players[Victim] ~= nil then
  364. game.Players[Victim].Character.HumanoidRootPart.CFrame = u23.CFrame
  365. end
  366. wait(.05)
  367. end
  368. wait(0.5)
  369. game.Players[Victim].Character.HumanoidRootPart.CFrame = u21.CFrame
  370. game.Players[Victim].Character.Humanoid.Health = 0
  371. game.Players[Victim].Character.HumanoidRootPart.Anchored = false
  372. for i=1,50 do
  373. MoveX(u1,-3)
  374. wait()
  375. end
  376. u1:Destroy()
  377. end
  378. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement