Title pretty much explains itself. I’m developing a Simulator and I already implemented a system that prevents players from colliding with eachother, but I couldn’t think of a proper way to prevent players from falling. This usually happens because when rebirthing you generally get an higher speed, and when above about 150 WalkSpeed and collide with another object, the Humanoid just falls. Is there any way to “fix” this? Thanks.
Can you show me your script for not colliding with other players?
local PhysicsService = game:GetService("PhysicsService")
local Players = game:GetService("Players")
PhysicsService:RegisterCollisionGroup("Characters")
PhysicsService:CollisionGroupSetCollidable("Characters", "Characters", false)
local function onDescendantAdded(descendant)
if descendant:IsA("BasePart") then
descendant.CollisionGroup = "Characters"
end
end
local function onCharacterAdded(character)
for _, descendant in pairs(character:GetDescendants()) do
onDescendantAdded(descendant)
end
character.DescendantAdded:Connect(onDescendantAdded)
end
Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(onCharacterAdded)
end)
Here you go, I already had a script for NoCollision but it kind of broke since roblox deprecated some functions, so this is the new version.
Can anybody help me with this please?
You could try adding invisible blocky hitboxes which surround the entire model when the humanoids speed is >150 and is walking, and disable the invisible hitboxes if the speed is <150 or it isn’t walking. I have running at speed 200 into a blocky part and nothing happened. (make sure it goes to the sky as well, may be one of the causes)