Hello , How To Change One Player To All Players ?
Hello, So basically you want this to occur to every player in the game?
You can use;
for i, player in pairs(game.Players:GetPlayers()) do
player.Character:BreakJoints()
end
for _, player in ipairs(game.Players:GetPlayers()) do
player.Character:FindFirstChild("Humanoid").Health = 0
end
To fix the script so that it affects all players in the game, you can use a loop to iterate through each player’s character and break their joints. Here’s an example of how you can modify the script:
– Server Script (Script in a server-side location like ServerScriptService)
– Get all players currently in the game
local players = game:GetService(“Players”):GetPlayers()
– Loop through each player and break their joints
for _, player in ipairs(players) do
local character = player.Character
if character then
character:BreakJoints()
end
end
Make sure to place this script in a server-side location like ServerScriptService so it can access all players. This modified script will now break the joints of all players in the game.
Or forget it you won’t understand I wrote too long