local A=game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")local o=game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")local c=script.Parent local U={}local f=false local R=false local X=1 local V=nil local x=nil c.Activated:Connect(function()if not R then R=true task.delay(X,function()R=false end)local F=c.Parent if not f then f=true x=F.Humanoid:LoadAnimation(A.SharkV4.Laugh)x:Play()F.HumanoidRootPart.Anchored=true V=A.SharkV4.Props.Tail:Clone()V.Parent=F local c=Instance.new("\065\116\116\097\099\104\109\101\110\116")c.Parent=F.HumanoidRootPart c.Position=Vector3.new(0,-2.5,0)local R=A.SharkV4.Effects.Wave:Clone()R.Parent=c local X=A.SharkV4.Effects.Smoke:Clone()X.Parent=F.HumanoidRootPart local t=A.SharkV4.Effects.Pixel:Clone()t.Parent=F.HumanoidRootPart local T=A.SharkV4.Sound.Laugh:Clone()T.Parent=F.HumanoidRootPart local H=A.SharkV4.Sound.Smoke:Clone()H.Parent=F.HumanoidRootPart T:Play()task.delay(1.6,function()T:Destroy()task.wait(.25)F.HumanoidRootPart.Anchored=false x:Stop()end)H:Play()local y=o:Create(H,TweenInfo.new(1.5),{Volume=0})y:Play()y.Completed:Connect(function()H:Destroy()end)R:Emit(2)X:Emit(100)t:Emit(50)for A,o in ipairs(F.Humanoid:GetAccessories())do local c=o.Handle:FindFirstChild("\072\097\105\114\065\116\116\097\099\104\109\101\110\116")~=nil if c then U[o]={TextureID=o.Handle.TextureID,Color=o.Handle.Color,Material=o.Handle.Material}o.Handle.Color=Color3.fromRGB(0,85,255)o.Handle.TextureID=""o.Handle.Material=Enum.Material.Neon end end elseif f then f=false local A=o:Create(V.Handle,TweenInfo.new(.5),{Transparency=1})A:Play()A.Completed:Connect(function()V:Destroy()end)for A,o in ipairs(F.Humanoid:GetAccessories())do local c=o.Handle:FindFirstChild("\072\097\105\114\065\116\116\097\099\104\109\101\110\116")~=nil if c then o.Handle.Color=U[o].Color o.Handle.Material=U[o].Material o.Handle.TextureID=U[o].TextureID U[o]=nil end end end end end)


local RS = game:GetService('ReplicatedStorage')
local TS = game:GetService('TweenService')

local Tool = script.Parent
local TextureArray = {}

local Activated = false
local Debounce = false
local Cooldown = 1
local Prop = nil
local LaughAnim = nil

Tool.Activated:Connect(function()
	if not Debounce then
		Debounce = true
		task.delay(Cooldown, function()
			Debounce = false
		end)
		
		local Character = Tool.Parent
		
		if not Activated then
			Activated = true
			
			LaughAnim = Character.Humanoid:LoadAnimation(RS.SharkV4.Laugh)
			LaughAnim:Play()
			Character.HumanoidRootPart.Anchored = true
			
			Prop = RS.SharkV4.Props.Tail:Clone()
			Prop.Parent = Character
	 
			local Attachment = Instance.new('Attachment')
			Attachment.Parent = Character.HumanoidRootPart
			Attachment.Position = Vector3.new(0,-2.5,0)

			local Wave = RS.SharkV4.Effects.Wave:Clone()
			Wave.Parent = Attachment

			local Smoke = RS.SharkV4.Effects.Smoke:Clone()
			Smoke.Parent = Character.HumanoidRootPart

			local Pixel = RS.SharkV4.Effects.Pixel:Clone()
			Pixel.Parent = Character.HumanoidRootPart

			local Laugh = RS.SharkV4.Sound.Laugh:Clone()
			Laugh.Parent = Character.HumanoidRootPart

			local SmokeSound = RS.SharkV4.Sound.Smoke:Clone()
			SmokeSound.Parent = Character.HumanoidRootPart

			Laugh:Play()

			task.delay(1.6,function()
				Laugh:Destroy()
				task.wait(0.25)
				Character.HumanoidRootPart.Anchored = false
				LaughAnim:Stop()
			end)

			SmokeSound:Play()

			local Tween = TS:Create(SmokeSound, TweenInfo.new(1.5), {Volume = 0})
			Tween:Play()

			Tween.Completed:Connect(function()
				SmokeSound:Destroy()
			end)	

			Wave:Emit(2)
			Smoke:Emit(100)
			Pixel:Emit(50)

			for _, Item in ipairs(Character.Humanoid:GetAccessories()) do
				local Hair = Item.Handle:FindFirstChild("HairAttachment") ~= nil
				if Hair then
					TextureArray[Item] = {TextureID = Item.Handle.TextureID, Color = Item.Handle.Color, Material = Item.Handle.Material}
					Item.Handle.Color = Color3.fromRGB(0, 85, 255)
					Item.Handle.TextureID = ''
					Item.Handle.Material = Enum.Material.Neon
				end
			end
			
		elseif Activated then
			Activated = false
			
			local Tween = TS:Create(Prop.Handle, TweenInfo.new(0.5), {Transparency = 1})
			Tween:Play()

			Tween.Completed:Connect(function()
				Prop:Destroy()
			end)
			
			for _, Item in ipairs(Character.Humanoid:GetAccessories()) do
				local Hair = Item.Handle:FindFirstChild("HairAttachment") ~= nil
				if Hair then
					Item.Handle.Color = TextureArray[Item].Color
					Item.Handle.Material = TextureArray[Item].Material
					Item.Handle.TextureID = TextureArray[Item].TextureID
					TextureArray[Item] = nil
				end
			end
		end
	end
end)
