"how to turn off player collision in roblox" Code Answer's
You're definitely familiar with the best coding language Lua that developers use to develop their projects and they get all their queries like "how to turn off player collision in roblox" answered properly. Developers are finding an appropriate answer about how to turn off player collision in roblox related to the Lua coding language. By visiting this online portal developers get answers concerning Lua codes question like how to turn off player collision in roblox. Enter your desired code related query in the search bar and get every piece of information about Lua code related question on how to turn off player collision in roblox.
how to turn off player collision in roblox

local PhysicsService = game:GetService("PhysicsService")
PhysicsService:CreateCollisionGroup("Players")
PhysicsService:CollisionGroupSetCollidable("Players", "Players", false)
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
repeat wait(1) until char:WaitForChild("Humanoid")
for _, characterPart in pairs(char:GetChildren()) do
if characterPart:IsA("BasePart") then
PhysicsService:SetPartCollisionGroup(characterPart, "Players")
end
end
end)
end)
-- Put this in "ServerScriptService"
-- Message me on discord Muppet#6931
All those coders who are working on the Lua based application and are stuck on how to turn off player collision in roblox can get a collection of related answers to their query. Programmers need to enter their query on how to turn off player collision in roblox related to Lua code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about how to turn off player collision in roblox for the programmers working on Lua code while coding their module. Coders are also allowed to rectify already present answers of how to turn off player collision in roblox while working on the Lua language code. Developers can add up suggestions if they deem fit any other answer relating to "how to turn off player collision in roblox". Visit this developer's friendly online web community, CodeProZone, and get your queries like how to turn off player collision in roblox resolved professionally and stay updated to the latest Lua updates.