In my test/modeling workspace I have a table that when you click it, it should change the text of a screen
And, it doesn't work..
Code:
local infoScreenTable = game.Workspace.InfoScreen.SurfaceGui.Table
function onClicked()
infoScreenTable.Text = "Big Table"
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
It is in a local script
I have concluded that you can't use a click detector in a localscript

4 comments
Are there any errors? Did you try printing within the onClicked function?
There are no errors when I click it, and printing wont work
Are there any errors prior to you clicking? One which refers to line 1, perhaps?
nope