Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 3 years ago

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

0
i don't think you need those parameters Xyternal 247 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

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

0
but maybe try searching up on google what the output means but idk TypicalVictorlks 17 — 3y
0
i tried it, and it seems like i have a problem with part.name thanks anyways az1339and339 0 — 3y
0
i gave it a return event but naming the part still isnt working rip az1339and339 0 — 3y
0
i gave it a return event but naming the part still isnt working rip az1339and339 0 — 3y
0
oof TypicalVictorlks 17 — 3y
Ad

Answer this question