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

How To Make A Script Load A Local Script With Remote Events?

How Do You Do That???

1 answer

✓ Accepted answer

Simply wrap the entirety of your code into a function that gets called when the remote is fired.

function main()
	--do stuff
end

remoteEvent.OnClientEvent:Connect(main)

1 comment

0

thx this looks helpfull

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