|
| 04 Aug 2012 01:00 AM |
| Is there a way to do CTRL + C in a script?I want to make a tool in my place able to CTRL + C so I'm able to build with my friends and save. |
|
|
| Report Abuse |
|
|
Deviser
|
  |
| Joined: 05 May 2011 |
| Total Posts: 344 |
|
|
| 04 Aug 2012 01:03 AM |
Sure you can!!
Here's how I use it:
print("Hello World!") ^ | | CTRL+C | | V CTRL+V
print("Hello World!") |
|
|
| Report Abuse |
|
|
pwnedu46
|
  |
| Joined: 23 May 2009 |
| Total Posts: 7534 |
|
|
| 04 Aug 2012 01:04 AM |
| You can do it in Edit or Build mode, but not in game. |
|
|
| Report Abuse |
|
|
| |
|
|
| 04 Aug 2012 01:21 AM |
if i'm understanding correctly you want a tool that will copy an item, correct?
You can make this by using the :Clone() method. |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2012 01:22 AM |
| Also, why don't you just make a personal server? lol |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2012 01:29 AM |
local plr = game.Players.LocalPlayer
function KeyDown(key) key:lower() if key == "q" then game:ServerSave() -- Works. end end
function onSelected(mouse) mouse.KeyDown:connect(KeyDown) end script.Parent.Selected:connect(onSelected) |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2012 01:40 AM |
| Does game:ServerSave() only work in your own place? |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2012 01:44 AM |
Well, kinda. You can't do game:ServerSave on it' own. I was giving a demo. But this will work
placeID = 1 game:SetServerSaveUrl("http://www.roblox.com/Data/Upload.ashx?assetid="..placeID) game:ServerSave() |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2012 02:02 AM |
| Nevermind. It only works in plugins. |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2012 07:42 AM |
| :U thanks thought.I hope roblox make it so the creator can save :( |
|
|
| Report Abuse |
|
|
doneyes
|
  |
| Joined: 21 Mar 2008 |
| Total Posts: 3466 |
|
|
| 04 Aug 2012 07:43 AM |
| You can always make a tool that copies and pastes. |
|
|
| Report Abuse |
|
|
rsethc
|
  |
| Joined: 23 Jan 2011 |
| Total Posts: 333 |
|
|
| 04 Aug 2012 07:48 AM |
You can use the bytecode equivalent of the Control key with "C"... in something like this:
--mouse needs to be defined. perhaps use a tool equip function to define it. --CtrlC function is where u put stuff'z in. function CtrlC() --do stuff end C = false Ctrl = false function NewKey(key) if string.lower(key) == "c" then -- don't know if string.lower is necessary. C = true elseif key == --[[I don't know the bytecode for Ctrl key. Try crazyman32's Useful Key Bytecodes list.]] then Ctrl = true end if C and Ctrl then C = false Ctrl = false CtrlC() end end function KeyOff(key) if string.lower(key) == "c" then -- don't know if that's necessary C = false elseif key == --[[Ctrl byte code string]] then Ctrl = false end end mouse.KeyDown:connect(NewKey) mouse.KeyUp:connect(KeyOff) |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2012 07:50 AM |
| But can it copy things like using ctrl + c in studio :P? |
|
|
| Report Abuse |
|
|