Advertisement
DaOMEGAa32

ultimate meme man

Oct 5th, 2019
330
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.99 KB | None | 0 0
  1. print ("IF U LEAK IL SENT DUOLINGO TO VANISH U ")
  2. CV="White"
  3.  
  4. p = game.Players.LocalPlayer
  5. char = p.Character
  6. local txt = Instance.new("BillboardGui", char)
  7. txt.Adornee = char .Head
  8. txt.Name = "_status"
  9. txt.Size = UDim2.new(2, 0, 1.2, 0)
  10. txt.StudsOffset = Vector3.new(-9, 8, 0)
  11. local text = Instance.new("TextLabel", txt)
  12. text.Size = UDim2.new(10, 0, 7, 0)
  13. text.FontSize = "Size24"
  14. text.TextScaled = true
  15. text.TextTransparency = 0
  16. text.BackgroundTransparency = 1
  17. text.TextTransparency = 0
  18. text.TextStrokeTransparency = 1
  19. text.Font = "Arcade"
  20. text.TextStrokeColor3 = Color3.fromRGB(255,0,0)
  21.  
  22. v=Instance.new("Part")
  23. v.Name = "ColorBrick"
  24. v.Parent=p.Character
  25. v.FormFactor="Symmetric"
  26. v.Anchored=true
  27. v.CanCollide=false
  28. v.BottomSurface="Smooth"
  29. v.TopSurface="Smooth"
  30. v.Size=Vector3.new(10,5,3)
  31. v.Transparency=1
  32. v.CFrame=char.Torso.CFrame
  33. v.BrickColor=BrickColor.new(CV)
  34. v.Transparency=1
  35. text.TextColor3 = Color3.fromRGB(53,41,5)
  36. v.Shape="Block"
  37. text.Text = "ultimate_meme_man.png"
  38. --Converted with ttyyuu12345's model to script plugin v4
  39. function sandbox(var,func)
  40. local env = getfenv(func)
  41. local newenv = setmetatable({},{
  42. __index = function(self,k)
  43. if k=="script" then
  44. return var
  45. else
  46. return env[k]
  47. end
  48. end,
  49. })
  50. setfenv(func,newenv)
  51. return func
  52. end
  53. cors = {}
  54. mas = Instance.new("Model",game:GetService("Lighting"))
  55. Tool0 = Instance.new("Tool")
  56. Part1 = Instance.new("Part")
  57. Sound2 = Instance.new("Sound")
  58. Sound3 = Instance.new("Sound")
  59. SpecialMesh4 = Instance.new("SpecialMesh")
  60. Animation5 = Instance.new("Animation")
  61. LocalScript6 = Instance.new("LocalScript")
  62. Script7 = Instance.new("Script")
  63. Tool8 = Instance.new("Tool")
  64. Part9 = Instance.new("Part")
  65. Sound10 = Instance.new("Sound")
  66. Sound11 = Instance.new("Sound")
  67. SpecialMesh12 = Instance.new("SpecialMesh")
  68. Animation13 = Instance.new("Animation")
  69. LocalScript14 = Instance.new("LocalScript")
  70. Script15 = Instance.new("Script")
  71. Tool16 = Instance.new("Tool")
  72. RemoteEvent17 = Instance.new("RemoteEvent")
  73. RemoteEvent18 = Instance.new("RemoteEvent")
  74. LocalScript19 = Instance.new("LocalScript")
  75. Script20 = Instance.new("Script")
  76. Configuration21 = Instance.new("Configuration")
  77. NumberValue22 = Instance.new("NumberValue")
  78. NumberValue23 = Instance.new("NumberValue")
  79. NumberValue24 = Instance.new("NumberValue")
  80. NumberValue25 = Instance.new("NumberValue")
  81. NumberValue26 = Instance.new("NumberValue")
  82. NumberValue27 = Instance.new("NumberValue")
  83. NumberValue28 = Instance.new("NumberValue")
  84. MeshPart29 = Instance.new("MeshPart")
  85. Sound30 = Instance.new("Sound")
  86. Sound31 = Instance.new("Sound")
  87. Decal32 = Instance.new("Decal")
  88. Decal33 = Instance.new("Decal")
  89. Part34 = Instance.new("Part")
  90. BillboardGui35 = Instance.new("BillboardGui")
  91. ImageLabel36 = Instance.new("ImageLabel")
  92. CFrameValue37 = Instance.new("CFrameValue")
  93. Decal38 = Instance.new("Decal")
  94. RemoteEvent39 = Instance.new("RemoteEvent")
  95. Tool0.Name = "asd"
  96. Tool0.Parent = mas
  97. Tool0.TextureId = "http://www.roblox.com/asset/?id=27808126"
  98. Tool0.Grip = CFrame.new(0, 0, 0.200000003, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  99. Tool0.GripPos = Vector3.new(0, 0, 0.200000003)
  100. Part1.Name = "Handle"
  101. Part1.Parent = Tool0
  102. Part1.CFrame = CFrame.new(-5.36770678, 5.59981394, -25.8906975, 1.33541107e-08, 0, -0.999999821, -1.37761235e-05, 0.99999994, 0, 0.99999994, 1.37761235e-05, -6.40635562e-08)
  103. Part1.Orientation = Vector3.new(0, -90, 0)
  104. Part1.Position = Vector3.new(-5.36770678, 5.59981394, -25.8906975)
  105. Part1.Rotation = Vector3.new(-180, -89.9700012, 0)
  106. Part1.Size = Vector3.new(1, 1.20000005, 1)
  107. Sound2.Name = "SongLoop"
  108. Sound2.Parent = Part1
  109. Sound2.Looped = true
  110. Sound2.Pitch = 1.5
  111. Sound2.PlaybackSpeed = 1.5
  112. Sound2.SoundId = "rbxassetid://536739947"
  113. Sound2.Volume = 10
  114. Sound3.Name = "EquipSound"
  115. Sound3.Parent = Part1
  116. Sound3.SoundId = "rbxassetid://536739947"
  117. Sound3.Volume = 10
  118. SpecialMesh4.Parent = Part1
  119. SpecialMesh4.MeshId = "http://www.roblox.com/asset/?id=25268275"
  120. SpecialMesh4.TextureId = "http://www.roblox.com/asset/?id=25268352"
  121. SpecialMesh4.MeshType = Enum.MeshType.FileMesh
  122. Animation5.Name = "dance"
  123. Animation5.Parent = Tool0
  124. Animation5.AnimationId = "http://www.roblox.com/Asset?ID=27789359"
  125. LocalScript6.Name = "PotionScript"
  126. LocalScript6.Parent = Tool0
  127. table.insert(cors,sandbox(LocalScript6,function()
  128. local Tool = script.Parent;
  129. local dancer = nil
  130.  
  131. enabled = true
  132.  
  133.  
  134. function onActivated()
  135. if not enabled then
  136. return
  137. end
  138.  
  139. enabled = false
  140.  
  141. --This call will cause a "wait" until the data comes back
  142. local root = game:GetService("InsertService"):LoadAsset(27831659)
  143.  
  144. local instances = root:GetChildren()
  145. if #instances == 0 then
  146. root:Remove()
  147. return
  148. end
  149.  
  150. local humanoid = Tool.Parent:FindFirstChild("Humanoid")
  151. local torso = Tool.Parent:FindFirstChild("Torso")
  152.  
  153. root = root:FindFirstChild("DiscoBall")
  154. root.Position = Vector3.new(torso.Position.x, torso.Position.y + 5, torso.Position.z)
  155.  
  156. local sparkles = Instance.new("Sparkles")
  157. sparkles.Parent = root
  158.  
  159. local bodyPos = Instance.new("BodyPosition")
  160. bodyPos.position = Vector3.new(torso.Position.x, torso.Position.y + 15, torso.Position.z)
  161. bodyPos.P = 10000
  162. bodyPos.D = 1000
  163. bodyPos.maxForce = Vector3.new(bodyPos.P,bodyPos.P,bodyPos.P)
  164. bodyPos.Parent = root
  165.  
  166. local rotater = Instance.new("BodyAngularVelocity")
  167. rotater.P = 100000
  168. rotater.angularvelocity = Vector3.new(0,1000,0)
  169. rotater.maxTorque = Vector3.new(rotater.P,rotater.P,rotater.P)
  170. rotater.Parent = root
  171.  
  172. root.Parent = game.Workspace
  173.  
  174. dancer = humanoid:LoadAnimation(Tool.dance)
  175. dancer:Play()
  176. Tool.Handle.SongLoop:Play()
  177. wait(15)
  178. Tool.Handle.SongLoop:Stop()
  179. dancer:Stop()
  180. dancer:remove()
  181. root:remove()
  182.  
  183. enabled = true
  184.  
  185. end
  186.  
  187. function onEquipped()
  188. Tool.Handle.EquipSound:play()
  189. end
  190.  
  191. function onUnequipped()
  192. Tool.Handle.EquipSound:stop()
  193. if dancer ~= nil then
  194. dancer:Stop()
  195. dancer:remove()
  196. end
  197. end
  198.  
  199. Tool.Activated:connect(onActivated)
  200. Tool.Equipped:connect(onEquipped)
  201. Tool.Unequipped:connect(OnUnequipped)
  202.  
  203. end))
  204. Script7.Parent = Tool0
  205. table.insert(cors,sandbox(Script7,function()
  206. local debounce = false
  207.  
  208. function getPlayer(humanoid)
  209. local players = game.Players:children()
  210. for i = 1, #players do
  211. if players[i].Character.Humanoid == humanoid then return players[i] end
  212. end
  213. return nil
  214. end
  215.  
  216. function onTouch(part)
  217.  
  218. local human = part.Parent:findFirstChild("Humanoid")
  219. if (human ~= nil) and debounce == false then
  220.  
  221. debounce = true
  222.  
  223. local player = getPlayer(human)
  224.  
  225. if (player == nil) then return end
  226.  
  227. script.Parent:clone().Parent = player.Backpack
  228.  
  229. wait(2)
  230. debounce = false
  231. end
  232. end
  233.  
  234.  
  235. script.Parent.Parent.Touched:connect(onTouch)
  236. end))
  237. Tool8.Name = "DancePotion"
  238. Tool8.Parent = mas
  239. Tool8.TextureId = "http://www.roblox.com/asset/?id=27808126"
  240. Tool8.Grip = CFrame.new(0, 0, 0.200000003, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  241. Tool8.GripPos = Vector3.new(0, 0, 0.200000003)
  242. Part9.Name = "Handle"
  243. Part9.Parent = Tool8
  244. Part9.CFrame = CFrame.new(-5.36770678, 5.59981394, -17.4606991, 1.33541107e-08, 0, -0.999999821, -1.37761235e-05, 0.99999994, 0, 0.99999994, 1.37761235e-05, -6.40635562e-08)
  245. Part9.Orientation = Vector3.new(0, -90, 0)
  246. Part9.Position = Vector3.new(-5.36770678, 5.59981394, -17.4606991)
  247. Part9.Rotation = Vector3.new(-180, -89.9700012, 0)
  248. Part9.Size = Vector3.new(1, 1.20000005, 1)
  249. Sound10.Name = "SongLoop"
  250. Sound10.Parent = Part9
  251. Sound10.Looped = true
  252. Sound10.Pitch = 1.5
  253. Sound10.PlaybackSpeed = 1.5
  254. Sound10.SoundId = "rbxassetid://2967637471"
  255. Sound10.Volume = 10
  256. Sound11.Name = "EquipSound"
  257. Sound11.Parent = Part9
  258. Sound11.SoundId = "rbxassetid://1282149571"
  259. Sound11.Volume = 10
  260. SpecialMesh12.Parent = Part9
  261. SpecialMesh12.MeshId = "http://www.roblox.com/asset/?id=94246763"
  262. SpecialMesh12.Scale = Vector3.new(0.649999976, 0.649999976, 0.649999976)
  263. SpecialMesh12.TextureId = "http://www.roblox.com/asset/?id=96871887"
  264. SpecialMesh12.MeshType = Enum.MeshType.FileMesh
  265. Animation13.Name = "dance"
  266. Animation13.Parent = Tool8
  267. Animation13.AnimationId = "http://www.roblox.com/Asset?ID=27789359"
  268. LocalScript14.Name = "PotionScript"
  269. LocalScript14.Parent = Tool8
  270. table.insert(cors,sandbox(LocalScript14,function()
  271. local Tool = script.Parent;
  272. local dancer = nil
  273.  
  274. enabled = true
  275.  
  276.  
  277. function onActivated()
  278. if not enabled then
  279. return
  280. end
  281.  
  282. enabled = false
  283.  
  284. --This call will cause a "wait" until the data comes back
  285. local root = game:GetService("InsertService"):LoadAsset(27831659)
  286.  
  287. local instances = root:GetChildren()
  288. if #instances == 0 then
  289. root:Remove()
  290. return
  291. end
  292.  
  293. local humanoid = Tool.Parent:FindFirstChild("Humanoid")
  294. local torso = Tool.Parent:FindFirstChild("Torso")
  295.  
  296. root = root:FindFirstChild("DiscoBall")
  297. root.Position = Vector3.new(torso.Position.x, torso.Position.y + 5, torso.Position.z)
  298.  
  299. local sparkles = Instance.new("Sparkles")
  300. sparkles.Parent = root
  301.  
  302. local bodyPos = Instance.new("BodyPosition")
  303. bodyPos.position = Vector3.new(torso.Position.x, torso.Position.y + 15, torso.Position.z)
  304. bodyPos.P = 10000
  305. bodyPos.D = 1000
  306. bodyPos.maxForce = Vector3.new(bodyPos.P,bodyPos.P,bodyPos.P)
  307. bodyPos.Parent = root
  308.  
  309. local rotater = Instance.new("BodyAngularVelocity")
  310. rotater.P = 100000
  311. rotater.angularvelocity = Vector3.new(0,1000,0)
  312. rotater.maxTorque = Vector3.new(rotater.P,rotater.P,rotater.P)
  313. rotater.Parent = root
  314.  
  315. root.Parent = game.Workspace
  316.  
  317. dancer = humanoid:LoadAnimation(Tool.dance)
  318. dancer:Play()
  319. Tool.Handle.SongLoop:Play()
  320. wait(15)
  321. Tool.Handle.SongLoop:Stop()
  322. dancer:Stop()
  323. dancer:remove()
  324. root:remove()
  325.  
  326. enabled = true
  327.  
  328. end
  329.  
  330. function onEquipped()
  331. Tool.Handle.EquipSound:play()
  332. end
  333.  
  334. function onUnequipped()
  335. Tool.Handle.EquipSound:stop()
  336. if dancer ~= nil then
  337. dancer:Stop()
  338. dancer:remove()
  339. end
  340. end
  341.  
  342. Tool.Activated:connect(onActivated)
  343. Tool.Equipped:connect(onEquipped)
  344. Tool.Unequipped:connect(OnUnequipped)
  345.  
  346. end))
  347. Script15.Parent = Tool8
  348. table.insert(cors,sandbox(Script15,function()
  349. local debounce = false
  350.  
  351. function getPlayer(humanoid)
  352. local players = game.Players:children()
  353. for i = 1, #players do
  354. if players[i].Character.Humanoid == humanoid then return players[i] end
  355. end
  356. return nil
  357. end
  358.  
  359. function onTouch(part)
  360.  
  361. local human = part.Parent:findFirstChild("Humanoid")
  362. if (human ~= nil) and debounce == false then
  363.  
  364. debounce = true
  365.  
  366. local player = getPlayer(human)
  367.  
  368. if (player == nil) then return end
  369.  
  370. script.Parent:clone().Parent = player.Backpack
  371.  
  372. wait(2)
  373. debounce = false
  374. end
  375. end
  376.  
  377.  
  378. script.Parent.Parent.Touched:connect(onTouch)
  379. end))
  380. Tool16.Name = "Pistol"
  381. Tool16.Parent = mas
  382. Tool16.TextureId = "rbxassetid://131768786"
  383. Tool16.Grip = CFrame.new(-0.792874813, -0.37231636, 0.112739533, 0.0692615658, 0, -0.997598529, 0, 1, 0, 0.997598529, 0, 0.0692615658)
  384. Tool16.GripForward = Vector3.new(0.997598529, -0, -0.0692615658)
  385. Tool16.GripPos = Vector3.new(-0.792874813, -0.37231636, 0.112739533)
  386. Tool16.GripRight = Vector3.new(0.0692615658, 0, 0.997598529)
  387. Tool16.ToolTip = "Activate the Trigger Happy special by pressing E or using the mobile button!"
  388. RemoteEvent17.Name = "Hit"
  389. RemoteEvent17.Parent = Tool16
  390. RemoteEvent18.Name = "Fire"
  391. RemoteEvent18.Parent = Tool16
  392. LocalScript19.Name = "Client"
  393. LocalScript19.Parent = Tool16
  394. table.insert(cors,sandbox(LocalScript19,function()
  395. --//Variables\\--
  396. local tool = script.Parent
  397. local handle = tool:WaitForChild("Handle")
  398.  
  399. local contextActionService = game:GetService("ContextActionService")
  400.  
  401. local player = game.Players.LocalPlayer
  402. local mouse = player:GetMouse()
  403. local character = player.Character or player.CharacterAdded:Wait()
  404.  
  405. local enabled = true
  406. local specialDB = true
  407.  
  408. local cursorId = "http://www.roblox.com/asset/?id=251497633"
  409. local hitId = "http://www.roblox.com/asset/?id=70785856"
  410.  
  411. local configs = tool:WaitForChild("Configurations")
  412. local fireRate = configs:FindFirstChild("FireRate")
  413. local specialRechargeTime = configs:FindFirstChild("SpecialRechargeTime")
  414.  
  415. local fire = tool:WaitForChild("Fire")
  416. local activateSpecial = tool:WaitForChild("ActivateSpecial")
  417. local hit = tool:WaitForChild("Hit")
  418.  
  419. --//Custom Functions\\--
  420. function activate()
  421. if specialDB then
  422. specialDB = false
  423. activateSpecial:FireServer()
  424. else
  425. end
  426. end
  427.  
  428. --//Tool Function\\--
  429. tool.Equipped:Connect(function()
  430. contextActionService:BindAction("ActivateSpecial", activate, true, Enum.KeyCode.E)
  431. contextActionService:SetImage("ActivateSpecial", tool.TextureId)
  432. contextActionService:SetPosition("ActivateSpecial", UDim2.new(0.72, -25, 0.20, -25))
  433. mouse.Icon = cursorId
  434. end)
  435.  
  436. tool.Unequipped:Connect(function()
  437. contextActionService:UnbindAction("ActivateSpecial")
  438. mouse.Icon = ""
  439. end)
  440.  
  441. tool.Activated:Connect(function()
  442. if not enabled then return end
  443.  
  444. enabled = false
  445. fire:FireServer(mouse.Hit)
  446. wait(fireRate.Value)
  447. enabled = true
  448. end)
  449.  
  450. hit.OnClientEvent:Connect(function()
  451. mouse.Icon = hitId
  452. handle.Hitmark:Play()
  453. wait(0.075)
  454. mouse.Icon = cursorId
  455. end)
  456.  
  457. activateSpecial.OnClientEvent:Connect(function()
  458.  
  459. for i = specialRechargeTime.Value, 0, -1 do
  460. wait(1)
  461. specialDB = false
  462. print("Recharging: "..i)
  463. end
  464.  
  465. specialDB = true
  466. end)
  467. end))
  468. Script20.Name = "Server"
  469. Script20.Parent = Tool16
  470. table.insert(cors,sandbox(Script20,function()
  471. --//Variables\\--
  472. local tool = script.Parent
  473. local handle = tool:WaitForChild("Handle")
  474. local muzzle = tool:WaitForChild("Muzzle")
  475. local muzzleFlash = muzzle:WaitForChild("MuzzleFlash")
  476. local muzzleEffect = muzzleFlash:WaitForChild("MuzzleEffect")
  477.  
  478. local configs = tool:WaitForChild("Configurations")
  479. local fireRate = configs:FindFirstChild("FireRate")
  480. local maxDamage = configs:FindFirstChild("MaxDamage")
  481. local minDamage = configs:FindFirstChild("MinDamage")
  482. local velocity = configs:FindFirstChild("Velocity")
  483. local accuracy = configs:FindFirstChild("Accuracy")
  484. local specialDuration = configs:FindFirstChild("SpecialDuration")
  485. local specialRechargeTime = configs:FindFirstChild("SpecialRechargeTime")
  486.  
  487. local showDamageText = true
  488.  
  489. local debris = game:GetService("Debris")
  490.  
  491. local fire = tool:WaitForChild("Fire")
  492. local activateSpecial = tool:WaitForChild("ActivateSpecial")
  493. local hit = tool:WaitForChild("Hit")
  494.  
  495. --//Custom Functions\\--
  496. function TagHumanoid(humanoid, player)
  497. local Creator_Tag = Instance.new("ObjectValue")
  498. Creator_Tag.Name = "creator"
  499. Creator_Tag.Value = player
  500. debris:AddItem(Creator_Tag, 0.3)
  501. Creator_Tag.Parent = humanoid
  502. end
  503.  
  504. function UntagHumanoid(humanoid)
  505. for i, v in pairs(humanoid:GetChildren()) do
  506. if v:IsA("ObjectValue") and v.Name == "creator" then
  507. v:Destroy()
  508. end
  509. end
  510. end
  511.  
  512. function TextEffects(element, floatAmount, direction, style, duration)
  513. element:TweenPosition(UDim2.new(0, math.random(-40, 40), 0, -floatAmount), direction, style, duration)
  514. wait(0.5)
  515.  
  516. for i = 1, 60 do
  517. element.TextTransparency = element.TextTransparency + 1/60
  518. element.TextStrokeTransparency = element.TextStrokeTransparency + 1/60
  519. wait(1/60)
  520. end
  521.  
  522. element.TextTransparency = element.TextTransparency + 1
  523. element.TextStrokeTransparency = element.TextStrokeTransparency + 1
  524. element.Parent:Destroy()
  525. end
  526.  
  527. function DynamicText(damage, criticalPoint, humanoid)
  528. local bill = Instance.new("BillboardGui", humanoid.Parent.Head)
  529. bill.Size = UDim2.new(0, 50, 0, 100)
  530. local part = Instance.new("TextLabel", bill)
  531. bill.AlwaysOnTop = true
  532. part.TextColor3 = Color3.fromRGB(255, 0, 0)
  533. part.Text = damage
  534. part.Font = Enum.Font.SourceSans
  535. part.TextStrokeTransparency = 0
  536. part.Size = UDim2.new(1, 0, 1, 0)
  537. part.Position = UDim2.new(0, 0, 0, 0)
  538. part.BackgroundTransparency = 1
  539. bill.Adornee = bill.Parent
  540.  
  541. if damage < criticalPoint then
  542. part.TextSize = 28
  543. part.TextColor3 = Color3.new(1, 0, 0)
  544. elseif damage >= criticalPoint then
  545. part.TextSize = 32
  546. part.TextColor3 = Color3.new(1, 1, 0)
  547. end
  548.  
  549. spawn(function()
  550. TextEffects(part, 85, Enum.EasingDirection.Out, Enum.EasingStyle.Quint, 0.75)
  551. end)
  552. end
  553.  
  554. function DamageAndTagHumanoid(player, humanoid, damage)
  555. hit:FireClient(player)
  556. UntagHumanoid(handle)
  557. humanoid:TakeDamage(damage) TagHumanoid(humanoid, player)
  558. end
  559.  
  560. --//Remote Functions\\--
  561. fire.OnServerEvent:Connect(function(player, mouseHit)
  562. local character = player.Character
  563. local humanoid = character:FindFirstChild("Humanoid")
  564. local weaponAccuracy = Vector3.new(math.random(-accuracy.Value * 2, accuracy.Value * 2), math.random(-accuracy.Value * 2, accuracy.Value * 2), math.random(-accuracy.Value * 2, accuracy.Value * 2))
  565.  
  566. if humanoid and humanoid ~= 0 then
  567. local projectile = Instance.new("Part", workspace)
  568.  
  569. local trail = Instance.new("Trail", projectile)
  570. trail.FaceCamera = true
  571. trail.Lifetime = 0.3
  572. trail.MinLength = 0.15
  573. trail.LightEmission = 0.25
  574.  
  575. local attachment0 = Instance.new("Attachment", projectile)
  576. attachment0.Position = Vector3.new(0.35, 0, 0)
  577. attachment0.Name = "Attachment1"
  578. local attachment1 = Instance.new("Attachment", projectile)
  579. attachment1.Position = Vector3.new(-0.35, 0, 0)
  580. attachment1.Name = "Attachment1"
  581.  
  582. trail.Attachment0 = attachment0
  583. trail.Attachment1 = attachment1
  584.  
  585. projectile.Name = "Bullet"
  586. projectile.BrickColor = BrickColor.new("Smoky gray")
  587. projectile.Shape = "Ball"
  588. projectile.Material = Enum.Material.Metal
  589. projectile.TopSurface = 0
  590. projectile.BottomSurface = 0
  591. projectile.Size = Vector3.new(1, 1, 1)
  592. projectile.Transparency = 1
  593. projectile.CFrame = CFrame.new(muzzle.CFrame.p, mouseHit.p)
  594. projectile.CanCollide = false
  595.  
  596. local transparencyPoints = {}
  597. local startColor = Color3.new(255, 255, 0)
  598. local endColor = Color3.new(213, 115, 61)
  599.  
  600. table.insert(transparencyPoints, NumberSequenceKeypoint.new(0, 1))
  601. table.insert(transparencyPoints, NumberSequenceKeypoint.new(0.25, 0))
  602. table.insert(transparencyPoints, NumberSequenceKeypoint.new(1, 1))
  603.  
  604. local determinedTransparency = NumberSequence.new(transparencyPoints)
  605. local determinedColors = ColorSequence.new(startColor, endColor)
  606.  
  607. trail.Transparency = determinedTransparency
  608. trail.Color = determinedColors
  609.  
  610. local bodyVelocity = Instance.new("BodyVelocity", projectile)
  611. bodyVelocity.MaxForce = Vector3.new(9e9, 9e9, 9e9)
  612. bodyVelocity.Velocity = (mouseHit.lookVector * velocity.Value) + weaponAccuracy
  613.  
  614. debris:AddItem(projectile, 20)
  615.  
  616. projectile.Touched:Connect(function(hit)
  617. local eHumanoid = hit.Parent:FindFirstChild("Humanoid") or hit.Parent.Parent:FindFirstChild("Humanoid")
  618. local damage = math.random(minDamage.Value, maxDamage.Value)
  619. if not eHumanoid and not hit.Anchored and not hit:IsDescendantOf(character) then
  620.  
  621. projectile:Destroy()
  622. elseif eHumanoid and eHumanoid ~= humanoid and eHumanoid.Health > 0 and hit ~= projectile then
  623.  
  624. if hit.Name == "Head" or hit:IsA("Hat") then
  625. damage = damage * 1.5
  626. end
  627.  
  628. local criticalPoint = maxDamage.Value
  629. DamageAndTagHumanoid(player, eHumanoid, damage)
  630.  
  631. if showDamageText then
  632. DynamicText(damage, criticalPoint, eHumanoid)
  633. else
  634. end
  635.  
  636. projectile:Destroy()
  637. elseif hit.CanCollide == true and not hit:IsDescendantOf(player.Character) and hit.Anchored == true then
  638.  
  639. projectile:Destroy()
  640. end
  641. end)
  642.  
  643. handle.Fire:Play()
  644. muzzleEffect.Visible = true
  645. muzzleEffect.Rotation = math.random(-360, 360)
  646.  
  647. delay(0.1, function()
  648. muzzleEffect.Visible = false
  649. end)
  650.  
  651. end
  652. end)
  653.  
  654. activateSpecial.OnServerEvent:Connect(function(player)
  655. accuracy.Value, fireRate.Value = accuracy.Value / 2, fireRate.Value / 2
  656. minDamage.Value, maxDamage.Value = minDamage.Value / 2, maxDamage.Value / 2
  657.  
  658. spawn(function()
  659. local chargeSound = Instance.new("Sound", player.PlayerGui)
  660. chargeSound.Name = "ChargeSound"
  661. chargeSound.SoundId = "rbxassetid://163619849"
  662. chargeSound:Play()
  663.  
  664. chargeSound.Ended:Connect(function() chargeSound:Destroy() end)
  665.  
  666. local sparkles = Instance.new("Sparkles", handle)
  667. sparkles.SparkleColor = Color3.fromRGB(255, 236, 21)
  668.  
  669. local activatedGui = Instance.new("ScreenGui", player.PlayerGui)
  670. activatedGui.Name = "SpecialActivated"
  671. local textLabel = Instance.new("TextLabel", activatedGui)
  672. textLabel.TextColor3 = Color3.fromRGB(0, 180, 30)
  673. textLabel.Text = "Trigger Happy activated!"
  674. textLabel.Font = Enum.Font.SourceSans
  675. textLabel.TextScaled = true
  676. textLabel.TextStrokeTransparency = 0
  677. textLabel.Size = UDim2.new(0, 300, 0, 50)
  678. textLabel.Position = UDim2.new(2.5, 0, 0.15, -10)
  679. textLabel.BackgroundTransparency = 1
  680. textLabel:TweenPosition(UDim2.new(0.5, -(textLabel.Size.X.Offset / 2), 0.1, -10), Enum.EasingDirection.Out, Enum.EasingStyle.Back, 1)
  681.  
  682. debris:AddItem(sparkles, specialDuration.Value)
  683. debris:AddItem(chargeSound, 3)
  684.  
  685. wait(3)
  686. TextEffects(textLabel, 200, Enum.EasingDirection.InOut, Enum.EasingStyle.Quint, 1)
  687. end)
  688.  
  689. for i = specialDuration.Value, 0, -1 do
  690. wait(1)
  691. print("Special activated: "..i)
  692. end
  693.  
  694. accuracy.Value, fireRate.Value = accuracy.Value * 2, fireRate.Value * 2
  695. minDamage.Value, maxDamage.Value = minDamage.Value * 2, maxDamage.Value * 2
  696. activateSpecial:FireClient(player)
  697. end)
  698. end))
  699. Configuration21.Name = "Configurations"
  700. Configuration21.Parent = Tool16
  701. NumberValue22.Name = "FireRate"
  702. NumberValue22.Parent = Configuration21
  703. NumberValue22.Value = 0.175
  704. NumberValue23.Name = "MinDamage"
  705. NumberValue23.Parent = Configuration21
  706. NumberValue23.Value = 14
  707. NumberValue24.Name = "MaxDamage"
  708. NumberValue24.Parent = Configuration21
  709. NumberValue24.Value = 17
  710. NumberValue25.Name = "Velocity"
  711. NumberValue25.Parent = Configuration21
  712. NumberValue25.Value = 625
  713. NumberValue26.Name = "Accuracy"
  714. NumberValue26.Parent = Configuration21
  715. NumberValue26.Value = 9
  716. NumberValue27.Name = "SpecialDuration"
  717. NumberValue27.Parent = Configuration21
  718. NumberValue27.Value = 15
  719. NumberValue28.Name = "SpecialRechargeTime"
  720. NumberValue28.Parent = Configuration21
  721. NumberValue28.Value = 60
  722. MeshPart29.Name = "Handle"
  723. MeshPart29.Parent = Tool16
  724. MeshPart29.CFrame = CFrame.new(2.36680508, 0.805296123, -16.4796658, -3.7252903e-08, -2.25397741e-07, 1, -3.25429551e-06, 0.99999994, 2.25339136e-07, -1, -3.25482756e-06, -3.7252903e-08)
  725. MeshPart29.Orientation = Vector3.new(0, 90, 0)
  726. MeshPart29.Position = Vector3.new(2.36680508, 0.805296123, -16.4796658)
  727. MeshPart29.Rotation = Vector3.new(0, 90, 0)
  728. MeshPart29.Size = Vector3.new(2.26067781, 1.53063464, 0.306364536)
  729. MeshPart29.CanCollide = false
  730. MeshPart29.Material = Enum.Material.Metal
  731. MeshPart29.TextureID = "rbxassetid://623102879"
  732. Sound30.Name = "Fire"
  733. Sound30.Parent = MeshPart29
  734. Sound30.MaxDistance = 20000
  735. Sound30.SoundId = "rbxassetid://618667795"
  736. Sound30.Volume = 3
  737. Sound31.Name = "Hitmark"
  738. Sound31.Parent = MeshPart29
  739. Sound31.Pitch = 0.60000002384186
  740. Sound31.PlaybackSpeed = 0.60000002384186
  741. Sound31.SoundId = "rbxassetid://618667795"
  742. Sound31.Volume = 10
  743. Decal32.Parent = MeshPart29
  744. Decal32.Texture = "http://www.roblox.com/asset/?id=396766472"
  745. Decal32.Face = Enum.NormalId.Back
  746. Decal33.Parent = MeshPart29
  747. Decal33.Texture = "http://www.roblox.com/asset/?id=396766472"
  748. Part34.Name = "Muzzle"
  749. Part34.Parent = Tool16
  750. Part34.CFrame = CFrame.new(-6.05337858, 1.32602787, -12.5993204, 0.0692615658, 3.11348858e-09, 0.997598529, -0.0177569855, 0.999841571, 0.00123284035, -0.997440577, -0.0177996811, 0.0692505985)
  751. Part34.Orientation = Vector3.new(-0.0700000003, 86.0299988, -1.01999998)
  752. Part34.Position = Vector3.new(-6.05337858, 1.32602787, -12.5993204)
  753. Part34.Rotation = Vector3.new(-1.01999998, 86.0299988, 0)
  754. Part34.Transparency = 1
  755. Part34.Size = Vector3.new(0.100000001, 0.100000001, 0.100000001)
  756. Part34.BottomSurface = Enum.SurfaceType.Smooth
  757. Part34.CanCollide = false
  758. Part34.TopSurface = Enum.SurfaceType.Smooth
  759. BillboardGui35.Name = "MuzzleFlash"
  760. BillboardGui35.Parent = Part34
  761. BillboardGui35.Size = UDim2.new(0, 150, 0, 150)
  762. BillboardGui35.Active = true
  763. BillboardGui35.Adornee = Part34
  764. BillboardGui35.MaxDistance = 150
  765. ImageLabel36.Name = "MuzzleEffect"
  766. ImageLabel36.Parent = BillboardGui35
  767. ImageLabel36.Visible = false
  768. ImageLabel36.Size = UDim2.new(1, 0, 1, 0)
  769. ImageLabel36.BackgroundColor = BrickColor.new("Institutional white")
  770. ImageLabel36.BackgroundColor3 = Color3.new(1, 1, 1)
  771. ImageLabel36.BackgroundTransparency = 1
  772. ImageLabel36.Image = "rbxassetid://192664810"
  773. CFrameValue37.Name = "qRelativeCFrameWeldValue"
  774. CFrameValue37.Parent = Part34
  775. CFrameValue37.Value = CFrame.new(-1.15686202, -0.59147644, -0.005217731, 1.00000012, -2.42143869e-08, -6.51925802e-09, -2.42143869e-08, 1, 4.80213203e-09, -6.51925802e-09, 4.80213203e-09, 1)
  776. Decal38.Parent = Part34
  777. Decal38.Texture = "http://www.roblox.com/asset/?id=986590742"
  778. Decal38.Face = Enum.NormalId.Right
  779. RemoteEvent39.Name = "ActivateSpecial"
  780. RemoteEvent39.Parent = Tool16
  781. for i,v in pairs(mas:GetChildren()) do
  782. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  783. pcall(function() v:MakeJoints() end)
  784. end
  785. mas:Destroy()
  786. for i,v in pairs(cors) do
  787. spawn(function()
  788. pcall(v)
  789. end)
  790. end
  791.  
  792. local Anim = Instance.new("Animation")
  793. Anim.AnimationId = "rbxassetid://27432691"
  794. local k = game:GetService("Players").LocalPlayer.Character.Humanoid:LoadAnimation(Anim)
  795. k:Play()
  796. k:AdjustSpeed(1)
  797. wait(1.46)
  798. k:AdjustSpeed(0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement