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

{Solved}Is it possible to transfer a signal across a script to a local script?

Instead of using a remote event to transfer a signal from a local script to script, is it possible to transfer a signal across a script to a local script?

How would I do this?

--Script
local Event = script.Parent.RemoteEvent
Event:FireServer()

--Local script
function signal()

end
Event.OnServerEvent:Connect(signal)

1 comment

0

dont think it is possible without events

1 answer

✓ Accepted answer

Yes. To transfer from script to localScript you use a method known as 'FireClient()".

Code(script):

game:GetService("ReplicatedStorage").RemoteEvent:FireClient(plr)

Code(localScript):

game:GetService("ReplicatedStorage").RemoteEvent.OnClientEvent:Connect(function(plr)
    print("fired")
end)

This is how you would fire a signal from a script to a localscript.

Links that will help you:

ROBLOX Remote Event tutorial (Everything you need to know)

and

Roblox Filtering Enabled Tutorial - RemoteEvents (Part 1)

Your welcome :)

2 comments

0

Your welcome :) all that's left is for you to click the green checkmark and acknowledge that your problem is solved.

0

Thank you!

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