Is this good? or bad

''local ts = game:GetService(“TweenService”)
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Visible = false
script.Parent.Parent.Visible = false
script.Parent.Parent.Parent.Visible = false
script.Parent.dmg.Value = script.Parent.dmg.Value + 10
script.Parent.Parent.Parent.Parent.knifeswipeattack.Visible = true

local pos = {
	Position = UDim2.new(0.64, 0,0.329, 0)
}
local tweeninfoo = TweenInfo.new(0.3,Enum.EasingStyle.Quad, Enum.EasingDirection.Out)

local tween = ts:Create(script.Parent.Parent.Parent.Parent.knifeswipeattack,tweeninfoo,pos)

tween:Play()

script.swipe:Play()

tween.Completed:Wait()
wait(0.2)
script.Parent.Parent.Parent.Parent.knifeswipeattack.Position = UDim2.new(0.256, 0,0.329, 0)
wait(2.9)
game.Workspace.Purpal.Humanoid:TakeDamage(script.Parent.dmg.Value)
game.Workspace.Purpal.Head["Serious Eyes"].Texture = game.Workspace.Purpal.hurtface.Value
script.hit:Play()
script.Parent.Parent.Parent.Parent.bg.Visible = true
script.Parent.Parent.Parent.Parent.knifeswipeattack.Visible = false
wait(0.01)
script.Parent.dmg.Value = 0
wait(2)
script.Parent.Parent.Parent.Parent.bg.Visible = false
game.Workspace.Purpal.Head["Serious Eyes"].Texture = game.Workspace.Purpal.neturalface.Value
wait(23)
script.Parent.Visible = true

end)

''local UIS = game:GetService(“UserInputService”)

UIS.InputBegan:Connect(function(k)

if k.KeyCode == Enum.KeyCode.Z and script.Parent.Parent.Parent.Parent.knifeswipeattack.Visible == true then
	local pos2 = {
		Position = UDim2.new(0.64, 0,0.329, 0)
	}
	local tweeninfoo = TweenInfo.new(0.3,Enum.EasingStyle.Quad, Enum.EasingDirection.Out)

	local tween = ts:Create(script.Parent.Parent.Parent.Parent.knifeswipeattack,tweeninfoo,pos2)
	
	tween:Play()
	
	script.Parent.dmg.Value = script.Parent.dmg.Value + 6.7
	
	script.swipe:Play()
	
	tween.Completed:Wait()
	wait(0.2)
	script.Parent.Parent.Parent.Parent.knifeswipeattack.Position = UDim2.new(0.256, 0,0.329, 0)
end

end)’’

''local function Mobile()

if script.Parent.Parent.Parent.Parent.knifeswipeattack.Visible == true then
local pos3 = {
	Position = UDim2.new(0.64, 0,0.329, 0)
}
local tweeninfoo = TweenInfo.new(0.3,Enum.EasingStyle.Quad, Enum.EasingDirection.Out)

local tween = ts:Create(script.Parent.Parent.Parent.Parent.knifeswipeattack,tweeninfoo,pos3)

	tween:Play()
	
	script.Parent.dmg.Value = script.Parent.dmg.Value + 6.7

script.swipe:Play()

tween.Completed:Wait()
wait(0.2)
	script.Parent.Parent.Parent.Parent.knifeswipeattack.Position = UDim2.new(0.256, 0,0.329, 0)
	end

end’’

UIS.TouchTap:Connect(Mobile)

What…

use a code block, dont just paste it

type ` 3 times

you will get this:

see?

to end it, just do 3 `s again

and give more clarity on the topic

I’m only gonna bother with this if the code was actually in a complete code block.

I’m pretty sure It can be more compressed, overall if It works It’s good