Not getting returned value in Remote Event

My script:

local response = game:GetService("ReplicatedStorage").Purchase:FireServer()
if response == "owned" then
    product.Purchase.Text = "Already Owned!"
end```
Remote Event Script:
```lua
game:GetService("ReplicatedStorage").Purchase.OnServerEvent:Connect(function()
	print("owned")
	return "owned"
end)

owned is printed, but the text of Purchase is not changed to Already Owned like the first script tells it to when it returns “owned”
Why?

1 Like

you are using remote events instead of remotefunctions, remote events do not return anything

Wouldn’t you put return “owned” to return response also what the guy said above as well.

You should be using a remote function, not a remote event

You can read about the differences and use cases here: Bindable Events and Functions | Roblox Creator Documentation