Hey everyone,
can someone tell me when the game starts how I can delete from every Humanoid in the game the HumanoidRootPart?
So for every Player.
thanks for any help
Hey everyone,
can someone tell me when the game starts how I can delete from every Humanoid in the game the HumanoidRootPart?
So for every Player.
thanks for any help
Why would you want to do that?
If you simply want to prevent the character from loading, you can use Players.CharacterAutoLoads
.
And if you’re adamant on deleting the HumanoidRootPart:
function PlayerAdded(player: Player)
local character = player.Character or player.CharacterAdded:Wait()
character.HumanoidRootPart:Destroy()
end
game:GetService("Players").PlayerAdded:Connect(PlayerAdded)
As you can see my script doesnt work:
local StarterPlayer = game:GetService("StarterPlayer")
local StaterPlayerScripts = StarterPlayer.StarterPlayerScripts
StaterPlayerScripts.PlayerModule:Destroy()
local Android_17 = game.Workspace:WaitForChild("Androi_D17")
--Android_17:Destroy()
local Players = game:GetService("Players")
function PlayerAdded(player: Player)
local character = player.Character or player.CharacterAdded:Wait()
character.HumanoidRootPart:Destroy()
end
game:GetService("Players").PlayerAdded:Connect(PlayerAdded)
`````Preformatted text``
So why would I do that? because I want to delete my HumanoidRootPart and for everyplayer who joins the game?
Also I dont know but your script doesnt seem work
Roblox Devforum went so bad. In the past after a post everyone replied, today it seems like you have to wait 4 hour to get a strange answer to the problem. How fast things can change it does impress me.