|
| 09 Jul 2013 10:07 AM |
This is my script But it wont work 10:03:13.132 - Text is not a valid member of Script 10:03:13.134 - Script "Workspace.Script.Script", Line 2 10:03:13.136 - stack end
local sc = Instance.new("Script") sc.Text = "game.workspace.Baseplate:Remove()"
how do i change it? |
|
|
| Report Abuse |
|
|
| |
|
| |
|
Infocus
|
  |
| Joined: 28 Apr 2011 |
| Total Posts: 8022 |
|
| |
|
| |
|
|
| 09 Jul 2013 07:29 PM |
| Your issue, the "Script" class doesn't have a Text field. I think you're getting it confused with the .Source field, which is inaccessible unless you use something like a plugin utility. |
|
|
| Report Abuse |
|
|
|
| 09 Jul 2013 08:04 PM |
local code = Instance.new("StringValue") code.Parent = game.Workspace code.Value = "game.Workspace.stephen1182:BreakJoints()" wait() loadstring(code.Value) |
|
|
| Report Abuse |
|
|
sycips
|
  |
| Joined: 21 Mar 2011 |
| Total Posts: 1368 |
|
|
| 09 Jul 2013 09:16 PM |
| Replace. Text with. Source. This only works in a corescript, pluginscript or commandbar! |
|
|
| Report Abuse |
|
|