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

Using remote functions?

I have a question about remote functions. How would I use it to change the property of SetLocalTransparencyModifier using InvokeClient?

1 answer

In a LocalScript you would do the following:

local event = script.Parent.RemoteFunction
function event.OnClientInvoke()
	-- your normal code here
end

In a Script you would do the following:

function name()
	script.Parent.RemoteFunction:InvokeClient()
end
DoSomethingTo:connect(name)

That should do it. If not, let me know!


Helpful links!

RemoteFunction

Tutorial

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