So, it was my first time using bindable function and i manage to get to several tutorials, however it seems i'm having trouble having it work.
I have my bindable function in the ServerStorage, and two scripts; one in workspace, and one, a child of the bindable function.
Here are the codes inside both of the script:
Global script in the workspace
Bindfunc= game:GetService("ServerStorage").ColorParts --Bindable function
wait(5)
Bindfunc:Invoke()
Script inside the Bindable function (which is in the ServerStorage)
local fun = script.Parent
fun.OnInvoke = function()
for i,v in pairs(game.Workspace:GetChildren()) do
if v.Name == "colorthis" then
v.BrickColor = BrickColor.new("Really red")
end
end
end
Now, i've added 'prints' before to debug the problem, however it seems like the problem is when the function is Invoked, since my print seems to not work inside the function's scope. I might have made a mistake concerning the use of this objects, perhaps some of you who understand it better than me might be able to solve the question!

2 comments
I just had a quick look and as far as I could see everything is alright. If it doesn't print anything at all have you checked if the script is enabled? (Disclaimer: I haven't done a lot of scripting the past 6 months, because I was doing lots of projects on Visual Studio. So, don't go harsh on me.)
Hey there! I tried to check the script again, and realized that my script doesn't work over certain game services such as "Server Storage", i moved it to another game service and it worked properly well!, thank you for your feedback on my code!