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.
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.
Is it like this?
no
if player.Character:FindFirstChild("Humanoid") then
-- move here
end
where do I put this script? im really confused
you have to telll me what you gonna do with move
and also show your current script so i can help you edit
Its basically moving the player from spawn point to another place
in what way? player clicked gui or player click click detector?
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.
Your humanoid is supposed to be in your character not into your player.
Player:Move function is called every time you move your character.
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 -_-