Advertisement
sIendytubble

dick shooter

May 23rd, 2020
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.02 KB | None | 0 0
  1. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  2. local RealPlayer = Player
  3. local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer warn'controls R = point right arm towards mouse L = point left arm towards mouse IT MAY BUG BECAUSE SOMETIMES THE LIMBS THE GLUE/BallSocketConstraint MAY DESTROY THE LIMB AFTER SOME TIME. I MIGHT OF FIXED IT THOUGH I CHANGED Glue TO BallSocketConstraint it could not be fixed though.'
  4. layer = game:GetService("Players").LocalPlayer
  5.  
  6. Character = Player.Character
  7.  
  8. PlayerGui = Player.PlayerGui
  9.  
  10. okay = false
  11.  
  12. mouse = game.Players.LocalPlayer:GetMouse()
  13.  
  14.  
  15.  
  16. mouse.Button1Down:connect(function()
  17. if okay == true then
  18.  
  19.  
  20. ob1d(mouse)
  21.  
  22. end
  23. end)
  24. mouse.Button1Up:connect(function()
  25. if okay == true then
  26.  
  27.  
  28. ob1u(mouse)
  29.  
  30. end
  31. end)
  32.  
  33.  
  34. mouse.KeyDown:connect(key)
  35.  
  36. mouse.KeyUp:connect(key2)
  37.  
  38. Backpack = Player.Backpack
  39.  
  40. Torso = Character.Torso
  41.  
  42. Head = Character.Head
  43.  
  44. LeftArm = Character["Left Arm"]
  45.  
  46. LeftLeg = Character["Left Leg"]
  47.  
  48. RightArm = Character["Right Arm"]
  49.  
  50. RightLeg = Character["Right Leg"]
  51.  
  52. LS = Torso["Left Shoulder"]
  53.  
  54. LH = Torso["Left Hip"]
  55.  
  56. RS = Torso["Right Shoulder"]
  57.  
  58. RH = Torso["Right Hip"]
  59.  
  60. Tool = Instance.new("Tool")
  61.  
  62. Tool.Parent = Backpack
  63.  
  64. Tool.Name = "Painis"
  65.  
  66. Tool.RequiresHandle = false
  67.  
  68. Bin = Tool
  69.  
  70. Tool.Equipped:connect(function()
  71. okay = true
  72. end)
  73.  
  74. Tool.Unequipped:connect(function()
  75. okay = false
  76. end)
  77.  
  78. so = function(id, par, vol, pit)
  79.  
  80.  
  81.  
  82. coroutine.resume(coroutine.create(function()
  83.  
  84.  
  85.  
  86. local sou = Instance.new("Sound", par or workspace)
  87.  
  88. sou.Volume = vol
  89.  
  90. sou.Pitch = pit or 1
  91.  
  92. sou.SoundId = id
  93.  
  94. wait()
  95.  
  96. sou:play()
  97.  
  98. wait(6)
  99.  
  100. sou:Remove()
  101.  
  102. end
  103.  
  104. ))
  105.  
  106. end
  107.  
  108.  
  109.  
  110. ob1d = function()
  111.  
  112.  
  113.  
  114. size = 0.5
  115.  
  116. mode = 1
  117.  
  118. color = BrickColor.new(Color3.new(math.random(), math.random(), math.random()))
  119.  
  120. mo = Instance.new("Model")
  121.  
  122. mo.Name = "EEEEUGH HA HA HAAAAA"
  123.  
  124. mo.Parent = workspace
  125.  
  126. game.Debris:AddItem(mo, 10)
  127.  
  128. p = Instance.new("Seat")
  129.  
  130. p.Name = "Torso"
  131.  
  132. p.Size = Vector3.new(14, 50, 14) * size
  133.  
  134. p.BrickColor = color
  135.  
  136. m = Instance.new("SpecialMesh")
  137.  
  138. m.Parent = p
  139.  
  140. p.Name = "Torso"
  141.  
  142. p.Parent = mo
  143.  
  144. p = Instance.new("Seat")
  145.  
  146. p.Shape = "Ball"
  147.  
  148. p.Size = Vector3.new(24, 24, 24) * size
  149.  
  150. p.BrickColor = color
  151.  
  152. p.Name = "Legball"
  153.  
  154. for i = 1, 10 do
  155.  
  156. lol = Instance.new("Seat")
  157.  
  158. lol.BrickColor = BrickColor:Black()
  159.  
  160. lol.Name = "SEE?"
  161.  
  162. lol.Parent = mo
  163.  
  164. lol.Size = Vector3.new(1, math.random(30, 40), 1) * size
  165.  
  166. w = Instance.new("Weld")
  167.  
  168. w.Part0 = p
  169.  
  170. w.Part1 = lol
  171.  
  172. w.C0 = CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  173.  
  174. w.Parent = w.Part0
  175.  
  176. end
  177.  
  178. p.Parent = mo
  179.  
  180. w = Instance.new("Weld")
  181.  
  182. w.Part0 = mo.Torso
  183.  
  184. w.Part1 = p
  185.  
  186. w.C0 = CFrame.new(16 * (size / 2), -48 * (size / 2), 0)
  187.  
  188. w.Parent = w.Part0
  189.  
  190. p = Instance.new("Seat")
  191.  
  192. p.Shape = "Ball"
  193.  
  194. p.Size = Vector3.new(24, 24, 24) * size
  195.  
  196. p.BrickColor = color
  197.  
  198. p.Name = "Legball"
  199.  
  200. for i = 1, 10 do
  201.  
  202. lol = Instance.new("Seat")
  203.  
  204. lol.BrickColor = BrickColor:Black()
  205.  
  206. lol.Name = "SEE?"
  207.  
  208. lol.Parent = mo
  209.  
  210. lol.Size = Vector3.new(1, math.random(30, 40), 1) * size
  211.  
  212. w = Instance.new("Weld")
  213.  
  214. w.Part0 = p
  215.  
  216. w.Part1 = lol
  217.  
  218. w.C0 = CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  219.  
  220. w.Parent = w.Part0
  221.  
  222. end
  223.  
  224. p.Parent = mo
  225.  
  226. w = Instance.new("Weld")
  227.  
  228. w.Part0 = mo.Torso
  229.  
  230. w.Part1 = p
  231.  
  232. w.C0 = CFrame.new(-16 * (size / 2), -48 * (size / 2), 0)
  233.  
  234. w.Parent = w.Part0
  235.  
  236. p = Instance.new("Seat")
  237.  
  238. p.Shape = "Ball"
  239.  
  240. p.Size = Vector3.new(21, 15, 21) * size
  241.  
  242. p.BrickColor = color
  243.  
  244. p.Name = "Legball"
  245.  
  246. for i = 1, 10 do
  247.  
  248. lol = Instance.new("Seat")
  249.  
  250. lol.BrickColor = BrickColor:Black()
  251.  
  252. lol.Name = "SEE?"
  253.  
  254. lol.Parent = mo
  255.  
  256. lol.Size = Vector3.new(1, math.random(30, 40), 1) * size
  257.  
  258. w = Instance.new("Weld")
  259.  
  260. w.Part0 = p
  261.  
  262. w.Part1 = lol
  263.  
  264. w.C0 = CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  265.  
  266. w.Parent = w.Part0
  267.  
  268. end
  269.  
  270. p.Parent = mo
  271.  
  272. w = Instance.new("Weld")
  273.  
  274. w.Part0 = mo.Torso
  275.  
  276. w.Part1 = p
  277.  
  278. w.C0 = CFrame.new(0, 60 * (size / 2), 0)
  279.  
  280. m = Instance.new("SpecialMesh")
  281.  
  282. m.Parent = p
  283.  
  284. p.Name = "Head"
  285.  
  286. w.Parent = w.Part0
  287.  
  288. s = Instance.new("Sound")
  289.  
  290. s.Parent = mo.Torso
  291.  
  292. s.Volume = 100
  293.  
  294. s.Pitch = 1
  295.  
  296. s.SoundId = "http://www.roblox.com/asset/?id=149779810"
  297.  
  298. s.Looped = true
  299.  
  300. s:play()
  301.  
  302. coroutine.resume(coroutine.create(function(Part)
  303.  
  304.  
  305.  
  306. while Part.Parent ~= nil do
  307.  
  308. wait(math.random())
  309.  
  310. so("http://www.roblox.com/asset/?id=148636758", Part, 100, 1)
  311.  
  312. end
  313.  
  314. end
  315.  
  316. ), mo.Torso)
  317.  
  318. mo.Torso.CFrame = mo.Torso.CFrame * Torso.CFrame * CFrame.new(0, 0, -50 * size) * CFrame.fromEulerAnglesXYZ(-1.57, 0, 0)
  319.  
  320. mo.Torso.Velocity = mouse.Hit.lookVector * 400
  321.  
  322. coroutine.resume(coroutine.create(function(Part)
  323.  
  324.  
  325.  
  326. while 1 do
  327.  
  328. wait(math.random(0, 1) + math.random())
  329.  
  330. Part.RotVelocity = Vector3.new(math.random(-40, 40), math.random(-40, 40), math.random(-40, 40))
  331.  
  332. end
  333.  
  334. end
  335.  
  336. ), mo.Torso)
  337.  
  338. end
  339.  
  340.  
  341.  
  342. ob1u = function()
  343.  
  344.  
  345.  
  346. end
  347.  
  348.  
  349.  
  350. buttonhold = false
  351.  
  352. key = function(key, mouse)
  353.  
  354.  
  355.  
  356. end
  357.  
  358.  
  359.  
  360. key2 = function(key, mouse)
  361.  
  362.  
  363.  
  364. end
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371. ds = function(mouse)
  372.  
  373.  
  374.  
  375. end
  376.  
  377.  
  378.  
  379. Bin.Equipped:connect(s)
  380.  
  381. Bin.Unequipped:connect(ds)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement