#Need help with startercharacterscripts

1 messages · Page 1 of 1 (latest)

silk bridge
#

Does anyone know how i could put something like StarterCharacterScripts INTO a character selection menu so that each character can have different stats, animations and moves? This is the last step in my roblox game and once i figure this out it can start going places.

#

So i've made a little character selector (using a tutorial) and i couldnt figure out how to make each character have custom startercharacterscript stuff

#

and its a real issue for the game we're making

#

and i tried to figure it out with the documentation shit but im struggling

#

and i need someone super cool to help me with it 💔

#

like someone tried to teach me about modules and i think my brain melted

gentle quest
#

i save stats animations and accessories into a module script

#

i can show you in a sc

silk bridge
#

yes please

#

i tried to DM you about it but it wouldnt let me 💔

#

because the person helping me sent a like

#

roblox documentation thing and

#

i dont get it

#

its too much for me

#

i can show you what ive done if it'd help

#

and i feel like if i cant work this out it'd be a waste for all my friends time

gentle quest
#
local RACE_CONFIG = {
    Orc = {
        health = 200,
        damage = 20,
        walkSpeed = 15,
        color = "Sea green",
        Teamcolour = "Sea green",
        accessories = {
            HatAccessory = "105935564631213",
            Shirt = "",
            Pants = "6326002102"
        }
    },
    Mage = {
        health = 150,
        walkSpeed = 25,
        color = "Nougat",
        Teamcolour = "Magenta",
        accessories = {
            HatAccessory = "17187331785",
            FaceAccessory = "461493477",
            BackAccessory = "9502826262"
        }
    },
    Warrior = {
        health = 175,
        damage = 20,
        walkSpeed = 20,
        color = "Nougat",
        Teamcolour = "Crimson",
        accessories = {
            HatAccessory = "16995713333",
            BackAccessory = "13873632036"
        }
    }
}
#

so this is my constructer it saves the stats and the names

#

very generic rpg

#

the numbers ofc are IDs

silk bridge
#

ughghh

#

so is this like..

#

stealable

gentle quest
#

all you need to do is use a module script

silk bridge
#

ok let me

#

get into studio

gentle quest
#

local Race = {}

race config

this is the constructer

function Race.new(health, damage, walkSpeed)
    return {
        Health = health,
        Damage = damage,
        WalkSpeed = walkSpeed
    }
end
``` n
#

then i have 2 functions

1 which just sets the style of the races since i change body colour and accessories i use

GetAppliedDescription

silk bridge
#

okay hold on

#

does it matter where i stick this thing

#

modulescript

gentle quest
#

yes

#

this is because this is only on the server

#

ie cant be exploited easily

silk bridge
#

so hold on

gentle quest
#

but now to talk to the client youll need to learn about remote events and remote functions

silk bridge
#

is there a way i can make it so i can just

#

jam all my scripts i need IN there

#

and work it out

#

these ones

gentle quest
#

so all your normal scripts and module scripts go in there

silk bridge
#

(ignore hd admin i pressed a wrong button)

gentle quest
#

those are local scripts

#

they go where you put them

#

client vs server is very specific

silk bridge
#

so what would i do with them

gentle quest
#

if they are supposed to be client leave them there, your module script can work with them

#

thats where remote events come in

silk bridge
#

thing is i dont think i could have them there because of what im using them for

#

im trying to give multiple different characters DIFFERENT animations

#

but having the animate script in there doesnt allow that.

#

or can i like

#

is there a way around that

#

or have i done a stupid idiot thing here

hollow roost
# silk bridge or have i done a stupid idiot thing here

the only stupid idiot thing i see happening here is you biting off more than you can chew and trying to make things you don't know enough to make, but hey it's not about the results, it's about what you learn along the way fingerguns

silk bridge
#

mgulps..

#

i came too far to go back so im stuck begging for help now 💔

#

so many lost hours of my life

hollow roost
silk bridge
#

i refuse to touch ai

#

i have SOME class

hollow roost
silk bridge
#

last as in struggles for getting it to work

#

once i fix this i can like

#

actually make the game

#

and make it good

hollow roost
#

what was the second to last step you took? do you actually have any working characters to begin with?

silk bridge
#

ive only got one working for now because i cant get different animations on the others

#

but once i sort out THAT its all set up for more

#

and the last thing i did wasss

#

learn blender because i was struggling with weapons

hollow roost
#

do you have a map built?

silk bridge
#

two of them

hollow roost
#

yea this aint your last step lol

silk bridge
#

they're not pretty but they work

hollow roost
#

this is your second.

silk bridge
#

yeah checks out

hollow roost
silk bridge
#

i meant more well

#

last struggle

#

for now atleast

#

only major roadblock from what ive seen so far IS this

hollow roost
silk bridge
#

im broke

#

💔

hollow roost
#

you don't need to jump into the deep end, start with the simplest and build up.

#

good luck salute

silk bridge
#

thank you sir

gentle quest
#

dont need to hire lol look into module scripts
client vs server
remote events and remote functions

#

you will figure out what should be server or client as you go

#

image a football game where you handeld the player kicking the ball and it moving on the client

awful because it would only move for that player that kicked it

#

server everyone

hollow roost
# gentle quest server everyone

it gets complicated when you start to see that each player see's it's own version of the world because you can mix the server's everyone-stuff with the clients client-only-stuff. salute

silk bridge
#

im so confused

#

💔

#

💔 💔

gentle quest
#

so imagine you make a localscript

you make it so when a player touches a door it opens
( a parts transparency goes to 1 and cancollide to false)

say you walked up and touched the door

#

for you the door opens

#

for me it doesnt

#

for me its closed unless i go touch it

#

its only been opened on your client

#

but if you did the same logic with the door on the server

#

(dont do touch events on the server)

#

you would then see the door open if anyone opened it

#

i dont want to info dump on you but the correct method is handeling player inputs

Touched
Keybinds

on the client
then sending that information via RemoteEvent

to the server

#

good luck on your game
have some patience 🙏