generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Subject title cannot be more than 60 characters.

Previous Thread :: Next Thread 
Distriction is not online. Distriction
Joined: 25 Mar 2012
Total Posts: 655
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 is not online. 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
Distriction is not online. Distriction
Joined: 25 Mar 2012
Total Posts: 655
04 May 2012 10:03 PM
Okay, so then how to h4xx0rs insert weapons aka "The Hammer" Into a game...?
Report Abuse
mage11561 is not online. mage11561
Joined: 03 Sep 2008
Total Posts: 13217
04 May 2012 10:04 PM
InsertService? ø.ø
Report Abuse
Distriction is not online. Distriction
Joined: 25 Mar 2012
Total Posts: 655
04 May 2012 10:05 PM
Wasn't that removed as well? I already explored that option...
Report Abuse
iIikeyou is not online. 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 is not online. 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
Distriction is not online. Distriction
Joined: 25 Mar 2012
Total Posts: 655
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image