Rival Ducks

Command Palette

Search for a command to run...

Untitled Game

Tracked since by PatchyTheClownnn

PlayOpen on Roblox
Performance
Profile

Concurrent players

Metrics over time

About & history

About

local RS = game:GetService("ReplicatedStorage") local PS = game:GetService("PhysicsService") local Run = game:GetService("RunService") local Players = game:GetService("Players") local Event = RS:WaitForChild("ToggleBubbleField") local active = {} -- Set up collision groups pcall(function() PS:CreateCollisionGroup("Bubble") end) pcall(function() PS:CreateCollisionGroup("NPC") end) PS:CollisionGroupSetCollidable("Bubble", "NPC", true) PS:CollisionGroupSetCollidable("Bubble", "Default", false) -- Make NPCs use NPC collision group local function setNPCGroup(model) if model:IsA("Model") and model.Name == "MyNPC" then for _, part in ipairs(model:GetDescendants()) do if part:IsA("BasePart") then PS:SetPartCollisionGroup(part, "NPC") end end end end for _, child in ipairs(workspace:GetChildren()) do setNPCGroup(child) end workspace.ChildAdded:Connect(setNPCGroup) -- Main toggle logic Event.OnServerEvent:Connect(function(player) local char = player.Character if not char