--[[UIS.InputBegan:Connect(function(key, gameprocessed)
	if key.KeyCode == Enum.KeyCode.E and debounce and player.Character then
		player.Character.HumanoidRootPart.Anchored = true
		
		local goal = {}
		
		goal.CFrame = player.Character.HumanoidRootPart.CFrame * CFrame.new(0, 5, 0)
		
		local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut)
		
		local tween = tweenService:Create(player.Character.HumanoidRootPart, tweenInfo, goal)
		
		tween:Play()
		
		local clone = game.ReplicatedStorage.Show:Clone()
		
		clone.Parent = workspace.Beams
		
		clone.Position = player.Character.HumanoidRootPart.Position
		
		local weld = Instance.new("WeldConstraint", clone)
		
		clone.CanCollide = false
		
		weld.Part0 = clone
		
		weld.Part1 = player.Character.HumanoidRootPart
		
		local goal3 = {}
		
		goal3.Transparency = 0
		
		local tweenInfo3 = TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut)
		
		local tween3 = tweenService:Create(clone, tweenInfo3, goal3)
		
		tween3:Play()
		
		wait(1.1)
		
		local mag = (player.Character.HumanoidRootPart.Position - mouse.Hit.Position).Magnitude
		
		goal3 = {}
		
		goal3.Transparency = 1
		
		tweenInfo3 = TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut)
		
		tween3 = tweenService:Create(clone, tweenInfo3, goal3)
		
		spawn(function()
			wait(1.5)
			
			tween3:Play()
			
			repeat wait() until clone.Transparency == 1
			
			clone:Destroy()
		end)
		
		if mag <= 200 then
			local beam = Instance.new("Part")
			
			beam.Shape = Enum.PartType.Cylinder
			
			mouse.TargetFilter = workspace.Beams
			
			local ball = Instance.new("Part", workspace.Beams)
			
			ball.Shape = Enum.PartType.Ball
			
			ball.Color = Color3.new(176, 176, 56)
			
			ball.Size = Vector3.new(0.2, 0.2, 0.2)
			
			ball.Position = player.Character.RightHand.Position
			
			ball.Anchored = true
			
			ball.Material = Enum.Material.Neon
			
			local goal2 = {}
			
			goal2.Size = Vector3.new(1, 1, 1)
			
			local tweenInfo2 = TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut)
			
			local tween2 = tweenService:Create(ball, tweenInfo2, goal2)
			
			tween2:Play()
			
			wait(1.5)
			
			goal2.Size = Vector3.new(10, 10, 10)
			
			tweenInfo2 = TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut)
			
			tween2 = tweenService:Create(ball, tweenInfo2, goal2)
			
			tween2:Play()
			
			goal2.Transparency = 1
			
			tweenInfo2 = TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut)
			
			tween2 = tweenService:Create(ball, tweenInfo2, goal2)
			
			tween2:Play()
			
			local event
			
			beam.CFrame = (CFrame.new(player.Character.RightHand.Position, mouse.Hit.Position) * CFrame.new(0, 0, mag / 2):Inverse()) * CFrame.Angles(0, math.rad(90), 0)
			
			event = runService.Stepped:Connect(function(plays)
				mag = (player.Character.HumanoidRootPart.Position - mouse.Hit.Position).Magnitude
				
				--print(mag)
				
				local lastPos = beam.Position
				
				beam.CFrame = (CFrame.new(player.Character.RightHand.Position, mouse.Hit.Position) * CFrame.new(0, 0, mag / 2):Inverse()) * CFrame.Angles(0, math.rad(90), 0)
				
				beam.Material = Enum.Material.Neon
				
				beam.Color = Color3.new(176, 176, 56)
				
				beam.Size = Vector3.new(mag, 1, 1)
			end)
			
			beam.Anchored = true
			
			beam.Parent = workspace.Beams
			
			repeat wait() until ball.Transparency == 1 and ball.Size == Vector3.new(10, 10, 10)
			
			ball:Destroy()
			
			ball = nil
		end
	end
end)]]
--
