local/ game.Players.Discretely.PlayerGui:children{} local PositioningX = 0 local Abilities = {{"Fire",Color3.new(1, 0, 4/255)},{"Water",Color3.new(0,4/255,1)},{"Wind",Color3.new(1,1,1)}} local Gui = Instance.new("ScreenGui",game:GetService("Players").LocalPlayer.PlayerGui) local Frame = Instance.new("Frame",Gui) Frame.BackgroundColor3 = Color3.new(1,1,1) Frame.BackgroundTransparency = 0.7 Frame.BorderSizePixel = 0 Frame.Size = UDim2.new(0.8,0,0.1) Frame.Position = UDim2.new(0.1,0,0.85) for i,o in next,Abilities do local TextButton = Instance.new("TextButton",Frame) TextButton.BackgroundColor3 = Color3.new(0,0,0) TextButton.BackgroundTransparency = 0.6 TextButton.BorderSizePixel = 0 TextButton.Size = UDim2.new(0.1,0,1) TextButton.Font = "ArialBold" TextButton.Text = Abilities[i][1] TextButton.TextScaled = true TextButton.Position = UDim2.new(0+PositioningX) TextButton.TextColor3 = Abilities[i][2] TextButton.TextStrokeColor3 = Color3.new(129/255,129/255,129/255) TextButton.TextStrokeTransparency = 0 TextButton.TextTransparency = 0.2 TextButton.TextWrapped = true PositioningX = PositioningX+0.1 TextButton.MouseButton1Click:connect(function() for i=0,5,1 do local Part = Instance.new("Part",Workspace) Part.Position = Vector3.new(0,5,0) Part.BrickColor = BrickColor.new("Bright red") Part.Reflectance = 0.4 Part.Transparency = 0.5 Part.CanCollide = false Part.Shape = "Ball" --Part.Anchored = true Part.Size = Vector3.new(2,2,2) Part.CFrame = game:GetService("Players").LocalPlayer.Character.Torso.CFrame*CFrame.new(math.random(-7,7),math.random(-5,5),-3) local BodyVelocity = Instance.new("BodyVelocity") BodyVelocity.maxForce = Vector3.new(math.huge,math.huge,math.huge) BodyVelocity.velocity = game:GetService("Players").LocalPlayer.Character.Torso.CFrame.lookVector*200 BodyVelocity.Parent = Part wait(0.1) Part.Touched:connect(function(Hit) local Shooting = false if Hit.Parent.Humanoid then if not Shooting then Shooting = true print(Hit.Parent.Humanoid.Health) Hit.Parent.Humanoid:TakeDamage(10) wait(5) Shooting = false end end end) end end) end