Categories > Exploiting > Scripts >

[REQUEST] KRNL script for visibility based on collision

Posts: 2

Threads: 1

Joined: Jun, 2021

Reputation: 0

Posted

Would like a KRNL script that sets every cancollide true parts transparency to 0 and every cancollide false parts transparency to 1. Too inept to code this myself. TIA.

  • 0

Posts: 215

Threads: 39

Joined: Feb, 2021

Reputation: 9

Replied

for _, part in pairs(workspace:GetDescendants()) do
  if not part:FindFirstChild("HumanoidRootPart") then
    if part.CanCollide == false then
      part.Transparency = 1
    elseif part.CanCollide == true then
      part.Transparency = 0
    end
  end
end
  • 0

Posts: 2

Threads: 1

Joined: Jun, 2021

Reputation: 0

Replied

@ribethings This worked, thank you!

  • 0

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )