#Need help fixing an error
1 messages · Page 1 of 1 (latest)
Code: https://pastebin.com/EF10dYiy (Server Script under ServerScriptService)
Error: ServerScriptService.Main:196: PrimaryPart missing
if the client script is needed, lemme know
no
send explorer
he finna let you wait another half an hour 😭
so in ReplicatedStorage you have a part you clone and name New_Part
local New_Pos : CFrame = Is_Model and (New_Part.PrimaryPart and New_Part.PrimaryPart.CFrame or error("PrimaryPart missing"))
this line wants a part inside of New_Part called PrimaryPart
its okay i know what his issue is
and its likely a victim of ai use
😭
im going to guess inside of his part is nothing
i didnt understand this line at all its way to complicated
i would pack this up in a if statement to make it more readable
there is also so much going on
my other advice would be have your module script for profile store
then have other scripts for whatever functionality
if you cram it all into one
debug and reading becomes a nightmare
@magic ridge
exactly i also thought that this script seems kinda long and idk
i never needed such complex scripts yet
honestly, its getting confusing for me to read too
ill prob seperate it
you should it would be good for you
this is hopefully your fix
ok i stripped it down
i split up the scripts
this is the place script:
error is on line 94 (still the same)
Can you show me your replicated storage
And everything in jt
ok
the models all have primary parts
could it be that wehn cloned the primary part is still the one from the replicated storage
and thats why you get an error
try to update the primaryPart and test it
aight
If your passing in BasicPart or BigPart as Part_Name
Then searching inside Part_Name for PrimaryPart then that's your issue
Ah ok, is there an example of what you can provide?
Put a part inside of BasicPart and BigPart and name it PrimaryPart