Player:Move called, but player currently has no humanoid

Hey devs! I’ve come to a problem, it shows that player can’t be moved, I’ve tried to delete all my scripts and its not working, here is a screenshot of what happened.

截屏2021-05-09 上午7.23.53

B3B530B9-C2C1-41F3-84CB-40431A31C60F_4_5005_c

3 Likes

The Player:Move error usually happens when the humanoid gets deleted while you try to move. So check if the humanoid is in your character or your character is not getting deleted.

3 Likes

Is it like this? 97AA676E-2A91-435B-A0A5-CB3491C763C3_4_5005_c

1 Like

no

1 Like
if player.Character:FindFirstChild("Humanoid") then
   -- move here
end
1 Like

where do I put this script? im really confused

1 Like

you have to telll me what you gonna do with move

and also show your current script so i can help you edit

1 Like

Its basically moving the player from spawn point to another place

1 Like

in what way? player clicked gui or player click click detector?

1 Like

i cant help if you dont give the script also dont worry as no one would try copying it

local spawnPoint = game.Workspace.Spawn1
local Camera = game.Workspace.CurrentCamera
local Player = game.Players.LocalPlayer
local StarterGui = game:GetService(“StarterGui”)

script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Visible = false
Camera.CameraType = “Custom”
if Player.Character and Player.Character:FindFirstChild(“HumanoidRootPart”) then
wait()
Player.Character.UpperTorso.CFrame = spawnPoint.CFrame + Vector3.new(0, 5, 0)
StarterGui.StaminaGui.Background.Visible = true
StarterGui.StaminaGui.Bar.Visible = true
end
end)

Its very weird, it even shows up when the player didnt click it

local spawnPoint = game.Workspace.Spawn1
local Camera = game.Workspace.CurrentCamera
local Player = game.Players.LocalPlayer


script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Visible = false
Camera.CameraType = “Custom”
if Player.Character and Player.Character:FindFirstChild(“HumanoidRootPart”) then
wait()
Player.Character.UpperTorso.CFrame = spawnPoint.CFrame + Vector3.new(0, 5, 0)
Player.PlayerGui.StaminaGui.Background.Visible = true
Player.PlayerGui.StaminaGui.Bar.Visible = true
end
end)

This doesn’t make sense. Is this the entire script? Because I don’t see a single line that calls the Player | Roblox Creator Documentation function, which makes the code you provided useless to us. We cannot help you for :Move if there isn’t a function call for that function in the first place.

1 Like

Your humanoid is supposed to be in your character not into your player.

1 Like

Player:Move function is called every time you move your character.

1 Like

No i didn’t wrote Player:Move, and for some reason i cant delete the player

local spawnPoint = game.Workspace.Spawn1
local Camera = game.Workspace.CurrentCamera
local Player = game.Players.LocalPlayer
local StarterGui = game:GetService(“StarterGui”)

script.Parent.MouseButton1Click:Connect(function()
    script.Parent.Parent.Visible = false
    Camera.CameraType = “Custom”
    if Player.Character and Player.Character:FindFirstChild(“HumanoidRootPart”) then
        wait()
        Player.Character.UpperTorso.CFrame = spawnPoint.CFrame + Vector3.new(0, 5, 0)
        player.PlayerGui.StaminaGui.Background.Visible = true
        player.PlayerGui.StaminaGui.Bar.Visible = true
    end
end)

wdym your making us all confused

bro thats exactly what mine is -_-