Can only move character in studio not ingame

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!

Fix the issue

  1. What is the issue? Include screenshots / videos if possible!

For some reason I cant move my character ingame and I can move it only in studio

External Media
local remote = game:GetService("ReplicatedStorage"):WaitForChild("teamswitch")

local function tween(what, tween, desti)
	game:GetService("TweenService"):Create(what, tween, desti):Play()
end

remote.OnServerEvent:Connect(function(plr, role, subclass, teamm, subclassyesno, who)
	
	if teamm == game.Teams.SCPs then
		
		game.ReplicatedStorage.disableinv:FireClient(who, false)
		
	else
		
		game.ReplicatedStorage.disableinv:FireClient(who, true)
		
	end
	
	if teamm ~= "Spectator" then
		who:LoadCharacter()
		
		
	repeat 
		task.wait()
	until who.Character
	
	
		
	else
		if who.Character then
			
		--	who.Character:Destroy()
		end
	
	end
local team = nil
	
	for i,v in pairs(game.Teams:GetChildren()) do
		if v.Name == teamm then
			team = v
		end
	end
	
	

	
	
	local intro = game:GetService("ReplicatedStorage"):WaitForChild("intro"):Clone()
	
	intro.Parent = who.PlayerGui
	
	intro.Enabled = true
	
	intro.spawn:Play()
	
	for i,v in pairs(team:GetChildren()) do
		if v.Name == role then
			if not subclassyesno then
				intro.role.Text = "YOU ARE "..v.name.Value
				intro.role.TextColor3 = v.color.Value
				
				intro.obj1.Text = v.desc1.Value
				intro.obj2.Text = v.desc2.Value
				intro.obj3.Text = v.desc3.Value
				intro.obj4.Text = v.desc4.Value
				
				intro.description.Text = v.description.Value
				
				v.Humanoid:Clone().Parent = who.Character
				
				repeat task.wait() until who.Character:FindFirstChild("Humanoid")
				
				if team ~= game.Teams.Spectator then
				for i,m in pairs(v.tools:GetChildren()) do
					m:Clone().Parent = who.Backpack
				end
				end
				if team ~= game.Teams.Spectator then
				for i,n in pairs(v.outfit:GetChildren()) do
					if not n:IsA("Decal") then
						n:Clone().Parent = who.Character
					end
					if n:IsA("Decal") then
						n:Clone().Parent = who.Character.Head
					end
				end
				end
				

	
	
					if team == game.Teams.SCPs then



					--	who.Character:WaitForChild("Humanoid").WalkSpeed = v.stats.WalkSpeed
					--	who.Character:WaitForChild("Humanoid").JumpPower = v.stats.JumpPower

					end
	

				
				else
				
				for i,b in pairs(v.subclasses:GetChildren()) do
					if b.Name == subclass then
						if teamm ~= game.Teams.Spectator then
						for i,m in pairs(b.tools:GetChildren()) do
							m:Clone().Parent = who.Backpack
						end
						end
						b.Humanoid:Clone().Parent = who.Character
						
						repeat task.wait() until who.Character:FindFirstChild("Humanoid")
						
						intro.role.Text = "YOU ARE "..b.name.Value
						intro.role.TextColor3 = b.color.Value

						intro.obj1.Text = b.desc1.Value
						intro.obj2.Text = b.desc2.Value
						intro.obj3.Text = b.desc3.Value
						intro.obj4.Text = b.desc4.Value

						intro.description.Text = b.description.Value
							if teamm ~= game.Teams.Spectator then
						for i,n in pairs(b.outfit:GetChildren()) do
							if not n:IsA("Decal") then
								n:Clone().Parent = who.Character
							end
							if n:IsA("Decal") then
								n:Clone().Parent = who.Character.Head
							end
						end
						end
					end
				end 
			end
		end
	end
	
	for i,v in pairs(intro:GetChildren()) do
		if v:IsA("TextLabel") then
			tween(v, TweenInfo.new(1, Enum.EasingStyle.Linear), {TextTransparency = 0})
		end
	end
	
	spawn(function()
		task.wait(4)
		for i,v in pairs(intro:GetChildren()) do
			if v:IsA("TextLabel") then
				tween(v, TweenInfo.new(1, Enum.EasingStyle.Linear), {TextTransparency = 1})
			end
		end
		task.wait(1)
		intro:Destroy()
	end)
	
	who.Team = team
	
	who.PlayerGui.role.Value = role
	who.PlayerGui.subclass.Value = subclass
	
end)


game.Players.PlayerAdded:Connect(function(plr)
	
	
	plr.CharacterAdded:Connect(function(c)
		
		if c:FindFirstChild("Humanoid") then
		
		c.Humanoid.Died:Connect(function()
			
			for i,v in pairs(game.Players:GetPlayers()) do
				
				if v.PlayerGui.role.Value == "doctor" then
					
					v.Character.makeseeimage:FireClient(true, v)
					
					task.wait(8)
					
					v.Character.makeseeimage:FireClient(false, v)
					
				end
				
			end
			
		end)
		end
		
	end)
	
end)
External Media

Here’s the video uploaded so you dont have to download

Nevermind it still needs you to download