For some reason when you press "q" and "t" the blast works, but then if you press "r" after that then the touched script from t goes into r.

Here's the part of the local script


damage = function(hit, mm, mam)
	if hit.Parent ~= nil and hit.Parent.Name ~= Player.Name and hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent:FindFirstChild("Humanoid").Health > 0 and damen == true then
		damen = false
		hit.Parent.Humanoid:TakeDamage(math.random(mm, mam))
	end
end
			if key == "r" and mode == "Zinglo" and enabled == true then
				enabled = false
				damen = true
				anim = "Slash2"
				guit.Text = mode.." ["..anim.."]"
				N.C0 = N.C0 *CFrame.fromEulerAnglesXYZ(0, 0, math.rad(90))
				weldzla.C0 = CFrame.new(1.25, 0.5, 0) *CFrame.fromEulerAnglesXYZ(0, 0, math.rad(40))
				weldzra.C0 = CFrame.new(-0.5, 0.5, 0) *CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, math.rad(-45))
				createsound("http://roblox.com/asset/?id=10209645",0.5,0.8)
				coroutine.resume(coroutine.create(function(tr, follow, size)
					tr = 18
					follow = blade
					size = 5
					scaledown = 1
					trans = 0
					for i = 1, tr do
						wait(0.01)
						scaledown = scaledown -0.05
						trans = trans+0.05
						c = Instance.new("Part", Workspace)
						c.Anchored = true
						c.CanCollide = false
						c.TopSurface = "Smooth"
						c.BottomSurface = "Smooth"
						c.FormFactor = "Custom"
						c.Size = Vector3.new(1, size, 1)
						c.CFrame = follow.CFrame
						game.Debris:AddItem(c, 0.5)
						cxa = Instance.new("SpecialMesh", c)
						cxa.MeshType = "Sphere"
						cxa.Scale = Vector3.new(scaledown,scaledown,scaledown)
						c.Transparency = trans
					end
				end))
				wait(0.2)
				damen = true
				for i = 1, 15 do
					wait(0.01)
					N.C0 = N.C0 *CFrame.fromEulerAnglesXYZ(0, 0, math.rad(-12))
					weldzra.C0 = weldzra.C0 *CFrame.fromEulerAnglesXYZ(math.rad(4), math.rad(8), 0) *CFrame.new(-0.04, -0.02, 0.05)
				end
--Here start
-->>>>>				blade.Touched:connect(function(hit) damage(hit, 18, 20.5) end)
--Here end
				wait(0.3)
				N.C0 = saven
				enabled = true
				damen = false
				anim = "None"
				weldzra.C0 = saveweldzra
				weldzla.C0 = saveweldzla
				guit.Text = mode.." ["..anim.."]"
			elseif key == "t" and mode == "Zinglo" and enabled == true then
				enabled = false
				damen = true
				anim = "Red Sky Blast"
				guit.Text = mode.." ["..anim.."]"
				createsound("http://roblox.com/asset/?id=10209645",0.5,0.75)
				coroutine.resume(coroutine.create(function(tr, follow, size)
					tr = 10/2+33/2
					follow = blade
					size = 1.5
					scaleup = 1
					trans = 0
					for i = 1, tr do
						wait(0.01)
						scaleup = scaleup +0.2
						trans = trans+0.05
						c = Instance.new("Part", Workspace)
						c.BrickColor = BrickColor.Red()
						c.Anchored = true
						c.CanCollide = false
						c.TopSurface = "Smooth"
						c.BottomSurface = "Smooth"
						c.FormFactor = "Custom"
						c.Size = Vector3.new(1.5, size, 1.5)
						c.CFrame = follow.CFrame *CFrame.fromEulerAnglesXYZ(math.random(0, 1), math.random(0, 1), math.random(0, 1))
						c.Transparency = trans
						cxa = Instance.new("BlockMesh", c)
						cxa.Scale = cxa.Scale +Vector3.new(scaleup, scaleup, scaleup)
						game.Debris:AddItem(c, 0.5)
						coroutine.resume(coroutine.create(function()
							for i = 1, tr do
								if c ~= nil then
									wait(0.01)
									c.CFrame = c.CFrame *CFrame.fromEulerAnglesXYZ(math.random(0, 1), math.random(0, 1), math.random(0, 1))
								end
							end
						end))
					end
				end))
				weldzla.C0 = CFrame.new(1.5, 0, 0)
				for i = 1, 10/2 do
					wait(0.01)
					N.C0 = N.C0 *CFrame.fromEulerAnglesXYZ(math.rad(-12), 0, 0)
					weldzra.C0 = weldzra.C0 *CFrame.fromEulerAnglesXYZ(math.rad(-5*2), 0, 0) *CFrame.new(0.05*2, 0, 0)
				end
--Here start
		-->>		blade.Touched:connect(function(hit) if hit.Parent ~= nil and hit.Parent.Name ~= Player.Name and hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent:FindFirstChild("Humanoid").Health > 0 and damen == true then damen = false -->> blast = Instance.new("Part", Workspace) blast.BrickColor = BrickColor.Red() blast.TopSurface = "Smooth" blast.BottomSurface = "Smooth" blast.FormFactor = "Custom" blast.Size = Vector3.new(1.5, 1.5, 1.5) blast.CanCollide = false blast.Anchored = true blast.Transparency = 0 blast.CFrame = hit.Parent.Torso.CFrame blastm = Instance.new("SpecialMesh", blast) blastm.MeshType = "Sphere" -->> print("BLAST") hit.Parent.Humanoid:TakeDamage(math.random(20, 40)) for i = 1, 30 do wait(0.01) blastm.Scale = blastm.Scale +Vector3.new(0.3, 0.3, 0.3) blast.Transparency = blast.Transparency +0.05 end blast:remove() end end)
				for i = 1, 33/2 do
					wait(0.01)
					N.C0 = N.C0 *CFrame.fromEulerAnglesXYZ(math.rad(7), 0, 0)
					weldzra.C0 = weldzra.C0 *CFrame.fromEulerAnglesXYZ(math.rad(5*2), 0, 0) *CFrame.new(0, 0, -0.025*2)
				end
				wait(0.5)
				enabled = true
				damen = false
				N.C0 = saven
				anim = "None"
				guit.Text = mode.." ["..anim.."]"
				weldzra.C0 = saveweldzra
				weldzla.C0 = saveweldzla
--Here end
			end
		end)
	end
end

Answer back when you get the chance. Thanks. The problem is that the "t" blade touched overlaps into the "r" blade touched. I don't know why.

2 comments

0

Hey. Who disliked?

0

What did I do?