Need help making custom character system

Hello, I’m trying to make a game with a custom character system but, I don’t know the best way to do it. I don’t want to be stuck with an annoying system later in development. My current system requires any script that wants the character to get it from a remote event and it is very difficult to work with. If you could give me some tips on how to make a better system that would be greatly appreciated.

1 Like

Is the Client asking the Server for permission?

If not, then you can just do everything on the Client with Local Scripts and avoid a Remote Event.

The problem with avoiding Remote Events is that you can’t prevent hackers from exploiting your game.

the issue is I don’t know how to tell the client what the character is without passing the data with a remote event because the character is created on the server.

Remote Events are easy once you get the hang of it.

Something like:

local MyRemoteEvent = script.Parent:WaitForChild("RemoteEvent")
local TheCustomCharacterName = script.Parent.Model.Name

MyRemoteEvent:FireClient(TheCustomCharacterName)

There is a great page in the documentation with examples:

With my current system on the player added event the player gets created on the server. Then it fire a remote event to the client telling it what the character is and gives you control of the character.

The problem with that is when I add a camera script it also has to wait for the same remote event. Additionally if I add a feature later like skin customization that script will also need to know what the character is.

So I’m wondering if there is a better method of doing it like roblox’s built in game.Players.LocalPlayer.Character

You can create your own characters and just drop them into the StarterPlayer folder.

Make sure there is only one that it is named “StarterCharacter”.

That uses Roblox’s built-in system though and my character doesn’t have a torso.

I remembered a video I saw once before.

The characters are custom, like a spider, but they do have the basic parts Roblox needs.

It may be helpful to you:

1 Like