i want to add a script into a part that will be in workspace. how would i do it? will it be
local s = Instance.new("Script") s.Parent = game.Workspace.Part s.Source [-- what ever i want here]
wil it be like that?
You cannot use a script to edit another script's source. If I'm understanding your question, you want to place a script into a part. To do that, all you need to do is select the part, look in your Basic Objects and double click "Script". (in a screenshot: http://prntscr.com/97n0rd)
You're just setting the parent property. s.Parent = game.Workspace