#Collision
6 messages · Page 1 of 1 (latest)
Okay, I suggest looking at dev forums before posting, as I’ve found one almost instantly, try this out; https://devforum.roblox.com/t/how-to-make-players-non-can-collide/671606
@crude patio just put this into a folder in workspace called “Scripts”
Put the following into a local script into that folder; ‘script.Parent = game:GetService("ServerScriptService")
local PhysService = game:GetService("PhysicsService")
local PlayerGroup = PhysService:CreateCollisionGroup("p")
PhysService:CollisionGroupSetCollidable("p","p",false)
function NoCollide(model)
for k,v in pairs (model:GetChildren()) do
if v:IsA"BasePart" then
PhysService:SetPartCollisionGroup(v,"p")
end
end
end
game:GetService("Players").PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(char)
char:WaitForChild("HumanoidRootPart")
char:WaitForChild("Head")
char:WaitForChild("Humanoid")
wait(0.1)
NoCollide(char)
if player.Character then
NoCollide(player.Character)
end
end)
end)’
Oh
Try looking at another forum