This is the thing that I put off the most since I came back to Roblox. I KNOW what they're used for, communicating in between servers, clients and etc. I just don't know how to execute it. I also don't really get the different between remote events/functions.
Let me make a basic 'spawn kill brick' script. How would I turn this into FE compatible?
local plyr = game.Players.LocalPlayer
local mouse = plyr:GetMouse()
mouse.Button1Down:connect(function()
local part = Instance.new("Part", workspace)
part.Anchored = true
part.Position = mouse.Hit.p
--
part.Touched:connect(function(hit)
if hit.Parent:findFirstChild("Humanoid") then
hit.Parent.Humanoid:TakeDamage(5)
end
end)
game.Debris:AddItem(part, 5)
end)

4 comments
You should see the wiki page for it, https://developer.roblox.com/en-us/articles/Remote-Functions-and-Events it talks about the difference about remote events/functions and how to use them!
Sir I did read about that, I forgot to mention it on the post. I posted here because I still really don't understand how to execute it.
:FireServer() on the remoteevent
Can you elaborate dude? Because the dev. link is showing me to put my code in a script then use local to fire it. How do I get the localPlayer in the script?