JoshXploits

Hidden devs script show

Feb 4th, 2022
1,740
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 11.35 KB | None | 0 0
  1. **REWAD HERE**
  2. I will post some components of the game (the game link is in the application)
  3.  
  4.  
  5. **BARRAGE EFFECT** (mutiple hands = barrage)
  6. **ON CLIENT**
  7. local function QuadraticBezier(Time,Point0,Point1,Point2)
  8.     return (1-Time)^2*Point0+2*(1-Time)*Time*Point1+Time^2*Point2;
  9. end
  10.  
  11. --//ADVXNTJOSH
  12. local Place = game.Lighting.Arms
  13. function BarrageEffect(chr)
  14.  
  15.     spawn(function()
  16.         local LeftRight = ""
  17.         local Random = math.random(1,2)
  18.         if Random == 1 then
  19.             LeftRight = "Left"
  20.         elseif Random == 2 then
  21.             LeftRight = "Right"
  22.         end
  23.  
  24.         local endd = Instance.new("Attachment", chr.HumanoidRootPart)
  25.         endd.Position = Vector3.new(0, 0, -9.388)
  26.         local CFRTARG = chr.HumanoidRootPart.CFrame * CFrame.new(0, 0, -9.388)
  27.         endd.WorldPosition = CFRTARG.Position
  28.         --endd.Visible = true
  29.         if LeftRight == "Left" then
  30.             local Arm = Place["Star Platinum"].L:Clone()
  31.             Arm.CFrame = chr.HumanoidRootPart.CFrame*CFrame.new(-1,0,-0.5)*CFrame.Angles(90,0,0)
  32.             Arm.Parent = workspace.Effects
  33.  
  34.             Arm.CanCollide = false
  35.             Arm.Anchored = true
  36.             game.Debris:AddItem(Arm,0.5)
  37.             local Sound = Instance.new("Sound", chr.HumanoidRootPart)
  38.             Sound.SoundId = "rbxassetid://4571259077"
  39.             Sound.Volume = 4
  40.             Sound.PlaybackSpeed = 1
  41.             Sound:Play()
  42.             game.Debris:AddItem(Sound,1)
  43.             local p0 = chr.HumanoidRootPart.Position + Vector3.new(math.random(-1,1),math.random(-2,2),math.random(-1,1))
  44.             local target = Instance.new("Attachment", chr.HumanoidRootPart)
  45.             local CFRTARG = chr.HumanoidRootPart.CFrame * CFrame.new(-6.056, 0, -3.063)
  46.             target.WorldPosition = CFRTARG.Position
  47.             --target.Visible = true
  48.             local p1 = target.WorldPosition + Vector3.new(0,math.random(-2,2),0)
  49.             local p2 = endd.WorldPosition + Vector3.new(-1.5,math.random(-1.5,1.5),math.random(-1,1))
  50.             spawn(function()
  51.                 for i = 1, 5 do
  52.                     if Arm then
  53.                         local t = i/5
  54.                         local Pos = QuadraticBezier(t, p0, p1, p2)
  55.                         local Direction = QuadraticBezier(t + 0.1, p0, p1, p2)
  56.                         --part.CFrame = CFrame.new(Pos, Direction)
  57.                         game.TweenService:Create(Arm,TweenInfo.new(0.1,Enum.EasingStyle.Linear,Enum.EasingDirection.In),{CFrame = CFrame.new(Pos, Direction) * CFrame.Angles(math.rad(90),0,0)}):Play()
  58.  
  59.                     end
  60.                     wait(0.1)
  61.                 end
  62.             end)
  63.             task.delay(.01,function()
  64.                 for i ,  v  in pairs(Arm:GetDescendants()) do
  65.                     if v:IsA("Texture") or v:IsA("BasePart") or v:IsA("Decal") and v ~= Arm then
  66.                         v.Transparency = 0
  67.                         game.TweenService:Create(v,TweenInfo.new(1),{Transparency = 1}):Play()
  68.                     end
  69.                     if v:IsA("ParticleEmitter") then
  70.                         spawn(function()
  71.                             wait(0.05)
  72.                             v:destroy()
  73.                         end)
  74.                     end
  75.                     if v:IsA("Motor6D") then
  76.                         v:Destroy()
  77.                     end
  78.                 end
  79.             end)
  80.  
  81.         elseif LeftRight == "Right" then
  82.             local Arm = Place["Star Platinum"].R:Clone()
  83.             Arm.CFrame = chr.HumanoidRootPart.CFrame*CFrame.new(1,0,-0.5)*CFrame.Angles(90,0,0)
  84.             Arm.Parent = workspace.Effects
  85.             --  Arm.CFrame = chr.HumanoidRootPart.CFrame*CFrame.new(1,0,-0.5)*CFrame.Angles(90,0,0)
  86.             Arm.CanCollide = false
  87.             Arm.Anchored = true
  88.             game.Debris:AddItem(Arm,0.5)
  89.             local Sound = Instance.new("Sound", chr.HumanoidRootPart)
  90.             Sound.SoundId = "rbxassetid://4571259077"
  91.             Sound.Volume = 4
  92.             Sound.PlaybackSpeed = 1
  93.             Sound:Play()
  94.             game.Debris:AddItem(Sound,1)
  95.             local p0 = chr.HumanoidRootPart.CFrame.p + Vector3.new(math.random(-1,1),math.random(-2,2),math.random(-1,1))
  96.             local target = Instance.new("Attachment", chr.HumanoidRootPart)
  97.             target.Position = Vector3.new(6.538, 0, -3.063)
  98.             local CFRTARG = chr.HumanoidRootPart.CFrame * CFrame.new(6.538, 0, -3.063)
  99.             target.WorldPosition = CFRTARG.Position
  100.             --target.WorldPosition = Vector3.new(49.654, 121.054, 127.319)
  101.             --target.Visible = true
  102.             local p1 = target.WorldPosition + Vector3.new(0,math.random(-1,1),0)
  103.             local p2 = endd.WorldPosition + Vector3.new(1.5,math.random(-1.5,1.5),math.random(-1,1))
  104.             task.delay(.01,function()
  105.                 for i ,  v  in pairs(Arm:GetDescendants()) do
  106.                     if v:IsA("Texture") or v:IsA("BasePart") or v:IsA("Decal") and v ~= Arm then
  107.                         v.Transparency = 0
  108.                         game.TweenService:Create(v,TweenInfo.new(1),{Transparency = 1}):Play()
  109.                     end
  110.                     if v:IsA("ParticleEmitter") then
  111.                         spawn(function()
  112.                             wait(0.05)
  113.                             v:destroy()
  114.                         end)
  115.                     end
  116.                 end
  117.             end)
  118.  
  119.             spawn(function()
  120.                 for i = 1, 5 do
  121.                     if Arm then
  122.                         local t = i/5
  123.                         local Pos = QuadraticBezier(t, p0, p1, p2)
  124.                         local Direction = QuadraticBezier(t + 0.1, p0, p1, p2)
  125.                         --part.CFrame = CFrame.new(Pos, Direction)
  126.                         game.TweenService:Create(Arm,TweenInfo.new(0.1,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut),{CFrame = CFrame.new(Pos, Direction) * CFrame.Angles(math.rad(90),0,0)}):Play()
  127.  
  128.                     end
  129.                     wait(0.1)
  130.                 end
  131.             end)
  132.         end
  133.     end)
  134. end
  135.  
  136. function noise(chr)
  137.  
  138.     local Sound = Instance.new("Sound", chr.HumanoidRootPart)
  139.     Sound.SoundId = "rbxassetid://4571259077"
  140.     Sound.Volume = 4
  141.     Sound.PlaybackSpeed = 1
  142.     Sound:Play()
  143.     game.Debris:AddItem(Sound,1)
  144. end
  145. game.ReplicatedStorage.ClientBarrage.OnClientEvent:Connect(function(chr)
  146.     if true == true then
  147.         wait(0.2)
  148.     BarrageEffect(chr)
  149.     BarrageEffect(chr)
  150.     BarrageEffect(chr)
  151.     BarrageEffect(chr)
  152.         end
  153.    
  154.     noise(chr)
  155. end)
  156.  
  157. --Client effects handler
  158. **A LOCAL SCRIPT THAT HANDLES GAME EFFECTS**
  159.  
  160. local l
  161. repeat wait() until game.Players.LocalPlayer.Character
  162. local plr = game.Players.LocalPlayer
  163. local plrgui = plr.PlayerGui
  164. local chr = plr.Character
  165. local hum = chr:WaitForChild("Humanoid")
  166. local hrp = chr.HumanoidRootPart
  167. local limbs = {}
  168. game.ReplicatedStorage:WaitForChild("Main"):WaitForChild("GameStuff"):WaitForChild("Stance"):FireServer()
  169. local StandRemote = game:GetService("ReplicatedStorage")["Main"]["GameStuff"]["Stand"]
  170. local EffectsEvent = game:GetService("ReplicatedStorage")["Main"]:WaitForChild("effects"):WaitForChild("EffectsEvent")
  171.  
  172.  
  173.     StandRemote:FireServer()
  174.  
  175.     game.ReplicatedStorage.Main.GameStuff.Stand.OnClientEvent:Connect(function()
  176.         StandRemote:FireServer()
  177.     end)
  178.  
  179.     for i, v in pairs(chr:GetChildren()) do
  180.         table.insert(limbs, v)
  181.     end
  182.  
  183.     --// EFFECTS
  184.     local BasicEffects = game.ReplicatedStorage.Main.effects.BasicEffects
  185.     local effects = {
  186.         "NormalHitEffect"
  187.     }
  188.  
  189.     function emit(part,where,howlong)
  190.         local Attachment = part.Attachment:Clone()
  191.         game.Debris:AddItem (Attachment,howlong + .4)
  192.         Attachment.Parent = where
  193.         spawn(function()
  194.             for i,v in pairs(Attachment:GetChildren()) do
  195.                 v.Enabled = true
  196.                 wait(howlong)
  197.                 v.Enabled = false
  198.                 end
  199.             end)
  200.  
  201.     end
  202.     function emit2(part,where,emission)
  203.         local Attachment = part.Attachment:Clone()
  204.         game.Debris:AddItem (Attachment,emission*2)
  205.         local Particlemit = Attachment.particle
  206.         Attachment.Parent = where
  207.         Attachment.Position = Vector3.new(math.random(-2,2),math.random(-2,2),math.random(-2,2))
  208.         Particlemit.Enabled = true
  209.         Particlemit.Rate = 0
  210.         Particlemit:Emit(emission)
  211.     end
  212.     effects["NormalHitEffect"] = function(torso,howlong)
  213.         task.spawn(function()
  214.             local effect = BasicEffects.NormalHitEffect
  215.             emit(effect,torso,howlong)
  216.             end)
  217.     end
  218.     effects["Block"] = function(torso,howlong)
  219.         task.spawn(function()
  220.             local effect = BasicEffects.Block
  221.             emit2(effect,torso,howlong)
  222.         end)
  223.     end
  224.     effects["PartEmitChr"] = function(chr,color)
  225.         task.spawn(function()
  226.             local effect = BasicEffects.PartEmitChr
  227.  
  228.             local tweenservice = game:GetService("TweenService")
  229.             local limbs = {
  230.                 ["RightArm"]  = chr["Right Arm"];
  231.                 ["LeftArm"]  = chr["Left Arm"];
  232.                 ["RightLeg"]  = chr["Right Leg"];
  233.                 ["LeftLeg"]  = chr["Left Leg"];
  234.                 ["Torso"] = chr["Torso"];
  235.                 ["Head"] = chr["Head"];
  236.  
  237.             }
  238.  
  239.             coroutine.resume(coroutine.create(function()
  240.                 for i,v in pairs(limbs) do
  241.                     local EmitPart = effect:Clone()
  242.                     EmitPart.Parent = v
  243.                     EmitPart.Material = Enum.Material.Plastic
  244.                     EmitPart.CanCollide = false
  245.                     EmitPart.Anchored = false
  246.                     EmitPart.Size = v.Size - Vector3.new(0.5,0.5,0.5)
  247.                     EmitPart.Position = v.Position
  248.                     local weld = Instance.new("Weld",EmitPart)
  249.                     weld.Part0 = EmitPart
  250.                     weld.Part1 = v
  251.                     tweenservice:Create(EmitPart,TweenInfo.new(.6),{Size = EmitPart.Size + Vector3.new(1.5,1.5,1.5)}):Play()
  252.                     tweenservice:Create(EmitPart,TweenInfo.new(.6),{Transparency = 1}):Play()
  253.                     game.Debris:addItem(EmitPart,4)
  254.                    
  255.                 end
  256.             end))
  257.         end)
  258.     end
  259.  
  260.     EffectsEvent.OnClientEvent:Connect(function(torso,EffectName,howlong)
  261.         effects[EffectName](torso,howlong)
  262.  
  263.     end)
  264.  
  265. **COMBO GUI COUNT UP**
  266. **THIS COUNTS UP HOW MUCH THE PLAYER IS HITTING ANOTHER HUMANOID (THERES A WHOLE DAMAGE MODULE BUT THAT ONE IS MORE SIMPLER)
  267.  
  268. local timetoreset=1
  269. game.ReplicatedStorage.ComboGUIReciever.OnClientEvent:Connect(function(damagedealt)
  270.     local gui=game.Players.LocalPlayer.PlayerGui.ComboGUI.Holder
  271.     local guie = game.Players.LocalPlayer.PlayerGui.ComboGUI
  272.     local damagevalue=gui.Damage
  273.     local hitsvalue=gui.Hits
  274.     local damagetext=gui.ActualDamage
  275.     local hitstext=gui.HitsText
  276.     if guie.Enabled == false then
  277.         guie.Enabled=true
  278.         task.spawn(function()
  279.             for i,v in pairs(gui:GetChildren()) do
  280.                 if v:IsA("Frame") then
  281.                     v.BackgroundTransparency = 1
  282.                     game.TweenService:Create(v,TweenInfo.new(1),{BackgroundTransparency  = 0}):play()
  283.                 end
  284.                
  285.                 if v:IsA("TextLabel") then
  286.                     v.TextTransparency = 1
  287.                     game.TweenService:Create(v,TweenInfo.new(1),{TextTransparency  = 0}):play()
  288.                 end
  289.             end
  290.            
  291.         end)
  292.        
  293.  
  294.         end
  295.  
  296.     damagevalue.Value+=damagedealt
  297.     hitsvalue.Value+=1
  298.     damagetext.Text=damagevalue.Value
  299.     hitstext.Text=hitsvalue.Value
  300.     task.spawn(function()
  301.         local gui2 = gui:Clone()
  302.         gui2.Visible = true
  303.         gui2.Parent = game.Players.LocalPlayer.PlayerGui.ComboGUI
  304.         local rad = (math.random(1, 1))
  305.         game.TweenService:Create(gui2,TweenInfo.new(0.2,Enum.EasingStyle.Quad, Enum.EasingDirection.InOut),{Size = gui2.Size + UDim2.new(rad / 10, 0,rad / 10,0) }):play()
  306.         task.spawn(function()
  307.             game.TweenService:Create(gui2,TweenInfo.new(0.1,Enum.EasingStyle.Quad, Enum.EasingDirection.InOut),{Rotation = 10}):play()
  308.             wait(0.02)
  309.             game.TweenService:Create(gui2,TweenInfo.new(0.1,Enum.EasingStyle.Quad, Enum.EasingDirection.InOut),{Rotation = 0}):play()
  310.  
  311.         end)
  312.        
  313.             for i,v in pairs(gui2:GetChildren()) do
  314.                 if v:IsA("Frame") then
  315.                     game.TweenService:Create(v,TweenInfo.new(0.1),{BackgroundTransparency  = 1}):play()
  316.                 end
  317.  
  318.                 if v:IsA("TextLabel") then
  319.                     game.TweenService:Create(v,TweenInfo.new(0.1),{TextTransparency  = 1}):play()
  320.                 end
  321.             end
  322.  
  323.    
  324.        
  325.     end)
  326.    
  327.    
  328.     local spy=hitsvalue.Value
  329.     task.spawn(function()
  330.         game.TweenService:Create(gui,TweenInfo.new(0.1,Enum.EasingStyle.Quad, Enum.EasingDirection.InOut),{Rotation = 10}):play()
  331.         wait(0.02)
  332.         game.TweenService:Create(gui,TweenInfo.new(0.1,Enum.EasingStyle.Quad, Enum.EasingDirection.InOut),{Rotation = 0}):play()
  333.  
  334.     end)
  335.    
  336.     task.spawn(function()
  337.        
  338.     end)
  339.     task.wait(timetoreset)
  340.     if hitsvalue.Value==spy then
  341.  
  342.        
  343.         task.spawn(function()
  344.             for i,v in pairs(gui:GetChildren()) do
  345.                 if v:IsA("Frame") then
  346.                     v.BackgroundTransparency = 0
  347.                     game.TweenService:Create(v,TweenInfo.new(1),{BackgroundTransparency  = 1}):play()
  348.                 end
  349.  
  350.                 if v:IsA("TextLabel") then
  351.                     v.TextTransparency = 0
  352.                     game.TweenService:Create(v,TweenInfo.new(1),{TextTransparency  = 1}):play()
  353.                 end
  354.             end
  355.  
  356.         end)
  357.         wait(0.5)
  358.         guie.Enabled=false
  359.         damagevalue.Value=0
  360.         hitsvalue.Value=0
  361.     end
  362.  
  363. end)
Advertisement
Add Comment
Please, Sign In to add comment