I tried making a beamstruggle but i dont know how to make a button mash.

function OnTouched(hit)
	
	if hit.Name == "Water"then
	script.Parent.Transparency = 1
	

script.Parent.Transparency = 1
		
local Clash = Instance.new("Part")
Clash.Name = "Clash"
Clash.Anchored = true
Clash.CanCollide = false
Clash.TopSurface = "Smooth"
Clash.BottomSurface = "Smooth"
Clash.Size = Vector3.new(1, 1, 1)
Clash.Reflectance = 0
Clash.Transparency = 1
Clash.BrickColor = BrickColor.new("White")
Clash.CFrame = script.Parent.CFrame * CFrame.new(0,0,0)*CFrame.Angles(0,0,0)
Clash.Parent = script.Parent

script.Parent.Anchored = true
script.Parent.Transparency = 1

Mesh = Instance.new("SpecialMesh")
Mesh.MeshType = "FileMesh"
Mesh.MeshId = "http://www.roblox.com/asset/?id=1095708"
Mesh.Scale = Vector3.new(1, 1, 2)
Mesh.Parent = Clash

for i = 1,10 do
Mesh.Scale = Mesh.Scale + Vector3.new(4,7,4)
wait(0.005)
end

script.Parent:Destroy()
Clash:Destroy()

	end
end

script.Parent.Touched:connect(OnTouched)

1 comment

0

What's a beam struggle? What's a button mash?