What do you want to achieve?
I am making a button that will generate something when clicked. I created a part, a surface gui in the part, a text button in the surface gui, and a local script in the button.
What is the issue?
While I was working on the local script, I realized that no matter what I typed in it, nothing happened.
What solutions have you tried so far?
I tried typing variables, events, functions, and print statements, but nothing popped up in the output. I even tried typing a bunch of jibberish to create an error, but no error was marked in the output. I don’t know how to fix this and I need help. Why isn’t anything happening?
The local script that was used.
local replicatedStorage = game:GetService("ReplicatedStorage")
print("testing testing 1 2 3")
script.Parent.MouseButton1Click:Connect(function()
replicatedStorage.StarterSetupRegen:FireServer()
end)
Screenshot of the explorer.