|
| 04 May 2012 10:00 PM |
I'm making a gui which makes a sword on click, the sword can't already be in the game, so far I have this,
function onClick() swrd = Instance.new("Tool") swrd.Name = "V0.1" swrd.GripForward = (0,0,1) swrd.GripPos = (1.84,0,-0.17) swrd.GripRight = (0,-1,0) swrd.GripUp = (-1,0,0) swrd.CanBeDropped = false swrd.Archivable = true swrd.Enabled = true swrd.Parent = Players.Distriction.Backpack
lg = Instance.new("LocalScript") lg.Name = "Local Gui" lg.Archivable = true lg.LinkedSource = "http://www.roblox.com/asset/?id=1014476" lg.Parent = swrd
dmg = Instance.new("Script") dmg.Name = "SwordScript" dmg.Archivable = true dmg.--WHAT COMMAND DO I USE TO EDIT THE INSIDES? JUST SHOW ME WITH A (dmg.*command*.*whattheinsidesarecalled* = "print 'Hello world!'"
close.MouseButton1Click:connect(onClick)
end)
----------------- If I cannot do this, can I do SOMETHING to change the insides? o.O |
|
|
| Report Abuse |
|
|
mage11561
|
  |
| Joined: 03 Sep 2008 |
| Total Posts: 13217 |
|
|
| 04 May 2012 10:01 PM |
Editing the source of a script via another script is locked.
http://wiki.roblox.com/index.php/Source_(Property) |
|
|
| Report Abuse |
|
|
|
| 04 May 2012 10:03 PM |
| Okay, so then how to h4xx0rs insert weapons aka "The Hammer" Into a game...? |
|
|
| Report Abuse |
|
|
mage11561
|
  |
| Joined: 03 Sep 2008 |
| Total Posts: 13217 |
|
| |
|
|
| 04 May 2012 10:05 PM |
| Wasn't that removed as well? I already explored that option... |
|
|
| Report Abuse |
|
|
iIikeyou
|
  |
| Joined: 07 Mar 2012 |
| Total Posts: 1659 |
|
|
| 04 May 2012 10:05 PM |
You'd either have to do above, which is extremely limited in what a script can do from that, or use Global functions, or a loadstring() with a type of Value for it to load of some sort. There's no other way to edit a script without it being set up in the scripts contents already
I'd suggest trying to control everything from one script with a coroutine |
|
|
| Report Abuse |
|
|
mage11561
|
  |
| Joined: 03 Sep 2008 |
| Total Posts: 13217 |
|
|
| 04 May 2012 10:06 PM |
| Or just put it in lighting and clone it from there. |
|
|
| Report Abuse |
|
|
|
| 04 May 2012 10:09 PM |
I don't have access to lighting for my particular planned use.
How would I go about using loadstring(), I'm searching it up on the wiki right now. (Just if you have any scripts) |
|
|
| Report Abuse |
|
|