Holding = true
local Inner = game.ServerScriptService.Meshes.Inner:Clone()
local Outer = game.ServerScriptService.Meshes.Outer:Clone()
local Folder = Instance.new("Folder")

script.Parent.RemoteEvent.OnServerEvent:Connect(function(player)
	if Holding == true then
		player.Character.Humanoid.WalkSpeed = 0
		player.Character.Humanoid.JumpPower = 0
		player.Character:WaitForChild("HumanoidRootPart").Anchored = true
		local Hold = player.Character.Humanoid:LoadAnimation(script.Parent.Hold)
		Hold:Play()
		
		Folder.Parent = workspace
		Folder.Name = player.Name.."KameHameha"
		Inner.Parent = Folder
		Inner.CanCollide = false
		Inner.Anchored = false
		Inner.CFrame = CFrame.new(player.Character:WaitForChild("Left Arm").CFrame.X, player.Character:WaitForChild("Left Arm").CFrame.Y - 1, player.Character:WaitForChild("Left Arm").CFrame.Z)
		
		local inWeld = Instance.new("ManualWeld")
		inWeld.Part0 = Inner
		inWeld.Part1 = player.Character:WaitForChild("Left Arm")
		inWeld.C0 = Inner.CFrame:inverse() * player.Character:WaitForChild("Left Arm").CFrame
		inWeld.Parent = Inner
		
		
		
		

		Outer.Parent = Folder
		Outer.CanCollide = false
		Outer.CFrame = Inner.CFrame
		
		local OutWeld = Instance.new("ManualWeld")
		OutWeld.Part0 = Outer
		OutWeld.Part1 = Inner
		OutWeld.C0 = Outer.CFrame:inverse() * Inner.CFrame
		OutWeld.Parent = Outer
		wait(1.5)
		Holding = false

spawn(function()
	game.Debris:AddItem(Inner, .1)
	game.Debris:AddItem(Outer, .1)
	game.Debris:AddItem(inWeld, .1)
	game.Debris:AddItem(OutWeld, .1)
end)







end
if Holding == false then
		player.Character:WaitForChild("HumanoidRootPart").Anchored = true
		player.Character.Humanoid.WalkSpeed = 0
		player.Character.Humanoid.JumpPower = 0
	local Release = player.Character.Humanoid:LoadAnimation(script.Parent.Release)
	Release:Play()
	
	local BeamInner = game.ServerScriptService.Meshes.BeamInner:Clone()
	BeamInner.Parent = Folder
	BeamInner.Position = Inner.Position + Vector3.new(0, 0, -3)
	
	local BeamOuter = game.ServerScriptService.Meshes.BeamOuter:Clone()
	BeamOuter.Parent = Folder
	BeamOuter.CFrame = BeamInner.CFrame
	

	
	
	
	
	
	

for i,v in pairs(Folder:GetChildren()) do
if v.Name ~= Inner and v.Name ~= Outer then
			local goal = {}
			goal.Size = v.Size + Vector3.new(100, 0, 0)
			goal.CFrame = v.CFrame * CFrame.new(-50, 0, 0) 
			local info = TweenInfo.new(1)
			local TweenService = game:GetService("TweenService")
			local tween = TweenService:Create(v,info,goal)
			tween:Play()
		end
	end
	
BeamOuter.Touched:Connect(function(hit)
	local Hum = hit.Parent:FindFirstChild("Humanoid")
	local Humanoid = player.Character.Humanoid
	if Hum and not Humanoid then
		Hum:TakeDamage(10)
	end
end)
	

	
	

		wait(4)
		player.Character.Humanoid.WalkSpeed = 16
		player.Character.Humanoid.JumpPower = 50
		player.Character:WaitForChild("HumanoidRootPart").Anchored = false
end
end)