Advertisement
squidingtin

Click Collision

Apr 20th, 2019
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. game.StarterGui:SetCoreGuiEnabled(2, true)
  2. mouse = game.Players.LocalPlayer:GetMouse()
  3. tool = Instance.new("Tool")
  4. tool.RequiresHandle = false
  5. tool.Name = "Click Collsion"
  6. tool.Activated:connect(function()
  7.     local hit = mouse.Target
  8.     if hit.CanCollide == true then
  9.         hit.CanCollide = false
  10.     else
  11.         hit.CanCollide = true
  12.     end
  13. end)
  14. tool.Parent = game.Players.LocalPlayer.Backpack
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement