Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- KEY
- local Key = Enum.KeyCode.LeftControl
- -- By axelloft1 pls dont skid
- local Plr = game:GetService("Players").LocalPlayer
- local Mouse = Plr:GetMouse()
- local CtrlZ = {}
- local Object = nil
- Mouse.Button1Down:connect(function()
- if not game:GetService("UserInputService"):IsKeyDown(Key) then return end
- if not Mouse.Target then return end
- Object = Mouse.Target
- Object.Parent = game.ReplicatedStorage
- table.insert(CtrlZ,#CtrlZ + 1,Object)
- end)
- game:GetService("UserInputService").InputBegan:Connect(function()
- if not game:GetService("UserInputService"):IsKeyDown(Key) then return end
- if not game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.Z) then return end
- local Bruh = CtrlZ[#CtrlZ]
- Bruh.Parent = game.Workspace
- table.remove(CtrlZ,#CtrlZ)
- end)
Advertisement
Add Comment
Please, Sign In to add comment