#help

71 messages · Page 1 of 1 (latest)

vivid capeBOT
#

studio** You are now Level 2! **studio

olive temple
#

i want that the part is attached by my torso

#

and idk how to fix the problem

bright saddle
#

AI generated lookin' code

olive temple
#

what

#

only the part

#

with torso

#

is ai

bright saddle
#

You want to attach a part to the torso yes?

olive temple
#

yea

bright saddle
#

Yeah this code ain't even trying to

#

You need a weld

olive temple
#

ik i write it my self

#

yea but the part doesnt appears in workspace

bright saddle
#

And which line is error happening on?

olive temple
#

when i click on textbutton

#

local torso = character

bright saddle
#

Oh character shenanigans

olive temple
#

oh wait

#

local character = player.Character or player.CharacterAdded:Wait()

#

this line is the error

bright saddle
#

What

#

That can't even error

olive temple
#

idk there is a error

bright saddle
#

Oh wait

#

Where's player defined?

olive temple
#

local player = game:Getservice

#

line 3

bright saddle
#

Why did you delete the code

#

Now I can't help you

olive temple
#

which

bright saddle
#

The code.

olive temple
bright saddle
#

The not-so working code

bright saddle
#

Oh right there

#

It's from the top

olive temple
#

yea

#

local player is line 3

bright saddle
#

And the error is on the torso variable definition?

olive temple
#

line 4 is the error

bright saddle
#

Literal line, including whitespace

olive temple
#

where

bright saddle
#

Whitespace is an empty line

#

Count those too

olive temple
#

ok

bright saddle
#

Oh..

#

It's a server script isn't it?

olive temple
#

no

#

the script is attached with the part

bright saddle
#

Yeah so it's a server script

vivid capeBOT
#

studio** You are now Level 13! **studio

bright saddle
#

Local scripts don't even run inside of workspace

olive temple
#

its a normal script

bright saddle
#

Yeah

#

A server script

#

🤦‍♂️

#

Server script doesn't have a "LocalPlayer"

olive temple
#

are u new to in scripting

#

??

bright saddle
#

That's why it's indexing nil with character

#

There's no LocalPlayer or player

olive temple
#

AH

vivid capeBOT
#

studio** You are now Level 3! **studio

olive temple
#

how can i fix it

bright saddle
#

By changing it 🙏

#

I am not gonna spoon feed you

olive temple
#

whatt

#

but line 6 is the problem