#Script in instance new how?

1 messages · Page 1 of 1 (latest)

dire scarabBOT
#

studio** You are now Level 3! **studio

tired barn
#

Why would you want to create a script inside a part?
You can do something like

local Script = Instance.new("Script")
Script.Parent = PathToPart

--[[
Script.Source = "print(\"Hello world!\")"
]]

You can also do that with a local script. I commented the code that changes the source because I think it only works if you are creating a plugin.

#

You just set the source equal to some string

#

It also works in the roblox command bar

vague zinc
#

I need it for a bullet