Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.79 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. Player = owner
  88. Character = Player.Character
  89. PlayerGui = Player.PlayerGui
  90. Backpack = Player.Backpack
  91. Torso = Character.Torso
  92. Head = Character.Head
  93. LeftArm = Character["Left Arm"]
  94. LeftLeg = Character["Left Leg"]
  95. RightArm = Character["Right Arm"]
  96. RightLeg = Character["Right Leg"]
  97. LS = Torso["Left Shoulder"]
  98. LH = Torso["Left Hip"]
  99. RS = Torso["Right Shoulder"]
  100. RH = Torso["Right Hip"]
  101.  
  102. if (script.Parent.className ~= "HopperBin") then
  103. Tool = Instance.new("HopperBin")
  104. Tool.Parent = Backpack
  105. Tool.Name = "Painis"
  106. script.Parent = Tool
  107. end
  108. Bin = script.Parent
  109.  
  110. so = function(id,par,vol,pit)
  111. coroutine.resume(coroutine.create(function()
  112. local sou = Instance.new("Sound",par or workspace)
  113. sou.Volume=vol
  114. sou.Pitch=pit or 1
  115. sou.SoundId=id
  116. wait()
  117. sou:play()
  118. wait(6)
  119. sou:Remove()
  120. end))
  121. end
  122.  
  123. function ob1d(mouse)
  124. size=0.5
  125. mode=1
  126. color=BrickColor.new(Color3.new(math.random(),math.random(),math.random()))
  127. mo=Instance.new("Model")
  128. mo.Name="EEEEUGH HA HA HAAAAA"
  129. mo.Parent=workspace
  130. game.Debris:AddItem(mo,10)
  131. p=Instance.new("Seat")
  132. p.Name="Torso"
  133. p.Size=Vector3.new(14,50,14)*size
  134. p.BrickColor=color
  135. m=Instance.new("SpecialMesh")
  136. m.Parent=p
  137. p.Name="Torso"
  138. p.Parent=mo
  139. p=Instance.new("Seat")
  140. p.Shape="Ball"
  141. p.Size=Vector3.new(24,24,24)*size
  142. p.BrickColor=color
  143. p.Name="Legball"
  144. for i=1, 10 do
  145. lol=Instance.new("Seat")
  146. lol.BrickColor=BrickColor:Black()
  147. lol.Name="SEE?"
  148. lol.Parent=mo
  149. lol.Size=Vector3.new(1,math.random(30,40),1) *size
  150. w=Instance.new("Weld")
  151. w.Part0=p
  152. w.Part1=lol
  153. w.C0=CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  154. w.Parent=w.Part0
  155. end
  156. p.Parent=mo
  157. w=Instance.new("Weld")
  158. w.Part0=mo.Torso
  159. w.Part1=p
  160. w.C0=CFrame.new(16*(size/2),-48*(size/2),0)
  161. w.Parent=w.Part0
  162. p=Instance.new("Seat")
  163. p.Shape="Ball"
  164. p.Size=Vector3.new(24,24,24)*size
  165. p.BrickColor=color
  166. p.Name="Legball"
  167. for i=1, 10 do
  168. lol=Instance.new("Seat")
  169. lol.BrickColor=BrickColor:Black()
  170. lol.Name="SEE?"
  171. lol.Parent=mo
  172. lol.Size=Vector3.new(1,math.random(30,40),1) *size
  173. w=Instance.new("Weld")
  174. w.Part0=p
  175. w.Part1=lol
  176. w.C0=CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  177. w.Parent=w.Part0
  178. end
  179. p.Parent=mo
  180. w=Instance.new("Weld")
  181. w.Part0=mo.Torso
  182. w.Part1=p
  183. w.C0=CFrame.new(-16*(size/2),-48*(size/2),0)
  184. w.Parent=w.Part0
  185. p=Instance.new("Seat")
  186. p.Shape="Ball"
  187. p.Size=Vector3.new(21,15,21)*size
  188. p.BrickColor=color
  189. p.Name="Legball"
  190. for i=1, 10 do
  191. lol=Instance.new("Seat")
  192. lol.BrickColor=BrickColor:Black()
  193. lol.Name="SEE?"
  194. lol.Parent=mo
  195. lol.Size=Vector3.new(1,math.random(30,40),1) *size
  196. w=Instance.new("Weld")
  197. w.Part0=p
  198. w.Part1=lol
  199. w.C0=CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  200. w.Parent=w.Part0
  201. end
  202. p.Parent=mo
  203. w=Instance.new("Weld")
  204. w.Part0=mo.Torso
  205. w.Part1=p
  206. w.C0=CFrame.new(0,60*(size/2),0)
  207. m=Instance.new("SpecialMesh")
  208. m.Parent=p
  209. p.Name="Head"
  210. w.Parent=w.Part0
  211. s=Instance.new("Sound")
  212. s.Parent=mo.Torso
  213. s.Volume=100
  214. s.Pitch=1
  215. s.SoundId="http://www.roblox.com/asset/?id=149779810"
  216. s.Looped=true
  217. s:play()
  218. coroutine.resume(coroutine.create(function(Part)
  219. while Part.Parent~=nil do
  220. wait(math.random())
  221. --[[derp=math.random(1,11)
  222. if derp==1 then
  223. so("http://www.roblox.com/asset/?id=151172618",Part,100,math.random(0,2)+math.random()) --PINGAS
  224. elseif derp==2 then
  225. so("http://www.roblox.com/asset/?id=148636758",Part,100,math.random(0,2)+math.random()) --POOTIS
  226. elseif derp==3 then
  227. so("http://www.roblox.com/asset/?id=132026302",Part,100,math.random(0,2)+math.random()) --MEEM
  228. elseif derp==4 then
  229. so("http://www.roblox.com/asset/?id=131228548",Part,100,math.random(0,2)+math.random()) --GET OVER HERE
  230. elseif derp==5 then
  231. so("http://www.roblox.com/asset/?id=131554451",Part,100,math.random(0,2)+math.random()) --DED
  232. elseif derp==6 then
  233. so("http://www.roblox.com/asset/?id=130818264",Part,0.5,math.random(0,2)+math.random()) --ALL TOASTERS
  234. elseif derp==7 then
  235. so("http://www.roblox.com/asset/?id=131313234",Part,100,math.random(0,2)+math.random()) --BOOM HEDSHOT
  236. elseif derp==8 then
  237. so("http://www.roblox.com/asset/?id=130770819",Part,100,math.random(0,2)+math.random()) --I SELL PROPANE
  238. elseif derp==9 then
  239. so("http://www.roblox.com/asset/?id=130776108",Part,100,math.random(0,2)+math.random()) --OM NOM NOM
  240. elseif derp==10 then
  241. so("http://www.roblox.com/asset/?id=130768126",Part,100,math.random(0,2)+math.random()) --DRINK YO PRUNE JUICE
  242. elseif derp==11 then
  243. so("http://www.roblox.com/asset/?id=130815729",Part,100,math.random(0,2)+math.random()) --NOPE.AVI
  244. end]]
  245. so("http://www.roblox.com/asset/?id=148636758",Part,100,1) --GOTTA GO FAST
  246. end
  247. end),mo.Torso)
  248. --[[mo:MoveTo(Vector3.new(math.random(-300,300),60,math.random(-300,300)))
  249. mo.Torso.CFrame=mo.Torso.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  250. ]]
  251. --mo:MoveTo(Vector3.new(0,60,0))
  252. mo.Torso.CFrame=mo.Torso.CFrame*Torso.CFrame*CFrame.new(0,0,-50*size)*CFrame.fromEulerAnglesXYZ(-1.57,0,0)
  253. mo.Torso.Velocity=mouse.Hit.lookVector * 400
  254. coroutine.resume(coroutine.create(function(Part)
  255. while true do
  256. wait(math.random(0,1)+math.random())
  257. Part.RotVelocity=Vector3.new(math.random(-40,40),math.random(-40,40),math.random(-40,40))
  258. --Part.RotVelocity=Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  259. end
  260. end),mo.Torso)
  261. end
  262.  
  263. function ob1u(mouse)
  264. end
  265.  
  266. buttonhold = false
  267.  
  268. function key(key,mouse)
  269. end
  270.  
  271. function key2(key,mouse)
  272. end
  273.  
  274. function s(mouse)
  275. mouse.Button1Down:connect(function() ob1d(mouse) end)
  276. mouse.Button1Up:connect(function() ob1u(mouse) end)
  277. mouse.KeyDown:connect(key)
  278. mouse.KeyUp:connect(key2)
  279. end
  280.  
  281. function ds(mouse)
  282. end
  283.  
  284. Bin.Selected:connect(s)
  285. Bin.Deselected:connect(ds)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement