ceater_nerd

bad starter script/ simple danmaku script

Jun 20th, 2020 (edited)
361
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 19.89 KB | None | 0 0
  1. --[[ script made by Louis_Ceater67 --
  2.  
  3. @ceat_ceat2
  4.  
  5. just a little thing i made, have fun
  6.  
  7. hold down left click to shoot
  8. press 1 to get normal projectiles
  9. press 2 to get explosive projectiles
  10. press e to switch between concentrated fire and spread fire
  11. press r while in spread fire mode to do some nice rings
  12.  
  13. type id/youraudioid in chat to change bgm
  14.  
  15. ]]
  16.  
  17. warn([[script made by Louis_Ceater67!!!!
  18. @ceat_ceat
  19.  
  20. simple danmaku v0.6
  21.  
  22.  
  23. hold down left click to shoot
  24. press 1 to get normal projectiles
  25. press 2 to get explosive projectiles
  26. press e to switch between concentrated fire and spread fire
  27. press r while in spread fire mode to do some nice rings
  28.  
  29. type id/youraudioid in chat to change bgm
  30.  
  31. some of the sounds are really inconsistent and only sometimes work if you spam an input
  32. ]])
  33.  
  34. local plr = game.Players.LocalPlayer
  35. local chr = plr.Character
  36. local uis = game:GetService("UserInputService")
  37. local mous = plr:GetMouse()
  38. local ts = game:GetService("TweenService")
  39.  
  40. firing = false
  41. explosive = false
  42. pewpewpew = false
  43. rdebounce = false
  44.  
  45. -- setup --
  46.  
  47. chr.Humanoid.WalkSpeed = 30
  48. chr.Humanoid.MaxHealth = math.huge
  49. chr.Humanoid.Health = math.huge
  50. local ff = Instance.new("ForceField", chr)
  51. ff.Visible = false
  52.  
  53. local spinne = Instance.new("Model", chr)
  54. local part = Instance.new("Part", spinne)
  55. part.Transparency = 1
  56. part.CanCollide = false
  57. part.Massless = true
  58. local weld = Instance.new("Weld", part)
  59. weld.Part0 = part
  60. weld.Part1 = chr.HumanoidRootPart
  61. local partattach = Instance.new("Attachment", part)
  62. partattach.WorldOrientation = Vector3.new(0,0,90)
  63. local p1 = Instance.new("Part", spinne)
  64. p1.Name = "p1"
  65. p1.Massless = true
  66. p1.Material = Enum.Material.Neon
  67. p1.Size = Vector3.new(3,3,3)
  68. p1.Shape = Enum.PartType.Ball
  69. p1.CanCollide = false
  70. local plattach1 = Instance.new("Attachment", p1)
  71. plattach1.WorldOrientation = Vector3.new(0,0,90)
  72. local p2 = Instance.new("Part", spinne)
  73. p2.Name = "p2"
  74. p2.Massless = true
  75. p2.Material = Enum.Material.Neon
  76. p2.Size = Vector3.new(3,3,3)
  77. p2.Shape = Enum.PartType.Ball
  78. p2.CanCollide = false
  79. local plattach2 = Instance.new("Attachment", p2)
  80. plattach2.WorldOrientation = Vector3.new(0,0,90)
  81.  
  82. local effectmodel = Instance.new("Model", chr)
  83. effectmodel.Name = "effects"
  84.  
  85. p1.CFrame = part.CFrame * CFrame.new(-10,0,0)
  86. p2.CFrame = part.CFrame * CFrame.new(10,0,0)
  87.  
  88. plattach1.WorldPosition = partattach.WorldPosition
  89. plattach2.WorldPosition = partattach.WorldPosition
  90.  
  91. function attach(thing)
  92.     local cy1 = Instance.new("CylindricalConstraint", part)
  93.     cy1.Attachment0 = partattach
  94.     cy1.Attachment1 = thing.Attachment
  95.     cy1.AngularActuatorType = Enum.ActuatorType.Motor
  96.     cy1.MotorMaxTorque = math.huge
  97.     cy1.AngularVelocity = -2.5
  98.     cy1.LimitsEnabled = true
  99.     cy1.UpperLimit = 0.05
  100.     local p1attach2 = Instance.new("Attachment", thing)
  101.     p1attach2.Position = Vector3.new(-1.5, 0, 0)
  102.     local p1attach3 = Instance.new("Attachment", thing)
  103.     p1attach3.Position = Vector3.new(1.5, 0, 0)
  104.     local trail1 = Instance.new("Trail", thing)
  105.     trail1.Attachment0 = p1attach2
  106.     trail1.Attachment1 = p1attach3
  107.     trail1.LightEmission = 1
  108.     trail1.Transparency = NumberSequence.new{NumberSequenceKeypoint.new(0,0), NumberSequenceKeypoint.new(1,1)}
  109.     trail1.FaceCamera = true
  110. end
  111. attach(p1)
  112. attach(p2)
  113. part.CustomPhysicalProperties = PhysicalProperties.new(0.01,0,0,0,0)
  114. p1.CustomPhysicalProperties = PhysicalProperties.new(0.01,0,0,0,0)
  115. p2.CustomPhysicalProperties = PhysicalProperties.new(0.01,0,0,0,0)
  116.  
  117. local bgm = Instance.new("Sound", chr.Humanoid)
  118. bgm.Name = "bgm"
  119. bgm.Looped = true
  120. bgm.SoundId = "rbxassetid://316040492"
  121. bgm:Play()
  122.  
  123. function weld(part0, part1, c0)
  124.     local weld = Instance.new("Weld", part0)
  125.     weld.Part0 = part0
  126.     weld.Part1 = part1
  127.     weld.C0 = c0
  128. end
  129.  
  130. local billboard = Instance.new("BillboardGui", chr.Head)
  131. billboard.Size = UDim2.new(50, 0,1, 0)
  132. billboard.StudsOffsetWorldSpace = Vector3.new(0, 3, 0)
  133. billboard.Name = "Custom Chat Thing"
  134. local chattext = Instance.new("TextLabel", billboard)
  135. chattext.Size = UDim2.new(1, 0,1, 0)
  136. chattext.BackgroundTransparency = 1
  137. chattext.Text = ""
  138. chattext.TextColor3 = Color3.fromRGB(255,255,255)
  139. chattext.TextStrokeTransparency = 0
  140. chattext.Font = Enum.Font.SourceSansSemibold
  141. chattext.TextScaled = true
  142.  
  143. local explosiveparticles = Instance.new("ParticleEmitter", p1)
  144. explosiveparticles.Color = ColorSequence.new{ColorSequenceKeypoint.new(0, Color3.fromRGB(255,0,0)),ColorSequenceKeypoint.new(1, Color3.fromRGB(255,255,0))}
  145. explosiveparticles.Texture = "rbxassetid://1541834978"
  146. explosiveparticles.Lifetime = NumberRange.new(1,5)
  147. explosiveparticles.RotSpeed = NumberRange.new(-180, 180)
  148. explosiveparticles.Size = NumberSequence.new{NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(0.1,2.5),NumberSequenceKeypoint.new(1,0)}
  149. explosiveparticles.LightEmission = 1
  150. explosiveparticles.Rate = 30
  151. explosiveparticles.Transparency = NumberSequence.new{NumberSequenceKeypoint.new(0,0.5),NumberSequenceKeypoint.new(1,1)}
  152. explosiveparticles.Acceleration = Vector3.new(0,10,0)
  153. explosiveparticles.Enabled = false
  154. local explosiveparticles2 = explosiveparticles:Clone()
  155. explosiveparticles2.Parent = p2
  156.  
  157.  
  158. local gui = Instance.new("ScreenGui", plr.PlayerGui)
  159. local frame1 = Instance.new("Frame", gui)
  160. frame1.AnchorPoint = Vector2.new(0,0.5)
  161. frame1.Position = UDim2.new(0, 0,0.5, 0)
  162. frame1.BackgroundTransparency = 1
  163.  
  164. local frame2 = Instance.new("Frame", frame1)
  165. frame2.Size = UDim2.new(0, 200,0, 21)
  166. frame2.Position = UDim2.new(0, 0,0.23, 0)
  167. frame2.Style = Enum.FrameStyle.DropShadow
  168. local textlabel = Instance.new("TextLabel", frame2)
  169. textlabel.AnchorPoint = Vector2.new(0,0.5)
  170. textlabel.Position = UDim2.new(0, 0,0.5, 0)
  171. textlabel.Size = UDim2.new(1, 0,3.5, 0)
  172. textlabel.BackgroundTransparency = 1
  173. textlabel.Text = "Switch to Explosive                                   [2]"
  174. textlabel.TextColor3 = Color3.fromRGB(255,255,255)
  175. textlabel.TextScaled = true
  176. textlabel.TextStrokeTransparency = 0
  177. textlabel.Font = Enum.Font.SourceSansSemibold
  178.  
  179. local frame3 = Instance.new("Frame", frame1)
  180. frame3.Size = UDim2.new(0, 200,0, 21)
  181. frame3.Position = UDim2.new(0, 0,0.2, 0)
  182. frame3.AnchorPoint = Vector2.new(0,1)
  183. frame3.Style = Enum.FrameStyle.DropShadow
  184. local textlabel2 = Instance.new("TextLabel", frame3)
  185. textlabel2.AnchorPoint = Vector2.new(0,0.5)
  186. textlabel2.Position = UDim2.new(0, 0,0.5, 0)
  187. textlabel2.Size = UDim2.new(1, 0,3.5, 0)
  188. textlabel2.BackgroundTransparency = 1
  189. textlabel2.Text = "Switch to Spread Fire                              [E]"
  190. textlabel2.TextColor3 = Color3.fromRGB(255,255,255)
  191. textlabel2.TextScaled = true
  192. textlabel2.TextStrokeTransparency = 0
  193. textlabel2.Font = Enum.Font.SourceSansSemibold
  194.  
  195. local frame4 = Instance.new("Frame", frame1)
  196. frame4.Size = UDim2.new(0, 200,0, 21)
  197. frame4.Position = UDim2.new(0, 0,0, -21)
  198. frame4.Style = Enum.FrameStyle.DropShadow
  199. frame4.AnchorPoint = Vector2.new(0,1)
  200. local textlabel3 = Instance.new("TextLabel", frame4)
  201. textlabel3.AnchorPoint = Vector2.new(0,0.5)
  202. textlabel3.Position = UDim2.new(0, 0,0.5, 0)
  203. textlabel3.Size = UDim2.new(1, 0,3.5, 0)
  204. textlabel3.BackgroundTransparency = 1
  205. textlabel3.Text = "Enable Spread Fire to Use This"
  206. textlabel3.TextColor3 = Color3.fromRGB(255,255,255)
  207. textlabel3.TextScaled = true
  208. textlabel3.TextStrokeTransparency = 0
  209. textlabel3.Font = Enum.Font.SourceSansSemibold
  210.  
  211. -- functions --
  212.  
  213. function createprojectile(startingpos)
  214.     if pewpewpew ~= true then
  215.         if startingpos ~= chr.HumanoidRootPart then
  216.             local projectile = Instance.new("Part", effectmodel)
  217.             projectile.Name = "projectile"
  218.             projectile.CanCollide = false
  219.             projectile.Material = Enum.Material.Neon
  220.             projectile.Shape = Enum.PartType.Ball
  221.             projectile.Size = Vector3.new(2, 2, 2)
  222.             if explosive == true then
  223.                 projectile.Color = Color3.fromRGB(255, 0, 0)
  224.             end
  225.             projectile.Orientation = chr.HumanoidRootPart.Orientation
  226.             projectile.Position = startingpos.Position
  227.             projectile.CFrame = CFrame.new(projectile.Position, Vector3.new(mous.Hit.X, projectile.Position.Y, mous.Hit.Z))
  228.             local bv = Instance.new("BodyVelocity", projectile)
  229.             bv.Velocity = projectile.CFrame.LookVector * 60
  230.             game.Debris:AddItem(projectile, 10)
  231.             local sound = Instance.new("Sound", startingpos)
  232.             sound.SoundId = "rbxassetid://3727467952"
  233.             sound:Play()
  234.             game.Debris:AddItem(sound, sound.TimeLength)
  235.             projectile.Touched:Connect(function(hit)
  236.                 if hit.Parent ~= spinne and hit.Parent ~= chr and hit.Name ~= "Handle" and hit.Name ~= "projectile" and hit.Name ~= "switchaura" and hit.Transparency < 0.3 then
  237.                     if hit.Parent:FindFirstChild("Humanoid") then
  238.                         if projectile.BrickColor == BrickColor.new("Really red") == true then
  239.                             hit.Parent.Humanoid:TakeDamage(20)
  240.                         else
  241.                             hit.Parent.Humanoid:TakeDamage(10)
  242.                         end
  243.                     end
  244.                     if projectile.BrickColor == BrickColor.new("Really red") == true then
  245.                         local exp = Instance.new("Explosion", workspace)
  246.                         exp.Position = projectile.Position
  247.                         --exp.BlastRadius = 0
  248.                         exp.BlastPressure = 2000
  249.                         local soundpart = Instance.new("Part", workspace)
  250.                         soundpart.Name = plr.Name .. "'s explosionsoundpart"
  251.                         soundpart.Anchored = true
  252.                         soundpart.CanCollide = false
  253.                         soundpart.Transparency = 1
  254.                         local sound = Instance.new("Sound", soundpart)
  255.                         sound.SoundId = "rbxassetid://1060191237"
  256.                         sound.Volume = 4
  257.                         sound:Play()
  258.                         game.Debris:AddItem(soundpart, sound.TimeLength)
  259.                     end
  260.                     projectile:Destroy()
  261.                 end
  262.             end)
  263.         end
  264.     else
  265.         local p
  266.         if startingpos == chr.HumanoidRootPart then
  267.             p = 50
  268.         else
  269.             p = 3
  270.         end
  271.         for i = 1, p do
  272.             local projectile = Instance.new("Part", effectmodel)
  273.             projectile.Name = "projectile"
  274.             projectile.CanCollide = false
  275.             projectile.Material = Enum.Material.Neon
  276.             projectile.Shape = Enum.PartType.Ball
  277.             projectile.Size = Vector3.new(2, 2, 2)
  278.             if explosive == true then
  279.                 projectile.Color = Color3.fromRGB(255, 0, 0)
  280.             end
  281.             projectile.Orientation = chr.HumanoidRootPart.Orientation
  282.             projectile.Position = startingpos.Position
  283.             projectile.CFrame = startingpos.CFrame * CFrame.Angles(0,math.rad(360/p*i),0)
  284.             local bv = Instance.new("BodyVelocity", projectile)
  285.             bv.Velocity = projectile.CFrame.LookVector * 60
  286.             game.Debris:AddItem(projectile, 10)
  287.             local sound = Instance.new("Sound", startingpos)
  288.             sound.SoundId = "rbxassetid://3727467952"
  289.             sound:Play()
  290.             game.Debris:AddItem(sound, sound.TimeLength)
  291.             projectile.Touched:Connect(function(hit)
  292.                 if hit.Parent ~= spinne and hit.Parent ~= chr and hit.Name ~= "Handle" and hit.Name ~= "projectile" and hit.Name ~= "switchaura" and hit.Transparency < 0.3 then
  293.                     if hit.Parent:FindFirstChild("Humanoid") then
  294.                         if projectile.BrickColor == BrickColor.new("Really red") == true then
  295.                             hit.Parent.Humanoid:TakeDamage(20)
  296.                         else
  297.                             hit.Parent.Humanoid:TakeDamage(10)
  298.                         end
  299.                     end
  300.                     if projectile.BrickColor == BrickColor.new("Really red") == true then
  301.                         local exp = Instance.new("Explosion", workspace)
  302.                         exp.Position = projectile.Position
  303.                         --exp.BlastRadius = 0
  304.                         exp.BlastPressure = 2000
  305.                         local soundpart = Instance.new("Part", effectmodel)
  306.                         soundpart.Name = plr.Name .. "'s explosionsoundpart"
  307.                         soundpart.Anchored = true
  308.                         soundpart.CanCollide = false
  309.                         soundpart.Transparency = 1
  310.                         local sound = Instance.new("Sound", soundpart)
  311.                         sound.SoundId = "rbxassetid://1060191237"
  312.                         sound.Volume = 4
  313.                         sound:Play()
  314.                         game.Debris:AddItem(soundpart, sound.TimeLength)
  315.                     end
  316.                     projectile:Destroy()
  317.                 end
  318.             end)
  319.         end
  320.     end
  321. end
  322.  
  323. mous.Button1Down:Connect(function()
  324.     firing = true
  325.     while firing == true do
  326.         wait(0.1)
  327.         createprojectile(p1)
  328.         createprojectile(p2)
  329.     end
  330. end)
  331.  
  332. mous.Button1Up:Connect(function()
  333.     firing = false
  334. end)
  335.  
  336. --[[uis.InputBegan:Connect(function(input, gameProcessed)
  337.     if input.KeyCode == Enum.KeyCode.One and explosive == true and not gameProcessed then
  338.         explosive = false
  339.         textlabel.Text = "Switch to Explosive                                   [2]"
  340.         local sound = Instance.new("Sound", chr.Humanoid)
  341.         sound.SoundId = "rbxassetid://3723411843"
  342.         sound.Volume = 5
  343.         sound:Play()
  344.         game.Debris:AddItem(sound,sound.TimeLength)
  345.         for i = 1,2 do
  346.             local aura = Instance.new("Part", effectmodel)
  347.             aura.Name = "switchaura"
  348.             aura.BrickColor = BrickColor.new("Medium stone grey")
  349.             aura.CanCollide = false
  350.             aura.Anchored = true
  351.             aura.Material = Enum.Material.Neon
  352.             aura.CFrame = chr.HumanoidRootPart.CFrame
  353.             aura.Size = Vector3.new(0,0,0)
  354.             ts:Create(aura, TweenInfo.new(0.3, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out), {Size = Vector3.new(20, 20, 20), Transparency = 1, Orientation = Vector3.new(math.random(0,360),math.random(0,360),math.random(0,360))}):Play()
  355.             game.Debris:AddItem(aura, 0.3)
  356.         end
  357.         for i, v in pairs(spinne:GetChildren()) do
  358.             if string.sub(v.Name, 1, 1) == "p" then
  359.                 v.BrickColor = BrickColor.new("Medium stone grey")
  360.                 v.Trail.Color = ColorSequence.new{ColorSequenceKeypoint.new(0, Color3.fromRGB(255,255,255)), ColorSequenceKeypoint.new(1, Color3.fromRGB(255,255,255))}
  361.             end
  362.         end
  363.     end
  364. end)]]
  365.  
  366. uis.InputBegan:Connect(function(input, gameProcessed)
  367.     if input.KeyCode == Enum.KeyCode.Two and explosive == false and not gameProcessed then
  368.         explosive = true
  369.         textlabel.Text = "Switch to Normal                                           [1]"
  370.         local sound = Instance.new("Sound", chr.Humanoid)
  371.         sound.SoundId = "rbxassetid://3723411843"
  372.         sound.Volume = 5
  373.         sound:Play()
  374.         game.Debris:AddItem(sound,sound.TimeLength)
  375.         explosiveparticles.Enabled = true
  376.         explosiveparticles2.Enabled = true
  377.         for i = 1,2 do
  378.             local aura = Instance.new("Part", effectmodel)
  379.             aura.Name = "switchaura"
  380.             aura.BrickColor = BrickColor.new("Really red")
  381.             aura.CanCollide = false
  382.             aura.Anchored = true
  383.             aura.Material = Enum.Material.Neon
  384.             aura.CFrame = chr.HumanoidRootPart.CFrame
  385.             aura.Size = Vector3.new(0,0,0)
  386.             ts:Create(aura, TweenInfo.new(0.3, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out), {Size = Vector3.new(20, 20, 20), Transparency = 1, Orientation = Vector3.new(math.random(0,360),math.random(0,360),math.random(0,360))}):Play()
  387.             game.Debris:AddItem(aura, 0.3)
  388.         end
  389.         for i, v in pairs(spinne:GetChildren()) do
  390.             if string.sub(v.Name, 1, 1) == "p" then
  391.                 v.BrickColor = BrickColor.new("Really red")
  392.                 v.Trail.Color = ColorSequence.new{ColorSequenceKeypoint.new(0, Color3.fromRGB(255,0,0)), ColorSequenceKeypoint.new(1, Color3.fromRGB(255,0,0))}
  393.             end
  394.         end
  395.     elseif input.KeyCode == Enum.KeyCode.One and explosive == true and not gameProcessed then
  396.         explosive = false
  397.         textlabel.Text = "Switch to Explosive                                   [2]"
  398.         local sound = Instance.new("Sound", chr.Humanoid)
  399.         sound.SoundId = "rbxassetid://3723411843"
  400.         sound.Volume = 5
  401.         sound:Play()
  402.         game.Debris:AddItem(sound,sound.TimeLength)
  403.         explosiveparticles.Enabled = false
  404.         explosiveparticles2.Enabled = false
  405.         for i = 1,2 do
  406.             local aura = Instance.new("Part", effectmodel)
  407.             aura.Name = "switchaura"
  408.             aura.BrickColor = BrickColor.new("Medium stone grey")
  409.             aura.CanCollide = false
  410.             aura.Anchored = true
  411.             aura.Material = Enum.Material.Neon
  412.             aura.CFrame = chr.HumanoidRootPart.CFrame
  413.             aura.Size = Vector3.new(0,0,0)
  414.             ts:Create(aura, TweenInfo.new(0.3, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out), {Size = Vector3.new(20, 20, 20), Transparency = 1, Orientation = Vector3.new(math.random(0,360),math.random(0,360),math.random(0,360))}):Play()
  415.             game.Debris:AddItem(aura, 0.3)
  416.         end
  417.         for i, v in pairs(spinne:GetChildren()) do
  418.             if string.sub(v.Name, 1, 1) == "p" then
  419.                 v.BrickColor = BrickColor.new("Medium stone grey")
  420.                 v.Trail.Color = ColorSequence.new{ColorSequenceKeypoint.new(0, Color3.fromRGB(255,255,255)), ColorSequenceKeypoint.new(1, Color3.fromRGB(255,255,255))}
  421.             end
  422.         end
  423.     end
  424. end)
  425.  
  426. uis.InputBegan:Connect(function(input, gameProcessed)
  427.     if input.KeyCode == Enum.KeyCode.E and not gameProcessed and rdebounce == false then
  428.         if pewpewpew == false then
  429.             pewpewpew = true
  430.             textlabel2.Text = "Switch to Concentrated Fire              [E]"
  431.             if rdebounce == false then
  432.                 textlabel3.Text = "Rings                                            [R]"
  433.             else
  434.                 textlabel3.Text = "Debounce"
  435.             end
  436.             for i = 1,3 do
  437.                 local beam = Instance.new("Part", effectmodel)
  438.                 beam.Name = "switchaura"
  439.                 beam.Size = Vector3.new(2048, 0.5, 0.5)
  440.                 beam.Anchored = true
  441.                 beam.CanCollide = false
  442.                 beam.BrickColor = p1.BrickColor
  443.                 beam.Shape = Enum.PartType.Cylinder
  444.                 beam.Material = Enum.Material.Neon
  445.                 beam.CFrame = chr.HumanoidRootPart.CFrame * CFrame.Angles(0, math.rad(120 * i), 0) * CFrame.new(1024, 0, 0)
  446.                 ts:Create(beam, TweenInfo.new(0.4, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {Size = Vector3.new(2048, 20, 20), Transparency = 1}):Play()
  447.                 game.Debris:AddItem(beam,0.4)
  448.             end
  449.         else
  450.             pewpewpew = false
  451.             textlabel2.Text = "Switch to Spread Fire                              [E]"
  452.             textlabel3.Text = "Enable Spread Fire to Use This"
  453.             local beam = Instance.new("Part", effectmodel)
  454.             beam.Name = "switchaura"
  455.             beam.Size = Vector3.new(2048, 0.5, 0.5)
  456.             beam.Anchored = true
  457.             beam.CanCollide = false
  458.             beam.BrickColor = p1.BrickColor
  459.             beam.Shape = Enum.PartType.Cylinder
  460.             beam.Material = Enum.Material.Neon
  461.             beam.CFrame = chr.HumanoidRootPart.CFrame * CFrame.Angles(0, math.rad(90), 0) * CFrame.new(1024, 0, 0)
  462.             ts:Create(beam, TweenInfo.new(0.4, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {Size = Vector3.new(2048, 20, 20), Transparency = 1}):Play()
  463.             game.Debris:AddItem(beam,0.4)
  464.         end
  465.         local sound = Instance.new("Sound", chr.Humanoid)
  466.         sound.SoundId = "rbxassetid://5077617448"
  467.         sound.Volume = 5
  468.         sound:Play()
  469.         game.Debris:AddItem(sound, sound.TimeLength)
  470.     elseif input.KeyCode == Enum.KeyCode.R and not gameProcessed and rdebounce == false and pewpewpew == true then
  471.         rdebounce = true
  472.         textlabel3.Text = "Debounce"
  473.         local sound = Instance.new("Sound", chr.Humanoid)
  474.         sound.SoundId = "rbxassetid://3723411843"
  475.         sound.Volume = 5
  476.         sound:Play()
  477.         weld(chr["Left Arm"], chr.Torso, CFrame.new(1.5,0,0))
  478.         weld(chr["Right Arm"], chr.Torso, CFrame.new(-1.5,0,0))
  479.         weld(chr["Left Leg"], chr.Torso, CFrame.new(-0.5,2,0))
  480.         weld(chr["Right Leg"], chr.Torso, CFrame.new(0.5,2,0))
  481.         weld(chr.Head, chr.Torso, CFrame.new(0,-1.5,0))
  482.         weld(chr.HumanoidRootPart, chr.Torso, CFrame.new(0,0,0))
  483.         local laweld = chr["Left Arm"].Weld
  484.         local raweld = chr["Right Arm"].Weld
  485.         chr.Humanoid.WalkSpeed = 0
  486.         chr.Humanoid.JumpPower = 0
  487.         ts:Create(laweld, TweenInfo.new(1, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out), {C0 = CFrame.new(0.5,2,0) * CFrame.Angles(0,0,math.rad(90))}):Play()
  488.         ts:Create(raweld, TweenInfo.new(1, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out), {C0 = CFrame.new(-0.5,2,0) * CFrame.Angles(0,0,math.rad(-90))}):Play()
  489.         for i = 1, 31 do
  490.             chattext.Text = string.sub("some normal rings would be cool", 1, i)
  491.             wait(0.04)
  492.         end
  493.         wait(0.75)
  494.         chattext.Text = ""
  495.         for i = 1, 15 do
  496.             wait(0.5)
  497.             createprojectile(chr.HumanoidRootPart)
  498.         end
  499.         wait(1)
  500.         ts:Create(laweld, TweenInfo.new(1, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out), {C0 =CFrame.new(1.5,0,0)}):Play()
  501.         ts:Create(raweld, TweenInfo.new(1, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out), {C0 = CFrame.new(-1.5,0,0)}):Play()
  502.         wait(1)
  503.         chr.Humanoid.WalkSpeed = 30
  504.         chr.Humanoid.JumpPower = 50
  505.         for i, v in pairs(chr:GetChildren()) do
  506.             if v.ClassName == "Part" then
  507.                 if v:FindFirstChild("Weld") then
  508.                     v.Weld:Destroy()
  509.                 end
  510.             end
  511.         end
  512.         rdebounce = false
  513.         textlabel3.Text = "Rings                                            [R]"
  514.     end
  515.    
  516. end)
  517.  
  518. plr.Chatted:Connect(function(msg)
  519.     if string.sub(msg, 1, 3) == "id/" then
  520.         bgm.SoundId = "rbxassetid://" .. string.sub(msg, 4, #msg)
  521.         bgm:Play()
  522.     end
  523.     for i = 1, #msg do
  524.         chattext.Text = string.sub(msg, 1, i)
  525.         wait(0.04)
  526.     end
  527.     wait(2)
  528.     chattext.Text = ""
  529. end)
  530.  
  531. print("script loaded")
Add Comment
Please, Sign In to add comment