Advertisement
sIendytubble

penis launcher

Jan 28th, 2020
586
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.25 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 by Mokiros")
  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(),Button2Up=fakeEvent(),Button2Down=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. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  51. return m:TrigEvent(b and "Button2Down" or "Button2Up")
  52. end
  53. for _,t in pairs(CAS.Actions) do
  54. for _,k in pairs(t.Keys) do
  55. if k==io.KeyCode then
  56. t.Function(t.Name,io.UserInputState,io)
  57. end
  58. end
  59. end
  60. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  61. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  62. end
  63. end)
  64. Event.Parent = NLS([==[
  65. local Player = game:GetService("Players").LocalPlayer
  66. local Event = script:WaitForChild("UserInput_Event")
  67. local Mouse = Player:GetMouse()
  68. local UIS = game:GetService("UserInputService")
  69. local input = function(io,a)
  70. if a then return end
  71. --Since InputObject is a client-side instance, we create and pass table instead
  72. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  73. end
  74. UIS.InputBegan:Connect(input)
  75. UIS.InputEnded:Connect(input)
  76. local h,t
  77. --Give the server mouse data 30 times every second, but only if the values changed
  78. --If player is not moving their mouse, client won't fire events
  79. while wait(1/30) do
  80. if h~=Mouse.Hit or t~=Mouse.Target then
  81. h,t=Mouse.Hit,Mouse.Target
  82. Event:FireServer({isMouse=true,Target=t,Hit=h})
  83. end
  84. end]==],Player.Character)
  85.  
  86. ----Sandboxed game object that allows the usage of client-side methods and services
  87. --Real game object
  88. local _rg = game
  89.  
  90. --Metatable for fake service
  91. local fsmt = {
  92. __index = function(self,k)
  93. local s = rawget(self,"_RealService")
  94. if s then
  95. return typeof(s[k])=="function"
  96. and function(_,...)return s[k](s,...)end or s[k]
  97. end
  98. end,
  99. __newindex = function(self,k,v)
  100. local s = rawget(self,"_RealService")
  101. if s then s[k]=v 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 rawget(self,s) or _rg:GetService(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. RunService = FakeService({
  120. _btrs = {},
  121. RenderStepped = _rg:GetService("RunService").Heartbeat,
  122. BindToRenderStep = function(self,name,_,fun)
  123. self._btrs[name] = self.Heartbeat:Connect(fun)
  124. end,
  125. UnbindFromRenderStep = function(self,name)
  126. self._btrs[name]:Disconnect()
  127. end,
  128. },"RunService")
  129. }
  130. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  131. g.service = g.GetService
  132. FakeService(g,game)
  133. --Changing owner to fake player object to support owner:GetMouse()
  134. game,owner = g,g.Players.LocalPlayer
  135. end
  136.  
  137. Player = owner
  138. Character = Player.Character
  139.  
  140. PlayerGui = Player.PlayerGui
  141.  
  142. Backpack = Player.Backpack
  143.  
  144. Torso = Character.Torso
  145.  
  146. Head = Character.Head
  147.  
  148. LeftArm = Character["Left Arm"]
  149.  
  150. LeftLeg = Character["Left Leg"]
  151.  
  152. RightArm = Character["Right Arm"]
  153.  
  154. RightLeg = Character["Right Leg"]
  155.  
  156. LS = Torso["Left Shoulder"]
  157.  
  158. LH = Torso["Left Hip"]
  159.  
  160. RS = Torso["Right Shoulder"]
  161.  
  162. RH = Torso["Right Hip"]
  163.  
  164. Tool = Instance.new("HopperBin")
  165.  
  166. Tool.Parent = Backpack
  167.  
  168. Tool.Name = "Painis"
  169.  
  170. Bin = Tool
  171.  
  172. so = function(id, par, vol, pit)
  173.  
  174.  
  175.  
  176. coroutine.resume(coroutine.create(function()
  177.  
  178.  
  179.  
  180. local sou = Instance.new("Sound", par or workspace)
  181.  
  182. sou.Volume = vol
  183.  
  184. sou.Pitch = pit or 1
  185.  
  186. sou.SoundId = id
  187.  
  188. wait()
  189.  
  190. sou:play()
  191.  
  192. wait(6)
  193.  
  194. sou:Remove()
  195.  
  196. end
  197.  
  198. ))
  199.  
  200. end
  201.  
  202.  
  203.  
  204. ob1d = function(mouse)
  205.  
  206.  
  207.  
  208. size = 0.5
  209.  
  210. mode = 1
  211.  
  212. color = BrickColor.new(Color3.new(math.random(), math.random(), math.random()))
  213.  
  214. mo = Instance.new("Model")
  215.  
  216. mo.Name = "EEEEUGH HA HA HAAAAA"
  217.  
  218. mo.Parent = workspace
  219.  
  220. game.Debris:AddItem(mo, 10)
  221.  
  222. p = Instance.new("Seat")
  223.  
  224. p.Name = "Torso"
  225.  
  226. p.Size = Vector3.new(14, 50, 14) * size
  227.  
  228. p.BrickColor = color
  229.  
  230. m = Instance.new("SpecialMesh")
  231.  
  232. m.Parent = p
  233.  
  234. p.Name = "Torso"
  235.  
  236. p.Parent = mo
  237.  
  238. p = Instance.new("Seat")
  239.  
  240. p.Shape = "Ball"
  241.  
  242. p.Size = Vector3.new(24, 24, 24) * size
  243.  
  244. p.BrickColor = color
  245.  
  246. p.Name = "Legball"
  247.  
  248. for i = 1, 10 do
  249.  
  250. lol = Instance.new("Seat")
  251.  
  252. lol.BrickColor = BrickColor:Black()
  253.  
  254. lol.Name = "SEE?"
  255.  
  256. lol.Parent = mo
  257.  
  258. lol.Size = Vector3.new(1, math.random(30, 40), 1) * size
  259.  
  260. w = Instance.new("Weld")
  261.  
  262. w.Part0 = p
  263.  
  264. w.Part1 = lol
  265.  
  266. w.C0 = CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  267.  
  268. w.Parent = w.Part0
  269.  
  270. end
  271.  
  272. p.Parent = mo
  273.  
  274. w = Instance.new("Weld")
  275.  
  276. w.Part0 = mo.Torso
  277.  
  278. w.Part1 = p
  279.  
  280. w.C0 = CFrame.new(16 * (size / 2), -48 * (size / 2), 0)
  281.  
  282. w.Parent = w.Part0
  283.  
  284. p = Instance.new("Seat")
  285.  
  286. p.Shape = "Ball"
  287.  
  288. p.Size = Vector3.new(24, 24, 24) * size
  289.  
  290. p.BrickColor = color
  291.  
  292. p.Name = "Legball"
  293.  
  294. for i = 1, 10 do
  295.  
  296. lol = Instance.new("Seat")
  297.  
  298. lol.BrickColor = BrickColor:Black()
  299.  
  300. lol.Name = "SEE?"
  301.  
  302. lol.Parent = mo
  303.  
  304. lol.Size = Vector3.new(1, math.random(30, 40), 1) * size
  305.  
  306. w = Instance.new("Weld")
  307.  
  308. w.Part0 = p
  309.  
  310. w.Part1 = lol
  311.  
  312. w.C0 = CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  313.  
  314. w.Parent = w.Part0
  315.  
  316. end
  317.  
  318. p.Parent = mo
  319.  
  320. w = Instance.new("Weld")
  321.  
  322. w.Part0 = mo.Torso
  323.  
  324. w.Part1 = p
  325.  
  326. w.C0 = CFrame.new(-16 * (size / 2), -48 * (size / 2), 0)
  327.  
  328. w.Parent = w.Part0
  329.  
  330. p = Instance.new("Seat")
  331.  
  332. p.Shape = "Ball"
  333.  
  334. p.Size = Vector3.new(21, 15, 21) * size
  335.  
  336. p.BrickColor = color
  337.  
  338. p.Name = "Legball"
  339.  
  340. for i = 1, 10 do
  341.  
  342. lol = Instance.new("Seat")
  343.  
  344. lol.BrickColor = BrickColor:Black()
  345.  
  346. lol.Name = "SEE?"
  347.  
  348. lol.Parent = mo
  349.  
  350. lol.Size = Vector3.new(1, math.random(30, 40), 1) * size
  351.  
  352. w = Instance.new("Weld")
  353.  
  354. w.Part0 = p
  355.  
  356. w.Part1 = lol
  357.  
  358. w.C0 = CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  359.  
  360. w.Parent = w.Part0
  361.  
  362. end
  363.  
  364. p.Parent = mo
  365.  
  366. w = Instance.new("Weld")
  367.  
  368. w.Part0 = mo.Torso
  369.  
  370. w.Part1 = p
  371.  
  372. w.C0 = CFrame.new(0, 60 * (size / 2), 0)
  373.  
  374. m = Instance.new("SpecialMesh")
  375.  
  376. m.Parent = p
  377.  
  378. p.Name = "Head"
  379.  
  380. w.Parent = w.Part0
  381.  
  382. s = Instance.new("Sound")
  383.  
  384. s.Parent = mo.Torso
  385.  
  386. s.Volume = 100
  387.  
  388. s.Pitch = 1
  389.  
  390. s.SoundId = "http://www.roblox.com/asset/?id=149779810"
  391.  
  392. s.Looped = true
  393.  
  394. s:play()
  395.  
  396. coroutine.resume(coroutine.create(function(Part)
  397.  
  398.  
  399.  
  400. while Part.Parent ~= nil do
  401.  
  402. wait(math.random())
  403.  
  404. so("http://www.roblox.com/asset/?id=148636758", Part, 100, 1)
  405.  
  406. end
  407.  
  408. end
  409.  
  410. ), mo.Torso)
  411.  
  412. mo.Torso.CFrame = mo.Torso.CFrame * Torso.CFrame * CFrame.new(0, 0, -50 * size) * CFrame.fromEulerAnglesXYZ(-1.57, 0, 0)
  413.  
  414. mo.Torso.Velocity = mouse.Hit.lookVector * 400
  415.  
  416. coroutine.resume(coroutine.create(function(Part)
  417.  
  418.  
  419.  
  420. while 1 do
  421.  
  422. wait(math.random(0, 1) + math.random())
  423.  
  424. Part.RotVelocity = Vector3.new(math.random(-40, 40), math.random(-40, 40), math.random(-40, 40))
  425.  
  426. end
  427.  
  428. end
  429.  
  430. ), mo.Torso)
  431.  
  432. end
  433.  
  434.  
  435.  
  436. ob1u = function(mouse)
  437.  
  438.  
  439.  
  440. end
  441.  
  442.  
  443.  
  444. buttonhold = false
  445.  
  446. key = function(key, mouse)
  447.  
  448.  
  449.  
  450. end
  451.  
  452.  
  453.  
  454. key2 = function(key, mouse)
  455.  
  456.  
  457.  
  458. end
  459.  
  460.  
  461.  
  462. s = function(mouse)
  463.  
  464.  
  465.  
  466. mouse.Button1Down:connect(function()
  467.  
  468.  
  469.  
  470. ob1d(mouse)
  471.  
  472. end
  473.  
  474. )
  475.  
  476. mouse.Button1Up:connect(function()
  477.  
  478.  
  479.  
  480. ob1u(mouse)
  481.  
  482. end
  483.  
  484. )
  485.  
  486. mouse.KeyDown:connect(key)
  487.  
  488. mouse.KeyUp:connect(key2)
  489.  
  490. end
  491.  
  492.  
  493.  
  494. ds = function(mouse)
  495.  
  496.  
  497.  
  498. end
  499.  
  500.  
  501.  
  502. Bin.Selected:connect(s)
  503.  
  504. Bin.Deselected:connect(ds)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement