This roblox script that makes players be able to pass through a part and meshes and…
- User
This roblox script that makes players be able to pass through a part and meshes and parts arent able to pass through stopped working. Could you please fix it? Heres the script: local PhysicsService = game:GetService("PhysicsService") local Players = game:GetService("Players")
-- Safely create or reset collision groups local function ensureCollisionGroup(name) local exists = false for _, group in ipairs(PhysicsService:GetCollisionGroups()) do if group.name == name then exists = true break end end if not exists then PhysicsService:CreateCollisionGroup(name) end end
-- Ensure the collision groups exist ensureCollisionGroup("Players") ensureCollisionGroup("Objects")
-- Set up collision rules PhysicsService:CollisionGroupSetCollidable("Players", "Objects", false) PhysicsService:CollisionGroupSetCollidable("Players", "Players", false) PhysicsService:CollisionGroupSetCollidable("Objects", "Objects", true)
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.