#Remote Security

31 messages · Page 1 of 1 (latest)

ebon harbor
#

What does this mean

hexed hedge
#

Im not creative enough to think of a way of securing my remote function

ebon harbor
#

So to Fire to Server from client

hexed hedge
#

yeah

ebon harbor
#

Event:InvokeServer()

#

Then on the ServerSide

hexed hedge
#

any exploiter can just invoke the server tho

ebon harbor
#

Event.OnServerInvoke = function(player)

#

It’s just the same as A remote event

#

So just make the Event ownership to nothing

hexed hedge
#

your talking about :SetNetworkOwner()?

ebon harbor
#

Yep

hexed hedge
#

How does setting the ownership of the Event to nothing fix the problem?

ebon harbor
#

But don’t bind it to anywhere only create it inside the script but not parent it anywhere

hexed hedge
#

how am i suppose to reference it on the server script?

ebon harbor
#

So just make it to the player adding but create it the instance not inside the function

#

So I’m going to see what I can so I can do a example so I know what to do

#

So it might take like 4 to 5 minutes

hexed hedge
#

wait

#

before you do that

#

to fire the remote event you need to buy a developer product

#

so can i just use ProcessReceipt on a server scirpt

ebon harbor
hexed hedge
#

Itll give the player something. However, I can move the script deciding what the player receives to the server-sided script.

ebon harbor
#

so lets say u get a tool from the DevProduct and it costs $10Rbx

hexed hedge
#

yeah

ebon harbor
#

so what about do it from Sever to Client instead

#

since people are used to seeing Client to Server

hexed hedge
#

so youre saying prompt the purchase from the server?

ebon harbor
#

so what to do is just the same but the opposite```lua
Event.OnClientEvent:Connect(function(textbutton,smth) -- smth is a example
textbutton.MouseButton1Click:Connect(function()
-- to do something that gets the DevProduct
end)
end)