HaxRoblox

Onclick destroy

Oct 1st, 2016
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. local Player = game:FindService("Players").LocalPlayer;
  2. local Mouse = Player:GetMouse();
  3. Mouse.Button1Up:connect(function()
  4. local Part = Mouse.Target;
  5. if Part then
  6. Part:Destroy()
  7. end;
  8. end);
Advertisement
Add Comment
Please, Sign In to add comment