Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = game:GetService("Players").LocalPlayer
- local function sp()
- local mouse = plr:GetMouse()
- local tp = mouse.Hit+Vector3.new(0,0,0)
- tp = CFrame.new(tp.X,tp.Y,tp.Z)
- local part = Instance.new("Part")
- part.Parent = game:GetService("Workspace")
- part.Anchored = true
- part.CFrame = tp
- end
- local function dp()
- local mouse = plr:GetMouse()
- local tp = mouse.Hit+Vector3.new(0,0,0)
- tp = CFrame.new(tp.X,tp.Y,tp.Z)
- local target = mouse.Target
- if target:IsA("BasePart") then
- target:Destroy()
- end
- end
- game:GetService("UserInputService").InputBegan:Connect(function(i, gay)
- local ctrl = game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.LeftControl)
- if i.KeyCode == Enum.KeyCode.Z and not gay then
- if ctrl then
- sp()
- end
- elseif i.KeyCode == Enum.KeyCode.X and not gay then
- if ctrl then
- dp()
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement