- What do you want to achieve?
I want to fix Error Http 400 bad request
- What is the issue?
I am trying to Players:GetHumanoidDescriptionFromUserId() but roblox studio says
-
What solutions have you tried so far?
I looked dev forum to fix this, but there are no solutions of this problem.
This is a catch part script.
local teams = game:GetService("Teams")
local suv = teams.Survivor
script.Parent.Touched:Connect(function(players)
local character = players.Parent
local humanoid = character:FindFirstChild("Humanoid")
if humanoid then
local player = game.Players:GetPlayerFromCharacter(character)
if player.Team == game.Teams.Survivor then
if #suv:GetPlayers() > 1 then
--There is no problem here
elseif #suv:GetPlayers() == 1 then
script.Parent.CanTouch = false
local ItUserId = game.Players:GetUserIdFromNameAsync(<Put Player name here>)
local VictimUserId = game.Players:GetUserIdFromNameAsync(Put Player name here>)
local KillerSkin = game.Players:GetHumanoidDescriptionFromUserId(ItUserId) --ERROR HERE
local VictimSkin = game.Players:GetHumanoidDescriptionFromUserId(VictimUserId) --ERROR HERE
local Dummy = game.Workspace.dummy
local Dummy2 = game.Workspace.dummy2
Dummy.Humanoid:ApplyDescription(KillerSkin)
Dummy2.Humanoid:ApplyDescription(VictimSkin)
wait(5)
player.Team = game.Teams.Eliminated
humanoid.Health = 0
end
end
end
end)
some one pls fix my script ;-;
IT SOLVED
Solution, reset cookies data.