#Script can't find dummy humanoid

1 messages · Page 1 of 1 (latest)

terse saddle
#

opps

#

local anim = script:WaitForChild("Animation")
local hum = clone:WaitForChild("Humanoid")
local anim = hum:LoadAnimation(anim)
anim:Play()

wait(2)

tween(CSfolder.Test1)```
#

that

#

look if it works

#

ur clone was missing the ()

#

at the end

craggy cobalt
#

Makes sense lol

terse saddle
#

if ur tryign to clone

#

i thought is like a folder

#

i was like

#

nah its prob just him tryna clone it

#

good luck

craggy cobalt
#

Yeah probably lol

sacred patio
#

i couldnt decide whether to do that or actually just clone the character

terse saddle
#

bro

#

anyone works

#

people do that

#

for multiple variables so they can just write one word

#

and it would be the same

#

but are u tryna clone it in the put as like a folder or something

#

or just tryna clone it

sacred patio
#

yeah i wanted to make a clone of the character and put it in a specific place w an animation

#

so it looked like the player was doing smth in the setting i gave

#

keeps saying "attempt to index nil with "Humanoid"

terse saddle
#

where tho? in the clone?

sacred patio
#

yeah

terse saddle
#

so clone is like a folder or an animation?

sacred patio
#

i mean i had it set up in a folder but it's still doing it without the folder

gleaming marsh
#

clone.Parent=workspace

gleaming marsh
terse saddle
#

oh

gleaming marsh
#

show what is in explorer you maybe have the wrong path or something'

sacred patio
#

wtf is happening

terse saddle
#

bro what

#

nvm

#

ao child is

sacred patio
#

but i just set the child in a variable

terse saddle
#

Clone and the parent is a gui?

#

ok wait

#

send a screen shot of the gui and clone it will give me a better understanding

sacred patio
#

i just set the script in starterGui cuz a tutorial told me to 💀

#

it's supposed to be set in the workspace

#

i figured since it was a clone of the player it would be automatic

terse saddle
#

k

#

good

#

so im done here

#

everything is working>

sacred patio
#

no bro

#

nothing's changed

terse saddle
#

bro

#

wait

#

ur using a local script in start gui

gleaming marsh
#

as well as current error

terse saddle
#

wait so what is CLONE

sacred patio
terse saddle
#

k

gleaming marsh
#

or a humanoid. their character does, but not the player itself

sacred patio
# terse saddle wait so what is CLONE

"Clone" is a set dummy already in the world that i was going to give all of the player's accessories, I was swapping between just cloning the player just to make it easier

sacred patio
gleaming marsh
#

add .Character to .LocalPlayer

#

so you get the player's character instead of the player itself

sacred patio
#

ohhh gotchu

gleaming marsh
#

normally this is accompanied with character = plr.character or plr.characteradded:wait

#

coz while localplayer is always valid in a localscript, their character isn't always valid

sacred patio
#

okay so i did that but it just puts my camera way up into the air

terse saddle
#

clone:WaitForChild("HumanoidRootPart").Position = Vector3.new(0, 100, 0)

local anim = script:WaitForChild("Animation")
local hum = clone:WaitForChild("Humanoid")
local track = hum:LoadAnimation(anim)
track:Play()```
young parrotBOT
#

studio** You are now Level 8! **studio

terse saddle
#

thats the problem

#

i fixed it

gleaming marsh
terse saddle
#

tell me if it works

sacred patio
#

nah not anymore

sacred patio
#

again no errors but nothing happened

terse saddle
#

k

#

so before i gave u this did it work?

sacred patio
#

oh wait shi nvm I had something making the variables not work

#

fixed that and it kinda worked?

#

the position is changed at least

terse saddle
#

k

sacred patio
#

imma tweak it a bit and tell u guys

terse saddle
#

ok ok

sacred patio
#

ok tried changing clone to a player copy didnt work, ig i just gotta do it w the dummy

#

should I just set all the dummy's traits to the local players then

terse saddle
#

wait what do u mean by "set all the dummy's traits to the local players then"

#

are u tryan bring it to the player in the game

#

or the actual player

sacred patio
#

im trying to make the dummy look exactly like the local player

young parrotBOT
#

studio** You are now Level 7! **studio

sacred patio
#

thats why i was gonna make it a clone in the first place

terse saddle
#

so ur trying to copy the skin color and the accessorys of the player?

craggy cobalt
#

You have to use humanoidDescription

#

Refer to the documentation on applying humanoid descriptions

#

You can't clone character models directly because the archivable property is set to false

#

Also, cloning character models directly is considered bad practice

sacred patio
#

oh gotchu

sacred patio
#

so i set archivable to true when the players character loads and use humanoid description

terse saddle
#

unless hes trying to copy that charcaters skin color and accs

#

nit the player

#

the player is like

#

in simpler words its just the client thats is connected to the game

#

a character is like your thing that u control its a character that has ur accs and data of that character

#

i dont know how to explain it

#

but its like that

#

the player is the client its elf thats connected

craggy cobalt
# gleaming marsh how so

It depends on the use case actually. Its not the biggest thing, but if you're trying to change the character appearance of a players character, as opposed to just making an NPC or visual clone, it's recommended in roblox docs to use humanoid:ApplyDescription().

sacred patio
#

ok so how would i script that in

craggy cobalt
#

Are you trying to change the characters appearance?

#

What's the context

sacred patio
#

nah im making a clone of the character meant to look exactly like them but playing an animation

craggy cobalt
#

Ohh

sacred patio
#

yeye

terse saddle
#

liek one of thoese animation system

gleaming marsh
sly bridge
#

how do i give myself pets in my own game im using dev console but im so confused

terse saddle
#

bro

#

u have to make ur own

sacred patio
#

btw i got it to load bcuz there's an error on a lower line but i can't see it anywhere

sly bridge
#

idk man im trying to find every where to type

craggy cobalt
sly bridge
terse saddle
#

wait or ask for it

#

in the scripting one

sacred patio
#

yo i just got softlocked out my game

craggy cobalt
#

What 😭😭😭

sacred patio
#

idk it just froze and my dumbahh decided to try and save but now i cant exit bcuz its saving 💀

#

had to end the task, opening it back up and praying my stuff is still there

craggy cobalt
#

😭 I hate when stuff like this happens, thankfully saving has had a lot of updates since then.

sacred patio
#

fr

#

ok i have everything but I still cant find the clone when it does load and theres a problem with the animation player

#

this really all i had to do 💀

#

HE'S REAL

#

but my character assets aren't getting copied, he's a dull model

craggy cobalt
#

Can u send me a screenshot of the instance explorer?

#

And maybe you need to use Humanoid:ApplyDescription() after all. Unless there's an alternate reason for why the character assets aren't loading.

sacred patio
#

fixed it mb, had to work around with the functions i was using

#

another-another problem though, the positions are being stupid

but im going to bed so thats a problem for tomorrow

#

if youre still available do you mind helping me out again

craggy cobalt
#

U can use use CFrame instead of position

#

Yeah I'll be on tommorow lol

#

Do you think u can help me out by voting on my suggestion

#

The one about ranks :3

sacred patio
sacred patio
craggy cobalt
#

Let me see the code rq?

sacred patio
#

it even autofills "CloneLocation" for me so i know 100% that i'm not typing it wrong

craggy cobalt
#

Is this in a local script or a server script

sacred patio
#

local script

sly bridge
#

bro in my game one of the pets has a 1/736k rarity and the number value is 0. but when i try it with another pet it just says 1/inf

#

helllp

sacred patio