Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

how to make a player click with a function?

can we make a function like


local function FireButtoni()
	?????
end
local button = Instance.new("TextButton")
button:FireButton()

1 comment

0

You need to provide more information in order for us to understand your issue.

1 answer

local button = Instance.new("TextButton")

local function FireButtoni()
button.MouseButton1Click:Connect(function()
       -- Put Your Code Here
end)
end
button:FireButton()

This discussion is preserved as it was. New answers, comments, and votes are closed.