Well i see a lot of people has already answered this question but i don't see any quick and short explanation so here:
Basically = is used for setting something example as:
game.workspace.part.Name = "test" or
game.workspace.part.Parent = game.ReplicatedStorage or
*game.Players.Zetruis.Leaderstats.Money.Value = 1000"
and the list goes on.
The == is used to define is something equals to something example as:
if game.Players.Zetruis.Name == "Zetruis" then print"okay its him" end or
if (5+10) == 15 then print"ok" end
and of course the list goes on.
1 comment
But why? What if I want to compare with =? Code doesn't read your mind. I wasn't asking you directly btw. pls don't forget to accept answer if i helped