Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Using remote functions?

Asked by 9 years ago

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

1 answer

Log in to vote
0
Answered by 9 years ago

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

Ad

Answer this question