#function addPart()local part = Instance.new("Part")part.Name = partpart.Transparency = 0.3pa

24 messages · Page 1 of 1 (latest)

jovial ember
#

i have no idea whats wrong,my objective is to spawn a part within the game with these properties,im day 1 at coding and i dont know if its bc im using a local script instead of a normal script or what

lethal hazel
#

Getting any errors?

opaque pecan
#

try to change it to a normal script and if that's not it then idk if it's because of the part.Name

lethal hazel
#

You are setting the name to be an instance

#

Do it like this

#
part.Name = "PartName"
hexed bluff
opaque pecan
#

oohh

hexed bluff
#

Also yes, the name should be a string

opaque pecan
jovial ember
opaque pecan
#

you gotta put it inside a string

jovial ember
#

oh really...so no instance?

hexed bluff
opaque pecan
hexed bluff
#

Sometimes a script won't even run, and therefore not produce errors

hexed bluff
jovial ember
hexed bluff
#

No

#

The objective is to make a new part right?

#

So instance.new would be pretty much required

jovial ember
#

nevermind i misunderstood something i just realised anyway but yeah its working now so thanks

hexed bluff
#

Yeah, when you do "part.name =" you are reassigning the name to what is expected to be another string

#

If it's not a string, it will probably throw an error