Hey!
Is it possible to use remote events for parts?
Because if i remember correctly, u can only use them for Player objects.
You can send the part as an argument into the RemoteEvent.
RemoteEvent:FireServer(Part)
RemoteEvent:FireClient(Player, Part)
RemoteEvent:FireAllClients(Part)
1 Like
When firing to the server, the 1st function parameter the server always recieves is the player, the second is what you put in.
– Client
local Player = game.Players.LocalPlayer
local RemoteEvent = Uhhhhhhh
RemoteEvent:FireServer(Player)
– Server
local RemoteEvent = Uhhhhhhh
function PrintStuff(FunctionParameter1, FunctionParameter2)
print(FunctionParameter1)
print(FunctionParameter2)
end
RemoteEvent.OnServerEvent:Connect(PrintStuff)
Your output will look like:
– hpdeluxee
– hpdeluxee
1 Like
Thank you!
I’ll test both of your solutions out and will tell you more!
Thanks for the suggestion!
I’ll make sure to try out both of your solutions and give you news about it!