Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

why is my instance not working? it is giving me an error in the output for some reason

I made a simple instance but it's not working.

function returnedpart(color,IsAnchored,transparency, name) local part = Instance.new("Part")

part.Color = color
part.Anchored = IsAnchored
part.Transparency = transparency
part.Name = name
part.Parent = workspace

end

returnedpart(Color3.fromRGB(198, 64, 255), true, "Test")

output: Script 'ServerScriptService.Script', Line 7 - function returnedpart - Studio - Script:7 Script 'ServerScriptService.Script', Line 13 - Studio - Script:13 Stack End - Studio

1 comment

0

i don't think you need those parameters

1 answer

uh im kinda new to scripting and im no pro but what about putting print lines in after every line to see where the mistake is? idk if thats gonna work or not cause im kinda a new scripter lol

5 comments

0

but maybe try searching up on google what the output means but idk

0

i tried it, and it seems like i have a problem with part.name thanks anyways

0

i gave it a return event but naming the part still isnt working rip

0

i gave it a return event but naming the part still isnt working rip

0

oof

This discussion is preserved as it was. New answers, comments, and votes are closed.