How to make the Fisch Shake system

Hello!

If you have ever player Fisch before you would know before catching a fish you have to press “SHAKE” a few times. I have tried to implement that, but I don’t know how to clone a textbutton once a textbutton has been clicked on.

In my game instead of SHAKE it is called RUMMAGE (yes very original, i know…)

The cloning button is called: RummageBTN
and the parent of that clone is called:RumageFrame
The name of that clone is called: “RummageButton”
And the position is a random X and Y number so it appears randomly on the player’s screen.

Also the RummageTime is how many times the user will have to press shake. So somehow implement that in to.

If you need any more information or questions ask me!
Thanks in advance! :slight_smile:

Here is the script that I want you to add on to:

RumageFrame.Visible = true
	RumageFrame.RummageButton.Visible = true
	
	
	local RummageTime = math.random(7,12)
	

1 Like

So this is the wrong topic, and you forgot to send your full script I think.
This belongs in community resources / tutorials afaik.

2 Likes

This isn’t the full script since the full script is like 300 lines. And this is the only relevant part of the script.

I don’t know how I did but I made a functional shake system like in Fisch!

RumageFrame.Visible = true
	RumageFrame.RummageButton.Visible = true
	
	
	local RummageTime = math.random(7,12)
	
	for i = 1, RummageTime do
		
		local newButton = RummageBTN:Clone()
		newButton.Name = "RummageButton"
		newButton.Position = UDim2.new(0, math.random(0, 1000), 0, math.random(0,450))
		newButton.Parent = RumageFrame
		newButton.MouseButton1Click:Connect(function()
			newButton:Destroy()
		end)
		newButton.Destroying:Wait()
	end