RemoteEvent Arguments not functioning properly?

So I’ve been running into this strange issue with one of my arguments.
Basically, the argument I’m trying to fire is ‘BlockType’ which (depending on the tool) fires differently, for example ‘game.ReplicatedStorage.Blocks.Doge’ and then it should ‘:Clone()’ the block… But for some reason, it fires, gives me no errors, yet It’s not cloning the block?




image

When you clone the block, are you setting the parent to somewhere in workspace?

I’m sending it to workspace.Blocks (Which is a folder in Workspace). So yes.

And it’s not moving it in there? Also, I would be careful having your clone function like this. Because a hacker can fire the event with anything they want to clone and it will clone it.

Oh, shoot just realized what I did wrong, I accidentally deleted the part where it sends it to the workspace, LOL.

Thanks for the help though.

How would I fix that so a hacker can’t clone anything he wants?

1 Like

I would just have it send either a string with the name of the block you want to clone and have the server check

local BlockType = game.ReplicatedStorage.Blocks:FindFirstChild(BlockType)

Or something like that so that it will only clone a block.

1 Like

Thanks for saving my skin from a hacker extravaganza. Lol.

1 Like