I tried to make a colorchange script and it worked but I tried to repeat it but it sends me and error: "Workspace.Part.SurfaceGui.Dancefloorscript:33: attempt to call global 'getrandomcolor' (a nil value)"
And I don't know how to fix this.
I think your problem is that you have a global function over local scripts and normal scripts.