Answered by
6 years ago Edited 6 years ago
Hey, what AlexTheCreator said is a way to do it, but not the 'right' way. What you need to do is make a LocalScript, put it in StarterGui or StarterPlayer>StarterPlayerScripts. You need to put this code in the script:
01 | local Mouse = game:GetService( "Players" ).LocalPlayer:GetMouse() |
02 | local UIS = game:GetService( "UserInputService" ) |
03 | local CTRLisBeingPressed = false |
05 | UIS.InputBegan:connect( function (input) |
06 | if input.KeyCode = = Enum.KeyCode.LeftControl then |
07 | CTRLisBeingPressed = true |
11 | UIS.InputEnded:connect( function (input) |
12 | if input.KeyCode = = Enum.KeyCode.LeftControl then |
13 | CTRLisBeingPressed = false |
17 | Mouse.Button 1 Down:connect( function () |
18 | if CTRLisBeingPressed = = true then |
19 | local Obj = Mouse.Target; |
20 | local unanchor = Obj.Anchored |
21 | if unanchor ~ = nil then |
If you have any other questions, please tell me.