roblox studio remote event value code example

Example 1: remoteevent roblox

--Server => Client
remoteEvent:FireAllClients() --Server Script
remoteEvent:FireClient(player) --Server Script
remoteEvent.OnClientEvent:Connect() --Local Script

--Client => Server
remoteEvent:FireServer() --Local Script
remoteEvent.OnServerEvent:Connect() -- Server Script

Example 2: Remote functions and events example in lua

local NewBlewPart = game.Workspace.Neon --Make a Part and name i To "Neon"

NewBlewPart.Touched:Connect(function()
	print("You Touched Me!") --Says a Dialogue When Touched The Part "NewBlewPart" Which is Just a Variable For a Base Part. 
	wait(1)
	end) --Script Officially Made By Rigby#9052 on Discord